/* ==========================================================================
   Q&S 甜點工作室 - DUBAI CHOCOLATE Q-CAKE DESIGN SYSTEM
   Exact Reference Poster Aesthetics & Palette
   ========================================================================== */

:root {
  /* Colors from Reference Posters */
  --color-olive-dark: #23341e;     /* Deep Olive / Forest Green */
  --color-olive-main: #304529;     /* Primary Olive Green */
  --color-olive-light: #465c3b;
  --color-cream-bg: #f6f0e6;       /* Warm Marble Beige */
  --color-cream-card: #ffffff;
  --color-cocoa: #32231b;          /* Dark Chocolate Brown */
  --color-gold: #c7a35c;           /* Metallic Gold */
  --color-gold-light: #e6c888;
  --color-gold-dark: #9e7b36;
  --color-text-main: #2b241e;
  --color-text-muted: #6e645a;

  /* Gradients */
  --gradient-olive: linear-gradient(135deg, #385230 0%, #21311b 100%);
  --gradient-gold: linear-gradient(135deg, #d8b46d 0%, #b38b3f 100%);
  --gradient-cream: linear-gradient(180deg, #f8f3eb 0%, #ede3d3 100%);

  /* Fonts */
  --font-serif: 'Noto Serif TC', Georgia, serif;
  --font-display: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --font-sans: 'Noto Sans TC', -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(35, 52, 30, 0.08);
  --shadow-md: 0 10px 25px rgba(35, 52, 30, 0.15);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.22);
  --shadow-gold: 0 8px 20px rgba(199, 163, 92, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

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

/* Section Header */
.section-header {
  margin-bottom: 48px;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--color-gold-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--color-olive-dark);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-dark-green {
  background: var(--gradient-olive);
  color: var(--color-gold-light);
  box-shadow: 0 6px 20px rgba(35, 52, 30, 0.35);
  border: 1px solid var(--color-gold);
}

.btn-dark-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(35, 52, 30, 0.5);
  background: var(--color-olive-dark);
}

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

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-cocoa);
}

.btn-block { width: 100%; }

/* Announcement Bar */
.announcement-bar {
  background: var(--color-olive-dark);
  color: var(--color-gold-light);
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(199, 163, 92, 0.3);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.badge-tag {
  background: var(--gradient-gold);
  color: var(--color-cocoa);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

.announcement-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.7;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 240, 230, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(48, 69, 41, 0.12);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-olive-dark);
  cursor: pointer;
}

/* Logo (Exact Poster Style) */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-qs {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-olive-dark);
  letter-spacing: 1px;
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* Navigation Menu */
.main-nav .nav-list {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 4px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-olive-main);
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: #fff;
  border: 1px solid rgba(48, 69, 41, 0.15);
  font-size: 1.1rem;
  color: var(--color-olive-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-badge, .cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-gold-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO SECTION (Poster Match) */
.hero-section {
  background: var(--gradient-cream);
  padding: 60px 0 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 60px;
}

.badge-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.pill-badge {
  background: var(--color-olive-dark);
  color: var(--color-gold-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-badge-gold {
  background: var(--gradient-gold);
  color: var(--color-cocoa);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.brand-sub-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-gold-dark);
  letter-spacing: 2px;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--color-olive-dark);
  line-height: 1.15;
  margin: 6px 0;
}

.flavor-line {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-cocoa);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.social-pills-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.social-pill:hover {
  transform: translateY(-2px);
}

.line-pill {
  background: #00b900;
  color: #fff;
}

.ig-pill {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
}

/* Poster Card with Real Photo Insets */
.hero-poster-wrapper {
  position: relative;
}

.poster-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}

.poster-main-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.photo-insets {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.inset-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.inset-circle:hover {
  transform: scale(1.15);
}

.inset-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Feature Bar */
.hero-feature-bar {
  background: var(--color-olive-dark);
  color: var(--color-gold-light);
  padding: 16px 0;
  border-top: 1px solid var(--color-gold);
}

.feature-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 1.05rem;
  font-weight: 700;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-item i {
  color: var(--color-gold);
}

/* STORY SECTION */
.story-section {
  padding: 90px 0;
  background: var(--color-cream-bg);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.story-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-main-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.story-tag-box {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(35, 52, 30, 0.85);
  backdrop-filter: blur(6px);
  color: var(--color-gold-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
}

.story-text-box .story-lead {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-olive-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.story-paragraph-group p {
  color: var(--color-text-main);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.story-paragraph-group em {
  font-style: normal;
  color: var(--color-gold-dark);
  font-weight: 600;
}

.story-flavor-quote {
  background: #fff;
  border-left: 4px solid var(--color-gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.story-flavor-quote i {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 8px;
  display: block;
}

.story-flavor-quote p {
  font-size: 1.02rem;
  color: var(--color-olive-dark);
  line-height: 1.7;
  margin-bottom: 0;
}

.story-principles {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-principles li {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-olive-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-principles li i {
  color: var(--color-gold-dark);
}

.story-conclusion {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(48, 69, 41, 0.15);
}

.story-conclusion p {
  font-weight: 700;
  color: var(--color-olive-dark);
  margin-bottom: 8px;
}

.story-conclusion blockquote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-olive-dark);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.5;
}

/* ANATOMY SECTION */
.anatomy-section {
  padding: 90px 0;
  background: var(--color-olive-dark);
  color: #fff;
}

.anatomy-section .section-title { color: #fff; }
.anatomy-section .section-desc { color: var(--color-gold-light); }

.anatomy-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.anatomy-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(199, 163, 92, 0.3);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--transition-fast);
}

.anatomy-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.09);
  border-color: var(--color-gold);
}

.card-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.anatomy-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}

.anatomy-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* PRODUCTS SECTION */
.products-section {
  padding: 90px 0;
  background: var(--color-cream-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(48, 69, 41, 0.1);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.badge-qs {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-olive-dark);
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-img-box {
  height: 250px;
  overflow: hidden;
  background: #f4ede4;
  cursor: pointer;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-olive-dark);
  margin-bottom: 8px;
  cursor: pointer;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.product-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-cream-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-olive-dark);
}

.add-btn {
  background: var(--color-olive-dark);
  color: var(--color-gold-light);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.add-btn:hover {
  background: var(--color-gold-dark);
  color: #fff;
}

/* REAL PHOTOS GALLERY SECTION */
.gallery-section {
  padding: 90px 0;
  background: #ede3d3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(35, 52, 30, 0.9) 100%);
  color: #fff;
}

.gallery-info h4 { font-size: 1rem; margin-bottom: 2px; }
.gallery-info span { font-size: 0.8rem; color: var(--color-gold-light); }

/* REVIEWS SECTION */
.reviews-section {
  padding: 90px 0;
  background: var(--color-cream-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.review-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stars { color: var(--color-gold-dark); margin-bottom: 12px; }
.review-card p { font-size: 0.98rem; color: var(--color-text-main); margin-bottom: 20px; line-height: 1.65; }

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

.avatar {
  width: 38px;
  height: 38px;
  background: var(--color-olive-dark);
  color: var(--color-gold);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author strong { display: block; font-size: 0.92rem; }
.author small { color: var(--color-text-muted); font-size: 0.78rem; }

/* FOOTER */
.site-footer {
  background: var(--color-olive-dark);
  color: #fff;
  padding-top: 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1.5fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .logo-qs { color: #fff; }
.footer-brand .logo-sub { color: var(--color-gold); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-top: 10px; }

.footer-social h4, .footer-notice h4 { color: var(--color-gold-light); font-size: 1.1rem; margin-bottom: 16px; }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-links a { color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 10px; font-weight: 600; }
.social-links a:hover { color: var(--color-gold); }

.footer-notice p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* MODALS & CART DRAWER */
.modal-overlay, .cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active, .cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 700px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

.modal-sm { max-width: 440px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.cart-drawer.active { right: 0; }

.cart-header {
  padding: 20px;
  background: var(--color-olive-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }

.cart-shipping-bar {
  background: var(--color-cream-bg);
  padding: 12px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.progress-bar {
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.cart-item { display: flex; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-title { font-weight: 700; font-size: 0.95rem; }
.cart-item-price { color: var(--color-olive-dark); font-weight: 700; }

.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { background: #eee; border: none; width: 24px; height: 24px; border-radius: 4px; cursor: pointer; }

.cart-footer { padding: 20px; background: var(--color-cream-bg); border-top: 1px solid rgba(0,0,0,0.08); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--color-text-muted); margin-bottom: 8px; }
.total-row { font-size: 1.15rem; font-weight: 700; color: var(--color-olive-dark); border-top: 1px dashed #ccc; padding-top: 8px; }

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-olive-dark);
  color: var(--color-gold-light);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 992px) {
  .hero-container, .story-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
  .mobile-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 84px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 84px);
    background: var(--color-cream-bg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
  }
  .main-nav.active { left: 0; }
  .nav-list { flex-direction: column; }
  .cart-drawer { width: 100%; right: -100%; }
}

/* ==========================================================================
   VIP LOYALTY CLUB & MARKETING STYLES
   ========================================================================== */

/* Header buttons for VIP & Spin Wheel */
.spin-btn {
  background: var(--gradient-gold) !important;
  color: #fff !important;
  border: none !important;
  position: relative;
}

.spin-btn i {
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ff4d4f;
  border-radius: 50%;
}

.user-btn {
  position: relative;
  background: rgba(35, 52, 30, 0.08) !important;
}

.user-tier-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--color-olive-dark);
  color: var(--color-gold-light);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  border: 1px solid var(--color-gold);
}

/* VIP Section Grid */
.vip-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-cream-bg) 0%, #efe7da 100%);
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.vip-card {
  background: var(--color-cream-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.vip-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.vip-card.featured {
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gradient-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.vip-card-header {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.vip-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.vip-card.bronze .vip-badge { background: #e0d0c0; color: #664422; }
.vip-card.silver .vip-badge { background: #e0e0e0; color: #444444; }
.vip-card.gold .vip-badge { background: var(--gradient-gold); color: #fff; }
.vip-card.diamond .vip-badge { background: linear-gradient(135deg, #2b2b2b 0%, #111111 100%); color: #e6c888; border: 1px solid #e6c888; }

.vip-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-olive-dark);
}

.vip-threshold {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.vip-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.vip-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.vip-benefits li i {
  color: var(--color-gold-dark);
  margin-top: 4px;
}

/* Modal Extensions */
.modal-lg {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border-radius: var(--radius-lg);
}

.modal-md {
  max-width: 520px;
  width: 95%;
}

.modal-sm {
  max-width: 420px;
}

/* VIP Member Portal Modal */
.user-portal-container {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portal-header {
  background: var(--color-olive-dark);
  color: #fff;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.user-avatar-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  border: 2px solid #fff;
}

.vip-status-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--color-gold-light);
  font-size: 0.82rem;
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid var(--color-gold);
  margin-top: 4px;
}

.portal-points-box {
  text-align: right;
  background: rgba(255,255,255,0.08);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
}

.portal-points-box .label { display: block; font-size: 0.78rem; color: #ccc; }
.portal-points-box .points-val { font-size: 1.6rem; font-weight: 700; color: var(--color-gold-light); }
.portal-points-box small { font-size: 0.72rem; color: #aaa; }

.portal-tabs {
  display: flex;
  background: var(--color-cream-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.portal-tabs .tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.portal-tabs .tab-btn.active {
  color: var(--color-olive-dark);
  border-bottom-color: var(--color-gold-dark);
  background: #fff;
}

.tab-content { display: none; padding: 28px; }
.tab-content.active { display: block; }

.vip-progress-container {
  background: #fcf9f2;
  border: 1px solid #eedcba;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.tier-bar {
  height: 10px;
  background: #e6dfd3;
  border-radius: 99px;
  overflow: hidden;
}

.tier-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.dashboard-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dash-widget {
  background: #fdfbf7;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 14px;
  align-items: center;
}

.dash-widget .icon {
  font-size: 1.5rem;
  color: var(--color-gold-dark);
}

.coupon-wallet-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 18px;
}

.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.coupon-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fffcf5 0%, #f6eee0 100%);
  border: 1px dashed var(--color-gold);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
}

/* History Orders Table */
.history-order-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  background: #faf8f5;
}

.history-order-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.history-order-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.history-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.btn-gold-sm {
  background: var(--gradient-gold);
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;

}

.btn-gold-sm:hover { opacity: 0.9; }

/* Referral Box */
.referral-box {
  padding: 30px 20px;
  background: #fdfaf3;
  border-radius: var(--radius-md);
  border: 1px solid #e8dcb8;
}

.referral-box .gift-icon { font-size: 3rem; margin-bottom: 10px; }

.referral-code-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px dashed var(--color-gold);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.referral-code-wrapper .code-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-olive-dark);
}

/* Security Panel */
.security-panel {
  background: #f5f8f4;
  border: 1px solid #cce0c8;
  padding: 24px;
  border-radius: var(--radius-md);
}

.sec-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sec-item {
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-olive-dark);
  border: 1px solid #d0e4cc;
}

/* Spin Wheel Modal */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 20px auto;
}

.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #ff4d4f;
  z-index: 10;
}

#wheelCanvas {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border: 6px solid var(--color-gold);
}

.spin-result-text {
  margin-top: 15px;
  font-weight: 700;
  color: var(--color-olive-dark);
  font-size: 1.1rem;
}

/* Checkout Detail Form Modal */
.checkout-form-header { margin-bottom: 20px; }

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

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

.checkout-vip-panel {
  background: #fbf7ee;
  border: 1px solid #e8dcbc;
  padding: 14px;
  border-radius: var(--radius-sm);
}

.vip-discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Switch Toggle Button */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider { background-color: var(--color-olive-dark); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.checkout-summary-box {
  background: #fafafa;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.summary-line.total-line {
  font-size: 1.1rem;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  margin-top: 8px;
}

.sec-notice {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 10px;
}

.success-vip-gain {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 8px;
  border-radius: 6px;
  font-weight: 700;
  margin: 12px 0;
}

