/* ==========================================================================
   CODESFOREXISTING - CORE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-red: #ea2e2e;
  --primary-red-hover: #c91f1f;
  --primary-gradient: linear-gradient(135deg, #ff4747 0%, #ea2e2e 100%);
  --secondary-orange: #ff7a00;
  --secondary-gradient: linear-gradient(135deg, #ff922b 0%, #ff5e00 100%);
  --accent-gold: #ffb800;
  
  --savings-green: #15803d;
  --savings-bg: #dcfce7;
  --savings-border: #bbf7d0;

  --badge-discount: #ea2e2e;
  --badge-brand-bg: #f8fafc;
  --badge-brand-border: #e2e8f0;

  --bg-page: #f4f6fa;
  --bg-card: #ffffff;
  --bg-footer: #fff5f2;
  --bg-footer-border: #ffe2da;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e5e9f2;
  --border-focus: #ea2e2e;

  /* Elevation / Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 10px 24px rgba(234, 46, 46, 0.14);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', 'Plus Jakarta Sans', sans-serif;

  /* Container */
  --max-width: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   TOP NOTIFICATION BAR & HEADER
   ========================================================================== */

.top-alert-ribbon {
  background: #b91c1c;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 12px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.top-alert-ribbon a {
  text-decoration: underline;
  font-weight: 700;
  color: #fef08a;
}

.main-header {
  background-color: var(--primary-red);
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

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

.logo-wrapper {
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Search Bar */
.search-form-wrap {
  flex: 1;
  max-width: 620px;
  position: relative;
}

.search-input-box {
  width: 100%;
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
  transition: var(--transition);
}

.search-input-box:focus-within {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.4);
}

.search-input-box input {
  flex: 1;
  padding: 10px 18px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: inherit;
}

.search-input-box input::placeholder {
  color: var(--text-light);
}

.search-btn {
  background: #ffffff;
  color: var(--primary-red);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.search-btn:hover {
  background: #fdf2f2;
}

/* Live Search Suggestions Dropdown */
.search-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(--border-light);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.search-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: #f8fafc;
}

.search-result-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid #e2e8f0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.btn-telegram-header {
  background: #ffffff;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.btn-telegram-header:hover {
  background: #fff0f0;
  transform: translateY(-1px);
}

.btn-admin-header {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-admin-header:hover {
  background: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  transform: translateY(-1px);
}

.telegram-icon-svg {
  width: 18px;
  height: 18px;
  fill: #0088cc;
}

/* Secondary Navigation Bar */
.secondary-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 90;
}

.nav-links-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  scrollbar-width: none;
}

.nav-links-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.nav-badge-pill {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ==========================================================================
   HERO SECTION (Split 70/30)
   ========================================================================== */

.hero-section {
  padding: 24px 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Slider (70%) */
.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  min-height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--primary-red);
  width: 24px;
}

/* Sidebar: Top Selling Products (30%) */
.hero-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid #fee2e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title-badge {
  font-size: 0.72rem;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.top-selling-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: space-around;
}

.top-selling-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.top-selling-item:hover {
  background: #f8fafc;
  transform: translateX(4px);
}

.top-selling-rank {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.top-selling-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}

.top-selling-details {
  flex: 1;
  min-width: 0;
}

.top-selling-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.top-selling-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-selling-sale-price {
  font-weight: 700;
  color: var(--primary-red);
  font-size: 0.9rem;
}

.top-selling-reg-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.78rem;
}

/* ==========================================================================
   CATEGORY RIBBON CAROUSEL
   ========================================================================== */

.category-ribbon-section {
  padding: 16px 0;
}

.category-slider-container {
  position: relative;
  display: flex;
  align-items: center;
}

.cat-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 1.1rem;
  z-index: 10;
  cursor: pointer;
  flex-shrink: 0;
}

.cat-nav-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.category-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 4px;
  width: 100%;
}

.category-scroll-track::-webkit-scrollbar {
  display: none;
}

.cat-card-capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 calc((100% - 96px) / 7);
  min-width: 110px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.cat-card-capsule:hover,
.cat-card-capsule.active {
  border-color: var(--primary-red);
  box-shadow: 0 4px 14px rgba(234, 46, 46, 0.12);
  transform: translateY(-3px);
}

.cat-icon-frame {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: #fff1f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 1px solid #ffe4e6;
}

.cat-icon-frame img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.cat-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

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

/* ==========================================================================
   PRODUCT DEAL CARD & GRIDS
   ========================================================================== */

.deals-section {
  padding: 24px 0;
}

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

.section-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 1.1rem;
}

.carousel-arrow-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

/* 4-Column Product Grid */
.products-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Product Card - EXACT REPLICATION OF USER DESIGN */
.ld-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.ld-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Store Badge */
.card-store-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-light);
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Product Image */
.card-img-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

/* Buy Now Primary CTA */
.btn-card-buy {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  box-shadow: 0 3px 8px rgba(234, 46, 46, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-buy:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 4px 12px rgba(234, 46, 46, 0.35);
}

/* Card Body & Title */
.card-title-link {
  display: block;
  margin-bottom: 8px;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.card-title-link:hover .card-title {
  color: var(--primary-red);
}

/* Meta / Category */
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-category-tag {
  color: #64748b;
  font-weight: 500;
}

.card-rating-stars {
  color: #f59e0b;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
}

/* Price Area */
.card-price-area {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.price-regular {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-sale {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-red);
}

.badge-discount-pct {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-red);
  background: #fee2e2;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

/* Savings Pill Badge (Green bottom bar) */
.card-savings-pill {
  background: var(--savings-bg);
  border: 1px solid var(--savings-border);
  color: var(--savings-green);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* Card Footer / Updated */
.card-updated-time {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: auto;
  text-align: right;
}

/* Load More CTA Button */
.load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.btn-load-more {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 36px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(234, 46, 46, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-load-more:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 6px 20px rgba(234, 46, 46, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   PROMOTIONAL FULL-WIDTH THEMED BANNERS
   ========================================================================== */

.promo-banner-wrap {
  margin: 32px 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.promo-banner-wrap:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.promo-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel Track container for sections */
.horizontal-deals-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 14px;
}

.horizontal-deals-carousel::-webkit-scrollbar {
  display: none;
}

.horizontal-deals-carousel .ld-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 250px;
}

.carousel-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.btn-view-more-pill {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(234, 46, 46, 0.2);
}

.btn-view-more-pill:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   FLOATING TELEGRAM WIDGET
   ========================================================================== */

.ldk-telegram-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ldk-telegram-popup {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  max-width: 290px;
  position: relative;
  display: none;
  animation: slideInUp 0.35s ease forwards;
}

.ldk-telegram-popup.active {
  display: block;
}

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

.ldk-telegram-close {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
}

.ldk-telegram-close:hover {
  color: var(--text-main);
}

.ldk-telegram-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ldk-telegram-popup-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ldk-telegram-popup-btn {
  background: #0088cc;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.ldk-telegram-popup-btn:hover {
  background: #0077b5;
}

.ldk-telegram-trigger-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #0088cc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.ldk-telegram-trigger-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

/* ==========================================================================
   MODAL (PRODUCT QUICK VIEW)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

.modal-content-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.25s ease;
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: #64748b;
}

.modal-close-btn:hover {
  color: var(--primary-red);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

.modal-img-wrap {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.modal-info {
  display: flex;
  flex-direction: column;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

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

.modal-price-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.modal-sale-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-red);
}

.modal-reg-price {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.modal-savings-highlight {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--savings-green);
}

.modal-features-list {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.modal-buy-cta {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(234, 46, 46, 0.3);
}

.modal-buy-cta:hover {
  background: var(--primary-red-hover);
}

/* ==========================================================================
   FOOTER (PEACH-TINT AESTHETIC - EXACT AS SCREENSHOT)
   ========================================================================== */

.main-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--bg-footer-border);
  padding: 48px 0 20px;
  margin-top: 48px;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #fed7aa;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
}

.footer-brand-title {
  color: var(--primary-red) !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}

.footer-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-menu a {
  font-size: 0.85rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-menu a:hover {
  color: var(--primary-red);
  transform: translateX(3px);
}

.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #fbd5c8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 1rem;
}

.social-icon-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.footer-bottom-bar {
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-bottom-bar a {
  color: var(--primary-red);
  font-weight: 600;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-box {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #1e293b;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider-wrap {
    min-height: 280px;
  }
  .products-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .horizontal-deals-carousel .ld-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .search-form-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .horizontal-deals-carousel .ld-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
  .cat-card-capsule {
    flex: 0 0 calc((100% - 32px) / 3.5);
    min-width: 95px;
  }
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid-4 {
    grid-template-columns: 1fr;
  }
  .horizontal-deals-carousel .ld-card {
    flex: 0 0 85%;
  }
}

/* ==========================================================================
   POLICY & CONTENT PAGES DESIGN SYSTEM (About, Disclosure, Contact, Terms, etc.)
   ========================================================================== */

.policy-hero {
  background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0 32px;
}

.policy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.policy-breadcrumb a {
  color: var(--primary-red);
  font-weight: 600;
}

.policy-breadcrumb a:hover {
  text-decoration: underline;
}

.policy-hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 46, 46, 0.1);
  color: var(--primary-red);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.policy-hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.policy-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Quick Page Navigation Ribbon */
.policy-nav-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.policy-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.policy-nav-list::-webkit-scrollbar {
  display: none;
}

.policy-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.policy-nav-link:hover {
  background: #fee2e2;
  color: var(--primary-red);
  border-color: #fca5a5;
}

.policy-nav-link.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

/* Main Content Card */
.policy-main-wrap {
  padding: 40px 0 60px;
}

.policy-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 44px;
}

.policy-section {
  margin-bottom: 36px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  position: relative;
  padding-left: 14px;
}

.policy-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary-red);
  border-radius: 4px;
}

.policy-text {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 14px;
}

.policy-list {
  margin: 14px 0 18px 24px;
  color: #334155;
  line-height: 1.8;
  font-size: 0.96rem;
}

.policy-list li {
  margin-bottom: 8px;
}

.policy-callout {
  background: #fff8f5;
  border-left: 4px solid var(--secondary-orange);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.policy-callout.alert-green {
  background: var(--savings-bg);
  border-left-color: var(--savings-green);
}

.policy-callout.alert-red {
  background: #fef2f2;
  border-left-color: var(--primary-red);
}

.policy-callout-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* About Us Custom Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.about-stat-box {
  background: #fff5f2;
  border: 1px solid #ffe4dd;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
}

.about-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
  font-family: var(--font-heading);
}

.about-stat-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

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

.value-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #ffd6cc;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Contact Page Grid */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card-item {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.contact-card-item:hover {
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  font-size: 1.8rem;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.contact-card-detail h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.contact-card-detail p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-card-detail a {
  color: var(--primary-red);
  font-weight: 700;
  word-break: break-all;
}

.contact-card-detail a:hover {
  text-decoration: underline;
}

.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-xs);
}

.contact-form-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-group-contact {
  margin-bottom: 18px;
}

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

.form-input-contact {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition);
  background: #ffffff;
}

.form-input-contact:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(234, 46, 46, 0.15);
}

.btn-contact-submit {
  width: 100%;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(234, 46, 46, 0.3);
  transition: var(--transition);
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 46, 46, 0.4);
}

/* Responsive adjustments for policy pages */
@media (max-width: 900px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .policy-card {
    padding: 24px 18px;
  }
  .policy-hero {
    padding: 28px 0 20px;
  }
  .policy-hero-title {
    font-size: 1.7rem;
  }
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
}

