/* ==========================================================================
   R&R Core storefront
   Layout follows a classic boutique store (reference: astoria-activewear.com):
   grey announcement bar, white header with uppercase nav, full-width hero with
   an overlay box, lined section titles, 4-up product grids, filter sidebar,
   3-column product page, newsletter band, white footer.
   Brand palette (6 colors) and fonts (Young Serif + Instrument Sans) stay.
   Shape rule: 2px radius on buttons and fields, square photos, round swatches.
   ========================================================================== */

@font-face {
  font-family: "Young Serif";
  src: url(fonts/young-serif.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(fonts/instrument-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --rose: #AA5D57;
  --navy: #1E2440;
  --grey: #E7E5E8;
  --white: #FCFCFB;
  --choc: #4A2C27;
  --lime: #E4E8A4;

  --tint: #F3F2F4;     /* studio grey, lighter: product panel, filter boxes */
  --ink: var(--navy);
  --ink-soft: #4d5268;
  --line: #d4d2d8;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: var(--white); padding: 8px 12px; }
.muted { color: var(--ink-soft); font-size: .9375rem; }
.placeholder { color: var(--choc); background: var(--lime); padding: .1em .4em; font-size: .8125rem; }

/* Uppercase small label style (nav, filter titles, footer headings, badges). */
.main-nav a, .filter summary, .site-footer h2, .badge, .menu-btn span {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.75em;
  border: 1px solid var(--bg); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
  font: 500 .9375rem/1 var(--sans); letter-spacing: .04em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-dark:hover { --bg: #2d3560; }
.btn-white { --bg: var(--white); --fg: var(--navy); }
.btn-white:hover { --bg: var(--grey); }
.btn:active { transform: translateY(1px); }

.text-link {
  color: var(--navy); font-weight: 600; font-size: .9375rem;
  text-decoration: underline; text-decoration-color: var(--rose);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.entry-content a { text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.badge {
  position: absolute; z-index: 1; top: 10px; right: 10px;
  padding: 4px 8px; border-radius: var(--r);
  background: var(--navy); color: var(--white);
  font-size: .6875rem;
}

.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(30, 36, 64, .25); flex: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}

/* ---------- Announcement bar ---------- */
.topbar { background: var(--grey); font-size: .8125rem; }
.topbar-row {
  display: grid; grid-template-columns: 1fr; align-items: center;
  min-height: 40px; padding-inline: 8px;
}
.topbar-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 0; background: none; text-decoration: none; cursor: pointer; white-space: nowrap; }
.topbar-link .icon { width: 1.1em; height: 1.1em; }
.topbar-search, .topbar-right { display: none; }
.announce { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; justify-items: center; }
.announce-track { margin: 0; text-align: center; }
.announce-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.announce-arrow .icon { width: 1em; height: 1em; }
.topbar .cart-count { font-weight: 600; }
@media (min-width: 1024px) {
  .topbar-row { grid-template-columns: 1fr minmax(0, 520px) 1fr; padding-inline: 12px; }
  .topbar-search { display: inline-flex; justify-self: start; }
  .topbar-right { display: flex; justify-self: end; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1440px; margin: 0 auto; padding: 8px var(--gutter);
}
.menu-btn { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 0; border: 0; background: none; cursor: pointer; font-size: .875rem; }
.menu-btn .icon { width: 1.5em; height: 1.5em; }
.logo img { width: auto; height: 46px; }
.main-nav { display: none; }
.header-cart { justify-self: end; position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; }
.header-cart .icon { width: 1.5em; height: 1.5em; }
.header-cart .cart-count {
  position: absolute; top: 4px; right: 0;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--rose); color: var(--white);
  font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
@media (min-width: 1024px) {
  .header-row { grid-template-columns: auto 1fr; gap: 40px; padding-block: 14px; }
  .menu-btn, .header-cart { display: none; }
  .logo img { height: 58px; }
  .main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
  .main-nav a { padding: 6px 0; font-size: .75rem; text-decoration: none; border-bottom: 2px solid transparent; }
  .main-nav a:hover { border-bottom-color: var(--rose); }
}

/* ---------- Sheets (menu, search, size guide) ---------- */
dialog.sheet {
  width: 100%; max-width: 100%; max-height: 100dvh;
  margin: auto 0 0; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border: 0; background: var(--white); color: var(--ink);
}
@media (min-width: 640px) { dialog.sheet { width: 480px; margin: auto; } }
dialog.sheet-left { width: min(86vw, 360px); height: 100dvh; margin: 0 auto 0 0; }
dialog.sheet-top { margin: 0 auto auto; }
@media (min-width: 640px) { dialog.sheet-top { width: 640px; margin: 80px auto auto; } }
dialog::backdrop { background: rgba(30, 36, 64, .45); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-head h2 { margin: 0; font-size: 1.5rem; }
.menu-list { display: grid; margin: 8px 0 24px; }
.menu-list a, .menu-list button {
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  text-align: left; text-decoration: none; cursor: pointer;
}
.menu-list-small a, .menu-list-small button { font-weight: 500; color: var(--ink-soft); }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  font: 400 1rem var(--sans); color: var(--navy);
}
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-up .25s var(--ease); }
  dialog.sheet-left[open] { animation: sheet-in .25s var(--ease); }
}
@keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } }
@keyframes sheet-in { from { transform: translateX(-16px); opacity: 0; } }

.size-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: .9375rem; }
.size-table th, .size-table td { padding: 10px 8px; text-align: left; }
.size-table thead th { font-weight: 600; border-bottom: 2px solid var(--navy); }
.size-table tbody tr:nth-child(odd) { background: var(--tint); }

/* ---------- Section title with rules on both sides ---------- */
.lined {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin: 0 auto 28px; max-width: 760px;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem); text-align: center;
}
.lined::before, .lined::after { content: ""; height: 1px; background: var(--navy); opacity: .6; }

/* ---------- Home: hero ---------- */
.hero { position: relative; }
.hero-strip { display: grid; grid-template-columns: 1fr; }
.hero-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-strip img:not(:first-child) { display: none; }
.hero-box {
  position: relative; margin: -72px var(--gutter) 0; padding: 24px;
  background: rgba(30, 36, 64, .9); color: var(--white); text-align: center;
}
.hero-box h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-bottom: .3em; }
.hero-box p { opacity: .9; margin-bottom: 20px; }
@media (min-width: 768px) {
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-strip img { aspect-ratio: 3 / 4; }
  .hero-strip img:not(:first-child) { display: block; }
  .hero-box {
    position: absolute; left: var(--gutter); bottom: 32px; margin: 0;
    width: min(460px, 44vw); text-align: left;
  }
}
@media (min-width: 1200px) { .hero-strip img { aspect-ratio: 4 / 5; max-height: 720px; } .hero-box { left: 40px; bottom: 40px; padding: 32px; } }

/* ---------- Home: product sections ---------- */
.home-products { padding-top: 56px; }
.home-products + .home-products { padding-top: 48px; }

ul.products {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px; margin: 0; padding: 0; list-style: none;
}
@media (min-width: 900px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; } }
ul.products::before, ul.products::after { display: none; }

.card { display: grid; gap: 6px; align-content: start; font-size: .875rem; }
.card-media { position: relative; display: block; overflow: hidden; background: var(--grey); margin-bottom: 6px; }
.card-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card-alt { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .35s var(--ease); }
@media (hover: hover) { .card:hover .card-alt { opacity: 1; } }
.card-name { text-decoration: none; line-height: 1.35; color: var(--ink-soft); }
.card-name:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
.card-price { font-weight: 600; font-size: .8125rem; }
.price-cur { font-size: inherit; font-weight: inherit; }

/* ---------- Home: shop by activity (full-bleed 4-up) ---------- */
.activity { padding-top: 64px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .activity-grid { grid-template-columns: repeat(4, 1fr); } }
.activity-grid a { position: relative; display: block; overflow: hidden; background: var(--grey); text-decoration: none; }
.activity-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .activity-grid a:hover img { transform: scale(1.04); } }
.activity-label {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: var(--r);
  background: var(--white); color: var(--navy);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; white-space: nowrap;
}

/* ---------- Home: about ---------- */
.about { padding-top: 64px; padding-bottom: 64px; }
.about-copy { max-width: 62ch; margin: 0 auto; text-align: center; font-size: 1.0625rem; color: var(--ink-soft); }
.about-copy .btn { margin-top: 8px; }

/* ---------- Newsletter band ---------- */
.newsletter { background: var(--grey); padding: 40px 0; text-align: center; }
.newsletter h2 { font-size: 1.375rem; margin-bottom: .4em; }
.newsletter p { color: var(--ink-soft); font-size: .9375rem; }
.news-form { display: flex; max-width: 460px; margin: 20px auto 0; }
.news-form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px;
  border: 1px solid #b9b7be; border-right: 0; border-radius: var(--r) 0 0 var(--r);
  background: var(--white); font: 400 1rem var(--sans); color: var(--navy);
}
.news-form .btn { border-radius: 0 var(--r) var(--r) 0; }
.news-status { margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 32px; font-size: .875rem; }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; }
.footer-social .icon { width: 1.5em; height: 1.5em; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.site-footer h2 { font-family: var(--sans); font-size: .8125rem; margin-bottom: 12px; }
.site-footer nav { display: grid; align-content: start; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--rose); }
.site-footer p { color: var(--ink-soft); display: flex; gap: 6px; align-items: flex-start; }
.footer-legal { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; justify-content: center; }

/* ---------- Shop / category / search ---------- */
.shop-layout { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 72px; }
.shop-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.shop-filters { display: grid; gap: 8px; align-content: start; }
.filter { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.filter summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font-size: .75rem; cursor: pointer; list-style: none;
}
.filter summary::-webkit-details-marker { display: none; }
.filter summary .icon { width: 20px; height: 20px; padding: 3px; border-radius: var(--r); background: var(--navy); color: var(--white); transition: transform .2s var(--ease); }
.filter[open] summary .icon { transform: rotate(180deg); }
.filter-body { padding: 4px 12px 14px; }
.filter-links { display: grid; gap: 2px; }
.filter-links a { padding: 5px 0; text-decoration: none; color: var(--ink-soft); font-size: .9375rem; }
.filter-links a[aria-current] { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; }
.filter-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  display: grid; place-items: center; min-width: 44px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-size: .875rem; font-weight: 600;
}
.size-chip:hover { border-color: var(--navy); }
.size-chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-colors { display: grid; gap: 2px; }
.filter-colors a { display: flex; align-items: center; gap: 10px; padding: 5px 0; text-decoration: none; color: var(--ink-soft); font-size: .9375rem; }
.filter-colors a.is-active { color: var(--navy); font-weight: 600; }
.filter-colors a.is-active .dot { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--navy); }
.shop-results { min-width: 0; }
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 220px 1fr; column-gap: 40px; row-gap: 24px; padding-top: 40px; }
  .shop-title { grid-column: 1 / -1; }
  .shop-filters { position: sticky; top: 110px; }
  .shop-results ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .shop-results ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.empty-state { padding: 48px 24px; background: var(--tint); text-align: center; }
.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; padding: 0; margin: 40px 0 0; list-style: none; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.woocommerce-pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Product page: photos | panel | complete the look ---------- */
.single-product div.product {
  display: grid; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 64px;
}
.single-product .woocommerce-notices-wrapper { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 0; }
.pdp-gallery { min-width: 0; margin-inline: calc(-1 * var(--gutter)); }
.gallery-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 6px;
  margin: 0; padding: 0 var(--gutter); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail li { scroll-snap-align: start; background: var(--grey); }
.gallery-rail li[hidden] { display: none; }
.gallery-rail img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.summary {
  min-width: 0; align-self: start;
  padding: 24px; background: var(--tint); border: 1px solid var(--line);
}
.summary .product_title { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: .3em; }
.summary .price { font-size: 1.0625rem; font-weight: 600; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp-note { color: var(--ink-soft); font-size: .9375rem; margin-top: -8px; }
.woocommerce-breadcrumb { font-size: .8125rem; color: var(--ink-soft); margin-bottom: 10px; }
.woocommerce-breadcrumb a { text-decoration: none; }

.variations_form table.variations, .variations_form tbody, .variations_form tr, .variations_form th, .variations_form td { display: block; }
.variations_form table.variations { margin: 0; border: 0; }
.variations_form tr { margin-bottom: 18px; }
.variations_form th.label { margin-bottom: 8px; text-align: left; font-size: .875rem; }
.variations_form th.label label { font-weight: 600; }
.variations_form th.label label[data-value]:not([data-value=""])::after { content: ": " attr(data-value); font-weight: 400; color: var(--ink-soft); }
.rr-select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rr-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-pa_color .opt {
  position: relative; width: 36px; height: 36px; border: 0; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(30, 36, 64, .28); cursor: pointer;
}
.rr-pa_color .opt[aria-checked="true"] { box-shadow: 0 0 0 3px var(--tint), 0 0 0 4.5px var(--navy); }
.rr-pa_color .opt.is-off::after {
  content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px;
  border-left: 2px solid var(--white); box-shadow: 0 0 0 1px rgba(30, 36, 64, .35); transform: rotate(45deg);
}
.rr-pa_size .opt {
  min-width: 48px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  font-weight: 600; cursor: pointer;
}
.rr-pa_size .opt:hover { border-color: var(--navy); }
.rr-pa_size .opt[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.rr-pa_size .opt.is-off { opacity: .45; background-image: linear-gradient(to top right, transparent 47%, var(--line) 48%, var(--line) 52%, transparent 53%); }
.reset_variations { display: inline-block; margin-top: 8px; font-size: .8125rem; color: var(--ink-soft); }

.size-guide-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0;
  border: 0; background: none; color: var(--navy); font-weight: 600; font-size: .875rem;
  text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer;
}
.single_variation_wrap .woocommerce-variation-price { display: none; }
.woocommerce-variation-availability .stock { margin: 0 0 10px; font-weight: 600; font-size: .875rem; }
.stock.out-of-stock { color: var(--rose); }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; gap: 8px; }
.quantity .qty {
  width: 64px; height: 48px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); text-align: center; font: 600 1rem var(--sans); color: var(--navy);
}
.woocommerce form .single_add_to_cart_button.button, .single_add_to_cart_button {
  flex: 1; min-height: 48px; border: 0; border-radius: var(--r);
  background: var(--rose); color: var(--white);
  font: 600 .9375rem var(--sans); letter-spacing: .04em; cursor: pointer;
}
.woocommerce form .single_add_to_cart_button.button:hover { background: #974f4a; }
.woocommerce form .single_add_to_cart_button.button.disabled { background: #c9a5a2; cursor: not-allowed; }

.pdp-details { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.pdp-details details + details { border-top: 1px solid var(--line); }
.pdp-details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-weight: 600; font-size: .875rem; cursor: pointer; list-style: none;
}
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details summary .icon { width: 1em; transition: transform .2s var(--ease); }
.pdp-details details[open] summary .icon { transform: rotate(180deg); }
.pdp-details details > div { padding: 0 16px 6px; font-size: .9375rem; color: var(--ink-soft); }

.upsells > h2 { font-family: var(--sans); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 14px; }
.upsells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

@media (min-width: 900px) {
  .single-product div.product { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 40px; }
  .pdp-gallery { margin: 0; }
  .gallery-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 12px; padding: 0; overflow: visible; }
  .upsells { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .single-product div.product { grid-template-columns: 5fr 4fr 170px; gap: 40px; }
  .summary { position: sticky; top: 110px; }
  .upsells { grid-column: 3; padding-left: 24px; border-left: 1px solid var(--line); align-self: start; }
  .upsells ul.products { grid-template-columns: 1fr; gap: 18px; }
  .upsells .card-name { font-size: .8125rem; }
}

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; margin: 0 0 20px; padding: 14px 18px;
  background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
}
.woocommerce-error { border-left-color: var(--rose); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* ---------- Generic pages, cart & checkout blocks, account ---------- */
.page-wrap { padding-top: 36px; padding-bottom: 72px; }
.page-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.entry-content > * { max-width: 72ch; }
.woocommerce-cart .entry-content > *, .woocommerce-checkout .entry-content > *, .woocommerce-account .entry-content > * { max-width: none; }

.wc-block-cart, .wc-block-checkout { font-family: var(--sans); color: var(--navy); }
.wc-block-components-title, .wp-block-woocommerce-cart h2, .wc-block-checkout h2 { font-family: var(--serif) !important; font-weight: 400 !important; text-transform: none !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-button:not(.is-link) {
  border-radius: var(--r) !important; background: var(--rose) !important; color: var(--white) !important;
  min-height: 50px; font-weight: 600 !important; letter-spacing: .04em;
}
.wp-block-woocommerce-cart-totals-block, .wp-block-woocommerce-checkout-order-summary-block {
  background: var(--tint); border: 1px solid var(--line); padding: 20px !important;
}
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select select, .wc-block-components-textarea {
  border-radius: var(--r) !important; border-color: var(--line) !important; background: var(--white) !important;
}
.wc-block-components-text-input input:focus { box-shadow: 0 0 0 2px var(--navy) !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { background: var(--grey); }
.wc-block-components-product-badge { background: var(--lime) !important; color: var(--navy) !important; border: 0 !important; }

.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 16px; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9375rem; }
.woocommerce form .input-text, .woocommerce form select {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); font: 400 1rem var(--sans); color: var(--navy);
}
.woocommerce form .input-text:focus { outline: 2px solid var(--navy); outline-offset: 0; }
.woocommerce .button:not(.wc-block-components-button) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.6em; border: 0; border-radius: var(--r);
  background: var(--navy); color: var(--white); font: 600 .9375rem var(--sans); text-decoration: none; cursor: pointer;
}
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 1em; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--navy); border-color: var(--navy); color: var(--white); }

.woocommerce-order-overview { padding: 16px 20px; background: var(--tint); list-style: none; display: grid; gap: 6px; }
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-table--order-details td:last-child, .woocommerce-table--order-details th:last-child { text-align: right; }
.woocommerce-customer-details address { font-style: normal; padding: 16px 20px; background: var(--tint); }
