:root {
  --ink: #191715;
  --ink-soft: #575047;
  --paper: #faf8f5;
  --warm: #f3efea;
  --sand: #e4dbd1;
  --line: #e6dfd5;
  --muted: #847a6e;
  --accent: #8c7a68;
  --accent-hover: #756554;
  --danger: #c94a40;
  --success: #3b7a54;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(25, 23, 21, 0.04);
  --shadow-md: 0 10px 30px rgba(25, 23, 21, 0.06);
  --shadow-lg: 0 18px 45px rgba(25, 23, 21, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

button, input, textarea, select {
  font: inherit;
}

/* Announcement Bar */
.announcement {
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 6px 4%;
  background: var(--ink);
  color: #fcfaf7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement-side {
  opacity: 0.75;
}

/* Site Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 max(4%, 20px);
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  font: 700 24px/0.95 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.04em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand span {
  margin-top: 3px;
  font: 700 9px/1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.header-center {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  max-width: 760px;
  margin: 0 24px;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 280px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.site-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 122, 104, 0.15);
}

.site-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.site-search input::placeholder {
  color: #a0978c;
}

nav#site-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

nav#site-navigation a {
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

nav#site-navigation a:hover,
nav#site-navigation a.active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.profile-link, .bag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.profile-link:hover, .bag:hover {
  border-color: var(--accent);
  background: var(--warm);
}

.bag b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* Common Typography & Headings */
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font: 700 clamp(28px, 4vw, 52px)/1.1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 18px;
}

h2 {
  font: 700 clamp(22px, 3vw, 36px)/1.2 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

/* Buttons & Links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  padding: 13px 24px;
  font: 600 14px 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.text-link:hover {
  color: var(--ink);
}

/* Hero Section */
.hero-campaign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  max-width: 1280px;
  margin: 20px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f5f0e9 0%, #eae2d7 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 8%;
}

.hero-copy p:not(.eyebrow) {
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.hero-notes {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Hero Product Showcase Slider */
.hero-showcase-wrap {
  position: relative;
  min-height: 440px;
  background: var(--sand);
  overflow: hidden;
}

.hero-showcase-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.hero-showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
}

.hero-showcase-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-showcase-media {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}

.hero-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-showcase-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.hero-showcase-nav {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 16px;
  border-radius: 999px;
  background: var(--ink);
}

/* Category Grid */
.shop-categories {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-out);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.category-card-copy b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.category-card-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* Featured Carousel & Product Grid */
.featured-v2, .collection-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.featured-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 0 14px;
  -webkit-overflow-scrolling: touch;
}

.featured-viewport::-webkit-scrollbar {
  display: none;
}

.featured-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.featured-card {
  flex: 0 0 270px;
  width: 270px;
  scroll-snap-align: start;
}

.products-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
}

.product-media, .featured-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.product-media img, .featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.product:hover img, .featured-card:hover img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.product-badge.out-of-stock {
  background: var(--danger);
  color: #ffffff;
}

.product-info, .featured-card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-top: 12px;
}

.product-info p, .featured-card-info p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info h3, .featured-card-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.product-info strong, .featured-card-info strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* Category Filters */
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.filters a {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.filters a:hover, .filters a.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Product Detail Page - PROPORTIONED IMAGE FIX */
.product-page {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1140px;
  margin: 32px auto 60px;
  padding: 0 20px;
}

.detail-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 440px;
  max-height: 60vh;
  background: var(--sand);
  box-shadow: var(--shadow-md);
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail h1 {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 10px;
}

.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: block;
}

.description {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.size-picker {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.error-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fdf2f2;
  border: 1px solid #f8d7da;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Cart Page */
.cart, .checkout, .thanks, .customer-auth, .account {
  max-width: 1100px;
  margin: 32px auto 60px;
  padding: 0 20px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.thumb {
  width: 80px;
  height: 96px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.summary {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* Forms & Checkout */
.form label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form input:not([type=radio]):not([type=checkbox]),
.form textarea,
.form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  color: var(--ink);
}

/* Customer Auth */
.customer-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  align-items: center;
}

.auth-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* Brand Story & Promise */
.brand-story {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 20px;
}

.promise-v2 > div {
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
  padding: 48px max(4%, 20px) 28px;
  background: var(--ink);
  color: #fcfaf7;
  margin-top: 60px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Dedicated Mobile Breakpoints */
@media (max-width: 1024px) {
  .hero-campaign {
    grid-template-columns: 1fr;
    margin: 16px 16px 0;
  }
  .hero-copy {
    padding: 36px 6%;
  }
  .hero-showcase-wrap {
    min-height: 360px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .detail-image {
    height: 360px;
  }
  .cart-grid, .customer-auth {
    grid-template-columns: 1fr;
  }
  .promise-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .announcement {
    font-size: 10px;
    padding: 6px 10px;
    gap: 10px;
  }
  .announcement-side {
    display: none;
  }
  .hero-campaign {
    margin: 10px 10px 0;
    border-radius: var(--radius);
  }
  .hero-copy {
    padding: 28px 16px 20px;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
  .hero-copy p:not(.eyebrow) {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .button, .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }
  .hero-showcase-wrap {
    min-height: 320px;
  }
  .hero-showcase-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 14px;
  }
  .hero-showcase-card h3 {
    font-size: 13px;
  }
  .hero-showcase-card .hero-showcase-price {
    font-size: 13px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-card {
    min-height: 120px;
    padding: 12px;
  }
  .category-icon {
    width: 36px;
    height: 36px;
  }
  .featured-v2, .collection-v2 {
    padding: 40px 14px 0;
  }
  .featured-card {
    flex: 0 0 240px;
    width: 240px;
  }
  .products-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px;
  }
  .product-info h3, .featured-card-info h3 {
    font-size: 14px;
  }
  .product-info strong, .featured-card-info strong {
    font-size: 14px;
  }
  .product-page {
    padding: 0 14px;
    margin: 16px auto 40px;
  }
  .detail-image {
    height: 320px;
    max-height: 48vh;
  }
  .cart, .checkout, .thanks, .customer-auth, .account {
    padding: 0 14px;
    margin: 20px auto 40px;
  }
  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }
  .cart-item-price {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 16px;
  }
  .auth-card {
    padding: 24px 16px;
  }
  .promise-v2 {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 14px;
  }
  .footer-main {
    flex-direction: column;
    gap: 24px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}
