/* Combined BD — E-Commerce Design System (Plain CSS) */

:root {
  --primary: #0f62fe; /* Confident electric blue */
  --primary-hover: #0353e9;
  --accent: #ff5a00; /* High-contrast orange for CTAs */
  --accent-hover: #e04f00;
  
  --bg: #ffffff;
  --bg-secondary: #f4f4f6;
  
  --text: #161616;
  --text-muted: #5e5e5e;
  --text-white: #ffffff;
  
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  
  --success: #198754;
  --error: #dc3545;
  --warning: #ffc107;
  
  --font: 'Hind Siliguri', 'Inter', sans-serif;
  
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Ensure HTML hidden attribute always works — prevents display:flex/grid from overriding it */
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  gap: 0.5rem;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(255, 90, 0, 0.2);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--primary);
  color: var(--text-white);
}
.btn-secondary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text);
}
.btn-outline:hover {
  background-color: var(--bg-secondary);
}
.btn-full { width: 100%; }
.btn-large {
  padding: 0.9rem 1.5rem;
  font-size: 1.1rem;
}

/* STICKY HEADER */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  gap: 0.3rem;
}
.logo-icon { font-size: 1.6rem; }
.logo-accent { color: var(--primary); }

.search-wrapper {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.search-form {
  display: flex;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.6rem 2.8rem 0.6rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 30px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}
.search-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 350px;
  overflow-y: auto;
  z-index: 110;
  padding: 0.5rem;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.search-item:hover { background-color: var(--bg-secondary); }
.search-item-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}
.search-item-info {
  display: flex;
  flex-direction: column;
}
.search-item-name { font-size: 0.9rem; font-weight: 600; }
.search-item-price { font-size: 0.85rem; color: var(--primary); font-weight: 700; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text);
  border-radius: 3px;
}

/* Category Mega Menu */
.category-nav {
  border-top: 1px solid var(--border);
  background-color: white;
}
.cat-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cat-item {
  position: relative;
}
.cat-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.cat-link:hover { color: var(--primary); }
.chevron { margin-left: 2px; }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 200px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 105;
}
.cat-item:hover .sub-menu { display: flex; }
.sub-link {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sub-link:hover { background-color: var(--bg-secondary); color: var(--primary); }

/* Mobile Menu Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  bottom: 0;
  width: 280px;
  background-color: white;
  z-index: 210;
  box-shadow: var(--shadow-lg);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { left: 0; }
.drawer-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.drawer-nav {
  padding: 1rem 0;
  overflow-y: auto;
}
.drawer-link {
  display: block;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.drawer-sub {
  padding-left: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* HERO SLIDER */
.hero-section {
  margin-bottom: 2rem;
}
.hero-slider {
  position: relative;
  height: auto;
  overflow: hidden;
  aspect-ratio: 2.4 / 1;/* image aspect ratio*/
  background-color: var(--bg-secondary);
}
.slide-img {
  object-fit: contain;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slide-content {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  z-index: 3;
  max-width: 500px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.slide-headline { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.slide-sub { font-size: 1.2rem; margin-bottom: 1.5rem; }
.hero-placeholder-inner {
  text-align: center;
  padding: 3rem;
}

.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background-color 0.2s;
}
.slider-prev:hover, .slider-next:hover { background-color: white; }
.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active { background-color: white; width: 14px; border-radius: 5px; }

/* CATEGORY QUICK-NAV */
.quick-nav-section {
  margin-bottom: 2.5rem;
}
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.quick-nav-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.quick-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.quick-nav-icon { font-size: 2rem; }
.quick-nav-label { font-weight: 600; font-size: 0.9rem; }

/* PRODUCT CARD & SECTIONS */
.product-section {
  margin-bottom: 3rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--bg-secondary);
  padding-bottom: 0.5rem;
}
.section-title { font-size: 1.4rem; position: relative; }
.section-title::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}
.see-all-link { font-weight: 600; color: var(--primary); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}
.card-img-link {
  position: relative;
  aspect-ratio: 1;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.5rem;
}
.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
}
.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price-current {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
}
.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.out-of-stock-label {
  color: var(--error);
  font-weight: 600;
  font-size: 0.9rem;
}
.card-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  margin-top: auto;
}
.btn-add-cart {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}
.btn-order-now {
  padding: 0.5rem;
  font-size: 0.85rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 99;
  animation: pulse 2s infinite;
  transition: bottom 0.3s ease-in-out;
}

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  bottom: 0;
  width: 380px;
  max-width: 100%;
  background-color: white;
  z-index: 310;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; }
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.cart-empty-msg { text-align: center; color: var(--text-muted); margin-top: 3rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg-secondary);
  padding-bottom: 1.25rem;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.2rem; }
.cart-item-price { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.cart-qty-ctrl { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-remove { background: none; border: none; color: var(--error); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 1rem; }

/* USP STRIP */
.usp-strip {
  background-color: var(--bg-secondary);
  padding: 2rem 0;
  margin-top: 2rem;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.usp-item strong { display: block; font-size: 0.95rem; }
.usp-item span { font-size: 0.85rem; color: var(--text-muted); }

/* SITE FOOTER */
.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { font-size: 1.6rem; font-weight: 800; color: white; }
.footer-heading { color: white; font-size: 1.1rem; margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.6rem; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.payment-badge {
  background-color: #222;
  border: 1px solid #333;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsiveness Pass */
@media (max-width: 768px) {
  /* Typography scale down */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  body { font-size: 0.95rem; }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem 1rem;
  }
  .logo {
    order: 1;
  }
  .cart-btn {
    order: 2;
    margin-left: auto;
  }
  .hamburger {
    order: 3;
    display: flex;
  }
  .search-wrapper {
    display: block;
    width: 100%;
    max-width: none;
    order: 4;
    margin: 0;
  }
  .category-nav { display: none; }
  
  /* Homepage slider lower height */
  .hero-slider { 
    height: auto;  /* previous 200 and 2,3 no wasn"t*/
    aspect-ratio: 2.4 / 1;
    background-color: var(--bg-secondary); 
  }
   .slide-img {
    object-fit: contain; /* show full image, no cropping */
  }
  .slide-content { left: 5%; right: 5%; max-width: none; text-align: center; }
  .slide-headline { font-size: 1.4rem; }
  .slide-sub { font-size: 0.85rem; margin-bottom: 0.8rem; }
  .slider-prev, .slider-next { width: 30px; height: 30px; }

  /* 4-column quick nav on mobile dashboard */
  .quick-nav-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .quick-nav-card {
    padding: 0.6rem 0.25rem;
  }
  .quick-nav-icon {
    font-size: 1.5rem;
  }
  .quick-nav-label {
    font-size: 0.75rem;
  }

  /* 2-column mobile product cards layout */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card .card-body {
    padding: 0.6rem;
    gap: 0.4rem;
  }
  .product-card .card-title {
    font-size: 0.82rem;
    height: 2.8em;
    margin-bottom: 0.2rem;
  }
  .product-card .price-current {
    font-size: 0.95rem;
  }
  .product-card .price-original {
    font-size: 0.75rem;
  }
  
  /* Compact Add-to-cart & Prominent Buy-Now buttons */
  .card-actions {
    grid-template-columns: 38px 1fr;
    gap: 0.3rem;
  }
  .add-cart-text {
    display: none; /* Hide text, only show icon */
  }
  .btn-add-cart {
    padding: 0.5rem 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }
  .btn-order-now {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.25rem;
    background: linear-gradient(135deg, var(--accent), #ff7a1a);
    box-shadow: 0 3px 8px rgba(255, 90, 0, 0.25);
    color: white;
    border-radius: 6px;
    text-align: center;
  }

  /* Mobile Swipe rows */
  .homepage-swipe {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .homepage-swipe .product-card {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }
  .homepage-swipe .product-card .card-actions {
    grid-template-columns: 36px 1fr;
  }

  /* Compact USP strip */
  .usp-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .usp-item {
    padding: 0.25rem 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ADDITIONAL PAGES DESIGN SYSTEM (PRODUCT DETAIL, SHOP, CHECKOUT, CONFIRM)
   ───────────────────────────────────────────────────────────────────────────── */

/* Product Detail Page */
.product-detail-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.product-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-section {
    max-width: 100%;
    align-self: stretch;
  }
  .gallery-thumbs {
    gap: 0.5rem;
    padding-bottom: 0.4rem;
  }
  .thumb-btn {
    width: 64px;
    height: 64px;
  }
}
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 450px;
  width: 100%;
}
.gallery-main {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox-trigger {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.2s;
}
.lightbox-trigger:hover { transform: scale(1.05); }
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.thumb-btn {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  padding: 0;
  transition: border-color 0.2s;
  scroll-snap-align: start;
}
.thumb-btn.active {
  border-color: var(--primary);
  border-width: 2px;
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.product-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
}
.product-price-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background-color: var(--bg-secondary);
  padding: 1rem 1.25rem;
  border-radius: 8px;
}
.product-price-current {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}
.product-price-original {
  font-size: 1.3rem;
  text-decoration: line-through;
  color: var(--text-muted);
}
.product-savings-badge {
  background-color: #ffeef0;
  color: var(--error);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.stock-status.in-stock { color: var(--success); }
.stock-status.out-of-stock { color: var(--error); }

.product-short-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}
.product-actions-block {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
@media (max-width: 480px) {
  .product-actions-block {
    flex-direction: column;
    align-items: stretch;
  }
  .product-cta-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }
  .product-cta-buttons .btn-add-cart {
    width: 100%;
    height: 46px;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
  }
  .product-cta-buttons .btn-order-now-lg {
    width: 100%;
    font-size: 1rem;
  }
}
.qty-selector {
  display: flex;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  height: 46px;
  background: white;
}
.qty-btn {
  background-color: var(--bg-secondary);
  border: none;
  width: 44px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}
.qty-btn:hover { background-color: var(--border); }
.qty-input {
  width: 46px;
  border: none;
  text-align: center;
  font-weight: 700;
  outline: none;
}
.product-cta-buttons {
  display: flex;
  gap: 0.8rem;
  flex: 1;
}
.btn-order-now-lg {
  background-color: var(--accent);
  color: white;
  flex: 1;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25);
  border-radius: 6px;
  height: 46px;
   animation: orderPulse 1s infinite;
}
.btn-order-now-lg:hover {
  background-color: var(--accent-hover);
  animation: none; 
}

.delivery-info-strip {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.delivery-info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Tabs */
.product-tabs {
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.tabs-nav {
  display: flex;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  padding: 1rem 1.75rem;
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.tab-btn.active {
  background-color: white;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.tab-panel {
  padding: 2rem;
  display: none;
}
.tab-panel.active {
  display: block;
}
.rich-text {
  font-size: 1rem;
  line-height: 1.7;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table th, .specs-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.specs-table th {
  font-weight: 700;
  color: var(--text-muted);
  width: 30%;
  text-align: left;
  background-color: var(--bg-secondary);
}
.specs-table td {
  text-align: left;
}
.delivery-policy ul {
  padding-left: 1.5rem;
}
.delivery-policy li {
  margin-bottom: 0.5rem;
}

/* Lightbox — hidden by default, flex when active */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.95);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox:not([hidden]) {
  display: flex;
}
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background-color: rgba(255,255,255,0.25);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Related Products */
.related-products {
  margin-top: 4rem;
}
.related-products .section-title {
  margin-bottom: 1.5rem;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 98;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}
.sticky-mobile-cta.visible {
  display: flex;
}
@media (min-width: 769px) {
  .sticky-mobile-cta.visible { display: none; }
}
.sticky-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.sticky-btns {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  justify-content: flex-end;
}
.sticky-btns .btn {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .whatsapp-float.shifted {
    bottom: 135px; /* Clear the bottom sticky CTA height + padding */
  }
  body.has-sticky-cta {
    padding-bottom: 130px; /* Ensure content (like the footer) can be scrolled above the sticky bottom CTA */
  }
}

/* Shop Listing Page */
.shop-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.page-breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}
.filter-sidebar {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
}
@media (max-width: 768px) {
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 280px;
    z-index: 250;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .filter-sidebar.open {
    left: 0;
  }
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.filter-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.filter-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}
@media (max-width: 768px) {
  .filter-close { display: block; }
}
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.filter-group {
  display: flex;
  flex-direction: column;
}
.filter-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--bg-secondary);
  padding-bottom: 0.4rem;
  color: var(--text);
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}
.filter-check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.price-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
}
.price-input:focus { border-color: var(--primary); }

.shop-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.shop-title {
  font-size: 1.6rem;
  font-weight: 700;
}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.shop-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.filter-toggle {
  display: none;
}
@media (max-width: 768px) {
  .filter-toggle { display: inline-flex; }
}
.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  background-color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}
.load-more-btn {
  padding: 0.75rem 2rem;
  font-weight: 700;
}
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px dashed var(--border-dark);
  border-radius: 8px;
}
.empty-state h2 { font-size: 1.5rem; margin-top: 1rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }

/* Checkout Page */
.checkout-page {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}
.checkout-header-msg {
  margin-bottom: 2.5rem;
}
.checkout-header-msg h1 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 800; }
.checkout-header-msg p { color: var(--text-muted); font-size: 1.05rem; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}
.delivery-info-card {
  grid-column: 1;
  grid-row: 1;
}
.payment-info-card {
  grid-column: 1;
  grid-row: 2;
}
.checkout-summary-section {
  grid-column: 2;
  grid-row: 1 / span 2;
}
@media (max-width: 992px) {
  .checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .delivery-info-card {
    order: 1;
    width: 100%;
    margin-bottom: 0;
  }
  .checkout-summary-section {
    order: 2;
    width: 100%;
  }
  .payment-info-card {
    order: 3;
    width: 100%;
    margin-bottom: 0;
  }
}
.form-section-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--bg-secondary);
  padding-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 98, 254, 0.2);
}
.form-group-styled {
  margin-bottom: 1.5rem;
}
.form-group-styled input, 
.form-group-styled select, 
.form-group-styled textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.25s ease-in-out;
}
.form-group-styled input::placeholder,
.form-group-styled textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.form-group-styled input:focus, 
.form-group-styled select:focus, 
.form-group-styled textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}
.form-group-styled select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.1rem;
  padding-right: 2.8rem;
}
@keyframes priceFlash {
  0% { opacity: 0.4; transform: scale(0.97); color: var(--primary); }
  100% { opacity: 1; transform: scale(1); }
}
.price-changed {
  animation: priceFlash 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.required { color: var(--error); }
.field-error {
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.payment-methods-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.payment-method-option {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  font-weight: 700;
  color: #334155;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
}
.payment-method-option:hover {
  background-color: #f8fafc;
  border-color: var(--border-dark);
  transform: translateY(-1px);
}
.payment-method-option:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(145deg, #f0f6ff, #ffffff);
  box-shadow: 0 0 0 1px var(--primary);
  color: var(--primary);
}
.payment-method-option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.bkash-instructions-box {
  background-color: #fff0f6;
  border: 1px solid #ffd1e3;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.25rem;
}
.bkash-alert {
  color: #e2127d;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.bkash-details-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.bkash-qr-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border: 1px solid #ffd1e3;
  border-radius: 6px;
  background: white;
}
.bkash-num-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.bkash-num-info strong {
  font-size: 1.4rem;
  color: #e2127d;
  display: block;
}
.bkash-hint { font-size: 0.85rem; color: #e2127d; font-weight: 600; }

.checkout-submit-mobile {
  display: none;
}
@media (max-width: 992px) {
  .checkout-submit-mobile { display: block; margin-top: 1.5rem; }
}
/* Checkout column wrappers */
.checkout-form-section { min-width: 0; }
.checkout-summary-section { min-width: 0; }
/* Utility spacing */
.mt-2 { margin-top: 1rem; }

.checkout-summary-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: 90px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
}
@media (max-width: 992px) {
  .checkout-summary-card { position: static; }
}
.checkout-summary-card h2 { font-size: 1.35rem; margin-bottom: 1.75rem; font-weight: 700; border-bottom: 2px solid var(--bg-secondary); padding-bottom: 0.75rem; }
.delivery-estimate-badge {
  background-color: #f0f9ff;
  border: 1px solid #b9e6fe;
  color: #026aa2;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.checkout-summary-items {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-secondary);
}
.summary-item-left {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.summary-item-left img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.summary-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-item-qty {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.summary-item-price { font-weight: 700; font-size: 0.95rem; }
.summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
.summary-divider-thin {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1rem 0;
}
.summary-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.total-row-final {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 0.5rem;
}
#place-order-btn-desktop {
  display: block;
}
@media (max-width: 992px) {
  #place-order-btn-desktop { display: none; }
}

/* Confirmation Page */
.confirmation-page {
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.confirmation-card {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon-wrap {
  width: 80px;
  height: 80px;
  background-color: #e6fcf5;
  color: #0ca678;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-checkmark {
  width: 44px;
  height: 44px;
}
.confirmation-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.order-id-label {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.success-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.delivery-eta-box {
  background-color: var(--bg-secondary);
  padding: 1.1rem;
  border-radius: 6px;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
}
.confirmation-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
}
@media (max-width: 600px) {
  .confirmation-details-grid {
    grid-template-columns: 1fr;
  }
}
.details-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background-color: white;
}
.details-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  border-bottom: 1.5px solid var(--bg-secondary);
  padding-bottom: 0.5rem;
  font-weight: 700;
}
.details-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.final-total {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
}
.confirmation-items-box {
  text-align: left;
  margin-bottom: 2.5rem;
}
.confirmation-items-box h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.confirm-items-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  background-color: white;
}
.confirm-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-secondary);
}
.confirm-item-row:last-child {
  border-bottom: none;
}
.ci-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ci-left img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.ci-left span { font-weight: 600; font-size: 0.95rem; }
.confirm-item-row strong { font-weight: 700; font-size: 0.95rem; }
.confirmation-actions {
  display: flex;
  justify-content: center;
}
.confirmation-actions .btn {
  padding: 0.8rem 2.5rem;
  font-size: 1.05rem;
}

.phone-highlight {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.phone-highlight:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@keyframes orderPulse {
  0% {
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25), 0 0 0 0 rgba(255, 90, 0, 0.5);
  }
  70% {
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25), 0 0 0 10px rgba(255, 90, 0, 0);
  }
  100% {
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25), 0 0 0 0 rgba(255, 90, 0, 0);
  }
}
 