/* Shopure Clone - Custom Styles */
:root {
  --orange: #f15a25;
  --orange-dark: #e04e1c;
  --orange-light: #ff7a45;
  --orange-grad: linear-gradient(90deg, #f15a25 0%, #ff8c42 50%, #ff9a4a 100%);
  --black: #1a1a1a;
  --dark: #222;
  --gray: #6c757d;
  --light-bg: #f8f9fa;
  --border: #e9ecef;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Noto Sans Bengali', sans-serif;
  color: #333;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--orange);
}

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

/* ========== TOP HEADER ========== */
.top-header {
  background: #000;
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
}

.top-header .logo img {
  height: 36px;
}

.search-box {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.search-box input {
  width: 100%;
  border-radius: 50px;
  border: none;
  padding: 10px 45px 10px 20px;
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #aaa;
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 5px 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.header-actions a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions a:hover {
  color: var(--orange);
}

.header-actions .badge-count {
  position: relative;
}

.header-actions .badge-count .count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== MAIN NAV ========== */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.main-nav .nav-link {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 12px !important;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: var(--orange);
}

.main-nav .dropdown-menu {
  border: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
}

.main-nav .dropdown-item {
  font-size: 13px;
  padding: 8px 18px;
}

.main-nav .dropdown-item:hover {
  background: #fff5f0;
  color: var(--orange);
}

.social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #555;
  font-size: 14px;
}

.social-icons a:hover {
  background: var(--orange);
  color: #fff;
}

/* ========== HERO / BANNERS ========== */
.hero-section {
  padding: 12px 0 10px;
}
@media (max-width: 991.98px) {
  .hero-section { padding: 2px 10px 0 !important; margin: 0 !important; }
  .hero-section + .features-bar-wrap,
  .features-bar-wrap { margin-top: 0; }
  /* kill extra space under sticky mobile header */
  body > .hero-section,
  main .hero-section { margin-top: 0 !important; }
}

.banner-card {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  position: relative;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  color: #fff;
}

.banner-overlay h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.banner-overlay p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.btn-shop {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-shop:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ========== FEATURE ICONS ========== */
.features-bar {
  background: #fff;
  border-radius: 12px;
  padding: 24px 10px;
  margin: 15px 0 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-item {
  text-align: center;
  padding: 8px;
}

.feature-item .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  color: var(--orange);
  font-size: 28px;
}

.feature-item h6 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
}

.feature-item p {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* ========== SECTION TITLES ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.section-header .view-all {
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
}

.section-header .view-all:hover {
  text-decoration: underline;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.product-img-wrap {
  position: relative;
  padding-top: 100%;
  background: #fafafa;
  overflow: hidden;
}

.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.3s ease;
}

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

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.product-body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  text-align: center !important;
  text-decoration: none;
}
.product-body {
  padding: 10px 12px 14px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.product-card-form {
  margin-top: auto;
  flex-shrink: 0;
}
.product-card .btn-add-cart {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.product-card:hover .product-title {
  /* prevent layout shift on hover */
  color: var(--orange);
}

.product-title:hover {
  color: var(--orange);
}

.product-price {
  margin-bottom: 12px;
  text-align: center !important;
  display: flex !important;
  align-items: baseline;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.product-price .current {
  font-size: 19.2px !important; /* +20% from original 16px */
  font-weight: 700 !important;
  color: var(--orange) !important;
  line-height: 1.2;
}

.product-price .old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-left: 0;
}

.btn-add-cart {
  background: #fff !important;
  border: 1.5px solid #e0e0e0 !important;
  color: #555 !important;
  border-radius: 50px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  height: 40px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none !important;
  filter: none !important;
}

.btn-add-cart:hover {
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  background: #fff8f5 !important;
  filter: none !important;
  transform: none !important;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 0 24px;
  margin-top: 40px;
  margin-bottom: 0;
  font-size: 14px;
}

.site-footer h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul a {
  color: #aaa;
}

.site-footer ul a:hover {
  color: var(--orange);
}

.footer-logo img {
  height: 32px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 18px;
  font-size: 13px;
  color: #888;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payment-icons span {
  background: #333;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #ddd;
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 1050;
  padding: 8px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.mobile-bottom-nav a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #555;
  padding: 4px;
}

.mobile-bottom-nav a i {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--orange);
}

/* ========== SHOP PAGE ========== */
.shop-sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #eee;
}

.shop-sidebar h5 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.shop-sidebar ul {
  list-style: none;
  padding: 0;
}

.shop-sidebar ul li a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: #555;
}

.shop-sidebar ul li a:hover {
  color: var(--orange);
}

.price-filter input {
  width: 80px;
  font-size: 13px;
}

/* ========== PRODUCT DETAIL ========== */
.product-gallery {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #eee;
}

.product-gallery .main-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center;
}

.product-info {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #eee;
}

.product-info h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-info .price-box {
  margin: 16px 0;
}

.product-info .price-box .current {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
}

.product-info .price-box .old {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-left: 10px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.qty-box input {
  width: 60px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
}

.btn-buy {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 15px;
}

.btn-buy:hover {
  background: var(--orange-dark);
  color: #fff;
}

.btn-buy-now {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
}

.btn-buy-now:hover {
  background: #000;
  color: #fff;
}

.product-title-main {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #222;
}

.product-short-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-meta {
  font-size: 13px;
  color: #555;
}

.product-meta li {
  margin-bottom: 6px;
}

.product-meta a {
  color: var(--orange);
}

.save-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 10px;
}

.thumb-list .thumb {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px;
  background: #fff;
  transition: border-color 0.2s;
}

.thumb-list .thumb:hover,
.thumb-list .thumb.active {
  border-color: var(--orange);
}

.main-image-wrap {
  background: #fff;
  border-radius: 10px;
  min-height: 400px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.qty-box .qty-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.product-tabs .nav-tabs {
  border-bottom: 2px solid #eee;
}

.product-tabs .nav-tabs .nav-link {
  color: #555;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-size: 14px;
}

.product-tabs .nav-tabs .nav-link.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  background: transparent;
}

.product-tabs .tab-content {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.product-tabs table th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 13px;
}

.product-tabs table td {
  font-size: 13px;
}

.btn-outline-orange {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline-orange:hover {
  background: var(--orange);
  color: #fff;
}

.delivery-info i {
  flex-shrink: 0;
}

.share-box .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile sticky cart bar */
.mobile-sticky-cart {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 0;
  z-index: 1020;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.view-all {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}

.view-all:hover {
  color: var(--orange-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
  .top-header .search-box {
    max-width: 100%;
    margin: 10px 0;
  }

  .header-actions {
    gap: 12px;
    font-size: 12px;
  }

  .main-nav .nav-link {
    font-size: 13px;
    padding: 12px 8px !important;
  }

  .banner-card {
    min-height: 240px;
    margin-bottom: 12px;
  }

  .banner-overlay h2 {
    font-size: 20px;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 70px; /* space for bottom nav only */
  }
  body.has-sticky-cart {
    padding-bottom: 130px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .product-title-main {
    font-size: 18px;
  }

  .product-info .price-box .current {
    font-size: 22px;
  }

  .btn-buy, .btn-buy-now {
    padding: 10px 16px;
    font-size: 14px;
  }

  .top-header {
    padding: 8px 0;
  }

  .top-header .logo img {
    height: 28px;
  }

  .header-actions span.hide-mobile {
    display: none;
  }

  .features-bar .feature-item h6 {
    font-size: 12px;
  }

  .features-bar .feature-item p {
    font-size: 11px;
  }

  .section-header h3 {
    font-size: 18px;
  }

  .product-title {
    font-size: 12px;
    min-height: 36px;
  }

  .product-price .current {
    font-size: 16.8px !important; /* +20% from original 14px */
  }

  .banner-card, .banner-card img {
    min-height: 200px;
  }

  .ads-section .row {
    justify-content: center;
  }
}

/* Utility */
.bg-orange {
  background-color: var(--orange) !important;
}

.text-orange {
  color: var(--orange) !important;
}

.rounded-12 {
  border-radius: 12px !important;
}


/* Gradient orange buttons */
.btn-gradient, .btn-buy {
  background: var(--orange-grad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 14px rgba(241,90,37,0.35);
}
.btn-gradient:hover, .btn-buy:hover {
  box-shadow: 0 6px 18px rgba(241,90,37,0.5);
  color: #fff !important;
}

/* Product card Add to Cart - rounded pill outline */
.btn-add-cart {
  border-radius: 50px !important;
}

/* Ads section */
.ads-section {
  margin: 28px 0 36px;
}
.ads-section .row {
  justify-content: center;
  align-items: stretch;
}
.ad-banner {
  border-radius: 16px;
  overflow: hidden;
  display: block;
  height: 100%;
}
.ad-banner img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
@media (min-width: 768px) {
  .ad-banner img { min-height: 240px; }
}

/* Mobile header exact match */
.mobile-header {
  display: none;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1040;
}
.mobile-header .menu-btn {
  background: none; border: none; color: #fff; font-size: 26px; padding: 2px; line-height: 1;
}
.mobile-header .logo img { height: 32px; }
.mobile-header .right-icons {
  display: flex; align-items: center; gap: 16px;
}
.mobile-header .right-icons a {
  color: #fff; font-size: 22px; position: relative;
}
.mobile-header .right-icons .count {
  position: absolute; top: -6px; right: -8px;
  background: var(--orange); color: #fff; font-size: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* Bottom nav 5 items + hide on scroll */
.mobile-bottom-nav {
  transition: transform 0.25s ease;
  /* always reserve space via body padding; nav stays fixed */
}
.mobile-bottom-nav.hide-on-scroll { transform: none !important; }
.mobile-bottom-nav a {
  position: relative;
}
.mobile-bottom-nav .cart-badge {
  position: absolute; top: 0; right: 4px;
  background: var(--orange); color: #fff; font-size: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hide desktop header/nav and right banner on mobile */
@media (max-width: 991.98px) {
  .top-header, .main-nav { display: none !important; }
  .mobile-header { display: flex !important; }
  .hero-right, .banner-side, .col-lg-4.hero-side-col { display: none !important; }
  .mobile-bottom-nav { display: flex !important; }
}



/* Equal height: product photo + description */
.product-detail-row { align-items: stretch !important; }
.product-detail-row > [class*="col-"] { display: flex; }
.product-gallery {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100% !important;
}
.product-gallery .main-image-wrap,
.product-main-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  min-height: 0;
  max-height: none;
}
.product-gallery .main-img,
#mainProductImg,
.product-main-img,
#mainImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-info {
  width: 100%;
  height: 100% !important;
  display: flex;
  flex-direction: column;
}
@media (max-width: 991.98px) {
  .product-gallery .main-image-wrap { min-height: 260px; }
}



/* ========== HERO SLIDER (mobile exact match) ========== */
.hero-section {
  padding: 12px 0 8px;
  background: #f5f5f5;
}
.hero-carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background: #fff;
}
.hero-carousel .carousel-inner {
  border-radius: 16px;
}
.hero-carousel .hero-slide-img,
.hero-carousel .carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.hero-carousel .carousel-indicators {
  margin-bottom: 10px;
  gap: 6px;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.55;
  border: none;
  text-indent: 0;
  margin: 0 3px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.hero-carousel .carousel-indicators .active {
  opacity: 1;
  background-color: #f15a25;
  width: 8px;
  height: 8px;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 40px;
  opacity: 0.7;
}
@media (max-width: 991.98px) {
  .hero-section {
    padding: 2px 10px 0 !important;
    margin-top: 0 !important;
  }
  .hero-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-section .row {
    margin: 0;
  }
  .hero-section .col-lg-8 {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero-carousel {
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
  }
  .hero-carousel .carousel-inner {
    border-radius: 14px;
  }
  .hero-carousel .hero-slide-img,
  .hero-carousel .carousel-item img {
    aspect-ratio: 16 / 9;
    min-height: 150px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 14px;
  }
  /* Features bar: same outer width as slider */
  .features-bar-wrap {
    padding: 0 10px;
  }
  .features-bar {
    border-radius: 12px;
    margin: 8px 0 12px;
    padding: 8px 4px 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    width: 100%;
  }
  .features-bar .feature-item {
    padding: 4px 2px;
  }
  .features-bar .feature-item .icon {
    width: 26px;
    height: 26px;
    font-size: 16px;
    margin: 0 auto 3px;
  }
  .features-bar .feature-item h6 {
    font-size: 11px;
    margin-bottom: 1px;
    font-weight: 600;
  }
  .features-bar .feature-item p {
    font-size: 9px;
    line-height: 1.25;
    color: #999;
  }
}
@media (min-width: 992px) {
  .hero-carousel .hero-slide-img,
  .hero-carousel .carousel-item img {
    height: 340px;
    aspect-ratio: auto;
    object-fit: cover;
  }
}


/* Ensure only active slide shows (fallback-safe) */
.hero-carousel .carousel-item {
  display: none;
  transition: opacity 0.4s ease;
}
.hero-carousel .carousel-item.active {
  display: block;
}
.hero-carousel .carousel-item.carousel-item-next,
.hero-carousel .carousel-item.carousel-item-prev,
.hero-carousel .carousel-item.active {
  display: block;
}


/* ========== MOBILE SIDE MENU (exact match, above bottom nav) ========== */
.mobile-side-menu.offcanvas {
  z-index: 1080 !important;
  width: min(300px, 82vw) !important;
  border: none;
  max-height: 100vh;
}
.offcanvas-backdrop {
  z-index: 1070 !important;
}
.mobile-side-menu .mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  background: #000;
  min-height: 52px;
}
.mobile-side-menu .mobile-menu-logo img {
  height: 28px;
}
.mobile-side-menu .btn-close-menu {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 4px 6px;
  line-height: 1;
  cursor: pointer;
}
.mobile-side-menu .btn-close-menu:hover {
  color: var(--orange);
}

.mobile-menu-search {
  padding: 12px 14px 10px !important;
  background: #fff;
}
.mobile-search-box {
  position: relative;
}
.mobile-search-box input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 50px;
  padding: 9px 40px 9px 14px;
  font-size: 13px;
  background: #f7f7f7;
  outline: none;
}
.mobile-search-box input:focus {
  border-color: var(--orange);
  background: #fff;
}
.mobile-search-box button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  font-size: 15px;
  padding: 6px 10px;
}

.mobile-menu-cats .accordion-item {
  border: none;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-cats .accordion-button {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  padding: 12px 14px;
  box-shadow: none !important;
  background: #fff !important;
}
.mobile-menu-cats .accordion-button:not(.collapsed) {
  color: var(--orange);
}
.mobile-menu-cats .accordion-button::after {
  width: 0.9rem;
  height: 0.9rem;
  background-size: 0.9rem;
  opacity: 0.45;
}
.mobile-menu-cats .accordion-body {
  padding: 0 14px 10px 24px;
}
.mobile-menu-cats .accordion-body a {
  display: block;
  padding: 7px 0;
  font-size: 12.5px;
  color: #666;
}
.mobile-menu-cats .accordion-body a:hover {
  color: var(--orange);
}

.mobile-menu-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid #eee;
  background: #fff;
  margin-top: auto;
  /* clear fixed bottom nav when menu open (nav is hidden via JS, extra safety) */
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.menu-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  background: #fff;
  transition: all 0.2s;
}
.menu-action-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff8f5;
}
.menu-action-btn i {
  font-size: 16px;
}
.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 4px;
}
.mobile-menu-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
  transition: all 0.2s;
}
.mobile-menu-social a:hover {
  background: var(--orange);
  color: #fff;
}

/* When side menu open, hide bottom nav so no overlap */
body.menu-open .mobile-bottom-nav {
  transform: translateY(100%) !important;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}


/* ========== CART DRAWER ========== */
.cart-drawer {
  width: min(420px, 100vw) !important;
  z-index: 1090 !important;
}
.cart-drawer .offcanvas-header {
  padding: 16px 20px;
}
.cart-drawer .offcanvas-title {
  font-size: 16px;
  font-weight: 600;
}
.mini-cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.mini-cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.mini-cart-info { flex: 1; min-width: 0; }
.mini-cart-name {
  font-size: 13px;
  color: #333;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  padding-right: 20px;
}
.mini-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-cart-price {
  font-size: 12px;
  color: #666;
}
.mini-cart-price strong {
  color: var(--orange);
  font-size: 14px;
}
.mini-cart-remove {
  position: absolute;
  top: 8px;
  right: 0;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.mini-cart-remove:hover { color: #e00; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}
.qty-control .qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #f7f7f7;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.qty-control .qty-btn:hover { background: #eee; }
.qty-control .qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.mini-cart-footer { background: #fff; }

/* ========== CHECKOUT ========== */
.checkout-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.checkout-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #222;
}
.checkout-label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
.checkout-input {
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 10px 14px;
  font-size: 14px;
}
.checkout-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241,90,37,0.12);
}
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .delivery-options {
    flex-direction: row;
  }
  .delivery-options .delivery-option {
    flex: 1;
  }
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}
.delivery-option.selected,
.delivery-option:has(input:checked) {
  border-color: var(--orange);
  background: #fff8f5;
}
.delivery-option input {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
}
.delivery-option .option-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.delivery-option .option-price {
  font-weight: 600;
  font-size: 14px;
}
.checkout-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name {
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.checkout-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.checkout-item-remove {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
}
.checkout-item-remove:hover { color: #e00; }
.sticky-summary { position: sticky; top: 90px; }
.text-orange { color: var(--orange) !important; }
.checkout-sticky-bar {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 1030;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
body.checkout-page {
  padding-bottom: 140px;
}
@media (min-width: 992px) {
  body.checkout-page { padding-bottom: 0; }
  .checkout-sticky-bar { display: none !important; }
}
.btn-gradient {
  background: linear-gradient(135deg, #f15a25 0%, #ff8c42 100%);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #e04e1c 0%, #f15a25 100%);
  color: #fff !important;
}


/* Checkout mobile: prevent order summary overlapping footer / bottom nav */
@media (max-width: 767.98px) {
  body.checkout-body {
    padding-bottom: 80px !important;
  }
  body.checkout-body .site-footer {
    margin-bottom: 64px;
  }
  body.checkout-body .checkout-page {
    padding-bottom: 48px !important;
  }
}


/* Wishlist heart — only on product card image */
.product-img-wrap { position: relative; }
.product-img-wrap .wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
  transition: .15s;
  padding: 0;
}
.product-img-wrap .wishlist-btn:hover { color: #e53935; transform: scale(1.05); }
.product-img-wrap .wishlist-btn.active,
.product-img-wrap .wishlist-btn.active i { color: #e53935; }
.product-img-wrap .wishlist-btn i { font-size: 16px; pointer-events: none; }

/* Product detail page: normal inline wishlist button (not floating) */
.wishlist-btn-inline {
  position: static !important;
  width: auto !important;
  height: auto !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  box-shadow: none !important;
}
.product-title {
  text-align: center !important;
}
.alert-info-wishlist {
  background: #e7f3ff;
  border: 1px solid #b6d4fe;
  color: #084298;
  border-radius: 10px;
  padding: 12px 14px;
}


/* ===== Theme-aware elements ===== */
.discount-badge, .sale-badge {
  background: var(--color-sale-badge, #e53935) !important;
}
.product-price .current,
.product-price-main {
  color: var(--color-price, var(--orange)) !important;
}
.site-footer {
  background: var(--color-footer-bg, #171717) !important;
  color: var(--color-footer-text, #ccc) !important;
}
.site-footer h5, .site-footer a {
  color: var(--color-footer-text, #fff) !important;
}
.top-header, .desktop-header, .mobile-header {
  background: var(--color-header-bg, #000) !important;
}
a:not(.btn):not(.btn-add-cart):not(.nav-link):hover {
  color: var(--color-link, var(--orange));
}
.btn-gradient, .btn-order-now, .btn-shop, .btn-checkout {
  background: var(--btn-bg, var(--orange-grad)) !important;
  color: var(--btn-text, #fff) !important;
  border: none !important;
}
.product-card {
  background: var(--product-card-bg, #fff) !important;
  border-radius: var(--border-radius-card, 12px) !important;
}
.btn-add-cart, .btn-order-now, .btn-gradient {
  border-radius: var(--border-radius-button, 50px) !important;
}
.btn-order-now {
  border-radius: 12px !important;
}

/* Product detail ORDER NOW black style (matches design) */
#productBuyForm .btn-order-now {
  background: #1a1a1a !important;
  color: #fff !important;
  border: none !important;
  width: 100%;
  height: 50px;
  border-radius: 12px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 10px;
}
#productBuyForm .btn-order-now:hover {
  background: #000 !important;
  filter: none;
}
@media (min-width: 768px) {
  #productBuyForm .product-actions-desktop {
    display: none !important; /* use same stack as mobile: qty+cart, then ORDER NOW */
  }
  #productBuyForm .mobile-only-stack {
    display: block !important;
  }
  #productBuyForm .qty-cart-row {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  #productBuyForm .btn-order-now {
    width: 100%;
    margin-top: 12px;
  }
}

.banner-card .banner-side-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.banner-card .banner-only-btn {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  background: var(--btn-bg, var(--orange-grad, linear-gradient(90deg,#f15a25,#ff8c42))) !important;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  pointer-events: auto;
}
.banner-card .banner-only-btn:hover {
  filter: brightness(0.95);
  color: #fff !important;
}
.banner-card .banner-overlay h2,
.banner-card .banner-overlay p { display: none !important; }


/* ===== Mobile: minimal gap under header → slider ===== */
@media (max-width: 991.98px) {
  .mobile-header {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .hero-section {
    padding: 0 10px !important;
    margin: 0 !important;
  }
  .hero-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .hero-carousel {
    margin-top: 0 !important;
  }
}

/* ===== Product gallery thumbs: one horizontal scroll row ===== */
.product-gallery .product-thumbs,
.product-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.product-gallery .product-thumbs::-webkit-scrollbar {
  height: 4px;
}
.product-gallery .product-thumbs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.product-thumbs .product-thumb,
.product-gallery .product-thumbs img {
  flex: 0 0 auto;
  width: 72px !important;
  height: 72px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  scroll-snap-align: start;
}
.product-thumbs .product-thumb.active,
.product-gallery .product-thumbs img.active {
  border-color: var(--orange, #f15a25);
  box-shadow: 0 0 0 1px var(--orange, #f15a25);
}


/* ===== Header layout fix (no overflow / no stray text) ===== */
.top-header .container {
  /* uses standard .container max-width */
}
.top-header .d-flex.flex-wrap {
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.top-header .logo {
  flex: 0 0 auto;
}
.top-header .search-box {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 520px;
  margin: 0 8px !important;
}
.top-header .header-actions {
  flex: 0 0 auto;
  gap: 14px;
  max-width: 100%;
}
.top-header .header-actions a {
  flex-shrink: 0;
  white-space: nowrap;
}
.top-header .header-actions .badge-count {
  width: 28px;
  justify-content: center;
}
/* Prevent whole-page horizontal scroll without killing container width */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}
/* Restore Bootstrap container widths (do NOT set max-width: 100%) */
.container {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}
/* Do NOT set max-width:100% on .product-detail-page — it shares .container and was forcing full width */
.product-gallery {
  max-width: 100%;
}
.container.product-detail-page {
  /* keep Bootstrap container max-width */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.product-thumbs {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .top-header .search-box.d-md-none { display: none !important; }
}
@media (max-width: 767.98px) {
  .top-header { display: none !important; } /* mobile uses .mobile-header */
}


/* ===== Account mobile order/review cards ===== */
.account-order-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-order-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.account-main .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.account-main table {
  min-width: 0;
}
@media (max-width: 767.98px) {
  .account-main {
    padding-left: 0;
    padding-right: 0;
  }
  .account-main h4, .account-main h6 {
    padding-left: 2px;
  }
}

/* Global: any Bootstrap table-responsive scrolls cleanly */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* Force standard container width site-wide (product page included) */
.container,
.container.product-detail-page,
.container.pb-4 {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
@media (min-width: 576px) {
  .container,
  .container.product-detail-page { max-width: 540px !important; }
}
@media (min-width: 768px) {
  .container,
  .container.product-detail-page { max-width: 720px !important; }
}
@media (min-width: 992px) {
  .container,
  .container.product-detail-page { max-width: 960px !important; }
}
@media (min-width: 1200px) {
  .container,
  .container.product-detail-page { max-width: 1140px !important; }
}
@media (min-width: 1400px) {
  .container,
  .container.product-detail-page { max-width: 1320px !important; }
}


/* ===== Product trust info under Buy Now ===== */
.product-trust-box {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.product-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff5f0;
  color: var(--orange, #f15a25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.product-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.product-trust-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}
.product-trust-text span {
  font-size: 12.5px;
  color: #777;
  line-height: 1.4;
}

/* ===== Mobile side nav — same left alignment for all items ===== */
.mobile-nav-tree {
  list-style: none;
  margin: 0;
  padding: 0 !important;
}
.mobile-nav-item {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #f3f3f3;
}
.mobile-nav-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 14px 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #222 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-decoration: none !important;
  line-height: 1.3;
  min-height: 48px;
}
.mobile-nav-link.mobile-nav-parent {
  cursor: pointer;
}
.mobile-nav-label {
  flex: 1 1 auto;
  text-align: left;
  padding-left: 0 !important;
}
.mobile-nav-chevron {
  flex: 0 0 auto;
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}
.mobile-nav-children {
  list-style: none;
  margin: 0 0 8px !important;
  padding: 0 0 0 12px !important; /* slight indent only for sub-items */
  border: none;
}
.mobile-nav-children li {
  margin: 0;
  padding: 0;
}
.mobile-nav-children a {
  display: block;
  padding: 8px 0 !important;
  padding-left: 0 !important;
  font-size: 13.5px;
  color: #555 !important;
  text-decoration: none;
}
.mobile-nav-children a:hover {
  color: var(--orange, #f15a25) !important;
}
.mobile-menu-cats {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
