/*
 * Nana Kids — Pebble/V8.35 shell recovery
 * Visual-only late layer for WooCommerce surfaces.
 *
 * Goals:
 * - white/neutral canvas instead of cream/coral drift
 * - Bricolage-led typography with black primary actions
 * - clean editorial cart / checkout / account surfaces
 * - white service treatment flowing into a solid black footer
 *
 * This file intentionally does not change layout ownership, JavaScript,
 * form semantics, WooCommerce state, or accessibility primitives.
 */

body.woocommerce-page:not(.home),
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
  background: #fff;
  color: #111;
}

body.woocommerce-page:not(.home) .nana-commerce-shell,
body.woocommerce-cart .nana-commerce-shell,
body.woocommerce-checkout .nana-commerce-shell,
body.woocommerce-account .nana-commerce-shell {
  width: min(calc(100% - 80px), 1440px);
  padding-top: 56px;
  padding-bottom: 96px;
}

body.woocommerce-page:not(.home) .nana-commerce-shell > .entry-title,
body.woocommerce-cart .nana-commerce-shell > .entry-title,
body.woocommerce-checkout .nana-commerce-shell > .entry-title,
body.woocommerce-account .nana-commerce-shell > .entry-title,
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-account h2,
.woocommerce-account h3 {
  color: #111;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body.woocommerce-cart .nana-commerce-shell > .entry-title,
body.woocommerce-checkout .nana-commerce-shell > .entry-title,
body.woocommerce-account .nana-commerce-shell > .entry-title {
  margin-bottom: 42px;
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  line-height: 0.98;
}

/* Shared controls — Pebble/Nana neutral language. */
.woocommerce input.input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce select,
.woocommerce textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: #111;
}

.woocommerce input.input-text:focus,
.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce input[type="number"]:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
  border-color: #111;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 1px #111;
}

.woocommerce form .form-row label,
.woocommerce form .form-row legend {
  color: #202020;
  font-size: 0.8rem;
  font-weight: 650;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
  min-height: 50px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
  border-color: #2a2a2a;
  background: #2a2a2a;
  color: #fff;
  transform: none;
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled[disabled] {
  border-color: #a8a8a8;
  background: #a8a8a8;
  color: #fff;
  opacity: 1;
}

/* Keep old/sale prices readable without bringing coral back. */
.woocommerce del,
.woocommerce del .woocommerce-Price-amount {
  color: #666;
  opacity: 1;
}

.woocommerce ins,
.woocommerce ins .woocommerce-Price-amount {
  color: #111;
  text-decoration: none;
}

/* Notices stay functional but visually quiet. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 28px;
  padding: 16px 18px 16px 20px;
  border: 1px solid #dedede;
  border-top: 1px solid #111;
  border-radius: 0;
  background: #fff;
  color: #222;
  box-shadow: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  color: #111;
}

/* CART */
.woocommerce-cart .woocommerce:has(.woocommerce-cart-form) {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  gap: 56px;
}

.woocommerce table.shop_table,
.woocommerce-cart table.shop_table {
  border: 0;
  border-top: 1px solid #dcdcdc;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 18px 14px;
  border-top-color: #e4e4e4;
}

.woocommerce table.shop_table th {
  color: #4c4c4c;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.woocommerce-cart table.cart img {
  width: 104px;
  border-radius: 0;
  background: #f5f5f5;
}

.woocommerce-cart table.cart .product-name a {
  color: #111;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 650;
  text-decoration: none;
}

.woocommerce-cart table.cart .product-remove a.remove {
  color: #555 !important;
  font-size: 1.25rem;
}

.woocommerce-cart table.cart .product-remove a.remove:hover {
  background: transparent;
  color: #111 !important;
}

.woocommerce-cart table.cart td.actions {
  padding: 22px 0 0;
}

.woocommerce-cart table.cart td.actions .coupon {
  gap: 10px;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 210px;
  min-height: 50px;
}

.woocommerce-cart .cart-collaterals {
  margin: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  padding: 28px;
  border: 1px solid #dedede;
  background: #fff;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 20px;
  font-size: 1.55rem;
}

.woocommerce-cart .cart-collaterals .cart_totals table {
  border-top: 1px solid #e2e2e2;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 22px 0 0;
}

/* CHECKOUT */
.woocommerce form.checkout {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.78fr);
  gap: 72px;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  min-width: 0;
}

.woocommerce-checkout #customer_details > div {
  float: none;
  width: 100%;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.woocommerce-checkout #order_review {
  padding: 28px;
  border: 1px solid #dedede;
  background: #fff;
}

.woocommerce-checkout #order_review table.shop_table {
  margin-bottom: 22px;
}

.woocommerce-checkout #payment {
  border: 0;
  border-top: 1px solid #dfdfdf;
  border-radius: 0;
  background: #fff;
}

.woocommerce-checkout #payment ul.payment_methods {
  padding: 22px 0;
  border-bottom: 1px solid #dfdfdf;
}

.woocommerce-checkout #payment div.payment_box {
  border-radius: 8px;
  background: #f5f5f5;
  color: #333;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #f5f5f5;
}

.woocommerce-checkout #payment div.form-row {
  padding: 22px 0 0;
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
  margin: 0;
}

/* ACCOUNT */
.woocommerce-account .woocommerce {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  border-top: 1px solid #dedede;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  min-height: 52px;
  border-bottom: 1px solid #dedede;
  color: #555;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: transparent;
  color: #111;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  font-weight: 750;
}

.woocommerce-account .woocommerce-MyAccount-content {
  max-width: 900px;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  font-size: 1.05rem;
}

.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account form.login,
.woocommerce-account form.register {
  border-color: #dedede;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

/* Existing service areas: white strip before the black footer. */
.nana-pdp-services,
.nana-service-strip,
.nana-service-strip__inner {
  background: #fff;
  color: #111;
}

.nana-pdp-services {
  border-color: #dedede;
}

.nana-pdp-services span {
  border-right-color: #dedede;
}

.nana-pdp-services .nana-icon,
.nana-product-guidance .nana-icon {
  color: #111;
}

/* FOOTER — solid, neutral, premium. */
.nana-site-footer {
  border-top: 0;
  background: #050505;
  color: #fff;
}

.nana-site-footer h2,
.nana-site-footer .nana-brand,
.nana-site-footer a {
  color: #fff;
}

.nana-site-footer .nana-brand__kids {
  color: #fff;
  opacity: 0.72;
}

.nana-site-footer__brand p {
  color: rgba(255, 255, 255, 0.68);
}

.nana-site-footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.62);
}

.nana-site-footer a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1024px) {
  body.woocommerce-page:not(.home) .nana-commerce-shell,
  body.woocommerce-cart .nana-commerce-shell,
  body.woocommerce-checkout .nana-commerce-shell,
  body.woocommerce-account .nana-commerce-shell {
    width: min(calc(100% - 48px), 1440px);
    padding-top: 44px;
    padding-bottom: 76px;
  }

  .woocommerce-cart .woocommerce:has(.woocommerce-cart-form),
  .woocommerce form.checkout,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .woocommerce form.checkout #customer_details,
  .woocommerce form.checkout #order_review_heading,
  .woocommerce form.checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-top: 0;
    scrollbar-width: thin;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #dedede;
    border-radius: 999px;
    white-space: nowrap;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    border-color: #111;
    background: #111;
    color: #fff;
  }
}

@media (max-width: 767px) {
  body.woocommerce-page:not(.home) .nana-commerce-shell,
  body.woocommerce-cart .nana-commerce-shell,
  body.woocommerce-checkout .nana-commerce-shell,
  body.woocommerce-account .nana-commerce-shell {
    width: min(calc(100% - 32px), 1440px);
    padding-top: 32px;
    padding-bottom: 64px;
  }

  body.woocommerce-cart .nana-commerce-shell > .entry-title,
  body.woocommerce-checkout .nana-commerce-shell > .entry-title,
  body.woocommerce-account .nana-commerce-shell > .entry-title {
    margin-bottom: 28px;
  }

  .woocommerce-cart .woocommerce:has(.woocommerce-cart-form),
  .woocommerce form.checkout,
  .woocommerce-account .woocommerce {
    gap: 32px;
  }

  .woocommerce-cart table.cart img {
    width: 76px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon .button {
    width: 100%;
  }

  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #order_review {
    padding: 22px 18px;
  }

  .woocommerce-checkout #customer_details h3,
  .woocommerce-checkout #order_review_heading {
    font-size: 1.4rem;
  }

  .nana-site-footer {
    padding-top: 56px;
  }
}
