/* ========================================
   ZERO REGRET DIARIES — Vintage E-Commerce
   ======================================== */

:root {
  /* Warm vintage palette */
  --parchment: #f5efe6;
  --parchment-dark: #e8dfd3;
  --cream: #faf7f2;
  --ink: #2c2418;
  --ink-light: #4a3f31;
  --ink-muted: #7a6f61;
  --rust: #a0522d;
  --rust-light: #c4724a;
  --rust-dark: #7a3d1e;
  --aged-gold: #b8860b;
  --sage: #7d8a6e;
  --sage-light: #a3ad96;
  --burgundy: #6b1d2a;
  --faded-blue: #5c7a8a;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;

  /* Sizing */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== ANNOUNCEMENT BAR ========== */
.announcement-bar {
  background: var(--ink);
  color: var(--parchment);
  text-align: center;
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========== NAVIGATION ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--parchment-dark);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.7; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--rust);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--rust);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--rust); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-search-btn,
.nav-cart {
  color: var(--ink-light);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  position: relative;
}

.nav-search-btn:hover,
.nav-cart:hover { color: var(--rust); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--rust);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Search Overlay */
.search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--parchment-dark);
  padding: var(--space-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.search-overlay.active { display: block; }

.search-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-sm);
}

.search-inner input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--parchment-dark);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--parchment);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.search-inner input:focus { border-color: var(--rust); }

.search-close {
  font-size: 1.5rem;
  color: var(--ink-muted);
  padding: 0 0.5rem;
}

.search-results {
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-radius: 4px;
  transition: background 0.2s;
}

.search-result-item:hover { background: var(--parchment); }

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-item .sr-info { flex: 1; }
.search-result-item .sr-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}
.search-result-item .sr-price {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--rust);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #2c2418 0%, #3d3225 40%, #4a3f31 100%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: var(--space-xl) var(--space-md);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aged-gold);
  border: 1px solid var(--aged-gold);
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: italic;
  color: var(--aged-gold);
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #b5a997;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--aged-gold);
  margin: var(--space-lg) auto;
  opacity: 0.5;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: all 0.25s ease;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--rust);
  color: white;
  border: 2px solid var(--rust);
}

.btn-primary:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border: 1.5px solid var(--parchment-dark);
}

.btn-outline:hover {
  background: var(--parchment);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: var(--parchment);
  border: 2px solid var(--ink);
}

.btn-dark:hover {
  background: var(--ink-light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.95rem;
}

/* ========== SECTION STYLES ========== */
.section {
  padding: var(--space-2xl) var(--space-md);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-header .overline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 500px;
  margin: var(--space-sm) auto 0;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--rust);
  margin: var(--space-sm) auto 0;
}

/* Alt background */
.section-alt {
  background: var(--cream);
}

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

.section-dark .section-header h2 { color: var(--parchment); }
.section-dark .section-header p { color: #b5a997; }

/* ========== PRODUCT CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  display: block;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 36, 24, 0.1);
  border-color: var(--parchment-dark);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--parchment-dark);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--rust);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.card-info {
  padding: var(--space-md);
}

.card-category {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.3rem 0 0.5rem;
  line-height: 1.3;
  color: var(--ink);
}

.card-pricing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-price {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.card-compare-price {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

/* ========== CATEGORY CARDS ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.category-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  padding: var(--space-lg) var(--space-md);
  border-radius: 3px;
  text-align: center;
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 36, 24, 0.08);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.category-card p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ========== BRAND STORY SECTION ========== */
.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.brand-story-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 3px;
  overflow: hidden;
}

.brand-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 3px;
  pointer-events: none;
}

.brand-story-text .overline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: var(--space-sm);
}

.brand-story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.brand-story-text p {
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
  font-size: 1.02rem;
}

/* ========== TESTIMONIAL / QUOTE ========== */
.quote-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: var(--ink);
  color: var(--parchment);
  position: relative;
}

.quote-section::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--aged-gold);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  max-width: 700px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aged-gold);
}

/* ========== SHOP PAGE ========== */
.shop-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.shop-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.shop-header p {
  color: var(--ink-muted);
  margin-top: var(--space-xs);
  font-size: 1.05rem;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-md);
}

.filter-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--parchment-dark);
  border-radius: 2px;
  color: var(--ink-muted);
  transition: all 0.2s;
}

.filter-link:hover,
.filter-link.active {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.product-image-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
  background: var(--parchment-dark);
}

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

.product-info .breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
}

.product-info .breadcrumbs a { transition: color 0.2s; }
.product-info .breadcrumbs a:hover { color: var(--rust); }

.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.product-price {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.compare-price {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.savings-badge {
  background: #f0e6d6;
  color: var(--rust);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.product-description {
  font-size: 1.02rem;
  color: var(--ink-light);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.product-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.product-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--parchment-dark);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-lg);
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--parchment-dark);
  font-size: 1.2rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: var(--cream);
}

.quantity-selector button:hover { background: var(--parchment-dark); }

.quantity-selector input {
  width: 56px;
  height: 44px;
  border: 1px solid var(--parchment-dark);
  border-left: none;
  border-right: none;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: white;
}

.add-to-cart-btn {
  width: 100%;
  padding: 1rem;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
}

.add-to-cart-btn:hover {
  background: var(--rust);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3);
}

.product-features {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--parchment-dark);
  padding-top: var(--space-lg);
}

.product-features .feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--sage);
}

/* ========== CART PAGE ========== */
.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.cart-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.cart-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.cart-empty h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.cart-empty p {
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
}

.cart-items { margin-bottom: var(--space-xl); }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--parchment-dark);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--parchment-dark);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.cart-item-info .cart-item-price {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--rust);
  margin-top: 0.2rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--parchment-dark);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--cream);
}

.cart-item-qty span {
  font-family: var(--font-ui);
  font-weight: 600;
  width: 24px;
  text-align: center;
}

.cart-item-remove {
  color: var(--ink-muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  transition: color 0.2s;
}

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

.cart-summary {
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  padding: var(--space-lg);
  border-radius: 3px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.cart-summary-row.total {
  border-top: 2px solid var(--ink);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-summary .btn {
  width: 100%;
  margin-top: var(--space-md);
}

/* ========== CHECKOUT PAGE ========== */
.checkout-page {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.checkout-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--parchment-dark);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--rust);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ========== ABOUT PAGE ========== */
.about-hero {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: var(--ink);
  color: var(--parchment);
  position: relative;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.about-hero p {
  color: #b5a997;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-md);
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  color: var(--ink-light);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.value-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  border-radius: 3px;
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ========== CONTACT PAGE ========== */
.contact-page {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.contact-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.contact-page .contact-sub {
  text-align: center;
  color: var(--ink-muted);
  margin-bottom: var(--space-xl);
  font-size: 1.05rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-info-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--cream);
  border: 1px solid var(--parchment-dark);
  border-radius: 3px;
}

.contact-info-item h3 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.3rem;
}

.contact-info-item p {
  font-size: 0.95rem;
  color: var(--ink-light);
}

/* ========== SUCCESS PAGE ========== */
.success-page {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

.success-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.success-page .order-number {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

/* ========== 404 ========== */
.page-404 {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: var(--parchment-dark);
  line-height: 1;
}

.page-404 p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: var(--space-md) 0 var(--space-lg);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}

.footer-texture {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.footer-logo .logo-text { color: var(--parchment); font-size: 1.4rem; }
.footer-logo .logo-sub { color: var(--aged-gold); }

.footer-tagline {
  font-size: 0.95rem;
  color: #8a7e70;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7e70;
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--aged-gold);
  border-color: var(--aged-gold);
}

.footer-links-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aged-gold);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: #8a7e70;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--parchment); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #5a5249;
  letter-spacing: 0.03em;
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: #3d3225;
  position: relative;
}

.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: var(--space-xs);
}

.newsletter-section p {
  color: #b5a997;
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form input::placeholder { color: #8a7e70; }
.newsletter-form input:focus { border-color: var(--aged-gold); }

/* ========== TOAST NOTIFICATION ========== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink);
  color: var(--parchment);
  padding: 1rem 1.5rem;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(120%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.toast.show { transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--parchment-dark);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2.2rem; }

  .brand-story { grid-template-columns: 1fr; }
  .brand-story-image { max-height: 300px; }

  .product-detail-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-lg); }

  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; }

  .form-row { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .card-info { padding: var(--space-sm); }
  .card-title { font-size: 0.9rem; }
  .card-price { font-size: 0.9rem; }
  .hero { min-height: 60vh; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
