/* ===================================================================
   IKAN ENTERPRISE — Responsive Breakpoints & Mobile Alignment Optimization
   =================================================================== */

/* Large Desktops & Ultrawide (>= 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium Desktops & Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .hero-title-gu {
    font-size: 2.2rem;
  }
  .hero-title-en {
    font-size: 1.2rem;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
  .about-content {
    padding: 2.5rem;
  }
  .category-page-layout {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }
}

/* Tablets Landscape & Small Laptops (<= 992px) */
@media (max-width: 992px) {
  .top-strip {
    display: none; /* Clean mobile header */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 700;
  }

  .nav-wholesaler-btn {
    font-size: 1.1rem !important;
    padding: 0.75rem 1.6rem !important;
  }

  .hamburger-btn {
    display: flex;
    z-index: 1100;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero-slider {
    height: 52vh;
    min-height: 380px;
    max-height: 480px;
  }

  .hero-title-gu {
    font-size: 1.85rem;
  }

  .hero-title-en {
    font-size: 1.05rem;
  }

  .category-page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-sidebar {
    position: static;
    max-height: none;
  }

  .category-nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .category-nav-item a {
    white-space: nowrap;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-media-box {
    padding: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .lightbox-card {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .lightbox-img-pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }

  .lightbox-img-pane img {
    max-height: 220px;
  }
}

/* ===================================================================
   Tablets Portrait & Mobile Phones (<= 768px)
   =================================================================== */
@media (max-width: 768px) {
  /* Hide hero buttons completely on mobile as requested */
  .hero-cta-group {
    display: none !important;
  }

  /* Section Spacing */
  .section {
    padding: 2.4rem 0;
  }

  .section-header {
    margin-bottom: 1.4rem;
    text-align: center;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.84rem;
  }

  /* Navbar Compact Mobile Alignment */
  .site-header {
    padding: 0;
  }

  .navbar {
    padding: 0.45rem 0;
    gap: 0.5rem;
  }

  .brand-logo-wrapper {
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.98rem;
    letter-spacing: 0.2px;
  }

  .brand-tagline-gu {
    font-size: 0.68rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .search-toggle-btn {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }

  .cart-nav-btn {
    height: 35px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .cart-badge {
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    font-size: 0.64rem;
  }

  .hamburger-btn {
    width: 35px;
    height: 35px;
    padding: 7px;
  }

  /* Hero Slider Clean Mobile Display — Pure, Crisp, Unobstructed Banners */
  .hero-slider {
    height: 56.25vw; /* Standard 16:9 widescreen showcase */
    min-height: 220px;
    max-height: 380px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    position: relative;
  }

  .hero-slide-bg {
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Default: Hide overlay on mobile for image-only banners (slides 1, 5, 6, 7) */
  .hero-slide-overlay {
    display: none !important;
  }

  /* Show transparent text at the UP SIDE (top) on mobile for slides 2, 3, 4 only with NO background */
  .mobile-show-text .hero-slide-overlay {
    display: flex !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0.65rem 0.85rem 0 !important;
    top: 0 !important;
    left: 0 !important;
    height: auto !important;
  }

  .mobile-show-text .hero-content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .mobile-show-text .hero-badge {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fde047 !important;
    font-size: 0.62rem !important;
    padding: 0.12rem 0.5rem !important;
    margin-bottom: 0.18rem !important;
    display: inline-flex !important;
  }

  .mobile-show-text .hero-title-gu {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    margin-bottom: 0.1rem !important;
    line-height: 1.2 !important;
    display: block !important;
  }

  .mobile-show-text .hero-title-en {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0 !important;
    line-height: 1.15 !important;
    display: block !important;
  }

  .mobile-show-text .hero-desc,
  .mobile-show-text .hero-cta-group {
    display: none !important;
  }

  /* Hide bulky side arrows on mobile */
  .swiper-button-prev-custom, .swiper-button-next-custom {
    display: none !important;
  }

  /* Welcome Section & PDF Download on Mobile */
  .welcome-section {
    padding: 1.4rem 0 0.6rem;
  }

  .welcome-card {
    padding: 1.4rem 1rem 1.15rem;
    border-radius: 18px;
  }

  .welcome-headline {
    text-align: center !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.25 !important;
  }

  .welcome-line-1 {
    display: block !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.15rem !important;
  }

  .welcome-line-2 {
    display: block !important;
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  .welcome-subheadline-gu {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
  }

  .catalog-download-card {
    flex-direction: column;
    padding: 1.1rem 0.9rem;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
    text-align: center;
  }

  .catalog-download-left {
    flex-direction: column;
    text-align: center;
    gap: 0.55rem;
  }

  .catalog-download-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .btn-download-catalog,
  .btn-view-catalog {
    width: 100%;
    justify-content: center;
    font-size: 0.86rem;
    padding: 0.72rem 1rem;
  }

  .welcome-features-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .welcome-feat-item {
    padding: 0.7rem 0.55rem;
    border-radius: 10px;
    gap: 0.45rem;
  }

  .feat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .feat-text strong {
    font-size: 0.72rem;
  }

  .feat-text span {
    font-size: 0.62rem;
  }

  /* Infinite Marquee */
  .marquee-wrapper {
    padding: 0.55rem 0;
  }

  .marquee-item {
    font-size: 0.76rem;
  }

  /* Category Filter Pills — Smooth Horizontal Scroll */
  .category-pills {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    padding: 0.42rem 0.85rem;
    font-size: 0.76rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: var(--radius-full);
  }

  /* Categories Grid Alignment */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .category-card {
    padding: 0.6rem 0.65rem;
    min-height: 58px;
    border-radius: 12px;
    gap: 0.5rem;
    align-items: center;
  }

  .category-icon-box {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .category-name {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .category-count {
    font-size: 0.64rem;
  }

  /* Products Toolbar & Search */
  .products-toolbar {
    padding: 0.85rem;
    border-radius: 14px;
    margin-bottom: 1.1rem;
    gap: 0.75rem;
  }

  .search-bar-wrapper {
    width: 100%;
  }

  .search-input {
    height: 40px;
    font-size: 0.82rem;
    padding-left: 2.3rem;
    border-radius: var(--radius-full);
  }

  .search-icon {
    left: 0.8rem;
    font-size: 0.82rem;
  }

  /* Products Grid — 2-Column Balanced Alignment */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .product-card {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .product-card-img-wrap {
    height: 135px;
    padding: 0.5rem;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .product-card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .product-card-body {
    padding: 0.65rem 0.55rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
  }

  .product-category-tag {
    font-size: 0.62rem;
    padding: 0.12rem 0.45rem;
    margin-bottom: 0.3rem;
    align-self: flex-start;
    border-radius: var(--radius-full);
  }

  .product-title-gu {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 2.15rem;
    margin-bottom: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-title-en {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-price-row {
    margin-bottom: 0.45rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .product-price-current {
    font-size: 0.96rem;
    font-weight: 800;
  }

  .product-price-original {
    font-size: 0.7rem;
  }

  .product-discount-badge {
    font-size: 0.6rem;
    padding: 0.08rem 0.3rem;
  }

  .product-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
    margin-top: auto;
  }

  .btn-card-cart, .btn-card-buy {
    height: 32px;
    font-size: 0.72rem;
    padding: 0 0.3rem;
    border-radius: 8px;
    gap: 0.3rem;
    justify-content: center;
  }

  /* USP / Why Choose Us Grid */
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .usp-card {
    padding: 1.1rem 0.8rem;
    text-align: center;
    border-radius: 14px;
  }

  .usp-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    margin: 0 auto 0.5rem;
  }

  .usp-counter {
    font-size: 1.4rem;
  }

  .usp-title {
    font-size: 0.78rem;
  }

  .usp-desc {
    font-size: 0.7rem;
  }

  /* About / Store Card */
  .about-card {
    border-radius: 16px;
    overflow: hidden;
  }

  .about-content {
    padding: 1.4rem 1.1rem;
  }

  .about-title-gu {
    font-size: 1.6rem;
  }

  .about-media-box {
    padding: 1.5rem 1.1rem;
  }

  .about-actions {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .about-actions .btn {
    width: 100%;
  }

  /* Floating Action Buttons */
  .floating-whatsapp {
    width: 46px;
    height: 46px;
    font-size: 1.45rem;
    right: 12px;
    bottom: 14px;
    z-index: 990;
  }

  .floating-call {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    left: 12px;
    bottom: 14px;
    z-index: 990;
  }

  .back-to-top-btn {
    right: 14px;
    bottom: 68px;
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  /* Cart Drawer Full-Screen on Mobile */
  .cart-drawer {
    max-width: 100%;
    width: 100%;
  }

  .cart-drawer-header {
    padding: 1rem;
  }

  .cart-drawer-body {
    padding: 1rem;
  }

  .cart-drawer-footer {
    padding: 1rem;
  }

  /* Wholesaler Modal */
  .wholesaler-modal-card {
    max-width: 100%;
    margin: 0.5rem;
    border-radius: var(--radius-md);
  }

  .wholesaler-modal-header {
    padding: 1.2rem 1rem;
  }

  .wholesaler-modal-body {
    padding: 1.2rem 1rem;
  }

  /* Footer Alignment */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.76rem;
  }
}

/* ===================================================================
   Ultra Small Phones (<= 400px)
   =================================================================== */
@media (max-width: 400px) {
  .brand-name {
    font-size: 0.9rem;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .hero-slider {
    height: 40vh;
    min-height: 270px;
  }

  .hero-title-gu {
    font-size: 1.25rem;
  }

  .hero-title-en {
    font-size: 0.8rem;
  }

  .products-grid {
    gap: 0.5rem;
  }

  .product-card-img-wrap {
    height: 120px;
  }

  .product-title-gu {
    font-size: 0.8rem;
    min-height: 1.9rem;
  }

  .btn-card-cart, .btn-card-buy {
    font-size: 0.68rem;
    height: 30px;
  }
}
