/* ==========================================
   SHOPE DEAL HUB - PREMIUM STYLESHEET
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  /* Colors */
  --royal-green: #0F9D58;
  --royal-green-hover: #0b7f46;
  --royal-green-light: rgba(15, 157, 88, 0.1);
  --gold: #D4AF37;
  --gold-hover: #C59F2D;
  --gold-light: rgba(212, 175, 55, 0.1);
  
  /* Light Theme Variables */
  --bg-primary: #F8F9FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F3F4;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border-color: #E5E7EB;
  --border-light: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 15px rgba(15, 157, 88, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --card-gradient: linear-gradient(135deg, #ffffff 0%, #f9fbf9 100%);
  
  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  /* Font Family */
  --font-primary: 'Outfit', 'Tajawal', sans-serif;
}

/* Dark Theme overrides */
[data-theme="dark"] {
  --bg-primary: #0F0F10;
  --bg-secondary: #171718;
  --bg-tertiary: #222225;
  --text-primary: #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-muted: #6B7280;
  --border-color: #2D2D30;
  --border-light: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(15, 157, 88, 0.25);
  --glass-bg: rgba(23, 23, 24, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --card-gradient: linear-gradient(135deg, #171718 0%, #1a221d 100%);
}

/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

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

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--royal-green);
}

/* ==========================================
   2. TYPOGRAPHY & GRADIENTS
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

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

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

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo i {
  color: var(--royal-green);
  font-size: 1.75rem;
}

.logo span {
  font-weight: 800;
}

.logo .hub {
  color: var(--gold);
}

/* Search bar */
.search-container {
  flex: 0 1 450px;
  position: relative;
  margin: 0 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-full);
  padding: 8px 16px 8px 24px;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: var(--royal-green);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.15);
  background: var(--bg-secondary);
}

.search-bar input {
  width: 100%;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  color: var(--royal-green);
  font-size: 1.1rem;
  padding-left: 10px;
  display: flex;
  align-items: center;
}

/* Live suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1010;
  max-height: 350px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.search-suggestions.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.suggestion-item:hover {
  background: var(--bg-tertiary);
}

.suggestion-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background: #fff;
  border: 1px solid var(--border-color);
}

.suggestion-info {
  flex: 1;
}

.suggestion-title {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.suggestion-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-green);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--royal-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--royal-green);
  transition: width 0.3s ease;
}

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

/* Mega Menu container */
.has-mega-menu {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 250px;
  gap: 24px;
  padding: 32px 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-column h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--royal-green);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-column ul {
  list-style: none;
}

.mega-column ul li {
  margin-bottom: 10px;
}

.mega-column ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-column ul li a:hover {
  color: var(--royal-green);
  transform: translateX(4px);
}

.mega-promo {
  background: linear-gradient(135deg, var(--royal-green) 0%, #134E35 100%);
  border-radius: var(--border-radius-md);
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.mega-promo::after {
  content: '\f0e7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 120px;
  opacity: 0.05;
  color: #fff;
}

.mega-promo h5 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.mega-promo p {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.mega-promo-btn {
  background: #fff;
  color: var(--royal-green);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  text-align: center;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.mega-promo-btn:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Theme Toggle & Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--royal-green-light);
  color: var(--royal-green);
  transform: translateY(-2px);
}

.action-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #121212;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.theme-toggle i {
  transition: transform 0.5s ease;
}

[data-theme="dark"] .theme-toggle i {
  transform: rotate(360deg);
}

.menu-toggle {
  display: none;
}

/* ==========================================
   4. HERO SECTION & PROMOTIONS
   ========================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: var(--border-radius-full);
  filter: blur(120px);
  opacity: 0.3;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--royal-green);
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  bottom: -50px;
  left: -50px;
}

.hero-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  padding: 14px 28px;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.btn-primary {
  background: var(--royal-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 157, 88, 0.3);
}

.btn-primary:hover {
  background: var(--royal-green-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 157, 88, 0.4);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--royal-green);
  color: var(--royal-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: #121212;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Slider Section */
.hero-slider-wrapper {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 40px 32px 32px;
  color: #fff;
}

.slide-tag {
  background: var(--gold);
  color: #121212;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--border-radius-full);
  display: inline-block;
  margin-bottom: 12px;
}

.slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.slide-desc {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-link {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.slide-link:hover {
  text-decoration: underline;
}

.slider-nav {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--gold);
  width: 24px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.slider-arrow:hover {
  background: var(--royal-green);
}

.slider-arrow-prev {
  left: 16px;
}

.slider-arrow-next {
  right: 16px;
}

/* Floating icons anim */
.floating-icons {
  display: flex;
  gap: 32px;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.floating-icon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-icon-item:nth-child(2) {
  animation-delay: 1.3s;
}

.floating-icon-item:nth-child(3) {
  animation-delay: 2.6s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================
   5. INTERACTIVE CATEGORY SECTION
   ========================================== */
.categories-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--royal-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.category-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hover glow borders */
.category-card:hover {
  transform: translateY(-8px);
  background: var(--bg-secondary);
  border-color: var(--royal-green);
  box-shadow: var(--shadow-glow);
}

.category-card:hover .category-icon-wrapper {
  background: var(--royal-green);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(15, 157, 88, 0.3);
}

.category-card.active {
  border-color: var(--royal-green);
  background: var(--royal-green-light);
  box-shadow: var(--shadow-glow);
}

/* ==========================================
   6. DEALS & PRODUCTS LAYOUTS
   ========================================== */
.deals-section {
  padding: 80px 0;
}

/* Filter Controls */
.deals-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.deals-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  padding: 8px 18px;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--royal-green);
  border-color: var(--royal-green);
}

.tab-btn.active {
  background: var(--royal-green);
  color: #fff;
  border-color: var(--royal-green);
}

.deals-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deals-sort select {
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

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

/* Standard Premium Product Card */
.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--royal-green);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--border-radius-full);
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-badge.gold-badge {
  background: var(--gold);
  color: #121212;
}

.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: all 0.2s ease;
}

.product-wishlist-btn:hover {
  transform: scale(1.1);
  color: #e63946;
}

.product-wishlist-btn.active {
  color: #e63946;
  background: #fff;
}

/* Image zoom on hover */
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Quick Actions Overlay (Card Lift) */
.product-overlay-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  display: flex;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 5;
}

.product-card:hover .product-overlay-actions {
  opacity: 1;
  transform: translateY(0);
}

.overlay-action-btn {
  background: #fff;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.overlay-action-btn:hover {
  background: var(--royal-green);
  color: #fff;
  transform: scale(1.1);
}

.overlay-action-btn.active {
  background: var(--gold);
  color: #121212;
}

/* Details Section */
.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-ratings {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.product-ratings span {
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--royal-green);
}

.original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.save-percent {
  font-size: 0.75rem;
  color: #e63946;
  background: rgba(230, 57, 70, 0.1);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
}

.btn-deal {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--border-radius-full);
  background: var(--royal-green-light);
  color: var(--royal-green);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.product-card:hover .btn-deal {
  background: var(--royal-green);
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 157, 88, 0.2);
}

/* ==========================================
   7. FLASH DEALS SECTION
   ========================================== */
.flash-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(15, 157, 88, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.flash-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flash-badge {
  background: #e63946;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--border-radius-full);
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Countdowns styling */
.countdown-timer {
  display: flex;
  gap: 8px;
}

.timer-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  min-width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.timer-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--royal-green);
  line-height: 1;
}

.timer-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.flash-card {
  border: 1px solid var(--royal-green-light);
}

/* Progress bar for remaining stock */
.stock-status {
  margin: 12px 0;
}

.stock-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stock-left {
  color: #e63946;
}

.stock-bar-wrapper {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.stock-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold) 0%, #e63946 100%);
  border-radius: var(--border-radius-full);
  transition: width 0.5s ease;
}

/* ==========================================
   8. FEATURED BRANDS SECTION
   ========================================== */
.brands-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.brands-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.brands-slider::-webkit-scrollbar {
  display: none;
}

.brand-logo-card {
  flex: 0 0 130px;
  height: 70px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 12px;
}

.brand-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.brand-logo-card:hover, .brand-logo-card.active {
  border-color: var(--royal-green);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-glow);
}

.brand-logo-card:hover img, .brand-logo-card.active img {
  opacity: 1;
  filter: grayscale(0);
}

/* ==========================================
   9. SHOPPING GUIDES & BLOG
   ========================================== */
.guides-section {
  padding: 80px 0;
}

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

.guide-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.guide-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.guide-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.guide-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.guide-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.guide-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--royal-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.guide-link:hover {
  color: var(--gold);
}

/* ==========================================
   10. TESTIMONIALS SLIDER
   ========================================== */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-rating {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid var(--royal-green);
  padding: 2px;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonial-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonials-arrow:hover {
  background: var(--royal-green);
  color: #fff;
  border-color: var(--royal-green);
}

.testimonials-arrow-prev { left: 0; }
.testimonials-arrow-next { right: 0; }

/* ==========================================
   11. NEWSLETTER SUBSCRIPTION
   ========================================== */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--royal-green) 0%, #0a5f36 100%);
  border-radius: var(--border-radius-lg);
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.newsletter-box h2 {
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.newsletter-box p {
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

.newsletter-form {
  display: flex;
  max-width: 550px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--border-radius-full);
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 24px;
  font-size: 0.95rem;
  color: #121212;
}

.newsletter-form input::placeholder {
  color: #9CA3AF;
}

.newsletter-form button {
  background: var(--royal-green);
  color: #fff;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #084e2a;
}

/* ==========================================
   12. FOOTER SECTION
   ========================================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo span {
  color: var(--text-primary);
}

.footer-logo span.hub {
  color: var(--gold);
}

.footer-logo i {
  color: var(--royal-green);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--royal-green);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links li a:hover {
  color: var(--royal-green);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-contact i {
  color: var(--royal-green);
  margin-top: 4px;
}

.footer-disclosure {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--royal-green);
}

/* ==========================================
   13. MODALS & POPUPS (QUICK VIEW / COMPARE)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}

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

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--royal-green);
  color: #fff;
  transform: rotate(90deg);
}

/* Quick View Inner Structure */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  height: 100%;
  overflow-y: auto;
}

.qv-image-section {
  background: #fff;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}

.qv-image-section img {
  max-height: 350px;
  object-fit: contain;
}

.qv-details-section {
  padding: 40px;
  overflow-y: auto;
}

.qv-brand {
  color: var(--royal-green);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.qv-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.qv-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.qv-current {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--royal-green);
}

.qv-original {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.qv-save {
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.qv-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.qv-meta-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.qv-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.qv-meta-item:last-child {
  margin-bottom: 0;
}

.qv-meta-label {
  color: var(--text-muted);
  font-weight: 600;
}

.qv-meta-value {
  font-weight: 700;
  color: var(--text-primary);
}

.qv-actions {
  display: flex;
  gap: 16px;
}

/* Compare Modal/Table */
.compare-modal-content {
  max-width: 1000px;
  padding: 40px;
  max-height: 85vh;
  overflow-y: auto;
}

.compare-modal-content h3 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-modal-content h3 i {
  color: var(--gold);
}

.compare-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.compare-table tr:last-child th, .compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  background: var(--bg-primary);
  font-weight: 700;
  color: var(--text-secondary);
  width: 200px;
  border-right: 1px solid var(--border-color);
}

.compare-product-header {
  text-align: center;
}

.compare-product-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px;
}

.compare-product-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compare-price {
  font-weight: 800;
  color: var(--royal-green);
  font-size: 1.1rem;
}

.compare-remove-btn {
  font-size: 0.75rem;
  color: #e63946;
  font-weight: 700;
  cursor: pointer;
}

.compare-remove-btn:hover {
  text-decoration: underline;
}

.compare-pros {
  color: #0F9D58;
  list-style: none;
  font-size: 0.8rem;
}

.compare-cons {
  color: #e63946;
  list-style: none;
  font-size: 0.8rem;
}

.compare-btn-cell {
  text-align: center;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-left: 4px solid var(--royal-green);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.3s 2.7s forwards;
  pointer-events: auto;
  border: 1px solid var(--border-color);
  border-left-width: 4px;
}

.toast.toast-gold {
  border-left-color: var(--gold);
}

.toast.toast-error {
  border-left-color: #e63946;
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Wishlist Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  z-index: 1510;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-left: 1px solid var(--border-color);
}

.drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.drawer-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-header h3 i {
  color: #e63946;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  position: relative;
}

.drawer-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 4px;
}

.drawer-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawer-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--royal-green);
}

.drawer-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.drawer-item-remove:hover {
  color: #e63946;
}

.drawer-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drawer-empty i {
  font-size: 3rem;
  opacity: 0.3;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 44px;
  height: 44px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--royal-green);
  color: #fff;
  border-color: var(--royal-green);
}

/* Skeletons */
.skeleton-card {
  height: 380px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-item {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-img {
  width: 100%;
  height: 180px;
  border-radius: var(--border-radius-sm);
}

.skeleton-title {
  height: 20px;
  width: 80%;
}

.skeleton-text {
  height: 14px;
  width: 50%;
}

.skeleton-button {
  height: 40px;
  width: 100%;
  border-radius: 20px;
  margin-top: auto;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Compare Bar Float */
.compare-bar-float {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  padding: 8px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
}

.compare-bar-float.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.compare-bar-text {
  font-size: 0.9rem;
  font-weight: 700;
}

/* ==========================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .floating-icons {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-container {
    display: none; /* Collapsed under mobile search bar */
  }
  .nav-menu {
    display: none; /* Hamburger menu needed */
  }
  
  .menu-toggle {
    display: flex;
    font-size: 1.5rem;
    color: var(--text-primary);
  }
  
  /* Mobile menu overlay */
  .nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    z-index: 999;
    padding: 32px 24px;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }
  
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 12px 16px;
    grid-template-columns: 1fr;
    display: none;
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    margin-top: 8px;
  }
  
  .nav-link:hover .mega-menu, .nav-link.active .mega-menu {
    display: grid;
  }
  
  .quick-view-grid {
    grid-template-columns: 1fr;
  }
  
  .qv-image-section {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .drawer {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   15. ADMIN PORTAL & DASHBOARD STYLES
   ========================================== */
.admin-badge {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 8px;
}

.admin-dashboard-container {
  display: flex;
  height: calc(85vh - 80px);
  max-height: 700px;
}

.admin-sidebar {
  width: 220px;
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.admin-tab-btn {
  padding: 14px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.admin-tab-btn.active {
  background: var(--bg-secondary);
  color: var(--royal-green);
  border-left-color: var(--royal-green);
}

.admin-main-panel {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: var(--bg-secondary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 750px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form-group.full-width {
  grid-column: span 2;
}

.admin-form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.admin-input, .admin-select, .admin-textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--royal-green);
}

.admin-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Image upload preview box */
.admin-file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-primary);
  transition: all 0.2s ease;
  position: relative;
}

.admin-file-upload:hover {
  border-color: var(--royal-green);
  background: var(--royal-green-light);
}

.admin-file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-file-preview {
  margin-top: 12px;
  max-height: 120px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  display: none;
}

/* Admin Item Management Table */
.admin-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  gap: 16px;
}

.admin-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.admin-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 2px;
}

.admin-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
}

.admin-item-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.admin-item-type.product {
  background: var(--royal-green-light);
  color: var(--royal-green);
}

.admin-item-type.blog {
  background: var(--gold-light);
  color: var(--gold);
}

.admin-delete-btn {
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
  border: 1px solid rgba(230, 57, 70, 0.2);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.admin-delete-btn:hover {
  background: #e63946;
  color: #fff;
}

@media (max-width: 768px) {
  .admin-dashboard-container {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }
  .admin-tab-btn {
    padding: 8px 16px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .admin-tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--royal-green);
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-form-group.full-width {
    grid-column: span 1;
  }
}

/* ==========================================
   16. SIGN IN & USER PROFILE AUTH STYLES
   ========================================== */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1020;
  margin-top: 8px;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-user-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.dropdown-user-name {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-role {
  font-size: 0.75rem;
  color: var(--royal-green);
  font-weight: 600;
  text-transform: uppercase;
}

.dropdown-user-role.admin {
  color: var(--gold);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--royal-green);
}

.dropdown-item.logout {
  border-top: 1px solid var(--border-color);
}

.dropdown-item.logout:hover {
  color: #e63946;
  background: rgba(230, 57, 70, 0.05);
}

/* Auth Login Modal tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.auth-tab-btn {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: var(--text-primary);
}

.auth-tab-btn.active {
  color: var(--royal-green);
  border-bottom-color: var(--royal-green);
  background: var(--bg-secondary);
}

.auth-tab-btn.active.admin-tab {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-tab-content {
  display: none;
  padding: 30px;
}

.auth-tab-content.active {
  display: block;
}

/* User Account Profile layout */
.profile-card {
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  max-width: 450px;
  margin: 0 auto;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--royal-green);
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

.profile-badge-card {
  background: var(--royal-green-light);
  color: var(--royal-green);
  border: 1px solid var(--royal-green);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-block;
  text-transform: uppercase;
}

.profile-details-list {
  margin-top: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

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

.profile-detail-label {
  color: var(--text-muted);
  font-weight: 600;
}

.profile-detail-value {
  font-weight: 700;
  color: var(--text-primary);
}
