/* ==========================================================
   eKart - Responsive Design System
   Guarantees no element collision/mingling from 360px to 1920px+
   ========================================================== */

/* Utility: Hide Scrollbar for Horizontal Touch Swiping */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Base Top Notice Bar & Header */
.top-notice-bar {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.header-action-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50% !important;
  transition: all 0.2s ease;
}
.header-action-btn:hover {
  background: #FDF8EB !important;
  border-color: #D4AF37 !important;
}

/* Trust Pillar Default Sizing */
.trust-pillar-icon {
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
}
.trust-pillar-title {
  font-size: 0.95rem;
}
.trust-pillar-sub {
  font-size: 0.8rem;
}

/* Hero Slide Fluid Typography */
.hero-slide-title {
  font-size: 2.75rem;
}
.hero-slide-subtitle {
  font-size: 1.15rem;
}

/* Large Desktops (1440px+) */
@media (min-width: 1440px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1360px;
  }
}

/* Desktops & Small Laptops (1024px to 1200px) */
@media (max-width: 1199.98px) {
  .product-details {
    padding: 0.75rem;
  }
  .current-price {
    font-size: 1.5rem;
  }
  .hero-slide-title {
    font-size: 2.3rem;
  }
}

/* Tablets (768px to 1023px) */
@media (max-width: 991.98px) {
  .header-main .search-wrapper {
    margin: 0.35rem 0 0.15rem;
    order: 3;
    width: 100%;
  }

  .hero-slide-title {
    font-size: 2rem;
  }
  .hero-slide-subtitle {
    font-size: 1rem;
  }

  .filter-offcanvas {
    max-width: 320px;
  }

  .summary-card {
    position: static;
    margin-top: 2rem;
  }

  .footer-main {
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
  }
}

/* Mobile Devices (< 768px) - Strictly prevent any element mingling */
@media (max-width: 767.98px) {
  body {
    font-size: 0.88rem;
  }

  /* Compact Top Bar - Always single row, never overlaps */
  .top-notice-bar {
    display: block !important;
    font-size: 0.72rem;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  /* Header Branding & Action Buttons */
  .header-main {
    padding: 0.4rem 0 !important;
  }

  .brand-logo .brand-text .fs-5 {
    font-size: 1.1rem !important;
  }

  .header-action-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  /* Hero Banner Slide */
  .hero-carousel-slide {
    min-height: 400px !important;
  }
  .hero-carousel-slide > div {
    min-height: 400px !important;
  }
  .hero-banner-overlay {
    background: linear-gradient(180deg, rgba(26, 13, 17, 0.88) 0%, rgba(26, 13, 17, 0.78) 55%, rgba(26, 13, 17, 0.92) 100%) !important;
  }
  .hero-slide-title {
    font-size: 1.6rem !important;
  }
  .hero-slide-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }

  /* Trust Pillar Cards - Vertical stack prevents single-word wrapping */
  .trust-pillar-card {
    padding: 0.75rem 0.5rem !important;
  }
  .trust-pillar-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
  .trust-pillar-title {
    font-size: 0.82rem !important;
  }
  .trust-pillar-sub {
    font-size: 0.7rem !important;
    display: block;
    margin-top: 2px;
    line-height: 1.25;
  }

  /* Product Cards on Mobile (2 per row) */
  .saree-card .saree-img-container {
    height: 195px !important;
  }
  .silk-mark-tag, .custom-product-badge {
    font-size: 0.62rem !important;
    padding: 0.15rem 0.45rem !important;
  }
  .saree-card .card-title {
    font-size: 0.85rem !important;
    min-height: 2.3em;
  }

  /* Product Details Page on Mobile */
  .main-image-box {
    min-height: 300px !important;
    max-height: 420px !important;
  }
  .main-image-box img {
    max-height: 420px !important;
  }
  .product-details h1 {
    font-size: 1.45rem !important;
  }
  .product-details .current-price {
    font-size: 1.6rem !important;
  }

  /* Product Tabs on Mobile - Scroll horizontally without line breaks */
  #productTabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap !important;
    scrollbar-width: none;
  }
  #productTabs::-webkit-scrollbar {
    display: none;
  }
  #productTabs .nav-link {
    padding: 0.6rem 1rem !important;
    font-size: 0.88rem !important;
  }
}

/* Very Small Mobile Screens (< 400px) */
@media (max-width: 399.98px) {
  .brand-logo .brand-text .fs-5 {
    font-size: 0.98rem !important;
  }
  .header-action-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .saree-card .saree-img-container {
    height: 175px !important;
  }
  .hero-slide-title {
    font-size: 1.4rem !important;
  }
}

/* Prevent accidental horizontal page overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
