:root {
  --primary: #FF3E6C;
  --primary-dark: #e12f5a;
  --secondary: #14213D;
  --accent: #FFB400;
  --success: #14A44D;
  --bg-light: #F8F9FB;
  --text-dark: #282C3F;
  --text-muted: #7E818C;
  --border-color: #eaeaec;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  font-size: 15px;
}

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

.container-fluid-custom { padding-left: 4%; padding-right: 4%; }

/* ---------- Top Utility Bar ---------- */
.topbar {
  background: var(--secondary);
  color: #fff;
  font-size: 12.5px;
  padding: 6px 0;
}
.topbar a { color: #cfd6e6; margin-left: 14px; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.main-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--secondary); }
.logo small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: -4px;
}

.search-box {
  position: relative;
  max-width: 380px;
}
.search-box input {
  border-radius: 30px;
  border: 1.5px solid var(--border-color);
  padding: 6px 36px 6px 14px;
  width: 100%;
  font-size: 13px;
  background: var(--bg-light);
  transition: 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.search-box button {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  padding: 0 13px;
  font-size: 12px;
}

.header-icons a {
  color: var(--text-dark);
  font-size: 20px;
  margin-left: 22px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 22px;
}
.header-icons a .icon-label { font-size: 11px; margin-top: 2px; font-weight: 600; color: var(--text-dark); }
.header-icons a:hover, .header-icons a:hover .icon-label { color: var(--primary); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Nav ---------- */
.main-nav {
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.main-nav > div > ul { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav ul li a {
  display: block;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 220px; max-width: 320px;
  max-height: 70vh; overflow-y: auto;
  box-shadow: var(--shadow-hover); border-radius: 0 0 8px 8px;
  list-style: none; padding: 8px 0; margin: 0; z-index: 1001;
  border-top: 2px solid var(--primary);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a { padding: 8px 18px; text-transform: none; font-weight: 500; font-size: 13px; }
.nav-dropdown-menu li a:hover { background: var(--bg-light); color: var(--primary); }

/* ---------- Mobile slide-in menu ---------- */
.mobile-menu-toggle { border: none; background: none; font-size: 22px; color: var(--text-dark); padding: 4px 8px; }
body.mobile-menu-open { overflow: hidden; }
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1900;
}
.mobile-menu-overlay.show { display: block; }
.mobile-menu-panel {
  position: fixed; top: 0; left: -320px; bottom: 0; width: 300px; max-width: 85vw;
  background: #fff; z-index: 2000; overflow-y: auto; transition: left 0.25s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.mobile-menu-panel.show { left: 0; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border-color);
}
.mobile-menu-header button { border: none; background: none; font-size: 20px; color: var(--text-muted); }
.mobile-menu-list { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu-list > li > a {
  display: block; padding: 13px 18px; font-weight: 600; font-size: 14px; color: var(--text-dark); border-bottom: 1px solid var(--bg-light);
}
.mobile-accordion-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-bottom: 1px solid var(--bg-light); cursor: pointer;
}
.mobile-accordion-head a { flex: 1; padding: 13px 0; font-weight: 600; font-size: 14px; color: var(--text-dark); }
.mobile-accordion-head i { font-size: 12px; color: var(--text-muted); transition: transform 0.2s; padding: 13px 4px; }
.mobile-accordion.open .mobile-accordion-head i { transform: rotate(180deg); }
.mobile-accordion-body {
  display: none; list-style: none; margin: 0; padding: 4px 0 8px; background: var(--bg-light);
}
.mobile-accordion.open .mobile-accordion-body { display: block; }
.mobile-accordion-body li a { display: block; padding: 10px 18px 10px 32px; font-size: 13.5px; color: var(--text-muted); }
.mobile-accordion-body li a:hover { color: var(--primary); }

/* ---------- Hero / Banner Slider ---------- */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 20px; }
.hero-slide {
  background-size: cover;
  background-position: center;
  min-height: 340px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,33,61,0.75) 0%, rgba(20,33,61,0.15) 70%);
  border-radius: var(--radius);
}
.hero-slide-content { position: relative; z-index: 2; padding: 40px 60px; color: #fff; max-width: 520px; }
.hero-slide-content h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.hero-slide-content p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }

/* ---------- Section Titles ---------- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px;
}
.section-title h3 { font-size: 22px; font-weight: 700; margin: 0; position: relative; padding-left: 14px; }
.section-title h3::before {
  content: '';
  position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 5px; background: var(--primary); border-radius: 3px;
}
.section-title a { font-size: 13.5px; font-weight: 600; color: var(--primary); }

/* ---------- Category Cards ---------- */
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 20px 10px;
  box-shadow: var(--shadow);
  transition: 0.25s;
  height: 100%;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cat-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.cat-card h6 { font-size: 13.5px; font-weight: 700; margin: 0; }

/* ---------- Product Card ---------- */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s;
  height: 100%;
  position: relative;
  border: 1px solid transparent;
}
.product-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-color); transform: translateY(-4px); }
.product-thumb { position: relative; overflow: hidden; background: #f4f5f7; aspect-ratio: 1/1;}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.35s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.badge-new {
  position:absolute; top:10px; right:10px; left:auto; z-index:3;
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:20px; padding:0 7px;
  border-radius:4px; background:#dc2626; color:#fff;
  font-size:9px; font-weight:800; line-height:1; letter-spacing:.5px;
  box-shadow:0 3px 8px rgba(220,38,38,.25);
  pointer-events:none;
}

.badge-discount {
  position: absolute; top: 10px; left: 10px;
  background: var(--success); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); border: none; color: var(--text-muted);
  transition: 0.2s;
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--primary); }
.product-info { padding: 14px; }
.product-cat { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.product-name {
  font-size: 14px; font-weight: 600; margin: 4px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.price-row { display: flex; align-items: center; gap: 8px; }
.price-now { font-size: 16px; font-weight: 800; color: var(--text-dark); }
.price-mrp { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-off { font-size: 12.5px; color: var(--success); font-weight: 700; }
.btn-add-cart {
  width: 100%; margin-top: 10px; border: none; border-radius: 6px;
  background: var(--secondary); color: #fff; padding: 9px; font-weight: 700; font-size: 13px;
  transition: 0.2s;
}
.btn-add-cart:hover { background: var(--primary); color: #fff; }
.btn-add-cart:disabled { background: #ccc; cursor: not-allowed; }

/* ---------- Buttons ---------- */
.btn-primary-brand {
  background: var(--primary); border-color: var(--primary); color: #fff;
  font-weight: 700; border-radius: 6px; padding: 10px 22px;
}
.btn-primary-brand:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-brand {
  border: 1.5px solid var(--primary); color: var(--primary); font-weight: 700; border-radius: 6px; padding: 9px 20px; background: transparent;
}
.btn-outline-brand:hover { background: var(--primary); color: #fff; }

/* ---------- Promo strip ---------- */
.promo-strip { background: var(--secondary); color: #fff; border-radius: var(--radius); padding: 26px 30px; margin: 40px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;}
.promo-strip h4 { margin: 0; font-weight: 700; }
.promo-strip p { margin: 0; color: #cfd6e6; font-size: 13.5px; }

/* ---------- Small Admin-Managed Promo Banner ---------- */
.mini-promo-banner { margin: 30px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mini-promo-banner img { width: 100%; max-height: 140px; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .mini-promo-banner img { max-height: 100px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: #cfd6e6; margin-top: 60px; padding-top: 50px; font-size: 13.5px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 18px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { color: #cfd6e6; }
.site-footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding: 18px 0; text-align: center; font-size: 12.5px; color: #9aa4bd; }
.social-icons a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; color: #fff;
}
.social-icons a:hover { background: var(--primary); }
.payment-icons img { height: 26px; margin-right: 8px; opacity: 0.9; }

/* ---------- Trust badges ---------- */
.trust-badges { display: flex; justify-content: space-around; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 40px 0; }
.trust-item { text-align: center; padding: 10px 16px; }
.trust-item i { font-size: 28px; color: var(--primary); margin-bottom: 8px; display: block; }
.trust-item h6 { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.trust-item p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: #fff; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; }

/* ---------- Auth Forms ---------- */
.auth-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; max-width: 460px; margin: 50px auto; }
.auth-card h3 { font-weight: 800; margin-bottom: 6px; }
.form-control, .form-select { border-radius: 6px; padding: 10px 14px; border: 1.5px solid var(--border-color); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,62,108,0.12); }
.form-label { font-weight: 600; font-size: 13.5px; }

/* ---------- Product Detail ---------- */
.pd-gallery-main { border-radius: var(--radius); overflow: hidden; background: #f4f5f7; aspect-ratio: 1/1; display:flex; align-items:center; justify-content:center; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.pd-price-now { font-size: 30px; font-weight: 800; }
.pd-stock { font-size: 13.5px; font-weight: 700; color: var(--success); }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border-color); border-radius: 6px; width: fit-content; }
.qty-selector button { border: none; background: none; width: 36px; height: 38px; font-weight: 700; font-size: 16px; }
.qty-selector input { width: 48px; text-align: center; border: none; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }

/* ---------- Cart Page ---------- */
.cart-item-row { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.cart-item-row img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.order-summary-box { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.order-summary-box .row-line { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.order-summary-box hr { margin: 14px 0; }

/* ---------- Badges / status ---------- */
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; text-transform: capitalize; }
.status-placed { background: #E3F2FD; color: #1565C0; }
.status-processing { background: #FFF3E0; color: #E65100; }
.status-shipped { background: #EDE7F6; color: #4527A0; }
.status-delivered { background: #E8F5E9; color: #2E7D32; }
.status-cancelled { background: #FFEBEE; color: #C62828; }
.status-paid { background: #E8F5E9; color: #2E7D32; }
.status-pending { background: #FFF8E1; color: #F57F17; }
.status-failed { background: #FFEBEE; color: #C62828; }

/* ---------- Alerts ---------- */
.alert { border-radius: 8px; border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero-slide-content { padding: 24px; }
  .hero-slide-content h2 { font-size: 24px; }
  .header-icons a { margin-left: 14px; font-size: 20px; }
  .promo-strip { text-align: center; justify-content: center; }
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 1050;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 767px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 26px; }
}

/* ---------- App Store Badges ---------- */
.app-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.app-badge-link img { height: 40px; width: auto; border-radius: 6px; }

/* ---------- Product Slider (Featured / New Arrivals) ---------- */
.product-slider-wrap { position: relative; }
.product-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.product-slider-track::-webkit-scrollbar { display: none; }
.product-slide-item {
  flex: 0 0 calc(25% - 12px);
  scroll-snap-align: start;
  min-width: 0;
}
.slider-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: var(--text-dark);
  transition: 0.2s;
}
.slider-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slider-nav.prev { left: -18px; }
.slider-nav.next { right: -18px; }
@media (max-width: 991px) {
  .product-slide-item { flex: 0 0 calc(50% - 8px); }
  .slider-nav { display: none; }
}

/* ---------- Category 4x4 Product Grid Sections ---------- */
.category-section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 20px;
}
.category-section-banner h3 { margin: 0; }

/* ---------- Back to Top Floating Button ---------- */
/* Stacked directly above the WhatsApp button (both right-aligned) so they never overlap. */
.back-to-top-float {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 1050;
  transition: transform 0.2s, background 0.2s;
}
.back-to-top-float.show { display: flex; }
.back-to-top-float:hover { background: var(--primary); transform: scale(1.08); }
.back-to-top-float-low { bottom: 22px; }
@media (max-width: 767px) {
  .back-to-top-float { bottom: 76px; right: 16px; width: 42px; height: 42px; font-size: 16px; }
  .back-to-top-float-low { bottom: 16px; }
}

/* ---------- PWA Install Button ---------- */
.pwa-install-float {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 700;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 1049;
  transition: transform 0.2s, background 0.2s;
}
.pwa-install-float:hover { background: var(--primary); color: #fff; }
@media (max-width: 767px) {
  .pwa-install-float { bottom: 78px; padding: 10px 20px; font-size: 12.5px; }
}

/* ---------- Product Image Lens Zoom ---------- */
.pd-gallery-main { position: relative; }
.pd-lens {
  position: absolute;
  display: none;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.35);
  border: 2px solid var(--primary);
  cursor: crosshair;
  pointer-events: none;
  border-radius: 4px;
  z-index: 5;
}
.pd-zoom-result {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 16px);
  width: 420px;
  height: 420px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-repeat: no-repeat;
  background-color: #f4f5f7;
  box-shadow: var(--shadow-hover);
  z-index: 20;
}
@media (max-width: 1199px) {
  .pd-zoom-result { display: none !important; } /* not enough room beside the gallery on smaller desktops/tablets */
  .pd-lens { display: none !important; }
}
@media (hover: none) {
  /* touch devices: no hover, so skip the lens entirely rather than leaving a dead cursor box */
  .pd-lens, .pd-zoom-result { display: none !important; }
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--secondary);
  color: #fff;
  z-index: 1100;
  padding: 14px 20px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-consent-inner p { font-size: 13.5px; color: #e5e8f0; max-width: 780px; }
@media (max-width: 575px) {
  .cookie-consent-inner { flex-direction: column; align-items: stretch; text-align: center; }
}
