/* ==========================================================================
   ZINGOBUY - LOGO-DRIVEN MODERN DESIGN SYSTEM
   Logo Red: (#ED1C24, #C81017) from 'zingo'
   Logo Sky Blue: (#00A8F3, #0087C7) from 'buy' & dot of 'i'
   Base: Sleek Deep Black (#000000, #0a0a0c) & Clean High-Contrast White
   ========================================================================== */

:root {
  /* ZingoBuy Central Brand Properties (From Logo) */
  --brand-red: #ED1C24;
  --brand-red-dark: #C81017;
  --brand-red-light: #FF3B42;
  --brand-blue: #00A8F3;
  --brand-blue-dark: #0087C7;
  --brand-blue-light: #38C2FF;
  --brand-black: #0a0a0c;
  --brand-black-deep: #000000;
  --brand-black-card: #121214;
  --brand-accent-red: #ED1C24;   /* Extracted from 'zingo' in logo */
  --brand-accent-blue: #00A8F3;  /* Extracted from dot of 'i' & 'buy' */
  --brand-accent: #ED1C24;
  --brand-background: #0a0a0c;
  --brand-text: #0f172a;
  --brand-border: #e2e8f0;

  /* Primary Theme Tokens */
  --color-primary-dark: #000000;
  --color-primary: #0a0a0c;
  --color-primary-light: #17171a;
  --color-primary-surface: #242429;
  --color-primary-subtle: #FEF2F2;
  --color-primary-soft: #F0F9FF;
  
  /* Brand Accents mapped to Logo Red & Cyan Blue */
  --color-gold-light: #00A8F3;
  --color-gold: #ED1C24;
  --color-gold-dark: #C81017;
  --color-gold-amber: #0087C7;
  --color-gold-glow: rgba(237, 28, 36, 0.4);
  --gradient-gold: linear-gradient(135deg, #FF2B33 0%, #ED1C24 60%, #C81017 100%);
  --gradient-gold-reverse: linear-gradient(135deg, #C81017 0%, #ED1C24 60%, #FF2B33 100%);
  --gradient-crimson: linear-gradient(135deg, #FF2B33 0%, #ED1C24 50%, #B91C1C 100%);
  --gradient-blue: linear-gradient(135deg, #38C2FF 0%, #00A8F3 60%, #0087C7 100%);
  --gradient-zingo: linear-gradient(135deg, #ED1C24 0%, #00A8F3 100%);
  --gradient-header: linear-gradient(135deg, #000000 0%, #0a0a0d 50%, #141418 100%);
  
  /* Accent Colors (Extracted from ZingoBuy Logo) */
  --color-accent-ruby: #ED1C24;
  --color-accent-red: #ED1C24;
  --color-accent-blue: #00A8F3;
  --color-accent-green: #15803d;
  --color-supercoin: #F59E0B;
  
  /* Neutral Shades */
  --color-bg: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-gold: rgba(237, 28, 36, 0.35);
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 18px rgba(237, 28, 36, 0.35);
  --glass-bg: rgba(10, 10, 12, 0.94);
  --glass-border: 1px solid rgba(237, 28, 36, 0.25);
  
  /* Radii & Typography */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --font-body: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
  background: var(--color-primary-dark);
  color: var(--color-gold-light);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-left .tagline {
  letter-spacing: 0.5px;
  font-weight: 500;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-link {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.currency-select, .lang-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f8fafc;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}

.currency-select option, .lang-select option {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Main Header */
.main-header {
  background: var(--color-primary);
  border-bottom: 2px solid var(--color-gold);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 205px;
  max-width: 215px;
  height: auto;
  max-height: 82px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: contain;
  background: #000000;
  padding: 4px 8px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.03);
  border-color: #ED1C24;
  box-shadow: 0 0 18px rgba(237, 28, 36, 0.45);
}

/* Footer Brand Logo */
.footer-logo-wrap {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  width: 200px;
  max-width: 210px;
  height: auto;
  max-height: 80px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: contain;
  background: #000000;
  padding: 4px 8px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo-wrap:hover .footer-logo-img {
  transform: scale(1.03);
  border-color: #ED1C24;
  box-shadow: 0 0 18px rgba(237, 28, 36, 0.45);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #e2e8f0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Header Search Engine */
.header-search-wrap {
  flex: 1;
  max-width: 620px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.search-form:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.search-input {
  flex: 1;
  border: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  outline: none;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-right: 0.5rem;
}

.search-icon-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.search-icon-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.search-submit-btn {
  background: linear-gradient(135deg, #FF2B33 0%, #ED1C24 60%, #C81017 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.4);
}

.search-submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.6);
}

/* Autocomplete Dropdown */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  z-index: 1000;
  display: none;
  max-height: 420px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.autocomplete-item:hover {
  background: #f8fafc;
}

.autocomplete-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.autocomplete-info {
  flex: 1;
}

.autocomplete-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.autocomplete-price {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* Header Right Nav Items */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
  position: relative;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-gold-light);
}

.action-icon-wrap {
  position: relative;
  font-size: 1.25rem;
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-accent-ruby);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary);
}

.supercoins-badge-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--color-supercoin);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.supercoins-badge-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
}

.account-dropdown-wrap {
  position: relative;
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  min-width: 220px;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.account-dropdown-wrap:hover .account-dropdown-menu {
  display: block;
}

.account-dropdown-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0.85rem 1rem;
}

.account-dropdown-header h4 {
  font-size: 0.92rem;
  color: var(--color-gold-light);
}

.account-dropdown-header p {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.account-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--color-text-main);
  border-bottom: 1px solid #f8fafc;
}

.account-dropdown-link:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

/* ==========================================================================
   NAVIGATION BAR & MEGA MENU
   ========================================================================== */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.nav-container-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.35rem;
}

.nav-scroll-content {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
  -webkit-overflow-scrolling: touch;
}

.nav-scroll-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.25rem 0;
  margin: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.nav-link.deals-link {
  color: var(--color-accent-ruby);
  font-weight: 700;
}

/* Scroll Arrow Navigation Buttons */
.nav-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  user-select: none;
  padding: 0;
}

.nav-scroll-btn:hover {
  background: var(--color-primary);
  color: var(--color-gold);
  border-color: var(--color-primary);
  box-shadow: 0 3px 8px rgba(6, 78, 59, 0.25);
  transform: scale(1.08);
}

.nav-scroll-btn:active {
  transform: scale(0.95);
}

.nav-scroll-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   HERO BANNER CAROUSEL & OFFERS
   ========================================================================== */
.hero-section {
  padding: 1.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
}

.hero-banner-card {
  background: var(--gradient-crimson);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 2.5rem;
  color: #fff;
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-md);
}

.hero-banner-content {
  max-width: 58%;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FF2B33 0%, #ED1C24 60%, #C81017 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(237, 28, 36, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(237, 28, 36, 0.55);
  color: #ffffff;
}

.hero-banner-img {
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  height: 90%;
  max-width: 45%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}

/* Hero Side Widgets */
.hero-side-widget {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.side-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-card.gold-card {
  background: linear-gradient(135deg, #000000 0%, #17171a 50%, #b45309 100%);
  color: #fff;
  border: 1.5px solid var(--color-gold);
}

.deal-countdown-box {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.countdown-unit {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-align: center;
  flex: 1;
}

.countdown-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-gold-light);
  display: block;
}

.countdown-label {
  font-size: 0.65rem;
  color: #e2e8f0;
  text-transform: uppercase;
  margin-top: 0.15rem;
  display: block;
}

/* Category Strip */
.category-strip {
  padding: 2rem 0;
}

.category-scroll-wrap {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 90px;
  transition: transform 0.25s ease;
}

.category-item:hover {
  transform: translateY(-4px);
}

.category-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(59, 7, 23, 0.08);
  transition: all 0.3s ease;
}

.category-item:hover .category-icon-box {
  background: var(--gradient-crimson);
  color: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
}

.category-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* ==========================================================================
   SECTION HEADERS & PRODUCT CARDS
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title-icon {
  color: var(--color-gold);
  font-size: 1.4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.section-view-all {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.section-view-all:hover {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.product-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent-ruby);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.product-wishlist-btn:hover, .product-wishlist-btn.active {
  color: var(--color-accent-ruby);
  border-color: var(--color-accent-ruby);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: #f8fafc;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

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

.product-brand {
  font-size: 0.75rem;
  color: var(--color-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-rating-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.rating-badge {
  background: #15803d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.rating-count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.product-current-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
}

.product-mrp-price {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.product-supercoin-earn {
  font-size: 0.75rem;
  color: var(--color-supercoin);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.btn-add-cart {
  background: #FEF2F2;
  color: #ED1C24;
  border: 1px solid #ED1C24;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-add-cart:hover {
  background: #ED1C24;
  color: #ffffff;
}

/* ==========================================================================
   CART SLIDE-OVER DRAWER & MODALS
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -5px 0 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.drawer-header {
  background: var(--color-primary);
  color: #fff;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-gold);
}

.drawer-header h3 {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.drawer-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.drawer-empty-state i {
  font-size: 3.5rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.drawer-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.drawer-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.drawer-item-info {
  flex: 1;
}

.drawer-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

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

.drawer-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-top: 0.4rem;
}

.drawer-qty-btn {
  background: #f8fafc;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}

.drawer-qty-val {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.drawer-footer {
  padding: 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
}

.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.drawer-checkout-btn {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  font-weight: 800;
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   TOAST NOTIFICATION ENGINE
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--color-primary-dark);
  color: #fff;
  border-left: 4px solid var(--color-gold);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  min-width: 280px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.main-footer {
  background: var(--color-primary-dark);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--color-gold);
}

.footer-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-feature-icon {
  font-size: 2.2rem;
  color: #00A8F3;
}

.footer-feature-text h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.footer-feature-text p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: #ED1C24;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #00A8F3;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #64748b;
}

/* ==========================================================================
   SCROLL TO TOP FLOATING BUTTON
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top-btn:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  transform: translateY(-3px) scale(1.06);
}

.scroll-to-top-btn:active {
  transform: translateY(0) scale(0.95);
}

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

/* ==========================================================================
   ZERO-RELOAD AJAX SHOP FILTER & SORT SYSTEM
   ========================================================================== */
.shop-filter-sidebar {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  transition: all 0.3s ease;
}

.filter-radio-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  transition: background 0.15s ease;
  font-size: 0.86rem;
  color: #334155;
}

.filter-radio-label:hover {
  background: #f8fafc;
  color: var(--color-primary);
}

.filter-radio-label input[type="radio"] {
  accent-color: var(--color-gold-dark);
  cursor: pointer;
}

.filter-name {
  flex: 1;
  font-weight: 500;
}

.filter-count {
  font-size: 0.75rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
}

.quick-price-pill {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-price-pill:hover {
  border-color: var(--color-gold);
  color: var(--color-primary);
}

.quick-price-pill.active {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

.count-pill {
  background: var(--color-primary);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.sort-select {
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-primary);
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-select:focus {
  border-color: var(--color-gold);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.65rem;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  animation: fadeInChip 0.2s ease;
}

@keyframes fadeInChip {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.active-filter-chip button {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.active-filter-chip button:hover {
  color: #ef4444;
}

/* Loading Overlay for Shop Grid */
.shop-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  z-index: 10;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gold);
}

/* List View for Products */
.product-grid-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

.product-card-list {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  align-items: center !important;
  padding: 1rem !important;
  gap: 1.5rem !important;
}

.product-card-list .product-img-wrap {
  height: 200px !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   HERO CAROUSEL SLIDER CONTROLS
   ========================================================================== */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(4, 26, 21, 0.75);
  backdrop-filter: blur(4px);
  color: var(--color-gold-light);
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
}

.hero-nav-arrow:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev { left: 16px; }
.hero-nav-next { right: 16px; }

.hero-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--color-gold);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--gradient-gold);
}

/* Mobile Filter Backdrop */
.shop-filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr !important;
  }

  #mobileFilterToggleBtn {
    display: inline-flex !important;
  }

  .shop-filter-sidebar {
    position: fixed !important;
    left: -320px;
    top: 0;
    bottom: 0;
    width: 300px;
    z-index: 999;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
  }

  .shop-filter-sidebar.active {
    left: 0;
  }

  .shop-filter-backdrop.active {
    display: block;
  }
}
