/* ===================================================================
   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 */
  .hero-slider {
    height: 44vh;
    min-height: 290px;
    max-height: 360px;
  }

  .hero-slide-overlay {
    background: linear-gradient(90deg, rgba(11, 19, 41, 0.88) 0%, rgba(11, 19, 41, 0.62) 55%, rgba(11, 19, 41, 0.2) 100%);
    align-items: center;
    padding: 0 0.5rem;
  }

  .hero-content {
    max-width: 92%;
    padding: 1rem 0;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.45rem;
    gap: 0.35rem;
  }

  .hero-title-gu {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.2rem;
  }

  .hero-title-en {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .swiper-button-prev-custom, .swiper-button-next-custom {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    opacity: 0.75;
  }

  .swiper-button-prev-custom { left: 8px; }
  .swiper-button-next-custom { right: 8px; }

  /* 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;
  }
}
