/*
Theme Name: ActiveGirl
Theme URI: https://example.com/activegirl
Author: ActiveGirl
Description: Custom Gutenberg (block) child theme for ActiveGirl activewear, built for WooCommerce. Layout is authored as block markup; styling lives in theme.json tokens + this stylesheet.
Requires at least: 6.5
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: active_girl
*/

:root {
  --ag-rule: rgba(20, 32, 58, 0.15);
  --ag-accent-deep: #3f73a8; /* legible sky for the active-item frame + text on cream */
}

/* ======================= Header ======================= */
/* The sticky element must be the outer template-part <header> (its parent spans
   the page); .ag-header is the visual bar inside it. */
header.wp-block-template-part:has(.ag-header) {
  position: sticky;
  top: 0;
  z-index: 20;
}
.ag-header {
  position: relative;
  background: rgba(239, 233, 227, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  transition: padding 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}
/* iridescent hairline along the bottom edge — fades in once scrolled */
.ag-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 3%,
    rgba(63, 115, 168, 0.5) 28%,
    rgba(21, 32, 58, 0.3) 50%,
    rgba(63, 115, 168, 0.5) 72%,
    transparent 97%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
/* condense + lift + go glassier once the page scrolls */
.ag-header.is-scrolled {
  padding-top: var(--wp--preset--spacing--30) !important;
  padding-bottom: var(--wp--preset--spacing--30) !important;
  background: rgba(239, 233, 227, 0.68);
  box-shadow: 0 10px 34px rgba(21, 32, 58, 0.1);
}
.ag-header.is-scrolled::after {
  opacity: 1;
}
/* ---------- Top announcement band: brief brand text + language switcher ---------- */
.ag-topbar {
  background:
    radial-gradient(120% 200% at 50% -60%, rgba(126, 166, 205, 0.22), transparent 60%),
    var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
}
/* the band slides away once the page scrolls, leaving a clean floating glass
   bar (the sticky wrapper is the parent, so :has() sees the scrolled state) */
header.wp-block-template-part:has(.ag-header) .ag-topbar {
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease;
}
header.wp-block-template-part:has(.ag-header.is-scrolled) .ag-topbar {
  max-height: 0;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ag-header,
  .ag-header::after,
  header.wp-block-template-part:has(.ag-header) .ag-topbar {
    transition: none;
  }
}
.ag-topbar__inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 1600px;
  margin-inline: auto;
  padding: 0.35rem var(--wp--preset--spacing--60);
}
.ag-topbar__text {
  grid-column: 2;
  margin: 0 !important;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(239, 233, 227, 0.92);
}
.ag-topbar .ag-lang {
  grid-column: 3;
  justify-self: end;
}
/* inline language switcher (TH / EN) rendered by [ag_language_switcher] */
.ag-langs {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ag-langs__link {
  color: rgba(239, 233, 227, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ag-langs__link:hover { color: #fff; }
.ag-langs__link.is-active { color: #fff; }
.ag-langs__sep {
  width: 1px;
  height: 0.85em;
  background: rgba(239, 233, 227, 0.35);
}
@media (max-width: 600px) {
  .ag-topbar__inner { padding-inline: var(--wp--preset--spacing--40); }
  /* phones: drop the long tagline, keep just the switcher on the right */
  .ag-topbar__text { display: none; }
}
/* Brand: an uploaded Site Logo image wins; otherwise the text wordmark shows.
   Upload a logo in the Site Editor and the text hides itself automatically. */
.ag-brand__logo {
  line-height: 0;
}
.ag-brand__logo img {
  display: block;
  height: 30px;
  width: auto;
  max-width: none;
  transition: transform 0.25s ease;
}
.ag-brand:hover .ag-brand__logo img {
  transform: scale(1.05);
}
.wp-block-site-logo:not(:has(img)) {
  display: none;
}
.ag-brand:has(.wp-block-site-logo img) .ag-brand__text {
  display: none;
}
.ag-brand__text {
  gap: 0 !important;
  line-height: 1;
}
.ag-brand__name a {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  line-height: 1;
}
.ag-brand__sub {
  margin: 0.15rem 0 0;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.ag-header .wp-block-navigation a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
  font-weight: 500;
}
/* Active/current menu item — "Frame": a hairline outlined pill in accent.
   Items get padding + a pill radius so the outline has room; the nav gap is
   tightened so the row stays the same overall width. */
.ag-header .wp-block-navigation .wp-block-navigation__container {
  gap: 0.25rem !important;
}
.ag-header .wp-block-navigation .wp-block-navigation-item__content {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.ag-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  box-shadow: inset 0 0 0 1.5px rgba(63, 115, 168, 0.32);
  color: var(--ag-accent-deep);
}
.ag-header .wp-block-navigation a[aria-current="page"] {
  box-shadow: inset 0 0 0 1.5px var(--ag-accent-deep);
  color: var(--ag-accent-deep);
}
/* Nav glider — a soft pill that slides behind the links on hover and rests on
   the current page's item. Built at runtime by theme.js (module 7); these rules
   are inert without it, and the outline styles above stay as the fallback. */
.ag-header .wp-block-navigation .wp-block-navigation__container {
  position: relative;
}
.ag-nav-glider {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  list-style: none;
  border-radius: 999px;
  background: rgba(63, 115, 168, 0.13);
  box-shadow: inset 0 0 0 1.5px rgba(63, 115, 168, 0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.3, 0.9, 0.25, 1),
    width 0.38s cubic-bezier(0.3, 0.9, 0.25, 1),
    opacity 0.2s ease;
  will-change: transform, width;
}
.ag-nav-glider.is-on {
  opacity: 1;
}
.is-menu-open .ag-nav-glider {
  display: none; /* never inside the mobile overlay menu */
}
/* while the glider is active the links hand their outline over to it */
.ag-nav.ag-has-glider .wp-block-navigation-item__content:hover,
.ag-nav.ag-has-glider a[aria-current="page"] {
  box-shadow: none;
}
.ag-header-icons {
  align-items: center;
}
.ag-icon-link,
.ag-header-icons .wc-block-mini-cart__button {
  color: var(--wp--preset--color--contrast);
}
.ag-icon-link svg {
  width: 24px;
  height: 24px;
  display: block;
}
/* the header search icon is a <button> that opens the search overlay —
   strip native button chrome so it matches the account/cart icons */
.ag-search-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--wp--preset--color--contrast);
}
/* TranslatePress's own floating switcher pill is replaced by our inline
   [ag_language_switcher] in the top band — keep it hidden. */
.trp-floating-switcher {
  display: none !important;
}

/* ---------- Search overlay (opens from the header search icon) ---------- */
.ag-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(21, 32, 58, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ag-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
/* full-width panel that slides down from the top */
.ag-search-overlay__panel {
  background: var(--wp--preset--color--base);
  padding: clamp(1rem, 3vw, 1.6rem) var(--wp--preset--spacing--60);
  box-shadow: 0 14px 44px rgba(21, 32, 58, 0.2);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.ag-search-overlay.is-open .ag-search-overlay__panel {
  transform: translateY(0);
}
/* the field + close button, centred */
.ag-search-overlay__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 720px;
  margin-inline: auto;
}
.ag-search-field {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.ag-search-field .wp-block-search__inside-wrapper {
  border: 1px solid rgba(21, 32, 58, 0.2);
  border-radius: 12px;
  background: #fff;
  padding: 0.2rem 0.2rem 0.2rem 0.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ag-search-field .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--ag-accent-deep);
  box-shadow: 0 0 0 3px rgba(63, 115, 168, 0.16);
}
.ag-search-field .wp-block-search__input {
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  padding: 0.7rem 0.85rem;
  color: var(--wp--preset--color--foreground);
}
.ag-search-field .wp-block-search__input:focus {
  outline: none;
  box-shadow: none;
}
.ag-search-field .wp-block-search__button {
  margin: 0;
  min-height: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  background-color: var(--ag-accent-deep);
  color: #fff;
}
.ag-search-field .wp-block-search__button svg { fill: currentColor; }
.ag-search-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--wp--preset--color--contrast);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.25s ease;
}
.ag-search-close:hover {
  background: rgba(21, 32, 58, 0.08);
  transform: rotate(90deg);
}
.ag-search-close svg { width: 22px; height: 22px; }
/* lock background scroll while the overlay is open */
.ag-search-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .ag-search-overlay,
  .ag-search-overlay__panel { transition: none; }
}
/* --- Site/template editor: show the overlay as a normal editable section.
   On the frontend it's a fixed, hidden dialog until the search icon is clicked,
   which would make it invisible & unclickable on the editor canvas. Blocks in
   the editor carry the `.wp-block` class (never present on the frontend), so
   these overrides apply only inside the editor. --- */
.wp-block.ag-search-overlay {
  position: relative;
  inset: auto;
  z-index: auto;
  opacity: 1;
  visibility: visible;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px dashed rgba(63, 115, 168, 0.55);
}
.wp-block.ag-search-overlay::before {
  content: "Search overlay — hidden on the live site until the search icon is clicked";
  display: block;
  padding: 0.4rem 1rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ag-accent-deep);
}
.wp-block.ag-search-overlay .ag-search-overlay__panel {
  transform: none;
  box-shadow: none;
}
/* Adding the switcher tips the header over on tablet, where the full 6-item nav
   already left little room. Collapse the nav to its hamburger below the desktop
   width (the block only does this <600px by default — raise it to 980px) so the
   header never crowds; desktop keeps the horizontal nav. */
@media (max-width: 980px) {
  .ag-nav.is-responsive .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .ag-nav.is-responsive .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
}
/* ===== Mobile menu — elegant navy full-screen takeover (opens <=980px) =====
   Restyles the WP navigation block overlay: a dark navy field with a soft sky
   glow, a brand wordmark + close up top, large cream links on hairline rules
   with a sky active accent, a tagline footer, and a staggered fade-in. */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  background:
    radial-gradient(125% 85% at 100% 0%, rgba(126, 166, 205, 0.2) 0%, rgba(21, 32, 58, 0) 55%),
    var(--wp--preset--color--contrast) !important;
  padding: 0 !important;
  overflow-y: auto !important;
  animation: agMenuFade 0.35s ease both;
}
/* the close wrapper is just the layout/scroll surface — top-aligned, not centred */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  display: block !important;
  padding: 0 !important;
}
/* the dialog is the centred content column with the header/footer chrome */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 6vw, 2.75rem) clamp(1.5rem, 7vw, 3rem) clamp(1.8rem, 6vw, 2.75rem);
  box-sizing: border-box;
}
/* brand wordmark, top-left */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
  content: "ActiveGirl";
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  color: var(--wp--preset--color--base);
  opacity: 0.95;
  animation: agMenuFade 0.5s ease both;
}
/* close (X), top-right — cream ring that spins on hover */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  position: absolute;
  top: clamp(1.3rem, 5vw, 2.5rem);
  right: clamp(1.2rem, 6vw, 2.6rem);
  color: var(--wp--preset--color--base);
  background: transparent;
  border: 1px solid rgba(239, 233, 227, 0.28);
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  animation: agMenuFade 0.5s ease both;
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
  transform: rotate(90deg);
  background: rgba(239, 233, 227, 0.1);
  border-color: rgba(239, 233, 227, 0.5);
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
/* links fill the space between the wordmark and the footer */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
}
/* each link: a full-width row on a hairline rule, large refined type */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(239, 233, 227, 0.12);
  animation: agMenuItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:first-child {
  border-top: 1px solid rgba(239, 233, 227, 0.12);
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block !important;
  width: 100%;
  text-align: left;
  position: relative;
  padding: 1.05rem 0 1.05rem 1.1rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--wp--preset--color--base) !important;
  transition: color 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent) !important;
  box-shadow: none !important;
  padding-left: 1.55rem !important;
}
/* clean, accessible focus — no boxy outline (WP focuses the current item on open);
   keyboard users get a subtle sky wash + text instead of a cramped ring */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
  outline: none !important;
  box-shadow: none !important;
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
  color: var(--wp--preset--color--accent) !important;
  background: rgba(126, 166, 205, 0.1);
}
/* active item: sky text + a sky accent bar in the left gutter */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open a[aria-current="page"] {
  color: var(--wp--preset--color--accent) !important;
  box-shadow: none !important;
}
.ag-nav .wp-block-navigation__responsive-container.is-menu-open a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.35em;
  border-radius: 3px;
  background: var(--wp--preset--color--accent);
}
/* tagline footer, pinned to the bottom */
.ag-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::after {
  content: "Move. Confident. Be you.";
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(239, 233, 227, 0.5);
  animation: agMenuFade 0.6s ease 0.3s both;
}
/* staggered link reveal */
@keyframes agMenuItemIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes agMenuFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ag-nav .is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: 0.08s; }
.ag-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.14s; }
.ag-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.2s; }
.ag-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.26s; }
.ag-nav .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.32s; }
.ag-nav .is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 0.38s; }

/* ======================= Hero ======================= */
.ag-hero {
  background: var(--wp--preset--color--base);
  padding-block: var(--wp--preset--spacing--40) 0;
  overflow: hidden;
}
.ag-hero__inner {
  gap: var(--wp--preset--spacing--60);
  align-items: center;
}
/* centre the copy vertically so it reads in line with the image instead of being
   pinned to the top while the taller image sits bottom-heavy (desktop split only).
   The trust band overlaps the hero's last 72px, so reserve that plus a gap at the
   column's foot — the centred column otherwise drifts its CTA into the band
   (by ~25px at 1280, ~72px at 1024). The padding counts toward the column's
   height, so the centring itself keeps the button clear at every split width. */
@media (min-width: 782px) {
  .ag-hero__inner > .is-vertically-aligned-top {
    align-self: center;
    padding-bottom: 88px;
  }
}
/* keep the hero copy/CTA above the trust band, which overlaps upward by 72px —
   otherwise the translucent band washes a grey strip across the SHOP NOW button */
.ag-hero__inner > .is-vertically-aligned-top {
  position: relative;
  z-index: 3;
}
.ag-hero__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--contrast);
  margin: 0;
}
.ag-hero__accent {
  color: var(--wp--preset--color--accent);
  background-color: transparent; /* kill the <mark> default highlight */
}
/* signature two-tone gradient on the accent line (falls back to solid sky) */
@supports ( ( -webkit-background-clip: text ) or ( background-clip: text ) ) {
  .ag-hero__accent {
    background-image: linear-gradient( 100deg, #8fb4d8 0%, #4a7cb0 40%, #15203a 100% );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.ag-hero__lead {
  font-size: 1.2rem;
  max-width: 30ch;
  color: #4a4a4a;
  margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

/* Feature badges */
.ag-features {
  gap: 0 !important;
  align-items: stretch;
  flex-wrap: wrap;
  margin-block-end: var(--wp--preset--spacing--50);
}
.ag-feature {
  align-items: center;
  text-align: center;
  gap: 0.6rem !important;
  padding-inline: 1.5rem;
}
.ag-feature:first-child {
  padding-inline-start: 0;
}
.ag-feature + .ag-feature {
  border-inline-start: 1px solid var(--ag-rule);
}
.ag-feature__icon {
  color: var(--wp--preset--color--contrast);
}
.ag-feature__icon svg {
  width: 34px;
  height: 34px;
  display: block;
}
.ag-feature__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--contrast);
}

/* CTA */
.ag-hero__cta .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ag-accent-deep);
  color: #fff;
}

.ag-hero__media {
  align-self: flex-end;
}
/* Robust hero frame — makes ANY replacement image look intentional:
   - fixed aspect-ratio + object-fit:cover keeps the footprint no matter the
     source dimensions (no distortion, no layout shift)
   - rounded top corners read as a deliberate frame; the bottom stays flush so
     the image still bleeds behind the trust band
   - cream backdrop matches the page and covers any transparency
   Swap assets/hero.png (or Replace in the Site Editor) with anything and it fits. */
.ag-hero__image {
  margin: 0;
  margin-left: 0;
  aspect-ratio: 7 / 6;
  overflow: visible;
  border-radius: 24px 24px 0 0;
  background: var(--wp--preset--color--base);
  position: relative;
  z-index: 2;
}
.ag-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* ======================= Trust bar ======================= */
.ag-trust {
  /* translucent band that overlaps the bottom of the hero image,
     so the models continue down behind it (like the mockup) */
  background: rgba(247, 244, 240, 0.72);
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-block: var(--wp--preset--spacing--40);
}
.ag-trust__item {
  align-items: center;
  gap: 1rem !important;
  flex-wrap: nowrap;
}
.ag-trust__icon {
  color: var(--wp--preset--color--contrast);
}
.ag-trust__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.ag-trust__title {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--wp--preset--color--contrast);
}
.ag-trust__text {
  margin: 0;
  font-size: 0.85rem;
  color: #6b6b6b;
}

/* ======================= Footer ======================= */
.ag-footer {
  background: linear-gradient(180deg, #17223c 0%, #101827 100%);
  color: var(--wp--preset--color--base);
  padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
}
.ag-footer :where(a) {
  color: var(--wp--preset--color--base);
  text-decoration: none;
  opacity: 0.85;
}
.ag-footer :where(a:hover) {
  opacity: 1;
  text-decoration: underline;
}
.ag-footer__brand-title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--base);
  margin: 0 0 0.75rem;
}
.ag-footer__tagline {
  color: rgba(234, 229, 221, 0.65);
  max-width: 30ch;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.ag-footer__title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(234, 229, 221, 0.55);
  margin: 0 0 1rem;
}
.ag-footer__links p {
  margin: 0;
  font-size: 0.95rem;
}
.ag-footer__bottom {
  border-top: 1px solid rgba(234, 229, 221, 0.15);
  margin-top: var(--wp--preset--spacing--60);
  padding-top: var(--wp--preset--spacing--40);
}
.ag-footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(234, 229, 221, 0.6);
}
/* social icons: monochrome cream on the navy background */
.ag-footer .wp-social-link,
.ag-footer .wp-block-social-links.is-style-logos-only .wp-social-link {
  background: transparent !important;
}
.ag-footer .wp-social-link svg {
  fill: var(--wp--preset--color--base);
}

/* ======================= Pages (About / Contact / Tracking / Shop) ======================= */
.ag-page {
  padding-bottom: var(--wp--preset--spacing--70);
}
.ag-page-header {
  /* surface + a soft sky glow bleeding in from the top, closed by a gradient
     hairline along the bottom edge — echoes the scrolled header's hairline */
  background:
    radial-gradient(90% 170% at 50% -50%, rgba(126, 166, 205, 0.18), transparent 65%),
    var(--wp--preset--color--surface);
  position: relative;
  padding-block: var(--wp--preset--spacing--70);
  margin-bottom: var(--wp--preset--spacing--60);
}
.ag-page-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(63, 115, 168, 0.3) 50%, transparent 92%);
  pointer-events: none;
}
/* brand eyebrow above the title, framed by short hairline rules */
.ag-page-header__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ag-accent-deep);
}
.ag-page-header__eyebrow::before,
.ag-page-header__eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 115, 168, 0.45));
}
.ag-page-header__eyebrow::after {
  background: linear-gradient(90deg, rgba(63, 115, 168, 0.45), transparent);
}
.ag-page-header__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--wp--preset--color--contrast);
  margin: 0;
}
.ag-page-header__sub {
  max-width: 46ch;
  margin: 0.75rem auto 0;
  color: #5a5a5a;
}
.ag-lead {
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.15rem;
  color: #4a4a4a;
}
.ag-value__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wp--preset--color--contrast);
}
.ag-about__image img {
  border-radius: 16px;
  display: block;
  width: 100%;
  height: auto;
}

/* Shop / product grid */
.ag-shop-toolbar {
  align-items: center;
  margin-bottom: var(--wp--preset--spacing--50);
  color: #5a5a5a;
}
.ag-shop .wp-block-woocommerce-product-collection {
  --wp--style--block-gap: var(--wp--preset--spacing--50);
}
.ag-shop .wc-block-components-product-image img,
.ag-shop .wp-block-woocommerce-product-image img {
  border-radius: 12px;
}

/* Home product sections (Featured / Best Sellers) */
.ag-section__head {
  margin-bottom: var(--wp--preset--spacing--60);
}
.ag-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ag-accent-deep);
}
.ag-section__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--wp--preset--color--contrast);
  margin: 0;
}
.ag-section__sub {
  margin: 0.6rem auto 0;
  max-width: 46ch;
  color: #5a5a5a;
}
.ag-products .wp-block-woocommerce-product-collection {
  --wp--style--block-gap: var(--wp--preset--spacing--50);
}
.ag-viewall {
  margin-top: var(--wp--preset--spacing--60);
}
.ag-viewall a {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ag-accent-deep);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.ag-viewall a:hover {
  opacity: 0.7;
}

/* Featured — editorial, left-aligned split header */
.ag-section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  text-align: left;
}
.ag-section__head--row .ag-section__eyebrow,
.ag-section__head--row .ag-section__title,
.ag-section__head--row .ag-section__sub {
  text-align: left;
}
.ag-section__head--row .ag-section__sub {
  margin-left: 0;
  margin-right: 0;
  max-width: 48ch;
}
.ag-viewall--inline {
  margin: 0 0 0.4rem;
}

/* the first product section butts straight up against the trust band — no cream gap */
.ag-featured {
  /* margin-top: 0 !important; */
  padding-top: 0 !important;
}

/* Featured carousel — native scroll-snap (works with the Product Collection block as-is) */
.ag-carousel {
  position: relative;
}
.ag-carousel .wp-block-woocommerce-product-collection {
  margin: 0;
}
.ag-carousel .wp-block-woocommerce-product-template {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.ag-carousel .wp-block-woocommerce-product-template::-webkit-scrollbar {
  display: none;
}
.ag-carousel .wc-block-product {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 2rem) / 3.3); /* ~3.3 cards in view → the 4th peeks */
  min-width: 0;
}
.ag-carousel__nav {
  position: absolute;
  top: 33%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  box-shadow: 0 6px 22px -8px rgba(21, 32, 58, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ag-carousel__nav:hover {
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
}
.ag-carousel__nav:focus-visible {
  outline: 2px solid var(--ag-accent-deep);
  outline-offset: 2px;
}
.ag-carousel__nav svg {
  width: 20px;
  height: 20px;
}
.ag-carousel__prev {
  left: -14px;
}
.ag-carousel__next {
  right: -14px;
}
.ag-carousel__nav[hidden] {
  display: none;
}
.ag-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--wp--preset--spacing--50);
}
.ag-carousel__dots[hidden] {
  display: none;
}
.ag-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 32, 58, 0.22);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ag-carousel__dot.is-active {
  background: var(--ag-accent-deep);
  transform: scale(1.35);
}
@media (max-width: 900px) {
  .ag-carousel .wc-block-product {
    flex-basis: calc((100% - 1rem) / 2.2);
  }
  .ag-carousel__prev {
    left: -6px;
  }
  .ag-carousel__next {
    right: -6px;
  }
}
@media (max-width: 560px) {
  .ag-carousel .wc-block-product {
    flex-basis: 80%;
  }
  .ag-carousel__nav {
    display: none;
  }
}

/* Best Sellers — ranked cards with numbered badges */
.ag-bestsellers .wp-block-woocommerce-product-template {
  counter-reset: ag-rank;
}
.ag-bestsellers .wc-block-product {
  position: relative;
  counter-increment: ag-rank;
}
.ag-bestsellers .wc-block-product::before {
  content: counter(ag-rank, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--contrast);
  border-radius: 999px;
}

/* Shop by Collection — bento (large banner + two stacked tiles) */
/* one connected panel: cards flush (no gap), only the outer corners rounded */
.ag-collections__grid {
  gap: 0 !important;
  border-radius: 10px;
  overflow: hidden;
}
.ag-collection {
  border-radius: 0;
  overflow: hidden;
}
/* bottom-weighted gradient scrim — image stays visible up top, text stays legible */
.ag-collection .wp-block-cover__background {
  background: linear-gradient(
    to top,
    rgba(21, 32, 58, 0.82) 0%,
    rgba(21, 32, 58, 0.35) 35%,
    rgba(21, 32, 58, 0) 70%
  ) !important;
  opacity: 1 !important;
}
/* subtle image zoom on the tiles (the banner keeps its parallax) */
.ag-collection--tile .wp-block-cover__image-background {
  transition: transform 0.6s ease;
}
.ag-collection--tile:hover .wp-block-cover__image-background {
  transform: scale(1.06);
}
.ag-collection .wp-block-cover__inner-container {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.ag-collection__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.ag-collection__title {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
  margin: 0;
}
.ag-collection__title--sm {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.ag-collection__text {
  margin: 0.75rem 0 1.25rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}
.ag-collection__link {
  margin: 0.6rem 0 0;
}
.ag-collection__link a {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.ag-collection__link a:hover {
  opacity: 0.75;
}
.ag-btn-light .wp-block-button__link {
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
}
.ag-collections__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ag-collections__stack .ag-collection {
  flex: 1;
  margin: 0; /* kill WP's default block spacing so the tiles sit flush */
}

/* Scroll reveals — the hidden state is only applied by JS to below-fold
   elements (see theme.js); the transition itself is set inline on reveal. */
.ag-reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}
.ag-reveal.is-in {
  opacity: 1;
  transform: none;
}
/* Parallax: give the collection banner image room to move inside its frame */
.ag-collection--feature .wp-block-cover__image-background {
  transform: scale(1.14);
  will-change: transform;
}

/* Contact form */
.ag-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ag-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--contrast);
}
.ag-form input,
.ag-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(20, 32, 58, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--wp--preset--color--foreground);
}
.ag-form input:focus,
.ag-form textarea:focus {
  outline: 2px solid var(--wp--preset--color--accent);
  border-color: transparent;
}
.ag-form__submit {
  align-self: flex-start;
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 2rem;
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.ag-form__note {
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b6b6b;
  margin: 0;
}

/* Order tracking */
.ag-tracking__form .track_order,
.ag-tracking__form form {
  margin-inline: auto;
}
.ag-tracking__help {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin-top: var(--wp--preset--spacing--50);
}

/* WooCommerce — My Account login screen: a tidy, narrow, centered card */
body.woocommerce-account:not(.logged-in) .woocommerce {
  max-width: 460px;
  margin-inline: auto;
}
body.woocommerce-account:not(.logged-in) .woocommerce h2 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}
/* when registration is enabled, Login + Register sit side by side (and stack on
   narrow screens) instead of one cramped column */
body.woocommerce-account:not(.logged-in) .woocommerce:has(.woocommerce-form-register) {
  max-width: 880px;
}
body.woocommerce-account:not(.logged-in) .col2-set {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
}
body.woocommerce-account:not(.logged-in) .col2-set > .u-column1,
body.woocommerce-account:not(.logged-in) .col2-set > .u-column2 {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register {
  flex: 1; /* fill the column so the two cards match height (no overflow when stacked) */
  border-radius: 12px;
  border-color: var(--ag-rule);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input[type="email"] {
  border-radius: 8px;
}

/* ======================= Modern interactions ======================= */
/* Buttons: smooth lift on hover */
a.wp-element-button,
button.wp-element-button,
.ag-form__submit,
.wc-block-components-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  will-change: transform;
}
/* primary (navy) buttons: clean flat navy with a soft grounding shadow */
a.wp-element-button,
button.wp-element-button,
.ag-form__submit,
.wc-block-components-button {
  background-color: var(--ag-accent-deep); /* brand sky */
  color: #fff;
  background-image: none;
  box-shadow: 0 2px 8px rgba(63, 115, 168, 0.22);
}
.ag-btn-light .wp-block-button__link {
  background-color: var(--wp--preset--color--base); /* light banner button stays cream */
}
a.wp-element-button:hover,
button.wp-element-button:hover,
.ag-form__submit:hover,
.wc-block-components-button:hover {
  background-color: var(--wp--preset--color--contrast); /* deepen to navy on hover */
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21, 32, 58, 0.24);
}
/* pressed state — settle back down for tactile feedback */
a.wp-element-button:active,
button.wp-element-button:active,
.ag-form__submit:active,
.wc-block-components-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(21, 32, 58, 0.16);
}

/* Header icons: circular chip hover (padding grows the chip, the negative
   margin keeps the layout footprint unchanged so nothing shifts) */
.ag-header-icons a,
.ag-header-icons .ag-search-toggle,
.ag-header-icons .wc-block-mini-cart__button {
  padding: 7px;
  margin: -7px;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ag-header-icons a:hover,
.ag-header-icons .ag-search-toggle:hover,
.ag-header-icons .wc-block-mini-cart__button:hover {
  transform: translateY(-1px);
  background-color: rgba(63, 115, 168, 0.13);
  color: var(--ag-accent-deep);
}

/* Social icons */
.wp-social-link {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.wp-social-link:hover {
  transform: translateY(-2px);
}

/* Product cards: lift + image zoom (shop archive + homepage rows) */
.ag-shop .wc-block-product,
.ag-products .wc-block-product {
  transition: transform 0.3s ease;
}
/* equal-height cards so a 2-line title doesn't knock the CTA out of line
   with its neighbour — the button drops to the bottom of every card */
.ag-shop .wc-block-product,
.ag-products .wc-block-product {
  display: flex;
  flex-direction: column;
}
.ag-shop .wc-block-product > .wc-block-components-product-button,
.ag-products .wc-block-product > .wc-block-components-product-button {
  margin-top: auto;
}
.ag-shop .wc-block-product .wc-block-components-product-image,
.ag-products .wc-block-product .wc-block-components-product-image {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.ag-shop .wc-block-product .wc-block-components-product-image img,
.ag-products .wc-block-product .wc-block-components-product-image img {
  transition: transform 0.5s ease;
}
.ag-shop .wc-block-product:hover,
.ag-products .wc-block-product:hover {
  transform: translateY(-6px);
}
.ag-shop .wc-block-product:hover .wc-block-components-product-image img,
.ag-products .wc-block-product:hover .wc-block-components-product-image img {
  transform: scale(1.05);
}
/* subtle scrim to ground the product photos */
.ag-products .wc-block-components-product-image,
.ag-shop .wc-block-components-product-image {
  position: relative;
}
.ag-products .wc-block-components-product-image::after,
.ag-shop .wc-block-components-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(21, 32, 58, 0.16) 0%, rgba(21, 32, 58, 0) 30%);
}

/* Reused-image + CTA cards get a gentle motion cue too */
.ag-hero__cta .wp-block-button__link,
.ag-cta .wp-block-button__link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
}
.ag-hero__cta .wp-block-button__link:hover {
  gap: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .ag-shop .wc-block-product:hover,
  .ag-shop .wc-block-product:hover .wc-block-components-product-image img,
  a.wp-element-button:hover,
  button.wp-element-button:hover {
    transform: none;
  }
  .ag-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ======================= Responsive ======================= */
@media (max-width: 781px) {
  .ag-hero__lead {
    max-width: none;
  }
  .ag-hero__media {
    margin-top: 2rem;
  }
  /* badges: keep all three on one row, no dangling dividers */
  .ag-features {
    gap: 0.25rem !important;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .ag-feature {
    flex: 1 1 0;
    padding-inline: 0.35rem;
  }
  .ag-feature + .ag-feature {
    border-inline-start: none;
  }
  .ag-feature__icon svg {
    width: 28px;
    height: 28px;
  }
  .ag-feature__label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
  .ag-trust__item {
    justify-content: center;
  }
  .ag-footer__bottom {
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 860px) {
  /* header must fit wordmark + full 6-item nav + icons down to tablet widths
     (the nav only collapses to a hamburger below 600px) */
  .ag-header {
    padding-left: var(--wp--preset--spacing--30) !important;
    padding-right: var(--wp--preset--spacing--30) !important;
  }
  .ag-header .wp-block-navigation .wp-block-navigation-item__content {
    padding: 0.34rem 0.5rem;
  }
  .ag-nav a {
    font-size: 0.72rem !important;
  }
  .ag-header-icons {
    gap: var(--wp--preset--spacing--30) !important;
  }
  .ag-brand__name a {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 600px) {
  /* nav is a hamburger at this width; keep the brand compact */
  .ag-brand__name a {
    font-size: 1.15rem;
  }
  .ag-brand__logo img {
    height: 22px;
  }

  /* ---------- phone polish: tighter rhythm + tidy product buttons ---------- */
  /* the airy desktop section padding is too much on a phone */
  .ag-products,
  .ag-collections {
    padding-top: var(--wp--preset--spacing--50) !important;
    padding-bottom: var(--wp--preset--spacing--50) !important;
  }
  .ag-featured {
    padding-top: 0 !important; /* stay flush under the trust band */
  }
  .ag-footer {
    padding-top: var(--wp--preset--spacing--50);
  }
  /* pull the hero image nearer the CTA so the fold isn't so stretched */
  .ag-hero__inner {
    gap: var(--wp--preset--spacing--40);
  }

  /* "Add to cart" must stay one line — no ballooning in the 2-up grid */
  .ag-products .wc-block-components-product-button .wp-block-button__link,
  .ag-products .wc-block-components-product-button button,
  .ag-products .wp-block-button__link {
    font-size: 0.72rem;
    padding: 0.66rem 0.5rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  /* a hair more breathing room between the two product columns */
  .ag-bestsellers .wp-block-woocommerce-product-template {
    gap: 0.85rem 0.7rem !important;
  }

  /* ---------- touch targets: comfortable >=44px tap areas on phones ---------- */
  /* header icons + hamburger carry their own padded tap box (the icon art stays
     the same size — only the clickable area grows into the surrounding gap) */
  .ag-header-icons .ag-icon-link,
  .ag-header-icons .wc-block-mini-cart__button,
  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* the icons now pad themselves, so pull the row gap in to keep it tidy */
  .ag-header-icons {
    gap: 0.3rem !important;
  }
  /* "Add to cart" gets a full 44px tap height while staying on one line */
  .ag-products .wc-block-components-product-button .wp-block-button__link,
  .ag-products .wc-block-components-product-button button,
  .ag-products .wp-block-button__link,
  .ag-shop .wc-block-components-product-button .wp-block-button__link,
  .ag-shop .wc-block-components-product-button button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =======================================================================
   WooCommerce — Order Tracking + My Account (My Order)
   On-brand styling for WooCommerce's front-end output: forms, the account
   dashboard/sidebar, the orders table, and the order-details view.
   ======================================================================= */
.woocommerce,
.ag-tracking {
  --ag-line: rgba(21, 32, 58, 0.1);         /* hairline on cream */
  --ag-card: var(--wp--preset--color--surface);
  --ag-ok: #2f7d55;      /* completed / delivered */
  --ag-info: #3f73a8;    /* processing */
  --ag-warn: #b07a1e;    /* on-hold / pending */
  --ag-danger: #b3452f;  /* cancelled / failed */
}

/* ---------- shared form controls ---------- */
.woocommerce .input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="search"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.woocommerce-Input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(21, 32, 58, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--wp--preset--color--foreground);
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce .input-text:focus,
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce-Input:focus {
  outline: none;
  border-color: var(--ag-accent-deep);
  box-shadow: 0 0 0 3px rgba(63, 115, 168, 0.16);
}
.woocommerce .input-text::placeholder,
.woocommerce-Input::placeholder {
  color: var(--wp--preset--color--muted);
  opacity: 0.85;
}
.woocommerce form .form-row label,
.woocommerce-form-row label,
.woocommerce .woocommerce-form__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
}
.woocommerce .required { color: var(--ag-danger); border: 0; }
.woocommerce .password-input { position: relative; display: block; }
.woocommerce .password-input .input-text { padding-right: 2.75rem; }
.woocommerce .show-password-input {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Order Tracking ---------- */
.ag-tracking__form .woocommerce { max-width: 640px; margin-inline: auto; }
.woocommerce-form-track-order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 2.25rem);
}
.woocommerce-form-track-order > p:first-child { grid-column: 1 / -1; margin: 0; color: var(--wp--preset--color--muted); }
/* .woocommerce prefix needed to beat WooCommerce's `.form-row-first{width:47%;float}` */
.woocommerce .woocommerce-form-track-order .form-row { margin: 0; float: none; width: auto; }
.woocommerce .woocommerce-form-track-order .form-row-first { grid-column: 1; width: auto; }
.woocommerce .woocommerce-form-track-order .form-row-last { grid-column: 2; width: auto; }
.woocommerce-form-track-order .clear { display: none; }
.woocommerce-form-track-order .form-row:last-of-type { grid-column: 1 / -1; margin-top: 0.25rem; }
.woocommerce-form-track-order button[name="track"] { width: 100%; }
.ag-tracking__help { margin-top: var(--wp--preset--spacing--40); color: var(--wp--preset--color--muted); font-size: 0.9rem; }
.ag-tracking__help a { color: var(--ag-accent-deep); }

/* ---------- My Account: two-column shell ---------- */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}
/* WooCommerce clears floats with ::before/::after on .woocommerce; in a grid
   those pseudo-elements become stray grid items and stagger the columns —
   drop them and reset the legacy float/width so the two panels fill the grid */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::before,
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after {
  content: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}
/* sidebar navigation */
.woocommerce-MyAccount-navigation {
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
  border-radius: 16px;
  padding: 0.5rem;
  position: sticky;
  top: 96px;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation-link { margin: 0; }
.woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.woocommerce-MyAccount-navigation-link a:hover {
  background: rgba(63, 115, 168, 0.09);
  color: var(--ag-accent-deep);
  padding-left: 1.15rem;
}
.woocommerce-MyAccount-navigation-link.is-active a {
  background: var(--wp--preset--color--contrast);
  color: #fff;
}
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--wp--preset--color--muted); }

/* content panel */
.woocommerce-MyAccount-content {
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0; /* let tables shrink instead of overflowing the grid */
}
.woocommerce-MyAccount-content > p { color: var(--wp--preset--color--foreground); }
/* tint text links, but never buttons (they keep their white-on-sky treatment) */
.woocommerce-MyAccount-content a:not(.button):not(.wp-element-button) { color: var(--ag-accent-deep); }
.woocommerce-MyAccount-content a.button,
.woocommerce-MyAccount-content .wp-element-button { color: #fff; }
.woocommerce-MyAccount-content h2,
.woocommerce-order-details__title,
.woocommerce-column__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: var(--wp--preset--color--contrast);
}

/* ---------- Login form (logged-out My Order) ---------- */
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) {
  max-width: 460px;
  margin-inline: auto;
}
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) > h2 {
  text-align: center;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.woocommerce-form-login {
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: clamp(1.5rem, 5vw, 2.25rem);
}
.woocommerce-form-login .form-row { margin-bottom: 1.1rem; }
.woocommerce-form-login__submit { width: 100%; margin-top: 0.25rem; }
.woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--wp--preset--color--muted);
  margin: 0.75rem 0;
}
.woocommerce-form-login__rememberme input { width: auto; }
.woocommerce-LostPassword { text-align: center; margin: 0; }
.woocommerce-LostPassword a { color: var(--ag-accent-deep); font-size: 0.9rem; }

/* ---------- Register (when enabled) + two-column sets ---------- */
/* WooCommerce lays login/register + the address book out with floated .col2-set;
   make it a clean grid (drop the clearfix pseudos + reset the legacy float/width) */
.woocommerce .u-columns.col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}
.woocommerce .u-columns.col2-set::before,
.woocommerce .u-columns.col2-set::after { content: none; }
.woocommerce .u-columns.col2-set > .col-1,
.woocommerce .u-columns.col2-set > .col-2 { float: none; width: auto; min-width: 0; }
#customer_login h2 { text-align: left; font-size: 1.3rem; margin: 0 0 1rem; }
/* register form gets the same card as login */
.woocommerce-form-register {
  background: var(--ag-card);
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  padding: clamp(1.5rem, 5vw, 2.25rem);
}
.woocommerce-form-register p { color: var(--wp--preset--color--foreground); }
.woocommerce-form-register .woocommerce-Button,
.woocommerce-form-register button[type="submit"] { width: 100%; margin-top: 0.5rem; }
/* widen the wrapper when register is present (overrides the login-only 460px cap) */
.woocommerce-account .woocommerce:has(.woocommerce-form-register) { max-width: 940px; }

/* ---------- Address book (edit-address index) ---------- */
.woocommerce-Addresses .woocommerce-Address {
  background: rgba(21, 32, 58, 0.02);
  border: 1px solid var(--ag-line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.woocommerce-Address-title.title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.woocommerce-Address-title.title h2 { margin: 0; font-size: 1.05rem; }
.woocommerce-Address-title.title .edit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ag-accent-deep);
  text-decoration: none;
  white-space: nowrap;
}
.woocommerce-Address-title.title .edit:hover { text-decoration: underline; }
.woocommerce-Address address {
  font-style: normal;
  line-height: 1.7;
  color: var(--wp--preset--color--foreground);
  margin: 0;
}

/* ---------- edit-account: password fieldset ---------- */
.woocommerce-EditAccountForm fieldset {
  border: 1px solid var(--ag-line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
}
.woocommerce-EditAccountForm legend {
  padding: 0 0.5rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}

/* ---------- Orders table ---------- */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.woocommerce-orders-table__header {
  text-align: left;
  padding: 0 0.75rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--muted);
  border-bottom: 2px solid var(--ag-line);
}
.woocommerce-orders-table__cell {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--ag-line);
  vertical-align: middle;
  font-size: 0.95rem;
  color: var(--wp--preset--color--foreground);
}
.woocommerce-orders-table__row:last-child .woocommerce-orders-table__cell { border-bottom: 0; }
.woocommerce-orders-table__cell-order-number a { font-weight: 700; color: var(--wp--preset--color--contrast); text-decoration: none; }
.woocommerce-orders-table__cell-order-number a:hover { color: var(--ag-accent-deep); }
/* status as a tinted pill — the span is rendered by functions.php; its colour
   comes from the row-status rules below via currentColor, so one set of colour
   rules drives dot, text, fill and ring */
.woocommerce-orders-table__cell-order-status { font-weight: 600; white-space: nowrap; }
.ag-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32em 0.85em;
  border-radius: 999px;
  font-size: 0.84rem;
  background: color-mix(in srgb, currentColor 11%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 25%, transparent);
}
.ag-status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: var(--ag-ok); }
.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { color: var(--ag-info); }
.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: var(--ag-warn); }
.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status { color: var(--ag-danger); }
.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: var(--wp--preset--color--muted); }
/* compact view button in the actions column */
.woocommerce-orders-table__cell-order-actions { text-align: right; }
.woocommerce-orders-table .woocommerce-button.button,
.woocommerce-orders-table a.button {
  min-height: 0;
  padding: 0.5rem 1.15rem;
  font-size: 0.8rem;
  border-radius: 10px;
}
/* product thumbnail stack in the Items column (rendered by functions.php) */
.ag-order-thumbs {
  display: inline-flex;
  align-items: center;
}
.ag-order-thumbs__img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  margin-left: -12px;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 1px 5px rgba(21, 32, 58, 0.14);
}
.ag-order-thumbs__img:first-child { margin-left: 0; }
.ag-order-thumbs__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ag-order-thumbs__more {
  margin-left: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wp--preset--color--muted);
}
/* row hover: a whisper of sky */
@media (hover: hover) {
  .woocommerce-orders-table__row .woocommerce-orders-table__cell { transition: background-color 0.15s ease; }
  .woocommerce-orders-table__row:hover .woocommerce-orders-table__cell { background-color: rgba(126, 166, 205, 0.08); }
}

/* ---------- View order: details + customer address ---------- */
.woocommerce-order-details,
.woocommerce-customer-details { margin-top: 1.75rem; }
.woocommerce-order-details:first-child { margin-top: 0; }
/* status stepper (rendered by functions.php between intro line and table);
   the connector line belongs to the step it leads TO, so is-done/is-now on a
   step also colours the segment travelled to reach it */
.ag-orderflow {
  list-style: none;
  display: flex;
  margin: 1.4rem 0 1.9rem;
  padding: 1.15rem 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 14px;
}
.ag-orderflow__step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--wp--preset--color--muted);
}
.ag-orderflow__step + .ag-orderflow__step::before {
  content: "";
  position: absolute;
  top: 8px;
  right: calc(50% + 18px);
  left: calc(-50% + 18px);
  height: 2px;
  border-radius: 1px;
  background: var(--ag-line);
}
.ag-orderflow__step.is-done::before,
.ag-orderflow__step.is-now::before {
  background: rgba(63, 115, 168, 0.55);
}
.ag-orderflow__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ag-line);
  display: grid;
  place-items: center;
  z-index: 1;
}
.ag-orderflow__step.is-done .ag-orderflow__dot {
  background: var(--ag-accent-deep);
  box-shadow: none;
}
.ag-orderflow__step.is-done .ag-orderflow__dot::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ag-orderflow__step.is-now {
  color: var(--wp--preset--color--contrast);
}
.ag-orderflow__step.is-now .ag-orderflow__dot {
  box-shadow: inset 0 0 0 2px var(--ag-accent-deep), 0 0 0 4px rgba(63, 115, 168, 0.15);
}
.ag-orderflow__step.is-now .ag-orderflow__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ag-accent-deep);
}
.ag-orderflow__label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}
.ag-orderflow__step.is-done .ag-orderflow__label {
  color: var(--wp--preset--color--foreground);
}
@media (max-width: 480px) {
  .ag-orderflow { padding-inline: 0.4rem; }
  .ag-orderflow__label { font-size: 0.72rem; }
}
/* items table: thumbnail beside the product name (wrapped by functions.php) */
.ag-order-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  vertical-align: middle;
}
img.ag-order-item__thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 4px rgba(21, 32, 58, 0.1);
}
/* intro line status/number/date marks → tidy sky pills (default <mark> is bright
   yellow); covers My Account, the thank-you page, and the order-tracking result */
.woocommerce mark,
.ag-tracking mark {
  background: rgba(63, 115, 168, 0.12);
  color: var(--ag-accent-deep);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}
.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ag-line);
  border-radius: 14px;
  overflow: hidden;
}
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ag-line);
}
.woocommerce-table--order-details thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--muted);
  background: rgba(21, 32, 58, 0.03);
}
.woocommerce-table--order-details .product-total,
.woocommerce-table--order-details td:last-child,
.woocommerce-table--order-details th:last-child { text-align: right; }
.woocommerce-table--order-details tfoot th { font-weight: 600; color: var(--wp--preset--color--contrast); }
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; font-size: 1.05rem; }
.woocommerce-table--order-details .product-name a { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 500; }
.woocommerce-table--order-details .product-name a:hover { color: var(--ag-accent-deep); }
.woocommerce-table--order-details .product-quantity { color: var(--wp--preset--color--muted); font-weight: 400; }
.order-again { margin-top: 1.25rem; }
.woocommerce-customer-details address {
  font-style: normal;
  line-height: 1.7;
  padding: 1.25rem 1.5rem;
  background: rgba(21, 32, 58, 0.03);
  border: 1px solid var(--ag-line);
  border-radius: 14px;
}
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email { margin: 0.5rem 0 0; color: var(--wp--preset--color--muted); }

/* ---------- notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  border: 1px solid var(--ag-line);
  border-left: 4px solid var(--ag-info);
  background: var(--ag-card);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  list-style: none;
  color: var(--wp--preset--color--foreground);
}
.woocommerce-message { border-left-color: var(--ag-ok); }
.woocommerce-error { border-left-color: var(--ag-danger); }
.wc-block-components-notice-banner.is-info { border-left-color: var(--ag-info); }
.wc-block-components-notice-banner .wc-forward.button { margin-left: 0.75rem; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    grid-template-columns: 1fr;
  }
  .woocommerce .u-columns.col2-set { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation { position: static; }
  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .woocommerce-MyAccount-navigation-link a:hover { padding-left: 0.95rem; }
}
@media (max-width: 768px) {
  /* orders table → stacked cards using WooCommerce's data-title labels */
  .woocommerce-orders-table thead { display: none; }
  .woocommerce-orders-table,
  .woocommerce-orders-table tbody { display: block; }
  .woocommerce-orders-table__row {
    display: block;
    border: 1px solid var(--ag-line);
    border-radius: 14px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1rem;
  }
  .woocommerce-orders-table__cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ag-line);
    text-align: right;
  }
  /* WooCommerce hides the order-number <th> in its responsive view — show it */
  .woocommerce-orders-table__cell-order-number { display: flex !important; }
  .woocommerce-orders-table__row .woocommerce-orders-table__cell:last-child { border-bottom: 0; }
  .woocommerce-orders-table__cell::before {
    content: attr(data-title);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--muted);
    text-align: left;
  }
  .woocommerce-orders-table__cell-order-actions { justify-content: flex-end; }
}
@media (max-width: 600px) {
  .woocommerce-form-track-order { grid-template-columns: 1fr; }
  .woocommerce-form-track-order .form-row-first,
  .woocommerce-form-track-order .form-row-last { grid-column: 1; }
}

/* ======================= Single product page ======================= */
/* breadcrumbs: quiet uppercase trail */
.ag-product-page .woocommerce-breadcrumb {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.ag-product-page .woocommerce-breadcrumb a {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}
.ag-product-page .woocommerce-breadcrumb a:hover { color: var(--ag-accent-deep); }

/* gallery: rounded frame like the rest of the brand imagery */
.ag-product__gallery .woocommerce-product-gallery { width: 100% !important; }
.ag-product__gallery .woocommerce-product-gallery__wrapper,
.ag-product__gallery .flex-viewport {
  border-radius: 20px;
  overflow: hidden;
  background: var(--wp--preset--color--surface);
}
.ag-product__gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
}
.ag-product__gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.ag-product__gallery .flex-control-thumbs li { width: 76px; }
.ag-product__gallery .flex-control-thumbs img {
  border-radius: 10px;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.ag-product__gallery .flex-control-thumbs img.flex-active,
.ag-product__gallery .flex-control-thumbs img:hover { opacity: 1; }

/* summary column */
/* category eyebrow: small sky editorial line above the title */
.ag-product__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ag-product__eyebrow,
.ag-product__eyebrow a {
  color: var(--ag-accent-deep);
  text-decoration: none;
}
.ag-product__eyebrow a:hover { text-decoration: underline; }
.ag-product__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 0.5rem;
  color: var(--wp--preset--color--contrast);
}
/* desktop: the info column gently follows while the gallery scrolls */
@media (min-width: 782px) {
  .ag-product__summary {
    position: sticky;
    top: 130px; /* clears the sticky top bar + condensed header */
    align-self: flex-start;
  }
}
.ag-product__summary .wc-block-components-product-rating { color: #c9922e; }
.ag-product__price,
.ag-product__price .wc-block-components-product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
}
.ag-product__excerpt {
  color: var(--wp--preset--color--muted);
  font-size: 0.98rem;
  max-width: 58ch;
}

/* add-to-cart row: styled qty + growing sky button */
.ag-product__summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: stretch;
  margin: 1.2rem 0 0;
}
.ag-product__summary form.cart .qty {
  width: 92px;
  height: 100%;
  min-height: 52px;
  text-align: center;
  padding: 0.6rem;
  border: 1px solid rgba(21, 32, 58, 0.18);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}
.ag-product__summary form.cart .qty:focus {
  outline: none;
  border-color: var(--ag-accent-deep);
  box-shadow: 0 0 0 3px rgba(63, 115, 168, 0.16);
}
.ag-product__summary form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  min-height: 52px;
}

/* size guide link: quiet sky link between the description and the buy row */
.ag-product__sizeguide { margin: 0.9rem 0 0; }
.ag-product__sizeguide a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ag-accent-deep);
  text-decoration: none;
}
.ag-product__sizeguide a:hover { text-decoration: underline; }
.ag-product__sizeguide svg { width: 18px; height: 18px; }

/* assurance row: purchase-trust cues right under the buy button */
.ag-product__assure {
  margin-top: 1rem !important;
  gap: 0.35rem 1.4rem !important;
}
.ag-assure { gap: 0.45rem !important; align-items: center; }
.ag-assure__icon {
  display: inline-flex;
  color: var(--wp--preset--color--muted);
}
.ag-assure__icon svg { width: 17px; height: 17px; display: block; }
.ag-assure__label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--wp--preset--color--muted);
}

/* perks band: the brand's fabric story, echoed from the hero */
.ag-product__perks {
  margin-top: 1.5rem !important;
  padding: 1rem 0;
  border-top: 1px solid var(--ag-rule);
  border-bottom: 1px solid var(--ag-rule);
  gap: 1.4rem !important;
}
.ag-perk { gap: 0.5rem !important; align-items: center; }
.ag-perk__icon {
  display: inline-flex;
  color: var(--ag-accent-deep);
}
.ag-perk__icon svg { width: 20px; height: 20px; display: block; }
.ag-perk__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast);
}

/* meta: quiet sku / category line */
.ag-product__meta {
  margin-top: 1.1rem;
  font-size: 0.83rem;
  color: var(--wp--preset--color--muted);
}
.ag-product__meta a {
  color: var(--ag-accent-deep);
  text-decoration: none;
}
.ag-product__meta a:hover { text-decoration: underline; }

/* details (description / additional info / reviews) — a soft card on the cream page */
.ag-product__details .wp-block-woocommerce-product-details {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--ag-rule);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
/* brand the classic tabs */
.ag-product__details .wc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ag-rule);
}
.ag-product__details .wc-tabs li { margin: 0; }
.ag-product__details .wc-tabs li a {
  display: block;
  padding: 0.6rem 0.15rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ag-product__details .wc-tabs li a:hover { color: var(--ag-accent-deep); }
.ag-product__details .wc-tabs li.active a {
  color: var(--wp--preset--color--contrast);
  border-bottom-color: var(--ag-accent-deep);
}
.ag-product__details h2 { font-size: 1.2rem; }
.ag-product__details .woocommerce-Reviews-title { margin: 0.2rem 0 0.5rem; }
.ag-product__details .comment-reply-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.ag-product__details .comment-form { max-width: 640px; }
.ag-product__details .comment-form-rating label,
.ag-product__details .comment-form-comment label,
.ag-product__details .comment-form-author label,
.ag-product__details .comment-form-email label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
}
/* review form: reuse the brand form language */
.ag-product-page .comment-form input[type="text"],
.ag-product-page .comment-form input[type="email"],
.ag-product-page .comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(21, 32, 58, 0.18);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ag-product-page .comment-form input[type="text"]:focus,
.ag-product-page .comment-form input[type="email"]:focus,
.ag-product-page .comment-form textarea:focus {
  outline: none;
  border-color: var(--ag-accent-deep);
  box-shadow: 0 0 0 3px rgba(63, 115, 168, 0.16);
}
.ag-product-page p.stars a { color: #c9922e; }

/* related products: a surface band closes the page, header matches the homepage rows */
.ag-related { background: var(--wp--preset--color--surface); }
.ag-related .ag-section__head { margin-bottom: var(--wp--preset--spacing--50); }

/* ---------- Size Guide page ---------- */
.ag-sizeguide__heading {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}
.ag-sizeguide__list { margin: 0; padding-left: 1.2rem; }
.ag-sizeguide__list li { margin-bottom: 0.45rem; color: var(--wp--preset--color--foreground); }
.ag-sizeguide__table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--ag-rule);
  border-radius: 14px;
  overflow: hidden;
}
.ag-sizeguide__table th,
.ag-sizeguide__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--ag-rule);
}
.ag-sizeguide__table thead th {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--contrast);
}
.ag-sizeguide__table tbody tr:last-child td { border-bottom: 0; }
.ag-sizeguide__table tbody td:first-child { font-weight: 700; color: var(--wp--preset--color--contrast); }
.ag-sizeguide__note { color: var(--wp--preset--color--muted); font-size: 0.92rem; }
.ag-sizeguide__note a { color: var(--ag-accent-deep); }

/* sticky quick-buy bar — injected by theme.js when the buy button scrolls away */
.ag-buybar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40; /* above the sticky header (20), below the search overlay (60) */
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(239, 233, 227, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(21, 32, 58, 0.14);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ag-buybar.is-visible { transform: translateY(0); }
.ag-buybar__name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--wp--preset--color--contrast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-buybar__price {
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
  white-space: nowrap;
}
.ag-buybar__btn {
  flex: 0 0 auto;
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 12px;
  background: var(--ag-accent-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ag-buybar__btn:hover { background: var(--wp--preset--color--contrast); }
@media (prefers-reduced-motion: reduce) {
  .ag-buybar { transition: none; }
}

@media (max-width: 781px) {
  .ag-product__cols {
    padding-top: var(--wp--preset--spacing--30) !important;
    padding-bottom: var(--wp--preset--spacing--40) !important;
  }
  .ag-product__gallery { margin-bottom: 0.75rem; }
}
