/* ============================================================
   WORDPRESS / WOOCOMMERCE BRIDGE
   Maps core block + WooCommerce block wrappers onto the
   design-system classes above. Filled in per page-build task.
   ============================================================ */

/* Block-theme layout: let our .container / .section drive width,
   neutralize default block max-widths where our classes take over. */
.wp-block-group.site-header,
.wp-block-group.site-footer { max-width: none; }

/* WordPress wraps the header template part in its own <header> box that hugs
   the header's height — which traps our position:sticky header (sticky sticks
   within its parent, so it has no travel room). Collapse that wrapper so the
   sticky header sticks against the full-height page instead. */
header.wp-block-template-part { display: contents; }
/* Inner layout groups: our .container/.header-inner/.footer-grid CSS owns width
   + flex/grid, so strip the block wrapper's own margins/constraints. */
.site-header .wp-block-group.container,
.site-footer .wp-block-group.container { margin-block: 0; }
.header-inner.wp-block-group,
.footer-grid.wp-block-group,
.footer-brand.wp-block-group { max-width: none; }
/* WordPress adds a block-gap top margin to every child after the first, which pushed the
   nav and icons 12px below the logo. */
.header-inner > * { margin-block: 0; }

/* ---- Header: site-logo block ---- */
.site-header .wp-block-site-logo { line-height: 0; }
.site-header .custom-logo,
.site-header .wp-block-site-logo img { height: 34px; width: auto; display: block; }

/* ---- Header: wp:navigation block → mockup .main-nav ---- */
.site-header .wp-block-navigation.main-nav { margin-left: auto; }
.site-header .wp-block-navigation .wp-block-navigation__container { gap: 1.6rem; align-items: center; }
.site-header .wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--body, "IBM Plex Sans"), sans-serif;
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  position: relative; padding: .3rem 0; text-decoration: none;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .22s var(--ease);
}
.site-header .wp-block-navigation .wp-block-navigation-item:hover .wp-block-navigation-item__content { color: var(--ink); }
.site-header .wp-block-navigation .wp-block-navigation-item:hover .wp-block-navigation-item__content::after { width: 100%; }
/* current page keeps a persistent blue underline */
.site-header .wp-block-navigation .current-menu-item .wp-block-navigation-item__content { color: var(--ink); }
.site-header .wp-block-navigation .current-menu-item .wp-block-navigation-item__content::after { width: 100%; }
/* keep the mobile hamburger (overlay open button) tinted to ink */
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close { color: var(--ink); padding: 10px; } /* 24px icon, 44px tap target */

/* Mobile menu overlay. The header's backdrop-filter makes it the containing block for
   position:fixed children, which clipped the full-screen overlay to the header's height.
   Drop the blur while the menu is open so the overlay covers the viewport. */
.site-header:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--cream); padding: 1.1rem 1.25rem 2rem;
}
.site-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; }
.site-header .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch; }
.site-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--line); }
.site-header .is-menu-open .wp-block-navigation-item__content {
  display: block; width: 100%; padding: 1rem 0; font-size: 1.35rem; font-weight: 600; color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
.site-header .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.site-header .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: grid; place-items: center; }
/* Product search inside the open mobile menu only (desktop uses the header search icon). 16px input: iOS zooms the page on anything smaller. */
.site-header .nav-search { display: none; }
.site-header .is-menu-open .nav-search { display: block; width: 100%; margin-top: 1.4rem; }
.site-header .nav-search .wp-block-search__inside-wrapper { display: flex; gap: .5rem; border: 0; padding: 0; }
.site-header .nav-search .wp-block-search__input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 1.1rem; font: 16px "IBM Plex Sans", sans-serif; color: var(--ink); background: #fff; }
.site-header .nav-search .wp-block-search__button { width: 48px; height: 48px; flex-shrink: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--cream); cursor: pointer; }
.site-header .nav-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }

/* ---- Header: woocommerce/mini-cart → round icon button + orange count badge ---- */
.site-header .header-actions { display: flex; align-items: center; gap: .35rem; }
.site-header .wp-block-woocommerce-mini-cart { display: inline-flex; margin: 0; }
.site-header .wc-block-mini-cart__button {
  position: relative; background: none; border: 0; color: var(--ink); cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; transition: background .18s;
}
.site-header .wc-block-mini-cart__button:hover { background: var(--brand-tint); color: var(--brand); }
.site-header .wc-block-mini-cart__button svg,
.site-header .wc-block-mini-cart__icon { width: 20px; height: 20px; }
/* hide the price label — keep just the icon + count, matching the mockup */
.site-header .wc-block-mini-cart__amount { display: none; }
.site-header .wc-block-mini-cart__quantity-badge { position: static; }
/* count bubble → orange pill */
.site-header .wc-block-mini-cart__badge {
  position: absolute; top: 5px; right: 4px;
  background: var(--orange); color: var(--ink);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .75rem; line-height: 1;
  min-width: 17px; height: 17px; padding: 0 3px; border-radius: 999px;
  display: grid; place-items: center;
}

/* ---- Footer: site-logo block → light/inverted brand-logo ---- */
.site-footer .footer-logo .custom-logo,
.site-footer .footer-logo img { filter: brightness(0) invert(1); height: 38px; width: auto; }
.site-footer .footer-brand p { color: rgba(255,255,255,.75); }
.site-footer .footer-brand .made { color: rgba(255,255,255,.6); }
.site-footer .footer-brand .footer-tagline { font-family: "Space Grotesk", Arial, sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--cream); }

/* ---- Layout groups: .container / .section as plain block-group wrappers ---- */
main.wp-block-group { max-width: none; padding: 0; }
.wp-block-group.section { max-width: none; }
.wp-block-group.container { max-width: none; }

/* ---- Bestsellers: wp:woocommerce/product-collection ---- */
.wp-block-woocommerce-product-collection { margin-block: 0; }
.wp-block-woocommerce-product-collection :is(.wp-block-post-template, .wc-block-product-template) {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin: 0; padding: 0; list-style: none;
}
@media (max-width: 940px) {
  .wp-block-woocommerce-product-collection :is(.wp-block-post-template, .wc-block-product-template) { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product),
.wp-block-woocommerce-product-collection li.product {
  overflow: hidden; display: flex; flex-direction: column; margin: 0; padding: 0;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
/* product image → tinted media zone */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image {
  margin: 0 0 .4rem; aspect-ratio: 4 / 3.4; display: grid; place-items: center;
  padding: 1.2rem; background: radial-gradient(circle at 50% 35%, #f2f6fc, #dbe6f5);
}
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image a,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
  width: auto; max-height: 100%; margin: 0;
}
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
  max-height: 160px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(10,27,61,.18));
}
/* body fields get the card's side padding */
.wp-block-woocommerce-product-collection .wp-block-post-title,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-rating,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price { padding-inline: 1.2rem; margin-block: 0; }
.wp-block-woocommerce-product-collection .wp-block-post-title { font-size: 1.18rem; font-weight: 700; line-height: 1.25; }
.wp-block-woocommerce-product-collection .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.wp-block-woocommerce-product-collection .wp-block-post-title a:hover { color: var(--brand); }
/* rating row */
.wp-block-woocommerce-product-collection .wc-block-components-product-rating { font-size: .88rem; }
.wp-block-woocommerce-product-collection .wc-block-components-product-rating__reviews_count { color: var(--muted); }
/* price: sale price = bold ink, regular (del) = struck muted */
.wp-block-woocommerce-product-collection .wc-block-components-product-price {
  font-family: "Space Grotesk", sans-serif; display: flex; align-items: baseline; gap: .55rem;
  font-weight: 700; font-size: 1.4rem; color: var(--ink); /* one-price products have no __value/ins wrapper */
}
.wp-block-woocommerce-product-collection .wc-block-components-product-price__value,
.wp-block-woocommerce-product-collection .wc-block-components-product-price ins {
  font-weight: 700; font-size: 1.4rem; color: var(--ink); text-decoration: none;
}
.wp-block-woocommerce-product-collection .wc-block-components-product-price del,
.wp-block-woocommerce-product-collection .wc-block-components-product-price__regular {
  color: var(--muted); text-decoration: line-through; font-size: .95rem; font-weight: 500;
}
/* add-to-cart → Signal Orange with Navy text everywhere (orange means buy), full width, pinned to card bottom */
.wp-block-woocommerce-product-collection .wp-block-button { margin: auto 0 0; padding: 1.1rem 1.2rem 1.3rem; }
.wp-block-woocommerce-product-collection .wp-block-button__link,
.wp-block-woocommerce-product-collection .wc-block-components-product-button .wp-block-button__link {
  display: block; width: 100%; text-align: center; background: var(--orange); color: var(--ink);
  border: 0; border-radius: var(--btn-radius); padding: .78rem 1rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  transition: background .18s, transform .18s;
}
.wp-block-woocommerce-product-collection .wp-block-button__link:hover { background: var(--orange-deep); transform: translateY(-2px); }

/* ---- Home hero (patterns/home-hero.php): the Featured product as one big picture, with its name, price and buy button in a white bar under it. ---- */
.hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post-template, .wc-block-product-template) { grid-template-columns: 1fr; }
.hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product) {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 1.25rem;
  width: 100%; max-width: 640px; margin: .5rem auto 0; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; text-align: left;
}
.hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product):hover { transform: none; box-shadow: none; }
.hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product)::after { content: ""; grid-area: 2 / 1 / 3 / -1; align-self: stretch; background: var(--surface-2); border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(10,27,61,.35); }
.hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product) > * { z-index: 1; grid-row: 2; }
.hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product) .wp-block-woocommerce-product-image { grid-area: 1 / 1 / 2 / -1; z-index: auto; aspect-ratio: auto; background: none; padding: 0; margin: 0 0 1rem; }
.hero-pick.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
  height: clamp(200px, 28vh, 420px); max-height: none; mix-blend-mode: multiply; filter: none;
  animation: hero-rise .9s var(--ease) both;
}
.hero-pick.wp-block-woocommerce-product-collection .wp-block-post-title { grid-column: 1; padding: 1.1rem 0 1.1rem 1.5rem; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }
.hero-pick.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price { grid-column: 2; padding: 0; }
.hero-pick.wp-block-woocommerce-product-collection .wc-block-components-product-price { justify-content: flex-start; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.hero-pick.wp-block-woocommerce-product-collection .wp-block-button { grid-column: 3; margin: 0; padding: .7rem .7rem .7rem 0; }
.hero-pick.wp-block-woocommerce-product-collection .wp-block-button .wp-block-button__link { width: auto; white-space: nowrap; padding: .85rem 1.4rem; }
.hero-pick.wp-block-woocommerce-product-collection .wp-block-button__link:hover { transform: none; }
/* desktop has the height for a bigger picture with the buy bar still on the first screen */
@media (min-width: 941px) { .hero-pick.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img { height: clamp(160px, calc(100vh - 575px), 460px); } } /* what is left of the screen after the header, pitch and buy bar */
@media (max-width: 560px) {
  .hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product) { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-pick.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product)::after { grid-row: 2 / 4; }
  .hero-pick.wp-block-woocommerce-product-collection .wp-block-post-title { padding: 1rem 0 0 1.1rem; }
  .hero-pick.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price { grid-area: 3 / 1; padding: 0 0 1rem 1.1rem; }
  .hero-pick.wp-block-woocommerce-product-collection .wp-block-button { grid-area: 2 / 2 / 4 / 3; }
}

/* ---- Product cards everywhere (home range, shop, related): borderless Cloud tiles on a white page, picture first. ---- */
.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product, li.product) { background: var(--surface); border: 0; border-radius: var(--radius-lg); align-items: center; text-align: center; padding-bottom: 1.6rem; gap: .3rem; }
.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product):hover { transform: none; box-shadow: none; }
.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product) .wp-block-woocommerce-product-image { width: 100%; aspect-ratio: 4 / 3; background: none; padding: 1.5rem 1.5rem .5rem; margin: 0; }
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img { max-height: 220px; mix-blend-mode: multiply; filter: none; transition: transform .6s var(--ease); }
.wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product):hover img { transform: scale(1.05); }
.wp-block-woocommerce-product-collection .wp-block-post-title { font-size: 1.25rem; font-weight: 600; }
.wp-block-woocommerce-product-collection .wc-block-components-product-price { justify-content: center; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.wp-block-woocommerce-product-collection .wp-block-button { padding: .9rem .75rem 0; }
.wp-block-woocommerce-product-collection .wp-block-button .wp-block-button__link { width: auto; padding: .7rem 1.5rem; }

/* phones, two cards a row: keep "Add to cart" on one line */
@media (max-width: 560px) {
  .wp-block-woocommerce-product-collection .wp-block-button { padding-inline: .6rem; }
  .wp-block-woocommerce-product-collection .wp-block-button .wp-block-button__link { width: 100%; min-height: 44px; padding: .7rem .4rem; font-size: .82rem; letter-spacing: .02em; }
  .hero-pick.wp-block-woocommerce-product-collection .wp-block-button .wp-block-button__link { width: auto; padding: .85rem 1.2rem; font-size: .95rem; }
}

/* ---- Shop archive: product-collection → 3-up mockup grid, category tints + tag ---- */
.shop-main { min-width: 0; }
.section-shop { padding-top: 0; }
.shop-collection :is(.wp-block-post-template, .wc-block-product-template) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .shop-collection :is(.wp-block-post-template, .wc-block-product-template) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .shop-collection :is(.wp-block-post-template, .wc-block-product-template) { grid-template-columns: 1fr 1fr; gap: 1rem; } }
/* toolbar: results count + catalog sorting select styled to mockup */
.shop-toolbar .wc-block-product-results-count,
.shop-toolbar .woocommerce-result-count { font-family: "Space Grotesk", sans-serif; color: var(--muted); margin: 0; }
.shop-toolbar .wc-block-catalog-sorting select,
.shop-toolbar .orderby,
.shop-toolbar select {
  font-family: "IBM Plex Sans", sans-serif; font-size: .95rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .8rem; min-height: 44px;
}

/* pagination → mockup .pager pills */
.shop-collection .wp-block-query-pagination { margin-top: 2.4rem; gap: .4rem; }
.shop-collection .wp-block-query-pagination .page-numbers,
.shop-collection .wp-block-query-pagination a {
  min-width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft);
  font-family: "Space Grotesk", sans-serif; font-weight: 600; text-decoration: none;
}
.shop-collection .wp-block-query-pagination .page-numbers.current {
  background: var(--brand); color: var(--cream); border-color: var(--brand);
}

/* ---- Single product: WooCommerce blocks → mockup product page ---- */
.section-product { padding-top: 1.5rem; }
.product-hero .wp-block-woocommerce-breadcrumbs { margin-bottom: 0; }
/* gallery → tinted stage */
.product-gallery-col .wp-block-woocommerce-product-image-gallery,
.product-gallery-col .wc-block-components-product-image-gallery {
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); margin: 0;
}
.product-gallery-col .wp-block-woocommerce-product-image-gallery { position: relative; }
.product-gallery-col .woocommerce-product-gallery,
.product-gallery-col .woocommerce-product-gallery__wrapper { width: 100%; margin: 0; }
.product-gallery-col .woocommerce-product-gallery__image > a { display: block; }
.product-gallery-col img.wp-post-image,
.product-gallery-col .woocommerce-product-gallery__image img {
  display: block; width: auto; max-width: 100%; max-height: 520px;
  height: auto; margin: 0 auto; object-fit: contain; mix-blend-mode: multiply;
}
.product-gallery-col .woocommerce-product-gallery__trigger {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2) center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1B3D' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  box-shadow: var(--shadow-sm, 0 4px 12px rgba(10,27,61,.12)); text-decoration: none;
  font-size: 0; /* hides WooCommerce's emoji; the link keeps its accessible name */
}
/* sale flash → orange pill, same look on product page and every product card.
   Ink text: white on orange fails WCAG AA. */
.product-gallery-col .onsale,
.buy-box .onsale,
.wp-block-woocommerce-product-collection .wc-block-components-product-sale-badge {
  background: var(--orange); color: var(--ink); border: 0;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: .76rem; line-height: 1.4; padding: .3rem .75rem; border-radius: 999px;
  position: absolute; top: 1rem; z-index: 2; margin: 0;
}
.product-gallery-col .onsale, .buy-box .onsale { left: 1rem; }
.wp-block-woocommerce-product-collection .wc-block-components-product-sale-badge { right: .8rem; top: .8rem; }
/* buy-box → sticky purchase column, no box around it */
.buy-box {
  padding: clamp(0rem, 2vw, 1.5rem) 0 0;
}
.product-gallery-col { position: sticky; top: 92px; align-self: start; }
.product-gallery-col .wp-block-woocommerce-product-image-gallery { max-width: none; width: 100%; } /* WooCommerce caps it at 512px */
@media (max-width: 940px) { .product-gallery-col { position: static; } }
/* the facts a buyer checks before paying, as label rows under the buttons */
.buy-facts { margin-top: 1.6rem; }
.buy-facts .label-row { grid-template-columns: 6.2rem minmax(0, 1fr); padding-block: .65rem; font-size: .95rem; }
/* buy-box typography */
.buy-box .tag { position: static; display: inline-block; margin-bottom: .8rem; width: fit-content; }
.buy-box .tag a { color: var(--cream); text-decoration: none; }
.buy-box .wp-block-woocommerce-product-title,
.buy-box .wc-block-components-product-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; margin: 0 0 .5rem; color: var(--ink);
}
/* A product with one price has no __value/ins wrapper, so the container carries the size too. */
.buy-box .wc-block-components-product-price { font-family: "Space Grotesk", sans-serif; display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0; font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--ink); }
.buy-box .wc-block-components-product-price__value, .buy-box .wc-block-components-product-price ins {
  font-weight: 700; font-size: 2rem; color: var(--ink); text-decoration: none;
}
.buy-box .wc-block-components-product-price del { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; }
.buy-box .wp-block-woocommerce-product-summary { color: var(--ink-soft); max-width: 48ch; margin: 0 0 1rem; }
/* add-to-cart form → qty stepper + navy pill */
.buy-box .wp-block-woocommerce-add-to-cart-form form.cart {
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1.4rem 0 0;
}
.buy-box form.cart .quantity {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: var(--surface-2);
}
.buy-box form.cart .quantity input.qty {
  width: 48px; border: 0; text-align: center; background: transparent;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink);
  padding: 0; height: 46px; line-height: 46px;
}
/* hide the native number spinners — the custom − / + buttons replace them */
.buy-box form.cart .quantity input.qty::-webkit-inner-spin-button,
.buy-box form.cart .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-box form.cart .quantity input.qty { -moz-appearance: textfield; appearance: textfield; }
/* − / + stepper buttons (injected by assets/js/product.js) */
.buy-box form.cart .quantity .qty-btn {
  width: 44px; height: 46px; border: 0; background: transparent; cursor: pointer;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1;
  color: var(--ink); display: grid; place-items: center; transition: background .15s, color .15s;
}
.buy-box form.cart .quantity .qty-btn:hover { background: var(--brand); color: var(--cream); }
.buy-box form.cart .single_add_to_cart_button {
  background: var(--orange); color: var(--ink); border: 0; border-radius: var(--btn-radius);
  flex: 1 1 auto; min-height: 52px;
  padding: .8rem 1.8rem; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; cursor: pointer;
  transition: background .18s, transform .18s;
}
.buy-box form.cart .single_add_to_cart_button:hover { background: var(--orange-deep); transform: translateY(-2px); }
/* Buy now → quiet outline button beneath the orange Add to cart, which stays the main action */
.buy-box form.cart .buy-now-button {
  flex: 1 1 100%; margin-top: .2rem; background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--btn-radius); padding: .85rem 1.8rem; cursor: pointer;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: .95rem; transition: background .18s, transform .18s;
}
.buy-box form.cart .buy-now-button:hover { background: var(--ink); color: var(--cream); }

/* Phones: price + Add to cart pinned to the bottom while the buy buttons are off screen
   (built by assets/js/product.js). */
.buy-bar { display: none; }
@media (max-width: 940px) {
  .buy-bar:not([hidden]) {
    position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface-2); border-top: 2px solid var(--ink);
  }
  .buy-bar-info { margin: 0; min-width: 0; display: grid; font-family: "Space Grotesk", sans-serif; line-height: 1.2; }
  .buy-bar-info span { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar-info strong { font-size: 1.3rem; color: var(--ink); }
  .buy-bar-btn {
    flex: none; min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: var(--btn-radius); cursor: pointer;
    background: var(--orange); color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700;
    font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  }
  /* keep the footer's last lines and the back-to-top button clear of the bar */
  .single-product .site-footer { padding-bottom: 5rem; }
  .single-product .to-top { bottom: 5.5rem; }
}

/* product tabs (woocommerce/product-details) → mockup tab bar.
   Centred reading column so the description doesn't strand in the left half. */
.product-tabs-wrap { margin: 3.5rem auto 0; max-width: 880px; }
.product-tabs-wrap .wc-tabs, .product-tabs-wrap ul.tabs {
  display: flex; gap: 1.6rem; list-style: none; margin: 0 0 1.4rem; padding: 0 0 0;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.product-tabs-wrap .wc-tabs li, .product-tabs-wrap ul.tabs li { margin: 0; }
.product-tabs-wrap .wc-tabs li a, .product-tabs-wrap ul.tabs li a {
  display: block; padding: .8rem 0; color: var(--muted); text-decoration: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.02rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.product-tabs-wrap .wc-tabs li.active a, .product-tabs-wrap ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--brand); }
.product-tabs-wrap .wc-tab > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.product-tabs-wrap .wc-tab p, .product-tabs-wrap .wc-tab li { color: var(--ink-soft); max-width: 65ch; }

/* related products → reuse the product card grid look */
.product-related { margin-top: clamp(3rem, 7vw, 5rem); }
.product-related .section-head { justify-content: center; text-align: center; }
/* one or two related products sit in the middle, not pinned left in a four-column row */
.product-related .wp-block-woocommerce-product-collection :is(.wp-block-post-template, .wc-block-product-template) { display: flex !important; flex-wrap: wrap; justify-content: center; }
.product-related .wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product) { flex: 0 1 calc(25% - 1.05rem); min-width: min(100%, 220px); }
@media (max-width: 940px) { .product-related .wp-block-woocommerce-product-collection :is(.wp-block-post, .wc-block-product) { flex-basis: calc(50% - .5rem); min-width: 0; } }

/* ---- Cart & Checkout: WooCommerce blocks → mockup commerce layout ---- */
.section-commerce { padding-top: 0; }
.section-commerce .wc-block-cart,
.section-commerce .wc-block-checkout { gap: 2.5rem; }

/* headings in brand display face */
.section-commerce .wc-block-components-title,
.section-commerce .wp-block-woocommerce-checkout h2,
.section-commerce .wc-block-components-checkout-step__title {
  font-family: "Space Grotesk", sans-serif; color: var(--ink);
}

/* order-summary / totals card */
.section-commerce .wc-block-cart__sidebar .wc-block-components-sidebar,
.section-commerce .wc-block-checkout__sidebar .wc-block-components-sidebar,
.section-commerce .wc-block-components-totals-wrapper {
  background: var(--surface); border: 0;
  border-radius: var(--radius-lg);
}
.section-commerce .wc-block-components-sidebar { padding: 1.6rem; position: sticky; top: 92px; }

/* cart line-item image → premium tinted tile (was a tiny untiled thumbnail) */
.section-commerce .wc-block-cart-item__image {
  width: 110px; padding: .7rem; vertical-align: top;
}
.section-commerce .wc-block-cart-item__image a,
.section-commerce .wc-block-cart-item__image img {
  width: 100%; height: auto; border-radius: var(--radius);
}
.section-commerce .wc-block-cart-item__image a {
  display: grid; place-items: center; padding: .6rem;
  background: var(--surface);
}
.section-commerce .wc-block-cart-item__image img {
  border-radius: 0; mix-blend-mode: multiply;
}

/* Phones: the line total on the right is the price. Drop the per-unit price and the
   product blurb from the row, and keep the table inside the page margin. */
@media (max-width: 560px) {
  /* the long selectors outrank WooCommerce's own cart rules */
  .section-commerce .wc-block-cart table.wc-block-cart-items { width: 100%; max-width: 100%; margin-inline: 0; }
  .section-commerce .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row { max-width: 100%; padding-inline: 0; }
  .section-commerce .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
  .section-commerce .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata__description { display: none; }
}

/* cart sidebar → one unified summary card instead of two floating boxes */
.section-commerce .wc-block-cart__sidebar {
  background: var(--surface); border: 0; border-radius: var(--radius-lg);
}
.section-commerce .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
  background: none; border: 0; border-radius: 0; padding-left: 0; padding-right: 0;
}
.section-commerce .wc-block-cart__sidebar .wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper {
  border-top: 1px solid var(--line); margin-top: .2rem; padding-top: 1rem;
}

/* checkout order summary → one unified card (was a stack of floating boxes:
   the shared .wc-block-components-totals-wrapper card rule bordered every row).
   Make the whole summary block the card; strip the per-row boxes; use hairline
   dividers between coupon / subtotal / total instead. */
.section-commerce .wp-block-woocommerce-checkout-order-summary-block {
  background: var(--surface); border: 0;
  border-radius: var(--radius-lg); padding: 1.6rem;
  position: sticky; top: 92px;
}
/* sticky summaries only beside the form (desktop); on phones they'd pin over the fields */
@media (max-width: 940px) {
  .section-commerce .wc-block-components-sidebar,
  .section-commerce .wp-block-woocommerce-checkout-order-summary-block { position: static; }
}
.section-commerce .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper {
  background: none; border: 0; border-radius: 0;
  padding-left: 0; padding-right: 0;
}
.section-commerce .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.section-commerce .wp-block-woocommerce-checkout-order-summary-totals-block {
  border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .4rem;
}
.section-commerce .wc-block-components-totals-footer-item {
  border-top: 1px solid var(--line); margin-top: .2rem; padding-top: 1rem;
}

/* summary line item: keep the name, drop the product blurb + the redundant
   per-unit price row (the line total + Save badge already sit on the right).
   Note __description is WC's text-column wrapper, not the blurb — don't hide it. */
.section-commerce .wc-block-components-order-summary-item .wc-block-components-product-metadata__description,
.section-commerce .wc-block-components-order-summary-item .wc-block-cart-item__prices {
  display: none;
}
/* WC ships .wc-block-components-order-summary__content as display:table, which
   shrink-wraps the whole line to its content (~244px) instead of filling the
   card — that's what crushed the name column. Make the summary fill its width. */
.section-commerce .wp-block-woocommerce-checkout-order-summary-block > *,
.section-commerce .wc-block-components-checkout-order-summary__content,
.section-commerce .wc-block-components-order-summary,
.section-commerce .wc-block-components-order-summary__content { width: 100%; box-sizing: border-box; }
.section-commerce .wc-block-components-order-summary__content { display: block; }
/* WC's .is-large adds 16px side padding — redundant inside our own card and it
   squeezes the row enough to wrap the product name. Reclaim it. */
.section-commerce .wc-block-components-order-summary.is-large { padding-left: 0; padding-right: 0; }
.section-commerce .wc-block-components-order-summary-item__image { flex: 0 0 auto; }

/* row layout: let the name column fill the width (was collapsing to ~90px and
   wrapping "SmartBox 4K Pro" onto two lines), keep the price column to content
   and right-aligned so the price + Save badge stack tidily. */
.section-commerce .wc-block-components-order-summary-item {
  align-items: center; gap: .8rem;
}
.section-commerce .wc-block-components-order-summary-item__description {
  flex: 1 1 auto; min-width: 0; margin-top: 0;
  padding-left: 0; padding-right: 0;
}
.section-commerce .wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto; text-align: right;
}
.section-commerce .wc-block-components-order-summary-item .wc-block-components-product-name {
  color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.25;
  width: 100%; align-self: stretch;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-commerce .wc-block-components-order-summary-item .wc-block-components-sale-badge {
  margin: .35rem 0 0 auto;
}
.section-commerce .wc-block-components-order-summary-item__image {
  position: relative; flex: 0 0 60px; width: 60px; height: 60px; margin: 0; padding: 0;
  border-radius: 12px; overflow: visible; /* visible: the quantity badge sits on the corner */
  background: var(--surface-2); display: grid; place-items: center;
}
.section-commerce .wc-block-components-order-summary-item__image img {
  width: 100%; height: 100%; max-width: 100%; object-fit: contain; border-radius: 12px; padding: 4px;
}
/* quantity → a small Navy count on the picture's corner */
.section-commerce .wc-block-components-order-summary-item__quantity {
  position: absolute; top: -7px; right: -7px; left: auto; z-index: 1; transform: none;
  min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); border: 2px solid var(--surface); border-radius: 999px; box-shadow: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .75rem; line-height: 1;
}
/* each line: picture, name, line total, on one row with a hairline between products */
.section-commerce .wc-block-components-order-summary-item { padding: .9rem 0; margin: 0; }
.section-commerce .wc-block-components-order-summary-item + .wc-block-components-order-summary-item { border-top: 1px solid var(--line); }
.section-commerce .wc-block-components-order-summary-item__total-price,
.section-commerce .wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount { font-size: 1rem; }
/* name and line total sit level with the middle of the picture; long names wrap instead of being cut */
.section-commerce .wc-block-components-order-summary-item__description { display: flex; flex-direction: column; justify-content: center; align-self: center; padding: 0; }
.section-commerce .wc-block-components-order-summary-item .wc-block-components-product-metadata { margin: 0; }
.section-commerce .wc-block-components-order-summary-item__total-price { align-self: center; padding: 0; margin: 0; }
.section-commerce .wc-block-components-order-summary-item .wc-block-components-product-name { white-space: normal; overflow: visible; }
/* the heading lines up with the rows under it */
.section-commerce .wc-block-components-checkout-order-summary__title { padding-inline: 0; margin: 0 0 .4rem; }
.section-commerce .wc-block-components-checkout-order-summary__title-text { padding: 0; margin: 0; }
/* WooCommerce leaves padded, empty rows for discounts and fees when there are none */
.section-commerce .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper:empty { display: none; }
.section-commerce .wp-block-woocommerce-checkout-order-summary-totals-block { padding-bottom: .4rem; }
/* one tile, no box inside it; every row shares the tile's side padding */
.section-commerce .checkout-order-summary-block-fill { border: 0; }
.section-commerce .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-step__heading { margin: 0 0 .4rem; padding: 0; }
.section-commerce .wp-block-woocommerce-checkout-order-summary-block :is(.wc-block-components-totals-item, .wc-block-components-totals-coupon, .wc-block-components-panel, .wc-block-components-panel__button) { padding-left: 0; padding-right: 0; }
.section-commerce .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper { padding-top: .6rem; padding-bottom: .6rem; }
.section-commerce .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: "Space Grotesk", sans-serif; font-weight: 700; }

/* tighten the empty band between the page header and the checkout columns */
.section-commerce { padding-top: 0; margin-top: -0.8rem; }
.section-commerce .wc-block-checkout__main > .wc-block-components-notices:empty,
.section-commerce .wc-block-checkout__sidebar > .wc-block-components-notices:empty { display: none; }

/* line item titles + prices */
.section-commerce .wc-block-components-product-name { color: var(--ink); font-weight: 600; text-decoration: none; }
.section-commerce .wc-block-components-product-price,
.section-commerce .wc-block-components-totals-item__value,
.section-commerce .wc-block-formatted-money-amount {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--ink);
}
.section-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.5rem; }

/* free shipping accent */
.section-commerce .wc-block-components-totals-shipping .wc-block-components-totals-item__value { color: var(--success); }

/* inputs → mockup .input look */
.section-commerce .wc-block-components-text-input input,
.section-commerce .wc-block-components-select .components-select-control__input,
.section-commerce input.wc-block-components-text-input__input,
.section-commerce .wc-blocks-components-select__container {
  border-radius: 10px; border-color: var(--line);
}
.section-commerce .wc-block-components-text-input.is-active label,
.section-commerce .wc-block-components-text-input input:focus { border-color: var(--brand); }

/* primary CTAs (proceed / place order) → orange pill, ink text (brand rule) */
.section-commerce .wc-block-cart__submit-button,
.section-commerce .wc-block-components-checkout-place-order-button,
.section-commerce .wc-block-components-button.contained {
  background: var(--orange); color: var(--ink); border-radius: var(--btn-radius);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; border: 0;
}
.section-commerce .wc-block-cart__submit-button:hover,
.section-commerce .wc-block-components-checkout-place-order-button:hover,
.section-commerce .wc-block-components-button.contained:hover {
  background: var(--orange-deep);
}

/* payment method option cards */
.section-commerce .wc-block-components-radio-control__option {
  border: 2px solid var(--line); border-radius: 12px; margin-bottom: .8rem;
  padding: 1rem 1.1rem 1rem 3.25rem; /* left room for WooCommerce's absolutely-positioned radio */
}
.section-commerce .wc-block-components-radio-control__option--checked,
.section-commerce .wc-block-components-radio-control__option:hover { border-color: var(--brand); }

/* empty cart state */
.section-commerce .wc-block-cart--is-loading,
.section-commerce .is-large.wc-block-cart { min-height: 0; }
.section-commerce .wp-block-woocommerce-empty-cart-block .wc-block-components-button {
  background: var(--orange); color: var(--ink); border-radius: var(--btn-radius);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* force the mockup two-column commerce layout at desktop (independent of
   WooCommerce's JS-applied is-large class so it survives static capture) */
@media (min-width: 941px) {
  .section-commerce .wc-block-cart,
  .section-commerce .wc-block-checkout {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem;
  }
  .section-commerce .wc-block-cart__main,
  .section-commerce .wc-block-checkout__main { flex: 1 1 58%; min-width: 0; }
  .section-commerce .wc-block-cart__sidebar,
  .section-commerce .wc-block-checkout__sidebar { flex: 1 1 320px; max-width: 380px; }
}

/* ---- Order confirmation (templates/order-confirmation.html): summary and address as Cloud tiles ---- */
/* Our own h1 heads the page: WooCommerce prints one only when the visitor may see the order,
   and none when it first asks them to confirm their email. */
.order-header .wc-block-order-confirmation-status h1 { display: none; }
.order-header p { color: var(--ink-soft); font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.4; max-width: 52ch; margin: 1.3rem auto 0; text-wrap: balance; }
.order-header form { max-width: 440px; margin: 1.8rem auto 0; display: grid; gap: .9rem; text-align: left; }
.order-header form p { font-size: 1rem; margin: 0; max-width: none; }
.order-header form label { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .88rem; color: var(--ink-soft); margin-bottom: .3rem; }
.order-header form input:is([type="email"], [type="text"]) {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: .75rem .95rem; font: 1rem "IBM Plex Sans", Arial, sans-serif; color: var(--ink); background: var(--surface-2);
}
.order-header form input:focus { border-color: var(--brand); }
.order-header form :is(button, .button) { width: 100%; min-height: 48px; cursor: pointer; }
.section-order { padding-top: 0; }
.wp-block-group.order-wrap { max-width: 860px; display: grid; gap: 2.2rem; }
.order-wrap > * { margin: 0; max-width: none; }
.section-order h2 { font-size: 1.4rem !important; margin-bottom: .8rem; } /* WooCommerce sets an inline size */
.section-order .wc-block-order-confirmation-summary-list {
  list-style: none; margin: 0; padding: 1.5rem 1.7rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem 1.5rem;
  background: var(--surface); border-radius: var(--radius-lg);
}
.section-order .wc-block-order-confirmation-summary-list-item { margin: 0; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
.section-order .wc-block-order-confirmation-summary-list-item__key {
  display: block; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.section-order .wc-block-order-confirmation-summary-list-item__value { font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.section-order .wc-block-order-confirmation-totals__table { width: 100%; border: 0; border-collapse: collapse; border-top: 2px solid var(--ink); }
.section-order .wc-block-order-confirmation-totals__table :is(th, td) { padding: .9rem 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.section-order .wc-block-order-confirmation-totals__table .wc-block-order-confirmation-totals__total { text-align: right; font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.section-order .wc-block-order-confirmation-totals__table a { color: var(--ink); font-weight: 600; }
.section-order .wc-block-order-confirmation-billing-address { background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: 1.5rem 1.7rem; color: var(--ink-soft); }
.section-order address { border: 0; padding: 0; margin: 0; font-style: normal; }
.order-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 1.8rem; }

/* ---- My Account: WooCommerce account markup → mockup auth + dashboard ---- */
.section-account { padding-top: 0; }

/* logged-out: login + register → auth-card grid */
.section-account .u-columns.col2-set,
.section-account #customer_login.u-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 860px; margin: 0 auto;
}
.section-account .u-column1, .section-account .u-column2 {
  background: var(--surface); border: 0; border-radius: var(--radius-lg);
  padding: 2rem; width: auto; float: none;
}
.section-account .u-columns h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.section-account .woocommerce-form-row label { font-weight: 600; color: var(--ink); display: block; margin-bottom: .3rem; }
.section-account form .input-text,
.section-account form input[type="text"],
.section-account form input[type="email"],
.section-account form input[type="password"] {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem;
  font-family: "IBM Plex Sans", sans-serif; background: var(--surface-2);
}
.section-account form .input-text:focus,
.section-account form input:focus { border-color: var(--brand); }
.section-account form .input-text:focus:not(:focus-visible),
.section-account form input:focus:not(:focus-visible) { outline: none; }
.section-account .woocommerce-form-login__submit,
.section-account .woocommerce-form-register__submit,
.section-account .woocommerce-Button,
.section-account button.button {
  background: var(--orange); color: var(--ink); border: 0; border-radius: var(--btn-radius);
  padding: .75rem 1.6rem; min-height: 44px; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
}
.section-account .woocommerce-form-login__submit:hover,
.section-account .woocommerce-form-register__submit:hover,
.section-account button.button:hover { background: var(--orange-deep); }
.section-account .lost_password a { color: var(--brand); font-family: "Space Grotesk", sans-serif; }

/* login-only / lost-password (registration off → no .u-columns wrapper): the bare form is the card */
.section-account .woocommerce > h2,
.section-account .woocommerce > form.woocommerce-form-login,
.section-account .woocommerce > form.lost_reset_password { max-width: 480px; margin-inline: auto; }
.section-account .woocommerce > form.woocommerce-form-login,
.section-account .woocommerce > form.lost_reset_password {
  background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: 2rem;
}
.section-account .woocommerce > h2 { margin-bottom: .8rem; }
.section-account .form-row { margin: 0 0 1rem; }
.section-account .form-row label:not(.woocommerce-form__label-for-checkbox) { font-weight: 600; color: var(--ink); display: block; margin-bottom: .3rem; }
/* country/state dropdown (select2) → same box as the text inputs */
.section-account .select2-container .select2-selection--single {
  height: auto; min-height: 44px; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.section-account .select2-container .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); }
.section-account .required { color: color-mix(in srgb, var(--error) 85%, var(--ink)); text-decoration: none; border: 0; } /* 4.5:1 on the form's white */
.section-account .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: .45rem; margin-right: 1rem; min-height: 44px; cursor: pointer; }
.section-account .woocommerce-form-login__rememberme input { width: 20px; height: 20px; accent-color: var(--brand); }
/* show/hide password eye (WooCommerce's icon font lived in its legacy CSS) */
.section-account .password-input { position: relative; display: block; }
.section-account .password-input input { padding-right: 3rem; }
.section-account .show-password-input {
  position: absolute; top: 50%; right: .2rem; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; cursor: pointer;
  background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338465A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.section-account .show-password-input.display-password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338465A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10 10 0 0 1 12 20C5 20 1 12 1 12a18 18 0 0 1 5.06-5.94M9.9 4.24A9 9 0 0 1 12 4c7 0 11 8 11 8a18 18 0 0 1-2.16 3.19M1 1l22 22'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3C/svg%3E");
}

/* logged-in: nav sidebar + content → account-layout (.woocommerce-account/.logged-in are body classes) */
.woocommerce-account.logged-in .section-account .woocommerce {
  display: grid; grid-template-columns: 230px 1fr; gap: 2.5rem; align-items: start;
}
.section-account .woocommerce-MyAccount-navigation { position: sticky; top: 92px; }
.section-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.section-account .woocommerce-MyAccount-navigation li a {
  padding: .7rem 1rem; border-radius: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-soft); display: block; text-decoration: none;
}
.section-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--brand); color: var(--cream); }
.section-account .woocommerce-MyAccount-navigation li:not(.is-active) a:hover { background: rgba(10,27,61,.06); }
.section-account .woocommerce-MyAccount-content {
  background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: 1.6rem; min-width: 0;
}
.section-account .woocommerce-MyAccount-content h2,
.section-account .woocommerce-MyAccount-content h3 { font-family: "Space Grotesk", sans-serif; }
/* a single order: no yellow highlighter, upright address, room above each heading */
.section-account .woocommerce-MyAccount-content mark { background: none; color: var(--ink); font-weight: 600; }
.section-account .woocommerce-MyAccount-content address { font-style: normal; color: var(--ink-soft); }
.section-account .woocommerce-MyAccount-content h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }

/* orders table → mockup orders-table */
.section-account .woocommerce-orders-table,
.section-account .shop_table { width: 100%; border-collapse: collapse; }
.section-account .woocommerce-orders-table th,
.section-account .woocommerce-orders-table td,
.section-account .shop_table th, .section-account .shop_table td {
  text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: middle;
}
.section-account .woocommerce-orders-table th,
.section-account .shop_table th {
  font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-size: .78rem;
}
/* phones: a five-column orders table does not fit, so tighten it and let the panel scroll rather than the page */
.section-account .woocommerce-MyAccount-content { overflow-x: auto; }
@media (max-width: 560px) {
  .section-account .woocommerce-MyAccount-content { padding: 1.1rem; }
  .section-account .woocommerce-orders-table :is(th, td) { padding: .7rem .3rem; font-size: .88rem; }
  .section-account .woocommerce-orders-table__header-order-date, .section-account .woocommerce-orders-table__cell-order-date { display: none; }
}
.section-account .woocommerce-orders-table__cell-order-status { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.section-account .woocommerce-button.button,
.section-account .woocommerce-MyAccount-content .button {
  background: var(--brand); color: var(--cream); border-radius: var(--btn-radius); padding: .5rem 1.1rem; font-size: .82rem;
}

/* addresses → addr cards */
.section-account .woocommerce-Addresses.addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.section-account .woocommerce-Address { background: var(--surface-2); border-radius: var(--radius); padding: 1.2rem; }
.section-account .woocommerce-Address-title h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: .03em; }
.section-account .woocommerce-Address address { color: var(--ink-soft); font-size: .95rem; font-style: normal; }

@media (max-width: 940px) {
  .section-account .u-columns.col2-set, .section-account #customer_login.u-columns { grid-template-columns: 1fr; }
  .woocommerce-account.logged-in .section-account .woocommerce { grid-template-columns: 1fr; }
  .section-account .woocommerce-MyAccount-navigation { position: static; }
  .section-account .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .section-account .woocommerce-Addresses.addresses { grid-template-columns: 1fr; }
}

/* ---- One price online, like the marketplaces: every price already includes GST, so the
   cart, side cart and checkout show no tax breakdown. The CGST/SGST/IGST split is printed
   on the PDF tax invoice only (see inc/prices.php for emails and order pages). ---- */
/* Each selector carries one class more than WooCommerce's own rule, which loads later and would otherwise win. */
.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax,
.wc-block-mini-cart__footer.wp-block-woocommerce-mini-cart-footer-block .wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description { display: none; }
