/*!
 * LEESSHOW Theme — main stylesheet
 * Design language: Shopify "Impulse"-style luxury womenswear
 * Serif display headings + clean grotesque body, centred logo, square buttons
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --font-head: 'Cormorant Garamond', 'Noto Serif SC', Garamond, Baskerville, 'Times New Roman', serif;
  --font-body: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-script: 'Allura', 'Snell Roundhand', cursive;

  --ink: #141414;
  --ink-2: #4a4642;
  --ink-3: #8c8580;
  --line: #e3ded7;
  --line-soft: #efebe6;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --accent: #9c8266;
  --sale: #a8442f;

  --page: 1440px;
  --gutter: 30px;

  --radius: 0;
  --header-h: 92px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease); }
a:hover { opacity: .6; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: 46px; }
h2 { font-size: 38px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }

input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  width: 100%;
  border-radius: 0;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
input::placeholder { color: var(--ink-3); }

::selection { background: var(--ink); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.page-width { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.page-width--narrow { max-width: 900px; }
.section { padding: 70px 0; }
.section--tight { padding: 44px 0; }
.section--flush-top { padding-top: 0; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.text-upper { text-transform: uppercase; }

/* Visibility helpers (Impulse-style class names) */
@media (min-width: 901px) {
  .medium-up--hide { display: none !important; }
}
@media (max-width: 900px) {
  .small--hide { display: none !important; }
}
.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400;
}
.script { font-family: var(--font-script); font-size: 42px; line-height: 1; color: var(--accent); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 34px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  background: var(--ink); color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.btn:hover { background: #fff; color: var(--ink); opacity: 1; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 22px; font-size: 11px; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }

.link-underline {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px; display: inline-block;
}

/* ==========================================================================
   5. Announcement bar
   ========================================================================== */
.announcement {
  background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.announcement__inner {
  display: flex; align-items: center; justify-content: center; gap: 42px;
  min-height: 38px; padding: 8px var(--gutter); text-align: center; flex-wrap: wrap;
}
.announcement__item { display: inline-flex; align-items: center; gap: 10px; }
.announcement__sep { opacity: .35; }
.announcement--scroll { overflow: hidden; }
.announcement--scroll .announcement__inner { flex-wrap: nowrap; justify-content: flex-start; }
.announcement__track { display: flex; gap: 60px; white-space: nowrap; animation: announce-scroll 34s linear infinite; }
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 2px 18px rgba(20, 20, 20, .07); }
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; min-height: var(--header-h); padding: 0 var(--gutter);
  max-width: var(--page); margin: 0 auto;
}

.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav--right { justify-content: flex-end; }

/* Horizontal nav list (ul + bare li both supported) */
.header-nav__list {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.header-nav__list li { margin: 0; list-style: none; }
.header-nav__list .nav-link { white-space: nowrap; }

.header-nav a, .header-nav button {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.header-nav .nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.header-nav .nav-link:hover::after, .header-nav .nav-link.is-active::after { width: 100%; }
.header-nav .nav-link:hover { opacity: 1; }

.site-logo { text-align: center; display: block; }
.site-logo__text {
  font-family: var(--font-head); font-size: 27px; letter-spacing: .3em;
  text-transform: uppercase; line-height: 1; padding-left: .3em;
}
.site-logo__tag { font-size: 9px; letter-spacing: .28em; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; }
.site-logo img { max-height: 44px; width: auto; margin: 0 auto; }

.icon-btn { position: relative; padding: 6px; display: inline-flex; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: -2px; right: -4px;
  min-width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 10px; line-height: 17px; text-align: center; padding: 0 4px;
  font-family: var(--font-body); letter-spacing: 0;
}
.cart-count[data-count="0"] { display: none; }

/* Header dropdown (desktop) */
.has-dropdown { position: relative; }
.header-dropdown {
  position: absolute; top: 100%; left: -20px; min-width: 210px;
  background: #fff; border: 1px solid var(--line-soft);
  padding: 18px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .28s var(--ease); box-shadow: 0 14px 34px rgba(20, 20, 20, .09);
  z-index: 70;
}
.has-dropdown:hover .header-dropdown, .has-dropdown:focus-within .header-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.header-dropdown a {
  display: block; padding: 8px 24px; font-size: 12px; letter-spacing: .1em; text-transform: none;
}
.header-dropdown a:hover { background: var(--bg-soft); opacity: 1; }

/* ==========================================================================
   7. Drawers (mobile nav / search / cart)
   ========================================================================== */
.drawer {
  position: fixed; inset: 0; z-index: 500; pointer-events: none;
}
.drawer__overlay {
  position: absolute; inset: 0; background: rgba(20, 20, 20, .45);
  opacity: 0; transition: opacity .35s var(--ease);
}
.drawer__panel {
  position: absolute; top: 0; bottom: 0; width: min(430px, 90vw);
  background: #fff; display: flex; flex-direction: column;
  transition: transform .42s var(--ease);
}
.drawer--left .drawer__panel { left: 0; transform: translateX(-102%); }
.drawer--right .drawer__panel { right: 0; transform: translateX(102%); }
.drawer--top .drawer__panel {
  left: 0; right: 0; width: 100%; height: auto; bottom: auto; transform: translateY(-102%);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translate(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line-soft);
}
.drawer__title { font-family: var(--font-head); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.drawer__close { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.drawer__body { padding: 24px; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line-soft); }

.drawer-nav a {
  display: block; font-family: var(--font-head); font-size: 26px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); letter-spacing: .04em;
}
.drawer-nav .drawer-nav__sub a { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; color: var(--ink-2); }

.search-form-big { display: flex; gap: 14px; align-items: center; }
.search-form-big input { font-size: 20px; border-bottom-color: var(--ink); }

.mini-cart-list { display: grid; gap: 18px; }
.mini-cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: start; }
.mini-cart-item img { width: 78px; height: 100px; object-fit: cover; background: var(--bg-soft); }
.mini-cart-item__title { font-size: 14px; line-height: 1.35; }
.mini-cart-item__meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.mini-cart-item__remove { font-size: 11px; color: var(--ink-3); text-decoration: underline; }
.mini-cart-empty { color: var(--ink-3); font-size: 14px; }
.mini-cart-total { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; letter-spacing: .08em; }

/* ==========================================================================
   8. Hero slideshow
   ========================================================================== */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero__slide {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: calc(100vh - var(--header-h)); max-height: 860px;
}
.hero__media { position: relative; overflow: hidden; height: 100%; min-height: 520px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__content { padding: 60px 8%; }
.hero__eyebrow { margin-bottom: 20px; }
.hero__title { font-size: clamp(38px, 5.2vw, 74px); margin-bottom: 18px; }
.hero__title em { font-style: italic; display: block; }
.hero__text { max-width: 44ch; color: var(--ink-2); margin-bottom: 32px; font-size: 17px; }
.hero__slide { display: none; }
.hero__slide.is-active { display: grid; animation: hero-in .9s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

.hero__dots {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero__dot { width: 34px; height: 2px; background: rgba(20, 20, 20, .25); }
.hero__dot.is-active { background: var(--ink); }
.hero__scroll { position: absolute; right: 26px; bottom: 26px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; z-index: 5; }

/* Full-width banner variant */
.hero--full .hero__slide { grid-template-columns: 1fr; min-height: 76vh; }
.hero--full .hero__media { position: absolute; inset: 0; }
.hero--full .hero__media::after { content: ''; position: absolute; inset: 0; background: rgba(20, 20, 20, .28); }
.hero--full .hero__content { position: relative; z-index: 2; color: #fff; max-width: 640px; margin: 0 auto; text-align: center; padding: 120px 24px; }
.hero--full .hero__title, .hero--full .hero__eyebrow { color: #fff; }
.hero--full .hero__text { color: rgba(255, 255, 255, .88); margin-left: auto; margin-right: auto; }

/* ==========================================================================
   9. Section heading
   ========================================================================== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 34px;
}
.section-head__title { font-size: 30px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.section-head__title .script { font-size: 30px; letter-spacing: 0; text-transform: none; }
.section-head__link { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.section-head--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

/* ==========================================================================
   10. Product grid & card
   ========================================================================== */
.product-grid { display: grid; gap: 24px 22px; grid-template-columns: repeat(4, 1fr); }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-grid--5 { grid-template-columns: repeat(5, 1fr); }

.product-card { position: relative; }
.product-card__media {
  position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 3 / 4;
}
.product-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .55s var(--ease), transform 1.1s var(--ease);
}
.product-card__img--alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__img--base { opacity: 0; }
.product-card:hover .product-card__img--alt { opacity: 1; transform: scale(1.03); }
.product-card__img--sold { opacity: .92; }

.product-card__badges {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.badge {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; background: var(--ink); color: #fff;
}
.badge--sale { background: var(--sale); }
.badge--sold { background: var(--ink-3); }
.badge--new { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

.product-card__quick {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: rgba(255, 255, 255, .95); text-align: center;
  padding: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.product-card:hover .product-card__quick { transform: translateY(0); }

.product-card__info { padding: 14px 2px 0; }
.product-card__title {
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  letter-spacing: .06em; line-height: 1.4; margin: 0 0 6px; color: var(--ink);
}
.product-card__price { font-size: 14px; letter-spacing: .04em; color: var(--ink); }
.product-card__price del { color: var(--ink-3); margin-right: 8px; }
.product-card__price ins { text-decoration: none; color: var(--sale); }
.product-card__swatches { display: flex; gap: 6px; margin-top: 9px; }
.swatch-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(20, 20, 20, .2); }

/* ==========================================================================
   11. Collection promo tiles ("Explore")
   ========================================================================== */
.promo-tiles { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.promo-tile { position: relative; overflow: hidden; display: block; aspect-ratio: 3 / 4; background: var(--bg-soft); }
.promo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.promo-tile:hover img { transform: scale(1.05); }
.promo-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, .55) 0%, rgba(20, 20, 20, 0) 55%);
}
.promo-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px;
  color: #fff; text-align: center;
}
.promo-tile__label h3 { font-size: 26px; letter-spacing: .14em; text-transform: uppercase; margin: 0; color: #fff; }
.promo-tile__label span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

.explore-intro { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.explore-intro p { color: var(--ink-2); font-size: 17px; }

/* ==========================================================================
   12. Instagram strip
   ========================================================================== */
.ig-strip { overflow: hidden; }
.ig-strip__track { display: flex; gap: 16px; animation: ig-scroll 42s linear infinite; }
.ig-strip:hover .ig-strip__track { animation-play-state: paused; }
@keyframes ig-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ig-item { flex: 0 0 232px; }
.ig-item__media { aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.ig-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ig-item:hover .ig-item__media img { transform: scale(1.06); }
.ig-item__caption { font-size: 13px; margin-top: 8px; }
.ig-item__price { font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   13. Promo banners
   ========================================================================== */
.banner-row { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.banner {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 340px; padding: 34px; background: var(--bg-soft);
}
.banner img.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: rgba(20, 20, 20, .3); }
.banner__content { position: relative; z-index: 2; color: #fff; }
.banner__kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.banner__title {
  font-family: var(--font-head); font-size: 46px; line-height: 1; margin: 10px 0 18px; color: #fff;
}
.banner__title small { display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-top: 10px; }

/* ==========================================================================
   14. Story / about block
   ========================================================================== */
.story { background: var(--bg-soft); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story__media { aspect-ratio: 4 / 5; overflow: hidden; background: #eae6e0; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body { max-width: 52ch; }
.story__body h2 { font-size: 42px; }
.story__body p { color: var(--ink-2); font-size: 17px; }
.story__sign { margin-top: 26px; }

/* ==========================================================================
   15. Newsletter
   ========================================================================== */
.newsletter { background: var(--ink); color: #fff; }
.newsletter__inner { max-width: 640px; margin: 0 auto; text-align: center; padding: 70px 24px; }
.newsletter h2 { color: #fff; font-size: 36px; }
.newsletter p { color: rgba(255, 255, 255, .7); }
.newsletter__form { display: flex; gap: 12px; margin-top: 26px; }
.newsletter__form input { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.newsletter__form input:focus { border-color: #fff; }
.newsletter__note { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: 16px; }

/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-col h4 { font-size: 12px; font-family: var(--font-body); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; font-weight: 400; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-brand__logo { font-family: var(--font-head); font-size: 26px; letter-spacing: .28em; text-transform: uppercase; }
.footer-brand__text { color: var(--ink-2); font-size: 14px; margin: 16px 0 22px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); margin-top: 48px; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
}
.footer-copy { letter-spacing: .04em; }
/* Company entity block inside the Customer Care column */
.footer-col .footer-company {
  margin-top: 14px; font-size: 11px; line-height: 1.7;
  letter-spacing: .05em; color: var(--ink-2); text-transform: none;
}
.footer-col .footer-address {
  margin-top: 2px; font-size: 11px; line-height: 1.72;
  letter-spacing: .03em; color: var(--ink-3);
  max-width: 290px; text-transform: none;
}
.footer-col .footer-email { margin-top: 4px; }
.pay-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-icons span {
  border: 1px solid var(--line); padding: 5px 10px; font-size: 10px;
  letter-spacing: .08em; color: var(--ink-2); border-radius: 2px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.pay-icons span:hover { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   17. Breadcrumb / page hero
   ========================================================================== */
.breadcrumb { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 22px 0; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.page-hero { text-align: center; padding: 40px 0 46px; }
.page-hero h1 { font-size: 42px; letter-spacing: .16em; text-transform: uppercase; }
.page-hero p { max-width: 60ch; margin: 14px auto 0; color: var(--ink-2); }

/* ==========================================================================
   18. Shop toolbar & filters
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.shop-toolbar__count { font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.shop-toolbar select { width: auto; border: 1px solid var(--line); padding: 8px 30px 8px 14px; font-size: 12px; letter-spacing: .08em; }

.filter-group { margin-bottom: 30px; }
.filter-group h5 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-body); font-weight: 400; margin-bottom: 14px; }
.filter-group li { margin-bottom: 9px; }
.filter-group a { font-size: 14px; color: var(--ink-2); }
.filter-group a.is-active { color: var(--ink); text-decoration: underline; }
.filter-toggle { display: none; }

/* ==========================================================================
   19. Single product
   ========================================================================== */
.product-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.product-gallery__stack { display: grid; gap: 14px; }
.product-gallery__stack img { width: 100%; background: var(--bg-soft); }
.product-gallery--thumbs { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.product-gallery__thumbs { display: grid; gap: 12px; }
.product-gallery__thumb { padding: 0; border: 1px solid transparent; background: none; }
.product-gallery__thumb.is-active { border-color: var(--ink); }
.product-gallery__thumb img { aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-soft); }
.product-gallery__stage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-soft); }

.product-info__title { font-size: 38px; margin-bottom: 10px; }
.product-info__price { font-size: 20px; letter-spacing: .04em; margin-bottom: 6px; }
.product-info__price del { color: var(--ink-3); margin-right: 10px; font-size: 17px; }
.product-info__price ins { text-decoration: none; color: var(--sale); }
.product-info__tax { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 22px; }
.product-info__desc { color: var(--ink-2); font-size: 16px; margin-bottom: 26px; }

.variants { margin-bottom: 24px; }
.variant__label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.variant__label a { font-size: 11px; color: var(--ink-3); text-decoration: underline; }
.variant__options {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px;
}
.variant__option {
  appearance: none; -webkit-appearance: none;
  padding: 11px 12px; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .04em; text-align: center; line-height: 1.2;
  background: #fff; color: var(--ink); border-radius: 0; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.variant__option:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.variant__option:focus, .variant__option:focus-visible { outline: none; }
.variant__option.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.variant__option.is-disabled { opacity: .35; text-decoration: line-through; pointer-events: none; }

.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 42px; height: 48px; font-size: 16px; color: var(--ink-2); }
.qty input { width: 54px; text-align: center; border: 0; height: 48px; font-size: 15px; }
.product-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.product-actions .btn { flex: 1; }
.product-actions .btn--outline { flex: 0 0 auto; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 17px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-align: left;
}
.accordion__head .plus { font-size: 18px; line-height: 1; transition: transform .3s var(--ease); }
.accordion__item.is-open .accordion__head .plus { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.accordion__item.is-open .accordion__panel { display: block; }
.spec-list { display: grid; grid-template-columns: 150px 1fr; gap: 8px 20px; font-size: 15px; }
.spec-list dt { color: var(--ink-3); }
.spec-list dd { margin: 0; color: var(--ink-2); }

/* ==========================================================================
   20. Quick view modal
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20, 20, 20, .55); }
.modal__panel {
  position: relative; z-index: 2; background: #fff; width: min(940px, 100%);
  max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(16px); transition: transform .35s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: #fff; padding: 6px 10px;
}
.modal__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-soft); }
.modal__body { padding: 34px 32px; }
.modal__body h3 { font-size: 30px; margin-bottom: 8px; }

/* ==========================================================================
   21. Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 700;
  background: var(--ink); color: #fff; padding: 14px 26px; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; opacity: 0; pointer-events: none;
  transition: all .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   22. Content page (about / contact / policy)
   ========================================================================== */
.content-page { max-width: 780px; margin: 0 auto; padding: 50px 0 80px; }
.content-page h2 { margin-top: 44px; }
.content-page ul { list-style: disc; padding-left: 20px; color: var(--ink-2); }
.content-page li { margin-bottom: 8px; }

/* ==========================================================================
   22b. WooCommerce form适配（数量、变体、加入购物车）
   ========================================================================== */
form.cart, .woocommerce-variation-add-to-cart { margin-bottom: 22px; }

.quantity, .woocommerce .quantity { display: inline-flex; border: 1px solid var(--line); }
.quantity input.qty {
  width: 56px; height: 48px; text-align: center; border: 0; font-size: 15px;
  -moz-appearance: textfield; padding: 0;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

button.single_add_to_cart_button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 34px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  transition: background .3s var(--ease), color .3s var(--ease);
}
button.single_add_to_cart_button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: #fff; color: var(--ink); opacity: 1;
}
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--ink); color: #fff; }

table.variations { width: 100%; border: 0; margin-bottom: 16px; }
table.variations th, table.variations td { border: 0; padding: 0 0 10px; text-align: left; vertical-align: middle; }
table.variations th.label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; width: 90px; color: var(--ink);
}
table.variations select {
  border: 1px solid var(--line); padding: 11px 14px; font-size: 14px; max-width: 260px;
}
table.variations .reset_variations { font-size: 12px; color: var(--ink-3); }
.woocommerce-variation-price, .woocommerce-variation-description { margin-bottom: 14px; }
.single_variation_wrap .woocommerce-variation { margin-bottom: 14px; }
.woocommerce-variation-availability { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: 2px solid var(--ink); background: var(--bg-soft);
  padding: 14px 20px; margin: 0 0 26px; font-size: 14px; list-style: none;
}
.woocommerce-error { border-color: var(--sale); }

/* ---- Pagination ---- */
.woocommerce-pagination { margin: 46px 0 10px; }
.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  list-style: none; padding: 0; margin: 0; border: 0; flex-wrap: wrap;
}
.woocommerce-pagination ul li {
  border: 0 !important; margin: 0 !important; padding: 0 !important; list-style: none;
}
.woocommerce-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; letter-spacing: .1em; line-height: 1; border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.woocommerce-pagination a.page-numbers:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.woocommerce-pagination .page-numbers.current {
  background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 400;
}
.woocommerce-pagination .page-numbers.dots {
  border-color: transparent; background: transparent; min-width: 24px; padding: 0 2px; color: var(--ink-3);
}
.woocommerce-pagination .page-numbers.dots:hover { background: transparent; color: var(--ink-3); }
.woocommerce-pagination .prev.page-numbers,
.woocommerce-pagination .next.page-numbers { font-size: 16px; letter-spacing: 0; }

/* WooCommerce 排序下拉美化 */
.woocommerce-ordering select {
  border: 1px solid var(--line); padding: 9px 34px 9px 14px; font-size: 12px;
  letter-spacing: .06em; background: #fff; color: var(--ink);
  appearance: none; -webkit-appearance: none; background-image: none;
}

.woocommerce-product-gallery { position: relative; }

/* 相关商品标题统一 */
.related.products > h2, .upsells.products > h2 {
  font-size: 26px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px;
}

/* 结账/购物车页面基础容器 */
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content { padding: 40px 0 70px; }
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-bottom: 1px solid var(--line); padding: 14px 10px; }
.woocommerce table.shop_table th { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.woocommerce .quantity { margin-right: 10px; }

/* ==========================================================================
   23. Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid--5 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { gap: 30px; }
  .header-nav__list { gap: 16px; }
  .header-nav__list .nav-link, .header-nav a, .header-nav button { font-size: 10px; letter-spacing: .1em; }
  .header-nav { gap: 16px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 20px; --header-h: 76px; }
  h1 { font-size: 36px; } h2 { font-size: 30px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 250; width: min(340px, 88vw);
    background: #fff; padding: 26px; overflow-y: auto; transform: translateX(-102%);
    transition: transform .4s var(--ease);
  }
  .filter-sidebar.is-open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .story__grid { gap: 34px; }
  .product-main { gap: 34px; }
}

@media (max-width: 900px) {
  .header-nav .nav-link { display: none; }
  .product-grid, .product-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .banner-row { grid-template-columns: 1fr; }
  .promo-tiles { grid-template-columns: 1fr 1fr; }
  .hero__slide { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { min-height: 380px; order: -1; }
  .hero__content { padding: 40px 24px 56px; }
  .product-main { grid-template-columns: 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .story__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .announcement__item:nth-child(n+3) { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .product-grid, .product-grid--5 { gap: 18px 14px; }
  .newsletter__form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .promo-tiles { grid-template-columns: 1fr; }
  .site-logo__text { font-size: 20px; letter-spacing: .2em; }
  .spec-list { grid-template-columns: 1fr; gap: 2px 0; }
  .spec-list dd { margin-bottom: 10px; }
  .product-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Empty cart / empty state
   ========================================================================== */
.wc-empty-cart-message { text-align: center; padding: 76px 20px 0; }
.cart-empty.woocommerce-info {
  background: none; border: 0; margin: 0; padding: 0;
  color: var(--ink); font-size: 17px; line-height: 1.7;
  letter-spacing: .01em; text-align: center;
}
.cart-empty.woocommerce-info::before { display: none; }
p.return-to-shop { text-align: center; margin: 30px 0 96px; }
p.return-to-shop a.button,
p.return-to-shop a.wc-backward {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; padding: 16px 34px; background: var(--ink); color: #fff;
  border: 1px solid var(--ink); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease);
}
p.return-to-shop a.button:hover,
p.return-to-shop a.wc-backward:hover { background: #fff; color: var(--ink); }

/* WooCommerce info/notice blocks (cart, checkout, account) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--bg-soft); border: 0; border-left: 3px solid var(--ink);
  color: var(--ink); padding: 18px 22px; font-size: 13px; letter-spacing: .02em;
  list-style: none; margin: 0 0 26px;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }
.woocommerce-message .button,
.woocommerce-info .button { background: var(--ink); color: #fff; border: 0; padding: 10px 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.woocommerce-message .button:hover,
.woocommerce-info .button:hover { background: var(--ink-2); color: #fff; }

/* ==========================================================================
   Cart page polish
   ========================================================================== */

/* WooCommerce notice icons (green tick / info marks) — use our own look */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { content: none !important; display: none !important; }
.woocommerce-message,
.woocommerce-info {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.woocommerce-message .button,
.woocommerce-info .button { flex: 0 0 auto; }

/* Cart table */
.woocommerce-cart table.shop_table,
.woocommerce-cart .cart_totals table.shop_table {
  border: 1px solid var(--line); border-collapse: collapse; margin: 0 0 34px;
}
.woocommerce-cart table.shop_table th {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 400; padding: 20px 16px;
  border-bottom: 1px solid var(--line); background: none;
}
.woocommerce-cart table.shop_table td {
  padding: 22px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle;
}
.woocommerce-cart table.shop_table tr:last-child td { border-bottom: 0; }
.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 88px; height: auto; display: block; border-radius: 0;
}
.woocommerce-cart table.shop_table .product-name a {
  font-family: var(--font-head); font-size: 20px; letter-spacing: .02em; color: var(--ink);
}
.woocommerce-cart table.shop_table .product-name a:hover { color: var(--accent); }
.woocommerce-cart .product-remove a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; color: var(--sale); font-size: 20px; line-height: 1;
  text-decoration: none; border: 0; background: none;
}
.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal { font-size: 14px; color: var(--ink); }
.woocommerce-cart .product-subtotal { font-weight: 500; }

/* Quantity field */
.woocommerce-cart .quantity input.qty,
.woocommerce .quantity input.qty {
  width: 78px; height: 48px; border: 1px solid var(--line); border-radius: 0;
  text-align: center; font-size: 14px; background: #fff; color: var(--ink);
  -moz-appearance: textfield;
}
.woocommerce .quantity input.qty:focus { outline: none; border-color: var(--ink); }

/* Coupon + Update cart */
.woocommerce-cart .actions { padding-top: 26px !important; }
.woocommerce-cart .actions .coupon { display: flex; gap: 10px; flex-wrap: wrap; float: none; }
.woocommerce-cart .actions .coupon input[type="text"] {
  height: 48px; border: 1px solid var(--line); padding: 0 16px; font-size: 13px; border-radius: 0;
}
.woocommerce-cart .actions .coupon input[type="text"]:focus { outline: none; border-color: var(--ink); }
.woocommerce-cart .actions button,
.woocommerce-cart .actions .button,
.woocommerce-cart button[name="update_cart"] {
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0;
  padding: 15px 30px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.woocommerce-cart .actions button:hover,
.woocommerce-cart .actions .button:hover { background: #fff; color: var(--ink); }
.woocommerce-cart .actions button:disabled,
.woocommerce-cart .actions button[disabled],
.woocommerce-cart button[name="update_cart"]:disabled {
  background: #f4f2ef; color: #8b857d; border-color: var(--line);
  cursor: not-allowed; opacity: 1;
}

/* Totals card */
.cart_totals { width: 100% !important; float: none !important; }
.cart_totals h2,
.cart-collaterals h2 {
  font-family: var(--font-head); font-size: 34px; font-weight: 400;
  letter-spacing: .06em; margin: 0 0 20px; text-transform: none;
}
.cart_totals table.shop_table th {
  width: 44%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 400; padding: 20px 18px; border-bottom: 1px solid var(--line-soft);
  background: none;
}
.cart_totals table.shop_table td { padding: 20px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.cart_totals .order-total th,
.cart_totals .order-total td { font-size: 16px; font-weight: 500; border-bottom: 0; }
.cart_totals ul#shipping_method { list-style: none; margin: 0 0 8px; padding: 0; }
.cart_totals ul#shipping_method li { margin: 0 0 6px; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; margin-top: 6px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block; width: 100%; background: var(--ink); color: #fff; border: 1px solid var(--ink);
  border-radius: 0; padding: 22px 30px; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; text-align: center; transition: background .25s var(--ease);
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--ink-2); color: #fff; }

/* Cart layout: table + totals stacked, totals aligned right */
.woocommerce-cart-form { margin-bottom: 10px; }
.woocommerce .cart-collaterals { display: flex; justify-content: flex-end; }
.woocommerce .cart-collaterals .cart_totals { max-width: 520px; }

@media (max-width: 800px) {
  .woocommerce-cart table.shop_table .product-thumbnail img { width: 64px; }
  .woocommerce .cart-collaterals .cart_totals { max-width: 100%; }
}
