/* ============================================================
   YOUR BRAND — Needlepoint Kit Store
   Design tokens & global styles
   ============================================================ */

:root {
  /* Colors */
  --color-canvas: #F5F1E8;
  --color-canvas-dark: #E8E0D0;
  --color-canvas-darker: #D9CFBA;
  --color-forest: #2D4A3E;
  --color-forest-light: #3D5E4F;
  --color-forest-dark: #1E332A;
  --color-rose: #C97B7B;
  --color-rose-light: #D99898;
  --color-rose-dark: #A85E5E;
  --color-gold: #B8860B;
  --color-gold-light: #D4A017;
  --color-ink: #2C2C2C;
  --color-ink-light: #5A5A5A;
  --color-ink-muted: #8A8A8A;
  --color-white: #FFFFFF;
  --color-border: #D9CFBA;
  --color-border-light: #E8E0D0;

  /* Placeholder colors */
  --ph-bg: #E8E0D0;
  --ph-border: #B8A88A;
  --ph-text: #6B5D4A;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
  --dur-slow: 400ms;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
  --announcement-height: 36px;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-canvas);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Placeholder Image Component
   ============================================================ */
.placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--ph-bg);
  border: 1.5px dashed var(--ph-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ph-border) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--ph-border) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  opacity: 0.3;
  pointer-events: none;
}

.placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ph-text);
  line-height: 1.4;
  max-width: 90%;
}

.placeholder-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-ink-light);
}

.placeholder-icon {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Square placeholder variants */
.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--hero { aspect-ratio: 16 / 9; }
.placeholder--landscape { aspect-ratio: 4 / 3; }
.placeholder--portrait { aspect-ratio: 3 / 4; }
.placeholder--banner { aspect-ratio: 32 / 10; }
.placeholder--thumb { aspect-ratio: 1 / 1; width: 80px; height: 80px; }

/* ============================================================
   Announcement Bar
   ============================================================ */
.announcement-bar {
  background-color: var(--color-forest);
  color: var(--color-canvas);
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 16px;
}

.announcement-bar span {
  opacity: 0.95;
}

.announcement-bar em {
  font-style: normal;
  color: var(--color-rose-light);
  font-weight: 500;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-canvas);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-logo:hover {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--color-forest);
}

.nav-item.has-dropdown::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: 0.6;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-med) var(--ease);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  z-index: 101;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease);
}

.nav-dropdown a:hover {
  background-color: var(--color-canvas);
  color: var(--color-forest);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background-color var(--dur-fast) var(--ease);
  position: relative;
  color: var(--color-ink);
}

.icon-btn:hover {
  background-color: var(--color-canvas-dark);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--color-rose);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-forest-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-forest);
  border: 1.5px solid var(--color-forest);
}

.btn--secondary:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-ink);
}

.btn--ghost:hover {
  color: var(--color-forest);
}

.btn--rose {
  background-color: var(--color-rose);
  color: var(--color-white);
}

.btn--rose:hover {
  background-color: var(--color-rose-dark);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 15px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  margin-bottom: var(--space-3xl);
}

.hero-image {
  width: 100%;
  aspect-ratio: 1920 / 900;
  max-height: 70vh;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 64px;
  pointer-events: none;
}

.hero-text {
  max-width: 520px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.hero-text h1 {
  margin-bottom: 16px;
  color: var(--color-forest);
}

.hero-text p {
  font-size: 17px;
  color: var(--color-ink-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ============================================================
   Section common
   ============================================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--color-white);
}

.section--canvas {
  background-color: var(--color-canvas-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  color: var(--color-forest);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--color-ink-light);
  max-width: 560px;
  margin: 0 auto;
}

.section-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-forest);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--dur-fast);
}

.section-link:hover {
  opacity: 0.7;
}

/* ============================================================
   Category Grid (Shop by Category)
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-tile {
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease);
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.category-tile h3 {
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
}

/* ============================================================
   Product Grid
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-med) var(--ease);
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-badge--best {
  background: var(--color-gold);
  color: var(--color-white);
}

.product-badge--new {
  background: var(--color-rose);
  color: var(--color-white);
}

.product-badge--limited {
  background: var(--color-forest);
  color: var(--color-white);
}

.quick-add {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: calc(100% - 24px);
  padding: 10px 0;
  background: var(--color-white);
  color: var(--color-forest);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all var(--dur-med) var(--ease);
  z-index: 2;
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-add:hover {
  background: var(--color-forest);
  color: var(--color-white);
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
}

.product-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-forest);
}

/* ============================================================
   What's in your kit / Features
   ============================================================ */
.features-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-full);
  color: var(--color-forest);
  border: 1px solid var(--color-border-light);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-item h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
}

.feature-item p {
  font-size: 13px;
  color: var(--color-ink-light);
  line-height: 1.5;
}

/* ============================================================
   How it works
   ============================================================ */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-item {
  text-align: center;
}

.step-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--color-rose);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.step-item h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.step-item p {
  color: var(--color-ink-light);
  font-size: 15px;
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================================
   Testimonials / Reviews bar
   ============================================================ */
.testimonial-bar {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: var(--color-forest);
  color: var(--color-canvas);
}

.testimonial-bar-stars {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: 4px;
  color: var(--color-gold-light);
}

.testimonial-bar-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 40px;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: left;
}

.testimonial-stars {
  color: var(--color-gold-light);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-canvas-darker);
  border: 1px dashed var(--color-border);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter-section {
  position: relative;
  aspect-ratio: 1920 / 600;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.newsletter-bg {
  position: absolute;
  inset: 0;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.newsletter-content h2 {
  color: var(--color-forest);
  margin-bottom: 10px;
  font-size: 2rem;
}

.newsletter-content p {
  color: var(--color-ink-light);
  margin-bottom: 24px;
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-white);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-forest);
}

/* ============================================================
   Instagram / UGC
   ============================================================ */
.ugc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.ugc-item {
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: opacity var(--dur-fast);
}

.ugc-item:hover {
  opacity: 0.8;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: var(--space-2xl);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-ink-light);
  transition: color var(--dur-fast);
}

.footer-col ul li a:hover {
  color: var(--color-forest);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-forest);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--color-ink-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-light);
  transition: all var(--dur-fast);
}

.social-icon:hover {
  border-color: var(--color-forest);
  color: var(--color-forest);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-newsletter h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-newsletter p {
  font-size: 13px;
  color: var(--color-ink-light);
  margin-bottom: 12px;
}

.footer-newsletter-form {
  display: flex;
  gap: 6px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}

.footer-newsletter-form button {
  padding: 10px 14px;
  background: var(--color-forest);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-ink-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--color-forest);
}

/* ============================================================
   Shop All Page
   ============================================================ */
.shop-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: var(--space-2xl) 0;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--announcement-height) + 24px);
  align-self: flex-start;
}

.filter-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--color-ink);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-ink-light);
  cursor: pointer;
  transition: color var(--dur-fast);
}

.filter-option:hover {
  color: var(--color-forest);
}

.filter-option input {
  accent-color: var(--color-forest);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-option-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-ink-muted);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-range input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

.shop-main {
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.shop-count {
  font-size: 14px;
  color: var(--color-ink-light);
}

.shop-sort select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--color-white);
  cursor: pointer;
  color: var(--color-ink);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all var(--dur-fast);
  background: var(--color-white);
}

.pagination button.active {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}

.pagination button:hover:not(.active):not(:disabled) {
  border-color: var(--color-forest);
  color: var(--color-forest);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Product Detail Page (PDP)
   ============================================================ */
.pdp-section {
  padding: var(--space-2xl) 0;
}

.pdp-breadcrumb {
  font-size: 13px;
  color: var(--color-ink-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pdp-breadcrumb a:hover {
  color: var(--color-forest);
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.pdp-gallery {
  display: flex;
  gap: 16px;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
  flex-shrink: 0;
}

.pdp-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--dur-fast);
}

.pdp-thumb.active {
  border-color: var(--color-forest);
}

.pdp-main-image {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-banner {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.pdp-banner img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-category-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-rose);
}

.pdp-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--color-ink);
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-ink-light);
}

.pdp-rating-stars {
  color: var(--color-gold);
  letter-spacing: 2px;
}

.pdp-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-forest);
}

.pdp-format-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.pdp-format-options {
  display: flex;
  gap: 10px;
}

.format-option {
  flex: 1;
  padding: 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all var(--dur-fast);
  background: var(--color-white);
}

.format-option.active {
  border-color: var(--color-forest);
  background: rgba(45, 74, 62, 0.04);
}

.format-option:hover {
  border-color: var(--color-forest);
}

.format-option-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.format-option-price {
  font-size: 13px;
  color: var(--color-ink-light);
}

.pdp-specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.pdp-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-spec-label {
  font-size: 12px;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdp-spec-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.pdp-includes {
  background: var(--color-canvas-dark);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pdp-includes h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.pdp-includes ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-ink-light);
}

.pdp-includes li svg {
  width: 16px;
  height: 16px;
  color: var(--color-forest);
  flex-shrink: 0;
}

.pdp-qty-row {
  display: flex;
  gap: 12px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.qty-selector button {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-ink-light);
  transition: background var(--dur-fast);
}

.qty-selector button:hover {
  background: var(--color-canvas-dark);
}

.qty-selector span {
  min-width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-ink-light);
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  color: var(--color-forest);
}

/* PDP accordion */
.pdp-accordions {
  margin-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border-light);
}

.accordion-header {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
  text-align: left;
}

.accordion-header:hover {
  color: var(--color-forest);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease);
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}

.accordion-item.open .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease);
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--color-ink-light);
  line-height: 1.7;
}

.accordion-content p {
  margin-bottom: 12px;
}

.accordion-content ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 12px;
}

.accordion-content li {
  margin-bottom: 6px;
}

/* Reviews section */
.pdp-reviews {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.pdp-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.pdp-reviews-header h2 {
  color: var(--color-forest);
  font-size: 1.75rem;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.review-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border-light);
}

.review-item:last-child {
  border-bottom: none;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ph-bg);
  border: 1px dashed var(--ph-border);
  flex-shrink: 0;
}

.review-body {
  flex: 1;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-name {
  font-weight: 500;
  font-size: 14px;
}

.review-stars {
  color: var(--color-gold);
  font-size: 13px;
  letter-spacing: 2px;
}

.review-date {
  font-size: 12px;
  color: var(--color-ink-muted);
  margin-left: auto;
}

.review-text {
  font-size: 14px;
  color: var(--color-ink-light);
  line-height: 1.6;
}

/* You may also like */
.pdp-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.pdp-related h2 {
  color: var(--color-forest);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 32px;
}

/* ============================================================
   Cart Drawer
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-med) var(--ease);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.cart-header h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--dur-fast);
}

.cart-close:hover {
  background: var(--color-canvas-dark);
}

.cart-close svg {
  width: 18px;
  height: 18px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--color-ink-muted);
  gap: 12px;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
}

.cart-item-format {
  font-size: 12px;
  color: var(--color-ink-muted);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-forest);
  margin-top: auto;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cart-remove {
  font-size: 12px;
  color: var(--color-ink-muted);
  text-decoration: underline;
  cursor: pointer;
}

.cart-remove:hover {
  color: var(--color-rose);
}

.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.cart-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-ink-light);
}

.cart-qty button:hover {
  background: var(--color-canvas-dark);
}

.cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
}

.cart-footer {
  flex-shrink: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-canvas);
}

.cart-shipping-progress {
  margin-bottom: 16px;
}

.cart-shipping-text {
  font-size: 12px;
  color: var(--color-ink-light);
  margin-bottom: 6px;
}

.cart-shipping-text strong {
  color: var(--color-forest);
  font-weight: 600;
}

.cart-progress-bar {
  height: 6px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cart-progress-fill {
  height: 100%;
  background: var(--color-forest);
  border-radius: var(--radius-full);
  transition: width var(--dur-med) var(--ease);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart-subtotal-label {
  font-size: 14px;
  color: var(--color-ink-light);
}

.cart-subtotal-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest);
}

.cart-footer-note {
  font-size: 12px;
  color: var(--color-ink-muted);
  text-align: center;
  margin-top: 10px;
}

/* ============================================================
   Cart Page
   ============================================================ */
.cart-page {
  padding: var(--space-2xl) 0;
}

.cart-page h1 {
  font-size: 2.5rem;
  color: var(--color-forest);
  margin-bottom: 32px;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
}

.cart-page-items {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

.cart-page-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-page-item:last-child {
  border-bottom: none;
}

.cart-page-item-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-page-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-page-item-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink);
}

.cart-page-item-format {
  font-size: 13px;
  color: var(--color-ink-muted);
}

.cart-page-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-forest);
  margin-top: auto;
}

.cart-page-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-summary {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + var(--announcement-height) + 24px);
  align-self: flex-start;
}

.cart-summary h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-ink-light);
}

.summary-row.total {
  border-top: 1px solid var(--color-border-light);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
}

.summary-row.total span:last-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest);
}

.cart-summary-shipping {
  margin: 16px 0;
  padding: 12px;
  background: var(--color-canvas-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-ink-light);
  text-align: center;
}

.cart-summary-shipping strong {
  color: var(--color-forest);
}

/* ============================================================
   Checkout Page
   ============================================================ */
.checkout-page {
  padding: var(--space-2xl) 0;
}

.checkout-header {
  margin-bottom: 32px;
}

.checkout-header h1 {
  font-size: 2.5rem;
  color: var(--color-forest);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.checkout-section {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}

.checkout-section h2 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
}

.form-field input,
.form-field select {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-white);
  transition: border-color var(--dur-fast);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-forest);
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast);
}

.shipping-option:hover {
  border-color: var(--color-forest);
}

.shipping-option.active {
  border-color: var(--color-forest);
  background: rgba(45, 74, 62, 0.03);
}

.shipping-option input {
  accent-color: var(--color-forest);
  width: 18px;
  height: 18px;
}

.shipping-option-info {
  flex: 1;
}

.shipping-option-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.shipping-option-desc {
  font-size: 12px;
  color: var(--color-ink-muted);
  margin-top: 2px;
}

.shipping-option-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-forest);
}

/* Payment placeholder */
.payment-placeholder {
  border: 2px dashed var(--color-rose);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  background: rgba(201, 123, 123, 0.06);
}

.payment-placeholder-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-rose);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-placeholder-icon svg {
  width: 100%;
  height: 100%;
}

.payment-placeholder h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-rose-dark);
  margin-bottom: 8px;
}

.payment-placeholder p {
  font-size: 13px;
  color: var(--color-ink-light);
  line-height: 1.6;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.payment-method {
  width: 50px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-ink-muted);
}

/* Checkout summary sidebar */
.checkout-summary {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + var(--announcement-height) + 24px);
  align-self: flex-start;
}

.checkout-summary h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 20px;
}

.checkout-summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-summary-item-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.checkout-summary-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-summary-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-summary-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
}

.checkout-summary-item-format {
  font-size: 11px;
  color: var(--color-ink-muted);
  margin-top: 2px;
}

.checkout-summary-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-forest);
}

/* ============================================================
   Beginner Guide Page
   ============================================================ */
.guide-hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.guide-hero h1 {
  color: var(--color-forest);
  margin-bottom: 16px;
}

.guide-hero p {
  font-size: 18px;
  color: var(--color-ink-light);
  max-width: 600px;
  margin: 0 auto;
}

.guide-section {
  padding: var(--space-2xl) 0;
}

.guide-section--alt {
  background: var(--color-white);
}

.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.guide-layout--reverse .guide-image {
  order: 2;
}

.guide-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guide-content h2 {
  color: var(--color-forest);
  margin-bottom: 16px;
}

.guide-content p {
  font-size: 16px;
  color: var(--color-ink-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.guide-content ul {
  list-style: none;
  margin: 16px 0;
}

.guide-content li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--color-ink-light);
}

.guide-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 16px;
  height: 2px;
  background: var(--color-rose);
}

/* ============================================================
   About Page
   ============================================================ */
.about-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.about-hero h1 {
  color: var(--color-forest);
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 18px;
  color: var(--color-ink-light);
  max-width: 640px;
  margin: 0 auto;
}

.about-story {
  padding: var(--space-2xl) 0;
}

.about-story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-story h2 {
  color: var(--color-forest);
  margin-bottom: 20px;
}

.about-story p {
  font-size: 16px;
  color: var(--color-ink-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-values {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 32px;
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-canvas-dark);
  border-radius: 50%;
  color: var(--color-forest);
}

.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.value-card p {
  font-size: 14px;
  color: var(--color-ink-light);
  line-height: 1.6;
}

/* ============================================================
   FAQ Page
   ============================================================ */
.faq-page {
  padding: var(--space-3xl) 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header h1 {
  color: var(--color-forest);
  margin-bottom: 12px;
}

.faq-header p {
  font-size: 16px;
  color: var(--color-ink-light);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-list .accordion-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-list .accordion-item:last-child {
  border-bottom: none;
}

.faq-list .accordion-header {
  padding: 20px 28px;
}

.faq-list .accordion-content {
  padding: 0 28px 24px;
}

/* ============================================================
   Stitch grid texture (signature element)
   ============================================================ */
.stitch-divider {
  height: 24px;
  background-image:
    linear-gradient(90deg, var(--color-rose) 1px, transparent 1px),
    linear-gradient(var(--color-rose) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
  opacity: 0.3;
  margin: var(--space-xl) 0;
}

/* ============================================================
   Page transitions
   ============================================================ */
.page {
  animation: fadeIn var(--dur-slow) var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Toast notifications
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-forest);
  color: var(--color-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  animation: slideUp var(--dur-med) var(--ease);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast svg {
  width: 18px;
  height: 18px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .how-it-works { grid-template-columns: 1fr; gap: 40px; }
  .ugc-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-cards { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shop-page { grid-template-columns: 220px 1fr; gap: 32px; }
  .pdp-layout { grid-template-columns: 1fr; gap: 40px; }
  .cart-page-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .checkout-summary { position: static; }
  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .guide-layout--reverse .guide-image { order: 0; }
  .about-story-layout { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-content { padding: 0 24px; }
  .hero-text { padding: 32px; }
  .nav-item:not(.has-dropdown) { display: none; }
  .main-nav { justify-content: flex-start; flex: 0; }
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .features-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ugc-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .shop-page { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .pdp-gallery { flex-direction: column-reverse; }
  .pdp-thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
  .pdp-thumb { width: 60px; flex-shrink: 0; }
  .hero-text { padding: 24px; max-width: 100%; }
  .hero-text h1 { font-size: 2rem; }
  .newsletter-content { margin: 0 16px; padding: 32px 24px; }
  .newsletter-form { flex-direction: column; }
  .mobile-menu-btn { display: flex; }
  .nav-item.has-dropdown { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
  .section { padding: var(--space-2xl) 0; }
}

/* ============================================================
   Legal pages (Shipping / Refund / Terms / Privacy)
   ============================================================ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--color-forest);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.legal-updated {
  font-size: 14px;
  color: var(--color-ink-muted);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-xl);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-forest);
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal-page p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink-light);
  margin-bottom: var(--space-md);
}

.legal-page ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding: 0;
}

.legal-page li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink-light);
  margin-bottom: var(--space-sm);
}

.legal-page a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--color-forest-light);
}

.legal-page strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* ============================================================
   Empty review state — 无真实评价时的展示
   ============================================================ */
.review-empty {
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-canvas);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  text-align: center;
}

.review-empty p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink-light);
  max-width: 560px;
  margin: 0 auto var(--space-sm);
}

.review-empty p:last-child {
  margin-bottom: 0;
}

.review-empty strong {
  color: var(--color-forest);
  font-size: 18px;
}

.review-empty a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer contact line */
.footer-contact {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink-light);
  margin-top: var(--space-md);
}

.footer-contact a {
  color: var(--color-canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cart item thumbnail */
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Images — 统一约束，防止原图撑破容器 */
.pdp-banner img,
.pdp-main-image img,
.pdp-thumb img,
.guide-image img,
.about-image img,
.step-image img,
.category-tile-image img,
.ugc-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PDP 画廊：图片必须在容器内，不能溢出到下方手风琴 */
.pdp-main-image {
  min-width: 0;
}

.pdp-main-image img {
  position: absolute;
  inset: 0;
}

.pdp-main-image {
  position: relative;
}

/* PDP 左列不得被内容撑高后影响右列 */
.pdp-gallery,
.pdp-info {
  min-width: 0;
  align-self: start;
}

.category-tile-image,
.step-image {
  overflow: hidden;
  border-radius: 8px;
}

/* Legal page responsive */
@media (max-width: 768px) {
  .legal-page {
    padding: var(--space-2xl) 0 var(--space-xl);
  }
  .legal-page h2 {
    font-size: 19px;
  }
}

/* ============================================================
   图片性质披露 —— AI 生成效果图标注
   ============================================================ */
.image-disclosure-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(44, 44, 44, 0.78);
  border-radius: 4px;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.image-disclosure-badge--banner {
  bottom: 14px;
  left: 14px;
  font-size: 12px;
}

.image-disclosure-badge--card {
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  padding: 4px 7px;
}

.image-disclosure-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-ink-muted);
  font-style: italic;
}

.pdp-banner {
  position: relative;
}

.product-card-image {
  position: relative;
}

/* 支付区 */
.payment-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-light);
  margin-bottom: var(--space-md);
}

.payment-footnote {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.image-disclosure-note--variant {
  color: var(--color-ink-light);
  font-style: normal;
  border-left: 3px solid var(--color-canvas-darker);
  padding-left: 12px;
  margin-top: 10px;
}

.payment-alt {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-ink-muted);
}

.payment-alt a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.payment-footnote--center {
  text-align: center;
  margin-top: 10px;
}

.summary-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

/* 购物车页 / 结账摘要 商品缩略图 */
.cart-page-item-image img,
.checkout-summary-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.cart-page-item-image,
.checkout-summary-item-image {
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ============================================================
   首单优惠
   ============================================================ */
.promo-box {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.promo-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.promo-badge {
  display: inline-block;
  background: var(--color-forest);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.promo-box-head strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--color-forest);
}

.promo-box-note {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--color-ink-light);
  margin-bottom: 14px;
}

.promo-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.promo-form input:focus {
  outline: none;
  border-color: var(--color-forest);
}

.promo-error {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-rose-dark);
}

.promo-applied {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eef4f0;
  border: 1px solid #cfe0d6;
  border-radius: 8px;
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-forest-dark);
}

.promo-applied svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-forest);
}

@media (max-width: 560px) {
  .promo-form { flex-direction: column; }
  .promo-form input, .promo-form button { width: 100%; }
}
