/* ── Google Font: Poppins ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:     #1a1a2e;
  --accent:      #e94560;
  --accent-dark: #c73652;
  --gold:        #f0a500;
  --light-bg:    #f4f6fb;
  --card-bg:     #ffffff;
  --text-main:   #1a1a2e;
  --text-muted:  #6c757d;
  --border:      #e8ecf0;
  --radius:      14px;
  --shadow-sm:   0 2px 12px rgba(26,26,46,.07);
  --shadow-md:   0 8px 32px rgba(26,26,46,.13);
  --shadow-lg:   0 16px 48px rgba(26,26,46,.18);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light-bg);
  color: var(--text-main);
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar-premium {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  box-shadow: 0 4px 24px rgba(26,26,46,.35);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 1040;
}
.navbar-premium .navbar-brand {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: #fff !important;
  padding: 14px 0;
}
.navbar-premium .brand-dot {
  color: var(--accent);
}
.navbar-premium .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-weight: 500;
  font-size: .88rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all .2s;
}
.navbar-premium .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}
.search-bar {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  font-size: .88rem;
  font-family: 'Poppins', sans-serif;
  transition: all .25s;
}
.search-bar::placeholder { color: rgba(255,255,255,.5) !important; }
.search-bar:focus {
  background: rgba(255,255,255,.2) !important;
  box-shadow: 0 0 0 3px rgba(233,69,96,.3) !important;
  outline: none;
}
.btn-search {
  background: var(--accent) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  color: #fff !important;
  font-weight: 600;
  font-size: .85rem;
}
.btn-search:hover { background: var(--accent-dark) !important; }

.cart-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  cursor: pointer;
}
.cart-icon-wrap:hover { background: rgba(255,255,255,.22); }
.cart-icon-wrap i { color: #fff; font-size: 1.2rem; }
#cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
#cart-badge.bump { transform: scale(1.5); }

/* ── Hero Banner ── */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #533483 100%);
  padding: 52px 0 48px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(233,69,96,.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 10%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(83,52,131,.4) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-banner h1 {
  font-weight: 800;
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.2;
}
.hero-banner h1 span { color: var(--accent); }
.hero-banner p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  margin-bottom: 0;
}
.hero-search-form {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  max-width: 520px;
  backdrop-filter: blur(10px);
}
.hero-search-form input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: .92rem;
  flex: 1;
  outline: none !important;
  box-shadow: none !important;
}
.hero-search-form input::placeholder { color: rgba(255,255,255,.5); }
.hero-search-form button {
  background: var(--accent);
  border: none;
  border-radius: 50px;
  padding: 9px 24px;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s;
}
.hero-search-form button:hover { background: var(--accent-dark); }
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat .lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Filter Section ── */
.filter-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 62px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(26,26,46,.06);
}
.cat-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  background: #fff;
}
.cat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(233,69,96,.05);
}
.cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.brand-select {
  border: 1.5px solid var(--border) !important;
  border-radius: 50px !important;
  font-size: .8rem !important;
  font-family: 'Poppins', sans-serif !important;
  padding: 5px 16px !important;
  color: var(--text-main) !important;
  background-color: #fff !important;
  cursor: pointer;
}
.brand-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(233,69,96,.15) !important;
}

/* ── Sidebar ── */
.sidebar-wrap {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.sidebar-wrap::-webkit-scrollbar { width: 4px; }
.sidebar-wrap::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.sidebar-section {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.sidebar-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-cat-item {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-cat-item:hover {
  background: rgba(233,69,96,.07);
  color: var(--accent);
}
.sidebar-cat-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.sidebar-cat-item.active i { opacity: 1 !important; color: rgba(255,255,255,.7); }

/* Active filter tags */
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  background: #eef2ff;
  color: #4338ca;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}
.active-filter-tag a { color: #4338ca; }
.active-filter-tag a:hover { color: var(--accent); }

/* ── Product Card ── */
.product-card {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  background: var(--card-bg);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(233,69,96,.3) !important;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .3s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-img-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
}

/* Card eye btn */
.card-eye-btn {
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(26,26,46,.65) !important;
  border: none !important;
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.product-card:hover .card-eye-btn { opacity: 1; }
.card-eye-btn:hover {
  opacity: 1 !important;
  transform: scale(1.15);
  background: var(--accent) !important;
}

/* Price */
.price-sales {
  font-weight: 700;
  font-size: .98rem;
  color: #16a34a;
}
.price-mrp {
  font-size: .75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-plain {
  font-weight: 700;
  font-size: .98rem;
  color: var(--accent);
}
.discount-badge {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

/* Card action buttons */
.btn-add-cart {
  background: linear-gradient(135deg, var(--accent) 0%, #c73652 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: .75rem !important;
  border-radius: 50px !important;
  transition: all .2s !important;
}
.btn-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233,69,96,.4) !important;
}
.btn-view-card {
  border: 1.5px solid var(--border) !important;
  color: var(--text-main) !important;
  font-size: .75rem !important;
  border-radius: 50px !important;
  background: #fff !important;
  transition: all .2s !important;
}
.btn-view-card:hover {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}
.btn-cart-link {
  border: 1.5px solid #16a34a !important;
  color: #16a34a !important;
  font-size: .75rem !important;
  border-radius: 50px !important;
  background: #fff !important;
  transition: all .2s !important;
}
.btn-cart-link:hover {
  background: #16a34a !important;
  color: #fff !important;
}

/* ── Product Detail ── */
.detail-price-box {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.btn-primary-premium {
  background: linear-gradient(135deg, var(--accent) 0%, #c73652 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  padding: 12px 30px !important;
  font-family: 'Poppins', sans-serif;
  transition: all .25s !important;
}
.btn-primary-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,69,96,.4) !important;
}
.btn-outline-premium {
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  font-family: 'Poppins', sans-serif;
  background: transparent !important;
  transition: all .25s !important;
}
.btn-outline-premium:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
.qty-btn {
  width: 36px; height: 36px;
  border-radius: 50% !important;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
  color: var(--text-main) !important;
  font-size: 1rem !important;
  transition: all .2s !important;
}
.qty-btn:hover {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
}
.qty-display {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

/* ── Cart Page ── */
.cart-table th {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border) !important;
}
.cart-summary-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
  border-radius: var(--radius);
  color: #fff;
  border: none !important;
}
.btn-checkout {
  background: linear-gradient(135deg, var(--gold) 0%, #e08f00 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 14px !important;
  color: #fff !important;
  transition: all .25s !important;
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,165,0,.45) !important;
}

/* ── Section headings ── */
.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Hover Preview Panel ── */
#hoverPreview {
  position: fixed;
  z-index: 1055;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 330px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
}
#hoverPreview.hp-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Image Zoom Modal ── */
#imgZoomModal { background: rgba(10,10,20,.85); }
#imgZoomModal .modal-dialog { max-width: 720px; }

/* ── Footer ── */
.footer-premium {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  padding: 22px 0;
  margin-top: 60px;
}

/* ── Load More ── */
.btn-load-more {
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  padding: 12px 40px !important;
  background: #fff !important;
  transition: all .25s !important;
  font-family: 'Poppins', sans-serif;
}
.btn-load-more:hover {
  background: var(--accent) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,69,96,.3) !important;
}

/* ── Cart Sidebar (home page) ── */
.cart-sidebar-wrap {
  position: sticky;
  top: 78px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cart-sidebar-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.cart-sidebar-body::-webkit-scrollbar { width: 4px; }
.cart-sidebar-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.cart-sidebar-items { padding: 4px 0; }
.cart-sidebar-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cart-sidebar-item:last-child { border-bottom: none; }
.cart-sidebar-item:hover { background: #fafbff; }
.cart-sidebar-qty {
  width: 32px; height: 32px;
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}
.cart-sidebar-name {
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}
.cart-sidebar-linetotal {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Checkout ── */
.section-label {
  display: flex;
  align-items: center;
}
.checkout-label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.checkout-icon {
  background: #f8f9fb !important;
  border-color: var(--border) !important;
  color: var(--text-muted);
}
.checkout-input {
  border-color: var(--border) !important;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem !important;
}
.checkout-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(233,69,96,.12) !important;
}
/* Step indicator */
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
}
.step-dot.active {
  background: var(--accent);
  color: #fff;
}
.step-line {
  height: 2px; width: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Login / Signup inputs ── */
.signup-icon, .login-icon {
  background: #f8f9fb !important;
  border-color: var(--border) !important;
  color: var(--text-muted);
}
.signup-input, .login-input {
  border-color: var(--border) !important;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem !important;
}
.signup-input:focus, .login-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(233,69,96,.12) !important;
}

/* ── Alerts ── */
.alert { border-radius: var(--radius); border: none; font-size: .88rem; }

/* ── Breadcrumb ── */
.breadcrumb-item a { color: var(--accent); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── Mobile Floating Cart Button ── */
.mob-cart-fab {
  display: none;
}
@media (max-width: 991px) {
  .mob-cart-fab {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 1035;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #c73652);
    color: #fff;
    border-radius: 50px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: .82rem;
    box-shadow: 0 6px 20px rgba(233,69,96,.5);
    transition: transform .2s, box-shadow .2s;
  }
  .mob-cart-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(233,69,96,.6);
    color: #fff;
  }
  .mob-cart-fab .fab-badge {
    background: #fff;
    color: var(--accent);
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem;
    font-weight: 800;
  }
}

/* ── Mobile Responsive ── */

/* Touch devices — disable hover effects, always show eye button */
@media (hover: none), (pointer: coarse) {
  #hoverPreview { display: none !important; }
  .product-card:hover { transform: none !important; box-shadow: var(--shadow-sm) !important; }
  .card-eye-btn {
    opacity: 1 !important;
    background: rgba(26,26,46,.72) !important;
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 767px) {
  /* Hero */
  .hero-banner {
    padding: 28px 0 22px;
  }
  .hero-banner h1 {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .hero-banner p {
    font-size: .85rem;
  }
  .hero-stats {
    gap: 18px;
    margin-top: 18px;
  }
  .hero-stat .num { font-size: 1.2rem; }
  .hero-stat .lbl { font-size: .65rem; }

  /* Navbar brand */
  .navbar-premium .navbar-brand {
    font-size: 1.15rem;
    padding: 10px 0;
  }

  /* Product image */
  .product-img-placeholder { height: 110px; }

  /* Card buttons - touch friendly */
  .btn-add-cart, .btn-view-card, .btn-cart-link {
    padding: 7px 10px !important;
    font-size: .7rem !important;
  }

  /* Product detail buttons */
  .btn-primary-premium, .btn-outline-premium {
    padding: 11px 22px !important;
    font-size: .88rem !important;
  }

  /* Detail price box */
  .detail-price-box { padding: 14px; }

  /* Load more */
  .btn-load-more {
    padding: 10px 24px !important;
    font-size: .85rem;
    width: 100%;
  }

  /* Checkout step line */
  .step-line { width: 18px; }

  /* Active filter tags */
  .active-filter-tag {
    font-size: .68rem;
    padding: 3px 9px;
  }

  /* Footer */
  .footer-premium { margin-top: 80px; }

  /* Cart sidebar body - smaller on mobile */
  .cart-sidebar-body { max-height: 60vh; }
}

@media (max-width: 575px) {
  .hero-banner h1 { font-size: 1.3rem; }
  .hero-stats { gap: 12px; }
  .hero-stat .num { font-size: 1.05rem; }

  /* Checkout form */
  .checkout-label { font-size: .7rem; }

  /* Account tabs */
  #accountTabs .nav-link { padding: 8px 14px; font-size: .8rem; }
}

/* Cart mobile card layout */
.cart-mobile-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}
.cart-mobile-qty {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 52px;
  text-align: center;
  font-size: .88rem;
  font-family: 'Poppins', sans-serif;
  padding: 4px;
}
