/*
Theme Name: WearrCloset
Theme URI: https://www.wearrcloset.online
Author: WearrCloset
Author URI: https://www.wearrcloset.online
Description: Fashion-forward WordPress theme for WearrCloset — women's clothing, lookbook, and Boston atelier e-commerce.
Version: 4.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 {
  --paper: #faf6f2;
  --ivory: #f1e8e1;
  --white: #fffdfb;
  --ink: #1a1210;
  --ink-soft: #2c221f;
  --muted: #6f645c;
  --line: rgba(26, 18, 16, 0.1);
  --rose: #9e3d4a;
  --rose-deep: #7a2c37;
  --blush: #f0d5d4;
  --champagne: #c4a07a;
  --noir: #120e0c;
  --header-h: 72px;
  --announce-h: 36px;
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow: 0 28px 60px rgba(18, 14, 12, 0.14);
  --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(--paper);
  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(1240px, calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
}

.kicker-light {
  color: var(--champagne);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  background: var(--noir);
  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(--rose);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 11px;
}

.btn-ghost,
.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255, 253, 251, 0.55);
}

.btn-ghost-light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--rose);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link:hover {
  color: var(--rose-deep);
}

.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(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

/* Announce */
.announce {
  background: var(--noir);
  color: rgba(255, 253, 251, 0.78);
  height: var(--announce-h);
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.announce-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 28s linear infinite;
  padding: 10px 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--rose);
}

.logo-word {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
  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 ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  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: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  color: var(--white);
  background: var(--noir);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 14, 12, 0.72) 0%, rgba(18, 14, 12, 0.18) 58%, rgba(18, 14, 12, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 12vh 8vw 10vh;
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(46px, 7vw, 92px);
  font-style: italic;
  margin: 0 0 18px;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 44ch;
  color: rgba(255, 253, 251, 0.78);
  font-weight: 300;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 32px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 253, 251, 0.7);
}

.marquee {
  background: var(--ivory);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 22s linear infinite;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
}

/* Sections */
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-intro h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin: 0;
}

.section-intro p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

.categories,
.new-arrivals,
.shop,
.lookbook,
.reviews,
.journal {
  padding: 96px 0;
}

.about,
.contact {
  padding: 96px 0 0;
}

.categories { background: var(--white); }
.new-arrivals { background: var(--paper); }
.shop { background: var(--white); }
.lookbook { background: var(--ivory); }
.about { background: var(--paper); padding-bottom: 96px; }
.reviews { background: var(--white); }
.journal { background: var(--paper); }
.contact { background: var(--ivory); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.category-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--ivory);
  color: var(--white);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(18, 14, 12, 0.72));
}

.category-tile span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
}

.category-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
}

.category-tile em {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 253, 251, 0.72);
}

.category-tile:hover img {
  transform: scale(1.06);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
}

.product-card {
  position: relative;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ivory);
}

.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(--white);
  color: var(--ink);
  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;
}

.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: 14px 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(--champagne);
  letter-spacing: 1px;
}

/* Featured */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 640px;
  background: var(--noir);
  color: var(--white);
}

.featured-media {
  min-height: 480px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 8vw;
}

.featured-copy h2 {
  color: var(--white);
  font-size: clamp(40px, 5vw, 72px);
  font-style: italic;
  margin: 0 0 16px;
}

.featured-copy p {
  color: rgba(255, 253, 251, 0.72);
  max-width: 40ch;
  margin: 0 0 28px;
}

/* Shop filters */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.filter-group {
  margin-bottom: 22px;
}

.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);
}

.chip.is-on {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.price-range {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.price-range input {
  width: 100%;
  accent-color: var(--rose);
}

.filter-count,
.empty-filter {
  font-size: 13px;
  color: var(--muted);
}

.product-card.is-hidden {
  display: none;
}

/* Lookbook */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.look-card {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--noir);
  color: var(--white);
  text-align: left;
}

.look-card.is-tall {
  grid-row: span 2;
}

.look-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.look-card:hover img {
  transform: scale(1.05);
}

.look-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
}

.look-card small {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--champagne);
  margin-bottom: 4px;
}

.look-card strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.about-photos {
  position: relative;
  min-height: 560px;
}

.about-photo-a {
  width: 78%;
  height: 520px;
  object-fit: cover;
}

.about-photo-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 240px;
  object-fit: cover;
  border: 10px solid var(--paper);
  box-shadow: var(--shadow);
}

.about-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 0 0 16px;
}

.about-copy > p {
  color: var(--muted);
}

.about-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.about-points li {
  padding-left: 16px;
  border-left: 2px solid var(--champagne);
  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;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  margin: 0;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.review-card p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}

.review-card cite {
  display: grid;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journal-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ivory);
  margin-bottom: 14px;
}

.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-card small {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--rose);
}

.journal-card h3 {
  margin: 8px 0 0;
  font-size: 28px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.contact-cards article {
  background: var(--white);
  padding: 26px 24px;
}

.contact-cards small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}

.contact-cards strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-cards p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  background: var(--white);
  padding: 48px;
  margin-bottom: 48px;
}

.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: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.newsletter-form input:focus,
.chat-panel input:focus,
.chat-panel textarea:focus {
  border-bottom-color: var(--rose);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-map {
  height: 360px;
  background: var(--noir);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

/* Footer */
.site-footer {
  background: var(--noir);
  color: rgba(250, 246, 242, 0.64);
  padding: 72px 0 0;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 246, 242, 0.1);
  margin-bottom: 48px;
}

.footer-newsletter h2 {
  color: var(--white);
  font-size: clamp(28px, 3vw, 42px);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  background: transparent;
  color: var(--white);
  border-bottom-color: rgba(250, 246, 242, 0.25);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 246, 242, 0.1);
}

.footer-brand .logo-word {
  color: var(--white);
}

.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(--champagne);
}

.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(--champagne);
}

.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(--champagne);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(250, 246, 242, 0.38);
}

.footer-bar a {
  color: var(--champagne);
}

/* 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 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.pdp-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory);
  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, 253, 251, 0.9);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.pdp-thumb {
  border: 1px solid transparent;
  padding: 0;
  background: var(--ivory);
  cursor: pointer;
}

.pdp-thumb.is-on {
  border-color: var(--ink);
}

.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(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.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 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  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, 14, 12, 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(--rose);
  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(--paper);
  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, 14, 12, 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(--ivory);
  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, 14, 12, 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;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 24px;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .primary-nav a {
    padding: 12px 4px;
    font-size: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-layout,
  .pdp-grid,
  .featured,
  .about-grid,
  .contact-form,
  .footer-newsletter,
  .checkout-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .category-grid,
  .review-grid,
  .journal-grid,
  .lookbook-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lookbook-grid {
    grid-auto-rows: 240px;
  }
}

@media (max-width: 780px) {
  .header-search {
    display: none;
  }

  .hero-copy {
    padding: 72px 24px 80px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid,
  .category-grid,
  .review-grid,
  .journal-grid,
  .lookbook-grid,
  .contact-cards,
  .form-row,
  .pdp-cta,
  .pdp-thumbs {
    grid-template-columns: 1fr;
  }

  .product-actions {
    opacity: 1;
    transform: none;
  }

  .product-actions .btn {
    display: none;
  }

  .look-card.is-tall {
    grid-row: auto;
    min-height: 280px;
  }

  .about-photos {
    min-height: auto;
  }

  .about-photo-a {
    width: 100%;
    height: 340px;
  }

  .about-photo-b {
    position: relative;
    width: 100%;
    height: 200px;
    border: 0;
    margin-top: 10px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .pdp-stage.is-zoom img {
    transform: none;
  }

  .lightbox {
    padding: 72px 16px 24px;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }

  .section-intro {
    flex-direction: column;
    align-items: start;
  }
}
