/* Modern Premium Design System */
:root {
  --primary-gradient: linear-gradient(135deg, #ff4700 0%, #f68b1e 100%);
  --accent-orange: #ff4700;
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f4;
  --premium-black: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --card-radius: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Support */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

body {
  font-family: 'Inter', 'Poppins', 'Hind Siliguri', sans-serif;
  background-color: var(--bg-secondary);
  color: #1e293b;
}

/* Glassmorphism Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* Sticky Header for Mobile */
@media (max-width: 768px) {
  header {
    height: auto !important;
    padding: 10px 0 !important;
  }
  header .mobile-nav {
    padding: 0 15px;
  }
  main {
    padding-bottom: 80px; /* Space for bottom nav */
  }
}

/* Mobile Bottom Nav Styling */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1050;
  border-top: 1px solid var(--glass-border);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 500;
}

.mobile-bottom-nav .nav-item i { font-size: 1.4rem; margin-bottom: 2px; }
.mobile-bottom-nav .nav-item.active { color: var(--accent-orange); }

/* Modern Product Card Enhancement */
.product-grid-item {
  display: flex;
  flex-direction: column;
  border: none;
  background: var(--bg-primary);
  border-radius: var(--card-radius);
  padding: 15px;
  transition: var(--transition-smooth);
  height: 100%;
}

.product-grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-btn {
  background: var(--primary-gradient);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  transition: var(--transition-smooth);
}

a {
  text-decoration: none;
}

/* Floating Cart Button */
.floating-cart {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: var(--accent-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 71, 0, 0.4);
  z-index: 1040;
  transition: var(--transition-smooth);
}

.bxs-star {
  background-color: #ffb52e;
  color: white;
  border-radius: 50%;
}

body {
  font-family: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.orange-btn {
  cursor: pointer;
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  border-radius: 5px;
  color: white;
  border: none;
  font-family: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  -webkit-box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
          box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  background-color: #f68b1e;
}

.form-control:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
  outline: none;
  border: 1px solid #afaeae;
}

.dropdown-menu {
  border-width: 0 !important;
  border: none !important;
  -webkit-box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
          box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  padding: 1rem;
}

main {
  background-color: #f68b1e;
}

section {
  padding: 1rem 0;
}

.top-banner {
  background-color: #ffb52e;
  width: 100%;
}
.top-banner img {
  width: 100%;
}

.primary-navigation {
  background-color: #f1f1f2;
}
@media (max-width: 768px) {
  .primary-navigation {
    display: none;
  }
}
.primary-navigation .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0.5rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 3rem;
}
.primary-navigation .container .external-link {
  font-size: 0.8rem;
  margin-right: 20rem;
  color: #e07e1b;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
.primary-navigation .container .external-link .bxs-star {
  padding: 1px;
}
.primary-navigation .container .external-link:hover {
  text-decoration: underline;
}
.primary-navigation .container .jumia-brands {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}
.primary-navigation .container .jumia-brands a {
  font-family: "Audiowide", cursive !important;
  color: #afaeae;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.primary-navigation .container .jumia-brands .jumia-logo {
  font-family: "Audiowide", cursive;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
}
.primary-navigation .container .jumia-brands .jumia-logo .bxs-star {
  font-size: 0.6rem;
}
.primary-navigation .container .jumia-brands .j-pay:hover {
  color: blue;
}
.primary-navigation .container .jumia-brands .j-food:hover {
  color: #f68b1e;
}
.primary-navigation .container .jumia-brands .j-force .bxs-star {
  background-color: #afaeae;
  font-size: 0.8rem;
}
.primary-navigation .container .jumia-brands .j-force:hover {
  color: #000;
}
.primary-navigation .container .jumia-brands .j-force:hover .bxs-star {
  background-color: #f68b1e;
}

header {
  position: sticky;
  top: 0;
  z-index: 1040; /* নিশ্চিত করা যাতে এটি কন্টেন্টের উপরে থাকে কিন্তু মডালের নিচে */
  background-color: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
header nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 769px) {
  header nav {
    display: none;
  }
}
header nav .nav-list {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  list-style: none;
  gap: 1.5rem;
}
header nav .nav-list .nav-link {
  font-size: 1.2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  gap: 0.6rem;
}
header nav .nav-list .nav-link i {
  font-size: 1.6rem;
}
header nav .nav-list .nav-link:hover {
  color: #f68b1e;
}
header nav .nav-list ul li button {
  width: 100%;
}
header nav .nav-list .dropdown .dropdown-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
}
header nav .nav-list .dropdown .dropdown-item i {
  font-size: 1.6rem;
}
header nav .brand-logo {
  font-family: "Audiowide", cursive;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}
header nav .brand-logo .bxs-star {
  font-size: 1.5rem;
}
header nav form {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  position: relative;
}
header nav form .search-icon {
  position: absolute;
  left: 5px;
  top: 50%;
  font-size: 1.5rem;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: #afaeae;
}
header nav form .form-control {
  padding: 0.8rem 2rem;
}
header .mobile-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
header .mobile-nav i {
  font-size: 1.3rem;
}
header .mobile-nav .header-btn {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}
header .mobile-nav .left-mobile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.3rem;
}
header .mobile-nav .right-mobile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.3rem;
}
header .mobile-nav .right-mobile i {
  color: #313133;
}
header .mobile-nav .sidebar-menu {
  font-size: 0.8rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.5rem;
}
header .mobile-nav .sidebar-menu .link-with-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  color: #313133;
}
header .mobile-nav .sidebar-menu .colored-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-transform: uppercase;
}
header .mobile-nav .sidebar-menu .colored-links span {
  color: #f68b1e;
}
header .mobile-nav .sidebar-menu .colored-links .see-all {
  text-decoration: underline;
  color: blue;
  text-transform: lowercase;
}
@media (min-width: 769px) {
  header .mobile-nav {
    display: none;
  }
}

.brand-logo {
  font-family: "Audiowide", cursive;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}
.brand-logo .bxs-star {
  font-size: 1.5rem;
}
@media (max-width: 769px) {
  .brand-logo {
    font-size: 1.4rem;
  }
}

.link-with-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  color: #313133;
}

.hero-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 1rem;
}
.hero-section .left-sidebar,
.hero-section .right-sidebar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.35rem;
  background-color: #ffffff;
  -webkit-box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
          box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  width: 20%;
  /* ডেস্কটপ সাইডবার ফিক্সড করার জন্য */
  position: sticky;
  top: 95px; /* হেডারের উচ্চতা অনুযায়ী অ্যাডজাস্ট করা হলো */
  align-self: flex-start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
@media (max-width: 769px) {
  .hero-section .left-sidebar,
  .hero-section .right-sidebar {
    display: none;
  }
}
.hero-section .right-sidebar {
  background-color: #f68b1e;
  -webkit-box-shadow: none;
          box-shadow: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.hero-section .right-sidebar .right-sidebar-links {
  border-radius: 5px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
          box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  padding: 0.8rem;
  background-color: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.hero-section .right-sidebar .right-sidebar-links a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.5rem;
  color: #313133;
}
.hero-section .right-sidebar .right-sidebar-links a .details {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.hero-section .right-sidebar .right-sidebar-links a .details .title {
  text-transform: uppercase;
}
.hero-section .right-sidebar .right-sidebar-links a .details small {
  margin-top: -15px;
}
.hero-section .right-sidebar .right-sidebar-links a img {
  width: 38px;
}
.hero-section .right-sidebar .sibar-gif {
  border-radius: 5px;
  overflow: hidden;
  -webkit-box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
          box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.hero-section .home-slider {
  border-radius: 5px;
  overflow: hidden;
  width: 60%;
  height: 100%;
}
@media (max-width: 769px) {
  .hero-section .home-slider {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 8; /* মোবাইলের জন্য স্ট্যান্ডার্ড ব্যানার রেশিও */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: block;
  }
  
  .hero-section .home-slider #homeSlider .slide a img {
    width: calc(100% - 20px);
    margin: 0 10px;
    border-radius: 10px;
    object-fit: cover !important;
  }
  
  .swiper-button-next, .swiper-button-prev {
    display: none !important; /* মোবাইলে অ্যারো বাটন হাইড করা (ক্লিন লুকের জন্য) */
  }

  .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
  }
}
.hero-section .home-slider #homeSlider {
  height: 100%;
}
.hero-section .home-slider #homeSlider .slide {
  height: 100%;
}
.hero-section .home-slider #homeSlider .slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-section .home-slider #homeSlider .slide a img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.hero-section .link-with-icon {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  font-size: 0.85rem;
}
.hero-section .link-with-icon i {
  font-size: 1.2rem;
}
.hero-section .link-with-icon:hover {
  color: #f68b1e;
}

.swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
}
.swiper-pagination .swiper-pagination-bullet-active {
  width: 20px;
  opacity: 1;
  height: 15px;
  background-color: #e61601;
  border-radius: 5px;
}

#adSlider .swiper-pagination-bullet {
    background: #cbd5e1; /* নিষ্ক্রিয় ডটের রং */
    opacity: 1;
}
#adSlider .swiper-pagination-bullet-active {
    background-color: var(--accent-orange); /* সক্রিয় ডটের রং */
}

.swiper-button-next,
.swiper-button-prev {
  padding: 20px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color: #313133;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: white;
  font-size: 1rem;
}

.suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 10px 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: all 0.2s ease;
  margin: 0 8px;
  border-radius: 12px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.suggestion-item.active {
  background-color: rgba(246, 139, 30, 0.1);
}

.suggestion-img-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px; /* iPhone Icon Style */
  overflow: hidden;
  background: #f8f9fa;
}

.suggestion-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1d1d1f;
}

.suggestion-meta .badge-cat {
  font-size: 0.65rem;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.suggestion-price .price-now {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange);
}

.object-fit-cover {
    object-fit: cover;
}

/* Modern Horizontal Product Card Grid */
.modern-product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr); /* Mobile: 1 Column */
}

@media (min-width: 768px) {
    .modern-product-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 Columns */
    }
}

@media (min-width: 992px) {
    .modern-product-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 Columns */
    }
}

.horizontal-product-card {
    display: flex;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
}

.horizontal-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #f68b1e;
}

.card-image-left {
    width: 40%;
    min-width: 120px;
    background-color: #f8f9fa;
    overflow: hidden;
    position: relative;
}

.card-image-left img {
    transition: transform 0.5s ease;
}

.horizontal-product-card:hover .card-image-left img {
    transform: scale(1.1);
}

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e61601;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 5;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #afaeae;
    transition: 0.3s;
    z-index: 5;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    color: #e61601;
    background: #fff;
}

.rating-stars {
    color: #ffb52e;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.card-details-right {
    width: 60%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-modern {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

.product-card-modern:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px);
}

.ad-container {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Mobile App Grid Icons */
.category-grid-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.category-grid-icon:active {
    transform: scale(0.9);
    background: #f68b1e;
    color: #fff;
}

.ad-container img {
    max-width: 728px !important;
    width: 100%;
    height: auto;
}

/* Modern Category Cards */
.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.category-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-8px);
    border-color: #f68b1e;
}

.category-card .badge-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff3e6;
    color: #f68b1e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.category-card i {
    font-size: 3rem;
    color: #f68b1e;
    margin-bottom: 12px;
}

.category-card h6 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #212529;
    font-size: 1rem;
}

.category-card .show-all {
    font-size: 0.85rem;
    color: #f68b1e;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.category-card .show-all:hover {
    text-decoration: underline;
    color: #d17215;
}

/* Modern Product Grid UI */
.modern-grid-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-grid-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: #f68b1e;
    transform: translateY(-5px);
}

.modern-grid-card .img-box {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modern-grid-card .img-box img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: 0.3s;
}

.modern-grid-card .tagline {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.modern-grid-card .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    height: 2.8rem; /* ফিক্সড হাইট যাতে টাইটেল ছোট হলেও বক্স সমান থাকে */
    line-height: 1.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.modern-grid-card .price-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.modern-grid-card .current-price {
    color: #e61601;
    font-weight: 700;
    font-size: 1.05rem;
}

.modern-grid-card .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.8rem;
}

/* Modern Product Card UI */
.product-grid-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-grid-item .price-section {
    margin-top: auto; /* এটি প্রাইসকে সবসময় কার্ডের নিচে রাখবে */
}

.product-grid-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #f68b1e;
    transform: translateY(-5px);
}

/* Ensure Swiper slides take full height to allow cards to stretch */
.swiper-slide {
    height: auto !important;
}

.product-grid-item .image-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-grid-item .image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-grid-item:hover .image-wrapper img {
    transform: scale(1.08);
}

/* Sidebar Ad Styling */
.sidebar-ad {
    text-align: center;
    width: 100%;
}
.sidebar-ad img {
    transition: transform 0.3s ease;
}
.sidebar-ad img:hover {
    transform: scale(1.03);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem; /* ফিক্সড হাইট ২ লাইনের জন্য */
    line-height: 1.4rem;
}

.flash-sale-header {
    background: linear-gradient(90deg, #e61601 0%, #ff4d4d 100%);
    box-shadow: 0 4px 10px rgba(230, 22, 1, 0.3);
}

.featured-large img {
    height: 350px;
    object-fit: cover;
}

.flash-sale-timer {
    letter-spacing: 1px;
}

/* Search Modal & Backdrop Blur Effect */
.modal-backdrop.show {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(15, 23, 42, 0.4) !important; /* Premium dark tint */
  transition: all 0.3s ease;
}

/* iOS Search Modal Specific Styling */
.ios-search-modal .modal-content {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .ios-search-modal .modal-content {
    background: rgba(28, 28, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ios-search-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 2px 12px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .ios-search-wrapper {
    background: rgba(255, 255, 255, 0.1);
}

.ios-search-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.08);
}

.ios-search-wrapper .search-icon {
    font-size: 1.4rem;
    color: #8e8e93;
}

.ios-search-wrapper input {
    border: none;
    background: transparent;
    padding: 10px 8px;
    width: 100%;
    font-size: 1.1rem;
    color: inherit;
    outline: none !important;
}

.ios-cancel-btn {
    border: none;
    background: transparent;
    color: #007aff; /* iOS Blue */
    font-weight: 500;
    padding: 0;
    font-size: 1rem;
}

.search-chip {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

[data-theme="dark"] .search-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.search-chip:hover {
    background: var(--accent-orange);
    color: #fff !important;
}

/* iOS Slide Down Animation */
@keyframes iosSlideDown {
    0% {
        transform: translateY(-100%) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* iOS Style Notification Toast */
.ios-notification {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 22px !important;
    width: 350px;
    max-width: 90vw;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-notification.showing {
    animation: iosSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .ios-notification {
    background: rgba(28, 28, 30, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ios-app-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ios-notify-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1d1d1f;
}

.ios-notify-time {
    font-size: 0.75rem;
    color: #86868b;
}

.ios-notify-body {
    font-size: 0.9rem;
    color: #1d1d1f;
    margin-top: 2px;
    line-height: 1.3;
}

[data-theme="dark"] .ios-notify-title,
[data-theme="dark"] .ios-notify-body {
    color: #f5f5f7;
}

/* Continue Shopping Button Styling */
.btn-continue-shopping {
    background: transparent;
    border: 1.5px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-continue-shopping:hover {
    background: rgba(255, 71, 0, 0.05);
    color: #f68b1e;
    transform: translateX(-5px);
}

/* Mobile-specific adjustments for large total amounts */
@media (max-width: 767.98px) {
    .d-flex.justify-content-between.border-top.pt-2.mb-4 {
        flex-wrap: wrap !important; /* জায়গা না হলে সংখ্যাটি নিচের লাইনে নামিয়ে দেবে */
    }

    #displayGrandTotal,
    #cart-total-val {
        font-size: 1.1rem !important; /* প্রিমিয়াম লুকের জন্য ফন্ট সাইজ কিছুটা বাড়ানো হলো */
        word-break: keep-all; /* সংখ্যা মাঝখান দিয়ে ভেঙে যাবে না */
        white-space: normal; /* টেক্সট র‍্যাপ নিশ্চিত করা */
        text-align: right;
        flex: 1 0 auto;
    }
}

/* Premium Checkout Button Styling */
.btn-checkout {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px -10px rgba(255, 71, 0, 0.5);
}

.btn-checkout:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(255, 71, 0, 0.6);
}

/* Cart Modal Total Section Highlighting */
#cart-modal-tfoot {
    background-color: #f8fafc; /* হালকা কন্ট্রাস্ট ব্যাকগ্রাউন্ড */
}

#cart-modal-tfoot tr td {
    padding: 20px 15px !important;
    border-top: 2px solid #e2e8f0;
}

#cart-total-val {
    font-size: 1.5rem;
    color: var(--accent-orange);
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-block;
}

.subtotal-val {
    color: #334155;
}

.total-label {
    font-size: 1.1rem;
    color: #475569;
}

/* Cart Modal Column Width Adjustments */
#cartModal .table th:nth-child(2), 
#cartModal .table td:nth-child(2) {
    width: 110px; /* Qty কলামের জন্য নির্দিষ্ট জায়গা */
    text-align: center;
}

#cartModal .table th:nth-child(3), 
#cartModal .table td:nth-child(3) {
    width: 50px; /* Action (Trash icon) কলাম */
    text-align: center;
}

#cartModal .table th:last-child, 
#cartModal .table td:last-child {
    min-width: 150px; /* বড় অংকের টাকার জন্য পর্যাপ্ত উইডথ */
    white-space: nowrap; /* টাকা যাতে দুই লাইনে না ভেঙে যায় */
    padding-right: 15px !important;
}