/* ============================================================
   Nowahala Hats — Stylesheet v2 (Dynamic & Fun)
   ============================================================ */

:root {
  --color-primary: #8B6914;
  --color-primary-dark: #6B5010;
  --color-secondary: #C4956A;
  --color-accent: #E8A87C;
  --color-pop: #E85D75;
  --color-dark: #1A1714;
  --color-text: #3A3328;
  --color-text-light: #7A7062;
  --color-bg: #FAF7F2;
  --color-bg-warm: #F3EBE0;
  --color-white: #FFFFFF;
  --color-border: #E8E0D8;
  --color-success: #6B8E5A;
  --color-error: #C25550;
  --color-cream: #F5EDE3;
  --color-sage: #B8C5B2;
  --color-terracotta: #C47D5A;
  --color-rose: #D4A5A5;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 2px 8px rgba(44, 36, 25, 0.06);
  --shadow-md: 0 4px 20px rgba(44, 36, 25, 0.1);
  --shadow-lg: 0 12px 40px rgba(44, 36, 25, 0.14);
  --shadow-xl: 0 20px 60px rgba(44, 36, 25, 0.18);
  --shadow-glow: 0 0 40px rgba(139, 105, 20, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-dark);
}

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* --- Gradient Text Utility --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-terracotta), var(--color-pop));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(139, 105, 20, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-terracotta));
  color: var(--color-white);
}
.btn-secondary:hover { transform: translateY(-3px) scale(1.02); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.02);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 18px 42px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 224, 216, 0.5);
  transition: all var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1320px; margin: 0 auto; padding: 0 28px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-terracotta));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
  transition: transform var(--transition-bounce);
}
.nav-logo:hover .nav-logo-icon { transform: rotate(-12deg) scale(1.1); }
.nav-logo-text {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--color-dark);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 0.92rem; font-weight: 500; color: var(--color-text);
  cursor: pointer; padding: 8px 18px; border-radius: var(--radius-full);
  transition: all var(--transition);
}
.nav-link:hover { background: var(--color-bg-warm); color: var(--color-primary); }
.nav-link.active { background: var(--color-primary); color: white; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cart-btn {
  position: relative; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all var(--transition); font-size: 1.2rem; cursor: pointer;
  background: var(--color-bg-warm);
}
.nav-cart-btn:hover { background: var(--color-primary); transform: scale(1.08); }
.nav-cart-btn:hover::after { content: ''; }
.cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--color-pop); color: white;
  font-size: 0.65rem; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-bg);
  animation: badgePop 0.3s var(--transition-bounce);
}
@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; padding: 4px 0;
}
.mobile-menu-btn span {
  width: 100%; height: 2.5px; background: var(--color-dark);
  border-radius: 2px; transition: all var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--color-bg); padding: 32px 28px; z-index: 999;
  flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 1.3rem; padding: 18px 0; border-bottom: 1px solid var(--color-border); border-radius: 0; }

/* ============================================================
   HERO — Full Impact
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  margin-top: 76px;
  background: var(--color-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(196, 125, 90, 0.3), transparent),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(212, 165, 165, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 50% 20%, rgba(139, 105, 20, 0.2), transparent),
    var(--color-dark);
}
/* Floating decorative blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 400px; height: 400px; top: -100px; right: -50px;
  background: var(--color-terracotta);
  animation-duration: 10s;
}
.hero-blob-2 {
  width: 300px; height: 300px; bottom: -80px; left: 10%;
  background: var(--color-rose);
  animation-duration: 12s; animation-delay: 2s;
}
.hero-blob-3 {
  width: 250px; height: 250px; top: 30%; left: -60px;
  background: var(--color-primary);
  animation-duration: 9s; animation-delay: 4s;
}
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 80px 28px;
}
.hero-content { animation: heroFadeIn 1s ease-out; }
@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--color-accent);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: 4.5rem; font-weight: 700; line-height: 1.05;
  margin-bottom: 24px; color: var(--color-white);
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--color-accent), var(--color-terracotta), var(--color-rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem; color: rgba(255, 255, 255, 0.65);
  line-height: 1.8; margin-bottom: 40px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700;
  color: var(--color-white); line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Hero image collage */
.hero-collage {
  position: relative; height: 560px;
  animation: heroCollageIn 1s ease-out 0.3s both;
}
@keyframes heroCollageIn {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}
.collage-item {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-bounce);
}
.collage-item:hover { transform: scale(1.04) rotate(-1deg); z-index: 5; }
.collage-item-1 { width: 55%; height: 65%; top: 5%; left: 0; z-index: 3; border-radius: var(--radius-xl); }
.collage-item-2 { width: 45%; height: 45%; top: 0; right: 0; z-index: 2; }
.collage-item-3 { width: 45%; height: 45%; bottom: 0; right: 5%; z-index: 1; }
.collage-item-4 {
  width: 100px; height: 100px; bottom: 15%; left: 45%;
  z-index: 4; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: white;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  text-align: center; line-height: 1.2; padding: 10px;
  animation: floatBounce 3s ease-in-out infinite;
  cursor: default;
}
@keyframes floatBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* ============================================================
   MARQUEE BANNER
   ============================================================ */
.marquee {
  background: var(--color-primary);
  color: white;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: flex;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
.marquee-content {
  display: flex; align-items: center; gap: 0;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding-right: 0;
}
.marquee-item { padding: 0 32px; flex-shrink: 0; }
.marquee-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 12px;
}
.section-title { font-size: 3rem; margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.1rem; color: var(--color-text-light);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* Wave divider */
.wave-divider {
  position: absolute; left: 0; right: 0; height: 80px;
  overflow: hidden; line-height: 0;
}
.wave-divider.top { top: -1px; }
.wave-divider.bottom { bottom: -1px; }
.wave-divider svg { width: 100%; height: 100%; }

/* ============================================================
   CATEGORY CARDS — Dramatic Hover
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  cursor: pointer; aspect-ratio: 3 / 4;
  transition: transform var(--transition-bounce), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}
.category-card-bg {
  position: absolute; inset: 0;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover .category-card-bg { transform: scale(1.12); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.8) 0%, rgba(26, 23, 20, 0.1) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 36px;
  transition: background var(--transition);
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(26, 23, 20, 0.85) 0%, rgba(26, 23, 20, 0.2) 60%, transparent 100%);
}
.category-card-name {
  font-family: var(--font-heading); font-size: 2rem; color: white; margin-bottom: 4px;
  transform: translateY(8px); transition: transform var(--transition);
}
.category-card:hover .category-card-name { transform: translateY(0); }
.category-card-count {
  font-size: 0.88rem; color: rgba(255,255,255,0.7);
  transform: translateY(8px); opacity: 0; transition: all var(--transition);
}
.category-card:hover .category-card-count { transform: translateY(0); opacity: 1; }
.category-card-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
  transform: translate(-8px, 8px); opacity: 0;
  transition: all var(--transition-bounce);
}
.category-card:hover .category-card-arrow { transform: translate(0,0); opacity: 1; }

/* ============================================================
   PRODUCT CARDS — Dynamic Grid
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}
/* Featured layout: first and every 5th card spans wider */
.products-grid-featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.products-grid-featured .product-card { grid-column: span 4; }
.products-grid-featured .product-card:nth-child(1) { grid-column: span 5; }
.products-grid-featured .product-card:nth-child(2) { grid-column: span 7; }
.products-grid-featured .product-card:nth-child(3) { grid-column: span 7; }
.products-grid-featured .product-card:nth-child(4) { grid-column: span 5; }

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: all var(--transition-bounce);
  cursor: pointer;
  border: 1px solid rgba(232, 224, 216, 0.6);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.product-card-image {
  position: relative; aspect-ratio: 1; overflow: hidden;
}
.product-card-image .placeholder-img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image .placeholder-img {
  transform: scale(1.08);
}
.product-card-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 23, 20, 0.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.product-card:hover .product-card-overlay { opacity: 1; }
.product-card-overlay .btn {
  transform: translateY(16px) scale(0.9);
  transition: all var(--transition-bounce);
}
.product-card:hover .product-card-overlay .btn {
  transform: translateY(0) scale(1);
}
.product-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 14px; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--radius-full); z-index: 2;
}
.product-badge.new { background: var(--color-success); color: white; }
.product-badge.bestseller {
  background: linear-gradient(135deg, var(--color-primary), var(--color-terracotta));
  color: white;
}
.product-badge.limited { background: var(--color-pop); color: white; }
.product-card-info { padding: 22px 24px 24px; }
.product-card-category {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-terracotta); margin-bottom: 6px;
}
.product-card-name {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600;
  color: var(--color-dark); margin-bottom: 10px;
  transition: color var(--transition);
}
.product-card:hover .product-card-name { color: var(--color-primary); }
.product-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-price {
  font-size: 1.15rem; font-weight: 700; color: var(--color-primary);
}
.product-card-colors { display: flex; gap: 5px; }
.color-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--color-border);
  transition: transform var(--transition-bounce);
}
.color-dot:hover { transform: scale(1.3); }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-page { padding-top: 76px; }
.products-hero {
  background: var(--color-dark); padding: 80px 0 70px; text-align: center;
  position: relative; overflow: hidden;
}
.products-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 70%, rgba(196, 125, 90, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(139, 105, 20, 0.15), transparent);
}
.products-hero h1 { font-size: 3.2rem; margin-bottom: 12px; color: white; position: relative; }
.products-hero p { color: rgba(255,255,255,0.6); font-size: 1.1rem; position: relative; }
.filter-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 40px 0 8px; flex-wrap: wrap;
}
.filter-btn {
  padding: 12px 28px; font-size: 0.88rem; font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  color: var(--color-text); background: var(--color-white);
  transition: all var(--transition-bounce); cursor: pointer;
}
.filter-btn:hover {
  border-color: var(--color-primary); color: var(--color-primary);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: var(--color-primary); color: white;
  box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
}
.products-count {
  text-align: center; color: var(--color-text-light);
  font-size: 0.88rem; margin-bottom: 36px; margin-top: 16px;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { padding-top: 76px; }
.breadcrumb {
  padding: 24px 0; font-size: 0.85rem; color: var(--color-text-light);
}
.breadcrumb span { cursor: pointer; transition: color var(--transition); }
.breadcrumb span:hover { color: var(--color-primary); }
.breadcrumb .separator { margin: 0 10px; cursor: default; opacity: 0.4; }
.breadcrumb .separator:hover { color: var(--color-text-light); }
.breadcrumb .current { color: var(--color-text); font-weight: 600; cursor: default; }
.breadcrumb .current:hover { color: var(--color-text); }
.detail-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 72px; padding-bottom: 100px;
}
.gallery { position: sticky; top: 100px; }
.gallery-main {
  border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 14px; aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
}
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery-thumb {
  border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition-bounce);
  opacity: 0.5;
}
.gallery-thumb:hover { opacity: 0.8; transform: scale(1.05); }
.gallery-thumb.active {
  border-color: var(--color-primary); opacity: 1;
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
}
.detail-info { padding-top: 12px; }
.detail-category {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-terracotta); margin-bottom: 8px;
}
.detail-title { font-size: 2.6rem; margin-bottom: 16px; }
.detail-price {
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-terracotta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 24px;
}
.detail-description {
  color: var(--color-text-light); line-height: 1.85;
  margin-bottom: 36px; font-size: 1.02rem;
}
.option-group { margin-bottom: 30px; }
.option-label {
  font-size: 0.86rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 14px; color: var(--color-dark);
}
.option-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.option-btn {
  padding: 12px 24px; border: 2px solid var(--color-border);
  border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition-bounce); cursor: pointer;
  background: var(--color-white); color: var(--color-text);
}
.option-btn:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.option-btn.active {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(139, 105, 20, 0.25);
}
.color-option-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--color-border); padding: 0; cursor: pointer;
  transition: all var(--transition-bounce); position: relative;
}
.color-option-btn:hover { transform: scale(1.15); border-color: var(--color-text-light); }
.color-option-btn.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-primary);
  transform: scale(1.1);
}
.quantity-selector {
  display: inline-flex; align-items: center;
  border: 2px solid var(--color-border); border-radius: var(--radius-full);
  overflow: hidden; background: var(--color-white);
}
.qty-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--color-text);
  transition: all var(--transition); cursor: pointer; background: transparent; border: none;
}
.qty-btn:hover { background: var(--color-bg-warm); color: var(--color-primary); }
.qty-value { width: 50px; text-align: center; font-weight: 700; font-size: 1.05rem; }
.add-to-cart-row { display: flex; gap: 16px; margin-top: 36px; }
.add-to-cart-btn { flex: 1; padding: 18px 36px; font-size: 1.05rem; }
.detail-features {
  margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--color-border);
}
.detail-features h3 { font-size: 1.15rem; margin-bottom: 20px; }
.feature-list { display: grid; gap: 14px; }
.feature-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem; color: var(--color-text-light);
}
.feature-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(107, 142, 90, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-success); font-size: 0.85rem; flex-shrink: 0;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page { padding-top: 76px; min-height: 80vh; }
.cart-header { padding: 56px 0 32px; }
.cart-header h1 { font-size: 2.6rem; }
.cart-layout {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 48px; padding-bottom: 100px;
}
.cart-items { display: flex; flex-direction: column; gap: 20px; }
.cart-item {
  display: grid; grid-template-columns: 130px 1fr auto;
  gap: 28px; padding: 28px;
  background: var(--color-white); border-radius: var(--radius-xl);
  border: 1px solid var(--color-border); align-items: center;
  transition: all var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.cart-item-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; }
.cart-item-info h3 { font-size: 1.15rem; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 14px; }
.cart-item-actions { display: flex; align-items: center; gap: 16px; }
.cart-item-price { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); text-align: right; }
.cart-item-remove {
  font-size: 0.85rem; color: var(--color-pop); cursor: pointer;
  transition: opacity var(--transition); background: none; border: none; font-weight: 600;
}
.cart-item-remove:hover { opacity: 0.6; }
.cart-summary {
  background: var(--color-white); border-radius: var(--radius-xl);
  border: 1px solid var(--color-border); padding: 36px;
  height: fit-content; position: sticky; top: 100px;
}
.cart-summary h2 { font-size: 1.4rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 0.95rem; }
.summary-row.total {
  font-size: 1.3rem; font-weight: 700; color: var(--color-dark);
  margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--color-border);
}
.checkout-btn { width: 100%; margin-top: 28px; padding: 18px; font-size: 1.05rem; }
.cart-empty { text-align: center; padding: 100px 0; }
.cart-empty-icon { font-size: 5rem; margin-bottom: 24px; opacity: 0.2; }
.cart-empty h2 { font-size: 2rem; margin-bottom: 12px; }
.cart-empty p { color: var(--color-text-light); margin-bottom: 36px; font-size: 1.05rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page { padding-top: 76px; }
.about-hero {
  background: var(--color-dark); padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(196, 125, 90, 0.2), transparent);
}
.about-hero h1 { font-size: 3.2rem; margin-bottom: 16px; color: white; position: relative; }
.about-hero p { color: rgba(255,255,255,0.6); font-size: 1.1rem; max-width: 600px; margin: 0 auto; position: relative; }
.about-story { padding: 100px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-content h2 { font-size: 2.4rem; margin-bottom: 24px; }
.story-content p { color: var(--color-text-light); line-height: 1.85; margin-bottom: 18px; font-size: 1.02rem; }
.story-image { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 72px 0; }
.value-card {
  text-align: center; padding: 48px 28px;
  background: var(--color-white); border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-bounce);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.value-icon {
  width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 105, 20, 0.1), rgba(196, 125, 90, 0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 24px;
}
.value-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.value-card p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.75; }

/* Contact */
.contact-section { padding: 100px 0; background: var(--color-white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; max-width: 1060px; margin: 0 auto;
}
.contact-info h2 { font-size: 2.2rem; margin-bottom: 16px; }
.contact-info > p { color: var(--color-text-light); line-height: 1.85; margin-bottom: 36px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 0.95rem; }
.contact-detail-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-bg-warm); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.85rem; font-weight: 700; color: var(--color-dark); }
.form-input, .form-textarea {
  padding: 14px 18px; border: 2px solid var(--color-border);
  border-radius: var(--radius-md); font-size: 0.95rem;
  transition: all var(--transition); background: var(--color-bg); color: var(--color-text);
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--color-primary); background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(139, 105, 20, 0.08);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   NEWSLETTER — Full Impact
   ============================================================ */
.newsletter {
  background: var(--color-dark); padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(232, 93, 117, 0.15), transparent),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(139, 105, 20, 0.2), transparent);
}
.newsletter h2 {
  font-family: var(--font-heading); font-size: 2.5rem;
  color: var(--color-white); margin-bottom: 14px; position: relative;
}
.newsletter p {
  color: rgba(255, 255, 255, 0.6); margin-bottom: 36px;
  font-size: 1.05rem; position: relative;
}
.newsletter-form {
  display: flex; gap: 12px; max-width: 500px; margin: 0 auto; position: relative;
}
.newsletter-input {
  flex: 1; padding: 16px 22px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08); color: white; font-size: 0.95rem;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-input:focus { outline: none; border-color: var(--color-accent); background: rgba(255, 255, 255, 0.12); }
.newsletter-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-terracotta));
  color: white; border-radius: var(--radius-full); font-weight: 700;
  transition: all var(--transition-bounce); white-space: nowrap;
}
.newsletter-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(139, 105, 20, 0.4); }
.newsletter-success { color: var(--color-success); font-size: 0.95rem; margin-top: 16px; position: relative; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--color-white); padding: 36px;
  border-radius: var(--radius-xl); border: 1px solid var(--color-border);
  transition: all var(--transition-bounce); position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 20px; right: 28px;
  font-family: var(--font-heading); font-size: 4rem;
  color: var(--color-primary); opacity: 0.1; line-height: 1;
}
.testimonial-stars { color: #F0A500; margin-bottom: 18px; font-size: 1rem; letter-spacing: 3px; }
.testimonial-text {
  font-size: 1rem; line-height: 1.75; color: var(--color-text);
  margin-bottom: 24px;
}
.testimonial-author { font-weight: 700; font-size: 0.92rem; color: var(--color-dark); }
.testimonial-role { font-size: 0.8rem; color: var(--color-text-light); margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-dark); color: rgba(255, 255, 255, 0.6); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; margin-top: 14px; max-width: 300px; }
.footer-heading {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  color: var(--color-white); margin-bottom: 20px;
}
.footer-link {
  display: block; font-size: 0.88rem; margin-bottom: 12px;
  transition: all var(--transition); cursor: pointer;
}
.footer-link:hover { color: var(--color-accent); transform: translateX(4px); }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.social-link {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  transition: all var(--transition-bounce); cursor: pointer;
}
.social-link:hover {
  background: var(--color-primary); border-color: var(--color-primary);
  color: white; transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.82rem;
}

/* ============================================================
   PLACEHOLDER IMAGES
   ============================================================ */
.placeholder-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.7);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
}
.placeholder-img .ph-icon { font-size: 2.2rem; opacity: 0.5; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--color-dark); color: white;
  padding: 18px 28px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 12px;
  z-index: 2000; animation: toastIn 0.4s var(--transition-bounce);
  font-size: 0.95rem; font-weight: 500;
}
.toast-icon { color: var(--color-success); font-size: 1.3rem; }
@keyframes toastIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Related */
.related-section { padding: 100px 0; background: var(--color-bg-warm); }

/* Scroll Top */
.scroll-top-btn {
  position: fixed; bottom: 32px; right: 32px;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow-lg);
  cursor: pointer; transition: all var(--transition-bounce);
  z-index: 900; opacity: 0; pointer-events: none;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { transform: translateY(-4px) scale(1.08); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .hero-container { gap: 40px; }
  .hero-collage { height: 440px; }
  .detail-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .products-grid-featured .product-card { grid-column: span 6; }
  .products-grid-featured .product-card:nth-child(1),
  .products-grid-featured .product-card:nth-child(2),
  .products-grid-featured .product-card:nth-child(3),
  .products-grid-featured .product-card:nth-child(4) { grid-column: span 6; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { min-height: auto; }
  .hero-container { grid-template-columns: 1fr; gap: 48px; padding: 48px 28px 64px; }
  .hero-title { font-size: 2.8rem; }
  .hero-collage { height: 360px; }
  .hero-stats { gap: 32px; }
  .hero-stat-number { font-size: 2rem; }
  .section { padding: 80px 0; }
  .section-title { font-size: 2.2rem; }
  .categories-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .category-card { aspect-ratio: 16 / 10; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .products-grid-featured { display: grid; grid-template-columns: 1fr 1fr; }
  .products-grid-featured .product-card,
  .products-grid-featured .product-card:nth-child(1),
  .products-grid-featured .product-card:nth-child(2),
  .products-grid-featured .product-card:nth-child(3),
  .products-grid-featured .product-card:nth-child(4) { grid-column: span 1; }
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { position: static; }
  .detail-title { font-size: 2rem; }
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 90px 1fr; gap: 16px; }
  .cart-item-price { grid-column: 2; text-align: left; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-image { aspect-ratio: 16 / 10; order: -1; }
  .values-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .products-hero h1 { font-size: 2.2rem; }
  .marquee-item { padding: 0 20px; }
  .collage-item-4 { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-collage { height: 280px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card-info { padding: 14px 16px 16px; }
  .product-card-name { font-size: 0.95rem; }
  .gallery-thumbs { gap: 8px; }
  .add-to-cart-row { flex-direction: column; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 10px 18px; font-size: 0.82rem; }
  .section-title { font-size: 1.8rem; }
}
