@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS VARIABLES (THEME TOKENS)
   ========================================================================== */
:root {
  /* Light Theme - Soft Luxury Boutique */
  --bg-main: hsl(35, 30%, 98%);
  --bg-secondary: hsl(35, 20%, 95%);
  --text-primary: hsl(220, 15%, 15%);
  --text-secondary: hsl(220, 10%, 40%);
  --accent-gold: hsl(43, 74%, 49%);
  --accent-gold-light: hsl(43, 70%, 90%);
  --accent-gold-hover: hsl(43, 80%, 42%);
  --danger-color: hsl(348, 83%, 47%);
  
  --glass-bg: hsla(0, 0%, 100%, 0.7);
  --glass-border: hsla(0, 0%, 100%, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
  /* Dark Theme - Midnight Champagne */
  --bg-main: hsl(220, 20%, 8%);
  --bg-secondary: hsl(220, 15%, 12%);
  --text-primary: hsl(35, 20%, 95%);
  --text-secondary: hsl(220, 10%, 70%);
  --accent-gold: hsl(43, 85%, 65%);
  --accent-gold-light: hsla(43, 85%, 65%, 0.15);
  --accent-gold-hover: hsl(43, 90%, 75%);
  --danger-color: hsl(348, 100%, 65%);
  
  --glass-bg: hsla(220, 20%, 12%, 0.6);
  --glass-border: hsla(0, 0%, 100%, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --card-bg: hsl(220, 18%, 14%);
  --card-border: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 4px; }

/* ==========================================================================
   UTILITY CLASSES & ANIMATIONS
   ========================================================================== */
.glass-card, .glass-header, .glass-modal, .glass-popup, .cart-sidebar {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ff8a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 hsla(348, 83%, 47%, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px hsla(348, 83%, 47%, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 hsla(348, 83%, 47%, 0); }
}

.pulse-anim { animation: pulse 2s infinite; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* CSS Entrance Animations (Reliable Fallback) */
.scroll-animate {
  opacity: 1;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

.scroll-animate.fade-in { 
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.scroll-animate.slide-up { 
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.scroll-animate.show {
  opacity: 1;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

/* Ticker */
.ticker-banner {
  background: linear-gradient(90deg, #111, #333);
  color: var(--accent-gold);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
}
.ticker-wrap {
  display: flex;
  min-width: 100%;
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
}
.ticker-item {
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  transition: var(--transition-normal);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.logo-text h1 {
  font-size: 1.5rem;
  line-height: 1;
}
.logo-text span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-family: 'Inter', sans-serif;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 50px;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  transition: var(--transition-fast);
}
.search-bar:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-light);
}
.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  margin-left: 8px;
  font-family: inherit;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  position: relative;
}
.icon-btn:hover {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger-color);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--glass-bg);
}

/* ==========================================================================
   HERO & PARALLAX SECTION
   ========================================================================== */
.hero {
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 85vh;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.btn-primary {
  background: var(--accent-gold);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px hsla(43, 74%, 49%, 0.3);
  transition: var(--transition-normal);
}
.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px hsla(43, 74%, 49%, 0.4);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
}
.feature-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}
.feature-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Parallax Hero Image Setup */
.hero-showcase {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax-layer {
  position: absolute;
  will-change: transform; /* optimization */
}

.layer-bg {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold-light) 0%, transparent 70%);
  z-index: 1;
}

.layer-img {
  z-index: 2;
  width: 100%;
  max-width: 400px;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 4px solid var(--glass-bg);
}

.layer-float {
  z-index: 3;
}
.float-1 { top: 20%; left: 5%; }
.float-2 { bottom: 20%; right: 5%; }

.glass-float-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.glass-float-card i { color: var(--accent-gold); }

/* ==========================================================================
   LIVE STREAM WIDGET
   ========================================================================== */
.live-stream-container {
  padding: 0 5%;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
.live-stream-widget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, hsla(348, 83%, 47%, 0.1), hsla(280, 50%, 20%, 0.1));
  border: 1px solid hsla(348, 83%, 47%, 0.3);
}

.live-stream-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-avatar-container { position: relative; }
.live-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--danger-color);
  object-fit: cover;
}
.live-badge-overlay {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger-color);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.live-stream-info h3 { font-size: 1.2rem; }
.live-stream-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-viewer-count {
  background: var(--danger-color);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.btn-watch-live {
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.btn-watch-live:hover {
  background: var(--danger-color);
  transform: scale(1.05);
}

/* ==========================================================================
   CATALOG SECTION & FILTER
   ========================================================================== */
.catalog-section { padding: 80px 5%; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { color: var(--text-secondary); }

.mobile-search { display: none; margin: 0 auto 30px auto; max-width: 400px; }

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.filter-btn:hover { background: var(--accent-gold-light); }
.filter-btn.active {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px hsla(43, 74%, 49%, 0.3);
}

.glass-select {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  padding: 10px 15px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--accent-gold-light);
}

.product-img-wrapper {
  position: relative;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.product-card:hover .product-card-img { transform: scale(1.1); }

.shopee-discount-badge {
  position: absolute; top: 0; right: 0;
  background: #ffdbde; color: #ee4d2d;
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 6px; z-index: 2;
  border-bottom-left-radius: 4px;
}
.shopee-promo-xtra {
  position: absolute; bottom: 0; left: 0;
  background: linear-gradient(90deg, #ffee00, #ffc107);
  color: #ee2c2c; font-size: 0.6rem; font-weight: 800;
  padding: 2px 6px; border-top-right-radius: 4px; z-index: 2; line-height: 1;
}
.product-fav-btn {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(5px);
  border: none; border-radius: 50%; width: 35px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-secondary); cursor: pointer;
  z-index: 10; transition: var(--transition-fast);
}
.product-fav-btn:hover { background: #fff; color: var(--danger-color); transform: scale(1.1); }
.product-fav-btn.active { color: var(--danger-color); background: #fff; }

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shopee-product-name {
  font-size: 0.85rem; margin-bottom: 5px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text-primary);
}
.shopee-mall-badge {
  background: #d0011b; color: white; font-size: 0.6rem;
  padding: 2px 4px; border-radius: 2px; margin-right: 4px; font-weight: bold;
}
.shopee-promo-tag {
  background: #ffeee8; color: #ee4d2d; font-size: 0.65rem;
  padding: 2px 6px; display: inline-block; margin-bottom: 5px;
  border: 1px solid #ee4d2d; border-radius: 2px; font-weight: 600;
}
.shopee-price-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; margin-top: auto;
}
.shopee-price { color: #ee4d2d; font-size: 1.1rem; font-weight: 700; }
.shopee-sold { font-size: 0.7rem; color: var(--text-secondary); }
.shopee-footer-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.65rem; color: var(--text-secondary); margin-top: 5px;
}
.shopee-shipping { color: #00bfa5; }
.shopee-location { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.shopee-cart-btn {
  background: none; border: 1px solid #ee4d2d; border-radius: 50%;
  color: #ee4d2d; font-size: 0.8rem; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center; transition: var(--transition-fast);
}
.shopee-cart-btn:hover { background: #ee4d2d; color: white; transform: scale(1.1); }

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--card-border);
  transition: var(--transition-fast);
  text-align: center;
}
.btn-secondary:hover { background: var(--card-border); }

.btn-add-cart {
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: var(--transition-fast);
  display: flex; justify-content: center; align-items: center; gap: 5px;
}
.btn-add-cart:hover {
  background: var(--accent-gold);
  color: #fff;
}

/* ==========================================================================
   CART SIDEBAR SYSTEM
   ========================================================================== */
.cart-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: var(--transition-normal);
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed; top: 0; right: -400px;
  width: 100%; max-width: 400px; height: 100%;
  z-index: 1000;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.cart-sidebar.show { transform: translateX(-400px); }

.cart-header {
  padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--glass-border);
}
.cart-close-btn {
  background: transparent; color: var(--text-primary);
  font-size: 1.5rem; border: none; cursor: pointer;
}

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

.cart-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; color: var(--text-secondary);
  font-size: 1.2rem;
}
.cart-empty-state i { font-size: 3rem; margin-bottom: 15px; color: var(--card-border); }

.cart-item {
  display: flex; gap: 15px;
  background: var(--bg-main); padding: 10px;
  border-radius: var(--radius-md); border: 1px solid var(--card-border);
}
.cart-item-img {
  width: 80px; height: 100px; border-radius: var(--radius-sm); object-fit: cover;
}
.cart-item-details {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.cart-item-title { font-size: 0.95rem; font-weight: 600; line-height: 1.2; }
.cart-item-price { font-weight: 700; color: var(--accent-gold); font-size: 0.9rem;}

.cart-item-actions { display: flex; justify-content: space-between; align-items: center;}
.qty-control { display: flex; align-items: center; gap: 10px; background: var(--bg-secondary); border-radius: 4px; padding: 2px 8px;}
.qty-btn { background: transparent; border: none; font-size: 1rem; cursor: pointer; color: var(--text-primary);}
.cart-item-remove { color: var(--danger-color); background: transparent; border: none; cursor: pointer; font-size: 1.1rem;}

.cart-footer {
  padding: 20px; border-top: 1px solid var(--glass-border); background: var(--bg-main);
}
.cart-total-row {
  display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 15px;
}
.btn-checkout-cart {
  width: 100%; background: var(--accent-gold); color: #fff; border: none;
  padding: 15px; border-radius: 50px; font-weight: 700; font-size: 1.1rem;
  transition: var(--transition-fast); display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-checkout-cart:hover { background: var(--accent-gold-hover); transform: translateY(-2px);}
.whatsapp-btn { background: #25D366; }
.whatsapp-btn:hover { background: #128C7E; }

/* ==========================================================================
   MODAL & TOAST NOTIFICATIONS
   ========================================================================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
  z-index: 1000; display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: var(--transition-normal);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-container {
  width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto;
  border-radius: var(--radius-lg); position: relative;
  display: grid; grid-template-columns: 1fr 1.2fr;
  transform: translateY(30px) scale(0.95); transition: var(--transition-normal);
}
.modal-overlay.show .modal-container { transform: translateY(0) scale(1); }

.modal-close-btn {
  position: absolute; top: 15px; right: 15px;
  background: var(--bg-secondary); color: var(--text-primary);
  width: 35px; height: 35px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; border: none; font-size: 1.2rem; cursor: pointer;
}

.modal-img-container { height: 100%; min-height: 400px; }
.modal-img { width: 100%; height: 100%; object-fit: cover; }

.modal-right { padding: 40px; }
.modal-category { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-gold); font-weight: 700; }
.modal-title { font-size: 2rem; margin: 10px 0 20px; line-height: 1.2; }

.modal-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.modal-rating-row .stars { color: var(--accent-gold); }

.modal-price-box {
  display: flex; align-items: baseline; gap: 15px; margin-bottom: 25px;
  padding-bottom: 25px; border-bottom: 1px solid var(--card-border);
}
.modal-price-discount { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.modal-price-original { text-decoration: line-through; color: var(--text-secondary); }
.discount-badge { background: var(--danger-color); color: #fff; padding: 4px 10px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; }

.modal-desc { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.modal-features { list-style: none; margin-bottom: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-features li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.modal-features li i { color: var(--accent-gold); }

.modal-cta-box { display: flex; gap: 15px; }
.modal-add-to-cart { flex: 1; padding: 15px; justify-content: center; font-size: 1.1rem; }
.modal-tiktok-btn { padding: 15px 25px; display: flex; align-items: center; gap: 8px; border-radius: 50px; }

/* Toast Notifications */
.toast-container {
  position: fixed; bottom: 30px; left: 30px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--glass-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-left: 4px solid var(--accent-gold);
  color: var(--text-primary); padding: 15px 25px; border-radius: 8px;
  box-shadow: var(--glass-shadow); font-weight: 500; font-family: 'Outfit', sans-serif;
  display: flex; align-items: center; gap: 15px;
  transform: translateX(-100%); opacity: 0;
  animation: toastSlide 0.3s forwards, toastFade 0.3s 2.7s forwards;
}
.toast i { font-size: 1.2rem; color: var(--accent-gold); }

@keyframes toastSlide {
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastFade {
  to { transform: translateX(-100%); opacity: 0; }
}

/* ==========================================================================
   FOOTER & POPUPS
   ========================================================================== */
.purchase-popup {
  position: fixed; bottom: 30px; right: 30px; z-index: 900;
  display: flex; align-items: center; gap: 15px; padding: 15px;
  border-radius: var(--radius-md); max-width: 350px;
  transform: translateY(100px); opacity: 0; visibility: hidden;
  transition: var(--transition-normal);
}
.purchase-popup.show { transform: translateY(0); opacity: 1; visibility: visible; }
.popup-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.popup-text { font-size: 0.9rem; line-height: 1.3; }
.popup-time { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
.popup-close { position: absolute; top: 8px; right: 8px; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; }

footer {
  background: var(--bg-secondary); border-top: 1px solid var(--card-border);
  padding: 60px 5% 20px; margin-top: 60px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand h2 { font-size: 2rem; margin-bottom: 15px; }
.footer-brand p { color: var(--text-secondary); margin-bottom: 20px; max-width: 400px; }
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--card-border);
  display: flex; align-items: center; justify-content: center; transition: var(--transition-fast);
}
.social-btn:hover { background: var(--accent-gold); color: #fff; }

.footer-links-col h3 { font-size: 1.2rem; margin-bottom: 20px; }
.footer-links-col ul { list-style: none; }
.footer-links-col ul li { margin-bottom: 10px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px;}
.footer-links-col ul li a { transition: var(--transition-fast); }
.footer-links-col ul li a:hover { color: var(--accent-gold); }

.footer-bottom {
  text-align: center; padding-top: 20px; border-top: 1px solid var(--card-border);
  font-size: 0.85rem; color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-subtitle { margin: 0 auto 30px; }
  .features-grid { max-width: 500px; margin: 30px auto 0; }
  .hero-showcase { height: 400px; margin-top: 30px; }
  .layer-bg { width: 300px; height: 300px; }
  .float-1 { left: 0; } .float-2 { right: 0; }
  .modal-container { grid-template-columns: 1fr; }
  .modal-img-container { min-height: 250px; }
}

@media (max-width: 768px) {
  header .search-bar { display: none; }
  .mobile-search { display: flex; }
  .catalog-controls { justify-content: flex-start; }
  .filter-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-container::-webkit-scrollbar { height: 4px; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto 20px; }
  .social-links { justify-content: center; }
  .footer-links-col ul li { justify-content: center; }
  .hero-title { font-size: 3rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .live-stream-widget { flex-direction: column; gap: 15px; text-align: center; }
  .live-stream-left { flex-direction: column; }
  .product-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
  }
  .product-info { padding: 8px; }
  .shopee-price { font-size: 1rem; }
  .shopee-product-name { font-size: 0.8rem; }
  .modal-right { padding: 20px; }
  .modal-cta-box { flex-direction: column; }
}
