/* ========================================================
   DEALCIRCUIT MODERN PORTAL STYLESHEET
   ShopEase UI Adaptation — Clean, High-Conversion, Responsive
   ======================================================== */

:root {
  --bg-body: #FAFAFB;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F3F4F6;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-overlay: rgba(15, 23, 42, 0.6);

  --border-light: #E5E7EB;
  --border-subtle: #F1F5F9;
  --border-focus: #0F172A;

  --text-main: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;

  --brand-primary: #0F172A;
  --brand-primary-hover: #1E293B;
  --brand-accent: #10B981;
  --brand-accent-hover: #059669;
  --brand-orange: #FF5A1F;
  --brand-red: #EF4444;
  --brand-yellow: #F59E0B;
  --brand-telegram: #229ED9;
  --brand-whatsapp: #25D366;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.09);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Caveat', cursive, sans-serif;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-alt: #1F2937;
  --bg-card: #151E2E;
  --bg-card-hover: #1E2B40;
  --border-light: #28354D;
  --border-subtle: #1F2A3E;
  --border-focus: #3B82F6;

  --text-main: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-inverse: #0F172A;

  --brand-primary: #3B82F6;
  --brand-primary-hover: #2563EB;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

/* ========================================================
   1. TOP NOTIFICATION BAR
   ======================================================== */
.top-banner {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

[data-theme="dark"] .top-banner {
  background: #0F172A;
  border-bottom-color: #1E293B;
}

.top-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--brand-red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-ring 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ticker-label {
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.5px;
  font-size: 11px;
}

.ticker-marquee {
  display: flex;
  gap: 24px;
  color: var(--text-main);
  font-weight: 500;
}

.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--brand-telegram);
  flex-shrink: 0;
}

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

/* ========================================================
   2. PRIMARY HEADER (ShopEase Style)
   ======================================================== */
.header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: box-shadow var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-bag {
  position: relative;
  width: 38px;
  height: 38px;
  background: var(--text-main);
  color: var(--bg-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .logo-bag {
  background: #3B82F6;
  color: #FFFFFF;
}

.logo-spark {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 12px;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-name .highlight {
  color: var(--brand-orange);
}

/* Centered Search Bar */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 100%;
  padding: 12px 44px 12px 46px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-surface-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.header-search input:focus {
  background: var(--bg-surface);
  border-color: var(--text-main);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .header-search input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 14px;
  background: var(--border-light);
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: color var(--transition-fast);
}

.header-action-btn:hover {
  color: var(--text-main);
}

.action-label {
  display: block;
}

.cart-icon-wrap {
  position: relative;
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--text-main);
  color: var(--bg-surface);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.badge-accent {
  background: var(--brand-red);
  color: #FFFFFF;
}

/* Theme Switcher */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--border-light);
}

/* ========================================================
   3. SECONDARY NAVIGATION BAR
   ======================================================== */
.subnav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.subnav-links::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.subnav-link:hover,
.subnav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.subnav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.subnav-link.highlight-link {
  color: var(--brand-telegram);
  font-weight: 700;
}

/* ========================================================
   4. HERO SECTION (ShopEase Curved Composition)
   ======================================================== */
.hero {
  padding: 50px 0 60px;
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
}

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

.hero-tagline {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-title-accent {
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 26px;
}

/* Hero Feature Badges */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-alt);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.feature-icon {
  font-size: 15px;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  border-color: var(--text-main);
  background: var(--bg-surface-alt);
}

/* Hero Right Visual (Curved Pastel Shape + Lifestyle Shopper) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shape-bg {
  position: absolute;
  width: 480px;
  height: 480px;
  background: linear-gradient(135deg, #DCFCE7 0%, #D1E7DD 50%, #CCFBF1 100%);
  border-radius: 62% 38% 70% 30% / 45% 58% 42% 55%;
  z-index: 1;
  animation: blob-float 10s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-shape-bg {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 50%, #047857 100%);
  opacity: 0.5;
}

@keyframes blob-float {
  0% { border-radius: 62% 38% 70% 30% / 45% 58% 42% 55%; transform: rotate(0deg); }
  100% { border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; transform: rotate(8deg); }
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  width: 380px;
  height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  top: 24px;
  right: -10px;
  background: var(--bg-surface);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-family: var(--font-script);
  font-size: 20px;
  line-height: 1.1;
  color: var(--text-main);
  transform: rotate(4deg);
  border: 1px solid var(--border-light);
  z-index: 3;
}

.handwritten-text {
  display: block;
}

.handwritten-bold {
  font-weight: 700;
  display: inline-block;
  color: var(--brand-orange);
}

.handwritten-heart {
  color: var(--brand-red);
  margin-left: 2px;
}

/* ========================================================
   5. SHOP BY CATEGORY (Circular Pastel Icons)
   ======================================================== */
.section-categories {
  padding: 50px 0;
  background: var(--bg-body);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.section-link:hover {
  gap: 8px;
  color: var(--brand-orange);
}

.category-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 4px;
  scrollbar-width: none;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  padding: 6px;
}

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

.cat-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.category-card.active .cat-circle {
  outline: 3px solid var(--text-main);
  outline-offset: 3px;
}

/* Soft Pastel Background Colors matching ShopEase */
.cat-all { background: #F1F5F9; }
.cat-electronics { background: #E0F2FE; }
.cat-fashion { background: #FCE7F3; }
.cat-home { background: #DCFCE7; }
.cat-beauty { background: #FFEDD5; }
.cat-groceries { background: #FEF3C7; }
.cat-coupons { background: #CCFBF1; }
.cat-loot { background: #FFE4E6; }

[data-theme="dark"] .cat-all { background: #1E293B; }
[data-theme="dark"] .cat-electronics { background: #0C4A6E; }
[data-theme="dark"] .cat-fashion { background: #831843; }
[data-theme="dark"] .cat-home { background: #064E3B; }
[data-theme="dark"] .cat-beauty { background: #7C2D12; }
[data-theme="dark"] .cat-groceries { background: #78350F; }
[data-theme="dark"] .cat-coupons { background: #134E4A; }
[data-theme="dark"] .cat-loot { background: #881337; }

.cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

/* ========================================================
   6. FEATURED BUNDLE COLLECTIONS
   ======================================================== */
.section-bundles {
  padding: 40px 0 50px;
  background: var(--bg-body);
}

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.bundle-img-wrap {
  width: 100%;
  height: 200px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.bundle-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

.bundle-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bundle-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.bundle-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex: 1;
}

.bundle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bundle-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.save-badge {
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .save-badge {
  background: #064E3B;
  color: #6EE7B7;
}

/* ========================================================
   7. COMPARE BEFORE YOU BUY (ShopEase Comparison Card)
   ======================================================== */
.section-compare {
  padding: 30px 0 50px;
  background: var(--bg-body);
}

.compare-card {
  background: #F0FDF4;
  border: 1px solid #DCFCE7;
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .compare-card {
  background: #0B291B;
  border-color: #064E3B;
}

.compare-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.compare-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.btn-compare-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  align-self: flex-start;
  transition: all var(--transition-fast);
}

.btn-compare-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
}

/* Comparison Table Container */
.compare-table-wrap {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.compare-header-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.compare-col-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.compare-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.compare-model-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  text-align: center;
}

.compare-row .feat-name {
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
}

.compare-row .feat-val.check {
  color: #16A34A;
  font-weight: 700;
}

.compare-row .feat-val.dash {
  color: var(--text-muted);
}

.compare-row.price-row {
  border-bottom: none;
  padding-top: 14px;
}

.feat-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.compare-handwritten-note {
  position: absolute;
  top: -14px;
  right: 18px;
  font-family: var(--font-script);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-orange);
  transform: rotate(6deg);
}

/* ========================================================
   8. RECOMMENDED FOR YOU (Primary Deals Grid)
   ======================================================== */
.section-recommended {
  padding: 40px 0 60px;
  background: var(--bg-body);
}

.view-toggle-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-alt);
  transition: all var(--transition-fast);
}

.view-tab:hover {
  color: var(--text-main);
}

.view-tab.active {
  background: var(--brand-primary);
  color: #FFFFFF;
}

/* Toolbar & Sorting */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.toggle-hide-expired {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.toggle-hide-expired input {
  cursor: pointer;
  accent-color: var(--brand-primary);
  width: 15px;
  height: 15px;
}

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

.toolbar-sort select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

/* Deals Grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ShopEase Style Product Deal Card */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
}

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

.card-img-wrap {
  width: 100%;
  height: 220px;
  background: #FFFFFF;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.deal-card:hover .card-img {
  transform: scale(1.06);
}

.card-discount-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.btn-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.btn-wishlist:hover,
.btn-wishlist.active {
  color: var(--brand-red);
  transform: scale(1.15);
}

.card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--brand-yellow);
  margin-bottom: 12px;
}

.rating-score {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 11px;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.deal-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.mrp-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-grab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-grab:hover {
  background: var(--brand-orange);
  transform: translateY(-1px);
}

.btn-share-wa {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-whatsapp);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.btn-share-wa:hover {
  background: #DCFCE7;
  border-color: var(--brand-whatsapp);
}

/* Expired / Out of Stock Deal Styling */
.deal-card.expired-deal {
  opacity: 0.82;
  border-color: var(--border-light);
  background: var(--bg-surface-alt);
}

.deal-card.expired-deal:hover {
  opacity: 1;
}

.deal-card.expired-deal .card-discount-tag {
  background: #64748B;
  color: #FFFFFF;
}

.deal-card.expired-deal .card-img {
  filter: grayscale(35%);
}

.card-expired-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-grab.btn-expired {
  background: #334155;
  color: #F8FAFC;
  font-size: 12px;
}

.btn-grab.btn-expired:hover {
  background: var(--brand-telegram);
  color: #FFFFFF;
}

/* Coupon Card Template */
.coupon-card {
  background: var(--bg-card);
  border: 1.5px dashed var(--brand-orange);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

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

.coupon-badge {
  display: inline-block;
  align-self: flex-start;
  background: #FFF7ED;
  color: var(--brand-orange);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

[data-theme="dark"] .coupon-badge {
  background: #7C2D12;
  color: #FDBA74;
}

.coupon-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.coupon-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}

.coupon-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.coupon-code {
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.btn-copy-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-orange);
  background: none;
  border: none;
}

.btn-copy-code:hover {
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
}

.btn-primary {
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

/* ========================================================
   9. LOYALTY & VIP REWARDS BANNER (ShopEase Dark Green)
   ======================================================== */
.section-loyalty {
  padding: 20px 0 60px;
  background: var(--bg-body);
}

.loyalty-banner {
  background: linear-gradient(135deg, #0A3622 0%, #062618 100%);
  border-radius: var(--radius-xl);
  padding: 46px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 50px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.loyalty-banner::after {
  content: '⚡';
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 200px;
  opacity: 0.05;
  pointer-events: none;
}

.loyalty-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.crown-icon {
  font-size: 32px;
}

.loyalty-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand-yellow);
}

.loyalty-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.loyalty-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #A7F3D0;
  max-width: 420px;
}

.btn-loyalty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #064E3B;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  align-self: flex-start;
  transition: all var(--transition-fast);
}

.btn-loyalty:hover {
  background: var(--brand-yellow);
  color: #111827;
  transform: translateY(-2px);
}

.loyalty-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.perk-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perk-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.perk-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.perk-desc {
  font-size: 12px;
  color: #A7F3D0;
  line-height: 1.4;
}

/* ========================================================
   10. WHAT OUR CUSTOMERS SAY (Testimonials)
   ======================================================== */
.section-testimonials {
  padding: 20px 0 60px;
  background: var(--bg-body);
}

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

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}

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

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

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.testi-badge {
  font-size: 11px;
  font-weight: 600;
  color: #16A34A;
}

.testi-stars {
  color: var(--brand-yellow);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.testi-rating {
  font-weight: 700;
  color: var(--text-secondary);
}

.testi-quote {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}

/* ========================================================
   11. PERSONALIZED PICKS BANNER
   ======================================================== */
.section-personalized {
  padding: 10px 0 60px;
  background: var(--bg-body);
}

.personalized-card {
  background: linear-gradient(135deg, #F3E8FF 0%, #E0E7FF 100%);
  border-radius: var(--radius-xl);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid #E9D5FF;
}

[data-theme="dark"] .personalized-card {
  background: linear-gradient(135deg, #2E1065 0%, #1E1B4B 100%);
  border-color: #4C1D95;
}

.personalized-content {
  max-width: 540px;
}

.personalized-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.personalized-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-personalized {
  display: inline-flex;
  align-items: center;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-personalized:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
}

.personalized-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pers-tag {
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  display: inline-block;
  white-space: nowrap;
}

/* ========================================================
   12. FOOTER (ShopEase Style Slate Navy)
   ======================================================== */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding-top: 60px;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #1E293B;
}

.footer-logo {
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-logo .brand-name {
  color: #FFFFFF;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 320px;
}

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

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-list a:hover {
  color: #FFFFFF;
}

.disclosure-text {
  font-size: 12px;
  line-height: 1.6;
  color: #64748B;
}

.footer-bottom {
  padding: 20px 0;
  font-size: 12px;
  color: #64748B;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================================================
   13. TOAST NOTIFICATION
   ======================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  background: var(--brand-accent);
  color: #FFFFFF;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ========================================================
   14. FULL RESPONSIVENESS (Mobile & Tablet)
   ======================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .deals-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .loyalty-banner {
    grid-template-columns: 1fr;
    padding: 34px;
    gap: 30px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 14px;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-image-wrapper {
    width: 300px;
    height: 350px;
  }

  .hero-shape-bg {
    width: 340px;
    height: 340px;
  }

  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-img-wrap {
    height: 160px;
    padding: 12px;
  }

  .card-title {
    font-size: 13px;
    height: 36px;
  }

  .deal-price {
    font-size: 17px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .personalized-card {
    flex-direction: column;
    padding: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .subnav-links {
    gap: 18px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-features {
    flex-direction: column;
    width: 100%;
  }

  .hero-feature-item {
    width: 100%;
    justify-content: center;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .bundles-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   GOOGLE ADSENSE AD PLACEHOLDER SLOTS
   ======================================================== */
.ad-banner-container {
  margin: 32px auto;
  display: flex;
  justify-content: center;
}

.ad-slot-leaderboard {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.4), rgba(243, 244, 246, 0.6));
  border: 1px dashed var(--mint-dark, #059669);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  transition: all 0.2s ease;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ad-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mint-dark, #059669);
  background: white;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ad-subtext {
  font-size: 12px;
  color: var(--text-secondary, #6B7280);
}

/* ========================================================
   FOOTER TRUST LINKS & LEGAL MODAL
   ======================================================== */
.footer-bottom-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted, #94A3B8);
}

.footer-bottom-links a,
.legal-trigger {
  color: var(--text-secondary, #94A3B8);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover,
.legal-trigger:hover {
  color: var(--primary, #0F172A);
  text-decoration: underline;
}

/* Modal Backdrop */
.legal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.legal-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.legal-modal-card {
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

/* Modal Header & Tabs */
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  padding: 12px 20px;
  background: #F8FAFC;
}

.legal-modal-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.legal-tab-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.legal-tab-btn:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.04);
}

.legal-tab-btn.active {
  color: #059669;
  background: #D1FAE5;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}

.btn-close-modal:hover {
  color: #0F172A;
  background: #E2E8F0;
}

/* Modal Body */
.legal-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  line-height: 1.65;
  color: #334155;
  font-size: 14px;
}

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

.legal-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.legal-tab-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.legal-tab-content .legal-meta {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 16px;
}

.legal-tab-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal-tab-content p {
  margin-bottom: 12px;
}

.legal-tab-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-tab-content li {
  margin-bottom: 6px;
}

.legal-tab-content a {
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
}

.highlight-callout {
  background: #ECFDF5;
  border-left: 4px solid #10B981;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}

.highlight-callout p {
  margin: 0;
  color: #065F46;
}

/* Contact Grid in Modal */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.contact-box .contact-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.contact-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.contact-box p {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 10px;
}

.contact-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  word-break: break-all;
}

/* Modal Footer */
.legal-modal-footer {
  border-top: 1px solid #E2E8F0;
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
  background: #F8FAFC;
}

.btn-modal-done {
  background: #0F172A;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-modal-done:hover {
  opacity: 0.9;
}
