/*
Theme Name: StyleeAvenue
Theme URI: https://styleeavenue.online
Author: StyleeAvenue
Author URI: https://styleeavenue.online
Description: Contemporary WordPress boutique theme for StyleeAvenue — women's clothing, lookbook, and Bennettsville house e-commerce.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wearrcloset
Tags: e-commerce, custom-menu, featured-images, translation-ready, fashion
*/

:root {
  --canvas: #f4f1eb;
  --white: #fffcf7;
  --mist: #e7ece8;
  --ink: #121614;
  --ink-soft: #24302c;
  --muted: #5c6863;
  --line: rgba(18, 22, 20, 0.1);
  --forest: #16332c;
  --forest-mid: #1f4a40;
  --gold: #b08d4a;
  --gold-soft: #d4c09a;
  --sage: #c5d4cb;
  --header-h: 76px;
  --utility-h: 40px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shadow: 0 24px 50px rgba(22, 51, 44, 0.16);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink-soft);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open,
body.lightbox-open,
body.drawer-open,
body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker-light {
  color: var(--gold-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--forest-mid);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 11px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-soft);
}

.btn-block {
  width: 100%;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--forest-mid);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link:hover {
  color: var(--gold);
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.count-dot {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

/* Utility bar */
.utility-bar {
  background: var(--forest);
  color: rgba(255, 252, 247, 0.72);
  min-height: var(--utility-h);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.utility-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--utility-h);
  flex-wrap: wrap;
}

.utility-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.utility-note {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.utility-bar a:hover {
  color: var(--gold-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 20px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  grid-column: 1;
  justify-self: start;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--forest);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::before { top: 14px; }
.nav-toggle::after { bottom: 14px; }

.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open::after { bottom: 21px; transform: rotate(-45deg); }

.primary-nav {
  grid-column: 2;
  justify-self: center;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  grid-column: 3;
  justify-self: end;
}

/* Hero collage */
.hero-avenue {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: min(92vh, 880px);
  background: var(--mist);
}

.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 8vw 72px 7vw;
}

.hero-copy-panel h1 {
  font-size: clamp(48px, 5.6vw, 84px);
  margin: 0 0 20px;
}

.hero-copy-panel > p {
  margin: 0 0 28px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--forest);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1.2fr 1fr;
  gap: 10px;
  padding: 18px 18px 18px 0;
}

.hero-frame {
  margin: 0;
  overflow: hidden;
  background: var(--forest);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame-a {
  grid-row: 1 / span 2;
}

.hero-frame-b,
.hero-frame-c {
  min-height: 180px;
}

/* Trust */
.trust-strip {
  background: var(--forest);
  color: rgba(255, 252, 247, 0.72);
  padding: 36px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 6px;
}

.trust-grid p {
  margin: 0;
  font-size: 14px;
}

/* Category stage */
.cat-stage {
  padding: 100px 0;
  background: var(--white);
}

.cat-stage-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}

.cat-nav h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  margin: 0 0 12px;
}

.cat-lead {
  color: var(--muted);
  max-width: 38ch;
}

.cat-nav-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.cat-nav-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.cat-nav-item .cat-copy {
  grid-column: 2;
  font-size: 13px;
  color: var(--muted);
}

.cat-num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.cat-name {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}

.cat-nav-item.is-on .cat-name,
.cat-nav-item:hover .cat-name {
  color: var(--forest-mid);
}

.cat-preview {
  position: relative;
  min-height: 620px;
  background: var(--mist);
  overflow: hidden;
}

.cat-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.cat-preview p {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  margin: 0;
  color: var(--white);
  font-size: 15px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Arrivals */
.arrivals-split {
  padding: 100px 0;
  background: var(--canvas);
}

.arrivals-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.arrivals-intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.arrivals-intro h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin: 0 0 14px;
}

.arrivals-intro p {
  color: var(--muted);
  margin: 0 0 24px;
}

.arrivals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

/* Campaign */
.campaign {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 620px;
  background: var(--forest);
  color: var(--white);
}

.campaign-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 8vw;
}

.campaign-copy h2 {
  color: var(--white);
  font-size: clamp(44px, 5.4vw, 78px);
  margin: 0 0 16px;
}

.campaign-copy p {
  color: rgba(255, 252, 247, 0.72);
  max-width: 40ch;
  margin: 0 0 28px;
}

.campaign-media {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.campaign-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-float {
  position: absolute;
  left: 28px;
  bottom: 28px;
  background: var(--white);
  color: var(--ink);
  padding: 18px 22px;
  min-width: 180px;
}

.campaign-float small {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--gold);
  margin-bottom: 4px;
}

.campaign-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

/* Shop */
.shop-avenue {
  padding: 100px 0;
  background: var(--white);
}

.shop-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.shop-head h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  margin: 0 0 12px;
}

.shop-head p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding: 22px 24px;
  background: var(--canvas);
  margin-bottom: 18px;
}

.filter-group h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  border-radius: 99px;
}

.chip.is-on {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.price-range {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.price-range input {
  width: 100%;
  accent-color: var(--gold);
}

.filter-count,
.empty-filter {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.product-card.is-hidden {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 18px;
}

.product-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
  border-radius: var(--radius);
}

.product-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, transform 0.7s var(--ease);
}

.product-img-b {
  opacity: 0;
}

.product-card:hover .product-img-b {
  opacity: 1;
}

.product-card:hover .product-img-a {
  opacity: 0;
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--forest);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 9px;
}

.product-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.product-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: stretch;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-actions,
.product-card:focus-within .product-actions {
  opacity: 1;
  transform: none;
}

.product-actions .btn {
  width: 100%;
}

.product-info {
  padding: 16px 2px 0;
}

.product-cat {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.product-price {
  margin: 0;
  font-size: 14px;
}

.product-price s {
  color: var(--muted);
  margin-right: 6px;
}

.product-rating {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
}

/* Lookbook magazine */
.lookbook-mag {
  padding: 100px 0;
  background: var(--canvas);
}

.lookbook-head,
.journal-head {
  max-width: 520px;
  margin-bottom: 48px;
}

.lookbook-head h2,
.journal-head h2,
.about-copy h2 {
  font-size: clamp(36px, 4.4vw, 58px);
  margin: 0 0 12px;
}

.lookbook-head p {
  color: var(--muted);
}

.look-rows {
  display: grid;
  gap: 56px;
}

.look-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.look-row.is-flip {
  grid-template-columns: 0.8fr 1.2fr;
}

.look-row.is-flip .look-card {
  order: 2;
}

.look-card {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--forest);
  color: var(--white);
  text-align: left;
  width: 100%;
  min-height: 420px;
}

.look-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  transition: transform 0.7s var(--ease);
}

.look-card:hover img {
  transform: scale(1.04);
}

.look-meta small {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
}

.look-meta h3 {
  font-size: clamp(32px, 3.4vw, 48px);
  margin: 10px 0 12px;
}

.look-meta p {
  color: var(--muted);
  margin: 0;
}

/* About */
.about-band {
  background: var(--white);
}

.about-banner {
  height: min(52vh, 520px);
  overflow: hidden;
  background: var(--forest);
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-body {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  padding: 72px 0 100px;
}

.about-stats {
  display: grid;
  gap: 22px;
  height: fit-content;
  border-left: 2px solid var(--gold);
  padding-left: 22px;
}

.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--forest);
  font-weight: 500;
}

.about-stats span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-copy > p {
  color: var(--muted);
}

.about-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.about-points li {
  padding: 16px 18px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 14px;
}

.about-points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
}

/* Reviews */
.reviews-feature {
  padding: 100px 0;
  background: var(--mist);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.review-lead {
  margin: 0;
  padding: 48px 44px;
  background: var(--forest);
  color: var(--white);
}

.review-lead p:nth-of-type(2) {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  color: var(--white);
}

.review-lead cite {
  display: grid;
  font-style: normal;
  font-size: 13px;
  color: var(--gold-soft);
}

.review-stack {
  display: grid;
  gap: 18px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  margin: 0;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
}

.review-card p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}

.review-card cite {
  display: grid;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* Journal list */
.journal-list {
  padding: 100px 0;
  background: var(--white);
}

.journal-rows {
  display: grid;
  gap: 28px;
}

.journal-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.journal-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--mist);
}

.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.journal-card:hover img {
  transform: scale(1.04);
}

.journal-copy small {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
}

.journal-copy h3 {
  margin: 8px 0 10px;
  font-size: 32px;
}

.journal-copy p {
  margin: 0;
  color: var(--muted);
}

/* Contact split */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  background: var(--canvas);
}

.contact-map {
  min-height: 420px;
  background: var(--forest);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.contact-panel {
  padding: 64px 8vw 64px 56px;
}

.contact-panel h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin: 0 0 12px;
}

.contact-panel > p {
  color: var(--muted);
}

.contact-facts {
  display: grid;
  gap: 18px;
  margin: 28px 0 32px;
}

.contact-facts article {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-facts small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-facts p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
}

.form-intro h3 {
  font-size: 40px;
  margin: 0 0 10px;
}

.form-intro p,
.form-note,
.page-lead,
.entry-content,
.policy-copy {
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.newsletter-form input,
.chat-panel input,
.chat-panel textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.newsletter-form input:focus,
.chat-panel input:focus,
.chat-panel textarea:focus {
  border-color: var(--forest);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: rgba(244, 241, 235, 0.64);
  padding: 72px 0 0;
}

.footer-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 241, 235, 0.12);
  margin-bottom: 48px;
}

.footer-cta h2 {
  color: var(--white);
  font-size: clamp(28px, 3vw, 44px);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  background: transparent;
  color: var(--white);
  border-color: rgba(244, 241, 235, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 241, 235, 0.12);
}

.footer-brand .logo-word {
  color: var(--white);
}

.footer-brand .logo-mark {
  background: var(--gold);
  color: var(--forest);
}

.footer-brand p {
  max-width: 36ch;
  line-height: 1.75;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.socials a:hover {
  color: var(--gold-soft);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-contact-item {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(244, 241, 235, 0.38);
}

.footer-bar a {
  color: var(--gold-soft);
}

/* Product page */
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 28px 0 24px;
}

.pdp {
  padding-bottom: 80px;
}

.pdp-grid,
.pdp-grid-avenue {
  display: grid;
  grid-template-columns: 88px 1fr 0.9fr;
  gap: 24px 32px;
  align-items: start;
}

.pdp-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
  cursor: zoom-in;
}

.pdp-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.pdp-stage.is-zoom img {
  transform: scale(2);
}

.zoom-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 252, 247, 0.9);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.pdp-thumbs {
  display: grid;
  gap: 8px;
}

.pdp-thumb {
  border: 1px solid transparent;
  padding: 0;
  background: var(--mist);
  cursor: pointer;
}

.pdp-thumb.is-on {
  border-color: var(--forest);
}

.pdp-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pdp-buy h1 {
  font-size: clamp(32px, 4vw, 54px);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.pdp-rating,
.pdp-price,
.pdp-short,
.fit-note,
.pdp-ship {
  color: var(--muted);
}

.pdp-price {
  font-size: 22px;
  color: var(--ink);
}

.pdp-price s {
  color: var(--muted);
  margin-right: 8px;
}

.swatch-field,
.size-field {
  border: 0;
  padding: 0;
  margin: 22px 0;
}

.swatch-field legend,
.size-field legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.swatches,
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  position: relative;
  cursor: pointer;
}

.swatch input,
.size-chip input {
  position: absolute;
  opacity: 0;
}

.swatch span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px transparent;
}

.swatch.is-on span,
.swatch:has(input:checked) span {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ink);
}

.swatch em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.size-chip span {
  display: inline-flex;
  min-width: 44px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
}

.size-chip input:checked + span,
.size-chip:has(input:checked) span {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.pdp-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.pdp-acc {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.pdp-acc summary {
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdp-reviews,
.related {
  margin-top: 72px;
}

.pdp-reviews h2,
.related h2 {
  font-size: 40px;
}

/* Pages */
.page-shell {
  padding: 48px 0 96px;
  min-height: 60vh;
}

.page-shell h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin: 0 0 16px;
}

.policy-copy {
  max-width: 68ch;
}

.policy-copy ul {
  padding-left: 18px;
}

.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-grid,
.checkout-grid-avenue {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

.checkout-summary {
  background: var(--white);
  padding: 28px;
  border: 1px solid var(--line);
  height: fit-content;
}

.secure-note {
  font-size: 13px;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.cart-line img {
  width: 72px;
  height: 90px;
  object-fit: cover;
}

.cart-line h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.qty-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.qty-row button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

/* Drawer */
.drawer[hidden] {
  display: none;
}

.drawer:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 22, 20, 0.45);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.drawer-head,
.drawer-foot {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head h2 {
  margin: 0;
  font-size: 28px;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
}

.cart-sub {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.cart-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Chat */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
}

.chat-toggle {
  background: var(--forest);
  color: #fff;
  border: 0;
  min-height: 48px;
  padding: 0 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(320px, calc(100vw - 32px));
  background: var(--white);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Toast / lightbox / modal */
.toast {
  position: fixed;
  right: 24px;
  bottom: 84px;
  background: var(--ink);
  color: var(--canvas);
  padding: 14px 20px;
  z-index: 90;
  font-size: 14px;
  transform: translateY(140%);
  transition: transform 0.3s var(--ease);
}

.toast.is-visible {
  transform: translateY(0);
}

.lightbox,
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 22, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 72px;
}

.lightbox[hidden],
.modal[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: var(--canvas);
  font-family: var(--font-display);
  font-size: 22px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  top: 16px;
  right: 24px;
  font-size: 40px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  padding: 12px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.modal {
  background: rgba(18, 22, 20, 0.55);
}

.modal-panel {
  background: var(--white);
  padding: 36px 32px;
  width: min(640px, 100%);
  position: relative;
  max-height: 86vh;
  overflow: auto;
}

.modal-panel .icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
    justify-self: start;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .logo {
    grid-column: 2;
    justify-self: center;
  }

  .header-tools {
    grid-column: 3;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 24px;
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .primary-nav a {
    padding: 12px 4px;
    font-size: 16px;
  }

  .product-grid,
  .product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-avenue,
  .cat-stage-layout,
  .arrivals-layout,
  .campaign,
  .pdp-grid,
  .pdp-grid-avenue,
  .look-row,
  .look-row.is-flip,
  .about-body,
  .reviews-layout,
  .contact-split,
  .footer-cta,
  .checkout-grid,
  .checkout-grid-avenue,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .look-row.is-flip .look-card {
    order: 0;
  }

  .hero-collage {
    padding: 0 18px 18px;
    min-height: 420px;
  }

  .arrivals-intro {
    position: static;
  }

  .pdp-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(1240px, calc(100% - 28px));
  }

  .utility-note,
  .header-search {
    display: none;
  }

  .hero-copy-panel {
    padding: 48px 24px 36px;
  }

  .hero-copy-panel h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-actions,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 180px;
  }

  .hero-frame-a {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .product-grid,
  .product-grid-3,
  .arrivals-grid,
  .review-grid,
  .form-row,
  .pdp-cta,
  .trust-grid,
  .journal-card {
    grid-template-columns: 1fr;
  }

  .product-actions {
    opacity: 1;
    transform: none;
  }

  .product-actions .btn {
    display: none;
  }

  .cat-preview {
    min-height: 380px;
  }

  .contact-panel {
    padding: 36px 24px 48px;
  }

  .pdp-stage.is-zoom img {
    transform: none;
  }

  .lightbox {
    padding: 72px 16px 24px;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }

  .look-card,
  .look-card img {
    min-height: 280px;
  }

  .campaign-copy {
    padding: 48px 24px;
  }
}
