/**
 * ShoppingNarso - Mobile-First Responsive Breakpoints
 * Breakpoints: 320px, 375px, 480px, 768px, 1024px, 1280px, 1440px
 */

/* -------------------------------------------------------------------------
   LAPTOP & TABLET (<= 1024px)
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Show hamburger button at top-left before brand logo (min 44x44px) */
  .hamburger-btn {
    display: flex !important;
  }

  /* Hide desktop center nav */
  .desktop-nav {
    display: none !important;
  }

  /* Product grid becomes 3 columns on tablet */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .pdp-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cart-layout, .checkout-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .arch-carousel-container {
    max-width: 380px;
    height: 380px;
  }

  .arch-card {
    width: 190px;
    height: 300px;
  }

  .rotating-badge-wrap {
    width: 80px;
    height: 80px;
    top: 0;
    right: 0;
  }
}

/* -------------------------------------------------------------------------
   TABLET & MOBILE BREAKPOINT (<= 768px)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Safe consistent container padding on mobile */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header adjustments */
  .brand-name {
    font-size: 1.35rem;
  }

  .header-actions {
    gap: 4px;
  }

  .action-btn {
    width: 40px;
    height: 40px;
  }

  /* HERO FIT IN ONE SCREEN VIEW ON PHONE (100svh / 100vh) */
  .hero-section {
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
    padding: 12px 0 16px 0;
    display: flex;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin: 0 auto 16px;
    max-width: 90%;
  }

  .hero-cta-group {
    justify-content: center;
    gap: 10px;
  }

  .hero-cta-group .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
    min-height: 42px;
  }

  .hero-trust-strip {
    display: none; /* Hide on mobile so entire hero fits screen without scroll */
  }

  .hero-visual-wrap {
    min-height: 260px;
  }

  /* Arch carousel scaling on mobile */
  .arch-carousel-container {
    width: 100%;
    max-width: 320px;
    height: 250px;
  }

  .arch-card {
    width: 140px;
    height: 220px;
  }

  .arch-card.is-left {
    transform: translateX(-46px) scale(0.82) rotate(-7deg);
  }

  .arch-card.is-right {
    transform: translateX(46px) scale(0.82) rotate(7deg);
  }

  .rotating-badge-wrap {
    width: 65px;
    height: 65px;
    top: -5px;
    right: 10px;
  }

  .hero-arch-meta {
    margin-top: 8px;
  }

  .hero-arch-link {
    padding: 4px 12px;
    font-size: 0.82rem;
  }

  .arch-dots {
    margin-top: 6px;
  }

  /* Category Tiles */
  .category-tiles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-tile-card {
    height: 260px;
  }

  /* PRODUCT GRID ON MOBILE: STRICTLY 2 COLUMNS, EQUAL WIDTH, SAME LEVEL */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  /* Compact Product Cards on mobile */
  .product-card {
    border-radius: var(--radius-sm);
  }

  .card-body {
    padding: 10px 8px;
  }

  .card-meta-line {
    margin-bottom: 2px;
  }

  .card-category {
    font-size: 0.68rem;
  }

  .card-rating {
    font-size: 0.72rem;
  }

  .card-title {
    font-size: 0.88rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-price-row {
    margin-bottom: 8px;
    gap: 4px;
  }

  .price-current {
    font-size: 0.95rem;
  }

  .price-old {
    font-size: 0.78rem;
  }

  .price-discount {
    display: none; /* Keep clean on small card */
  }

  .card-add-btn {
    padding: 8px 6px;
    font-size: 0.8rem;
    min-height: 38px;
  }

  .card-add-btn .btn-icon {
    display: none; /* Save space on small screen */
  }

  .card-wishlist-btn {
    width: 32px;
    height: 32px;
    top: 6px;
    right: 6px;
  }

  .card-heart-icon {
    width: 15px;
    height: 15px;
  }

  .card-tag {
    top: 6px;
    left: 6px;
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  /* Features Grid on mobile: 2 per row */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-box {
    padding: 16px 12px;
  }

  .feature-icon-circle {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }

  .feature-icon-circle svg {
    width: 20px;
    height: 20px;
  }

  .feature-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .feature-desc {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* Offer Banner */
  .offer-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .offer-content {
    text-align: center;
  }

  .offer-actions {
    width: 100%;
    justify-content: center;
  }

  /* Shop Filter Controls */
  .shop-controls-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .shop-filter-group {
    width: 100%;
  }

  .styled-select {
    width: 100%;
  }

  .shop-search-box {
    width: 100%;
  }

  .filter-tabs {
    width: 100%;
    justify-content: space-around;
  }

  .filter-tab {
    flex-grow: 1;
    text-align: center;
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  /* PDP Mobile Stack */
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-gallery {
    position: static;
  }

  .pdp-title {
    font-size: 1.6rem;
  }

  .pdp-price-current {
    font-size: 1.5rem;
  }

  .pdp-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-add-bag, .btn-wishlist-toggle {
    width: 100%;
    flex: none;
  }

  /* Cart Mobile Stack */
  .cart-item-card {
    padding: 14px;
    gap: 12px;
  }

  .cart-item-thumb {
    width: 75px;
    height: 100px;
  }

  .cart-item-title {
    font-size: 0.95rem;
  }

  /* Checkout Form Mobile */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkout-card {
    padding: 20px 16px;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* About & Contact Mobile */
  .about-editorial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-info-card {
    padding: 20px 16px;
  }
}

/* -------------------------------------------------------------------------
   EXTRA SMALL SCREENS (<= 375px)
   ------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .brand-name {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .arch-carousel-container {
    max-width: 290px;
    height: 230px;
  }

  .arch-card {
    width: 125px;
    height: 195px;
  }

  .arch-card.is-left {
    transform: translateX(-40px) scale(0.8) rotate(-6deg);
  }

  .arch-card.is-right {
    transform: translateX(40px) scale(0.8) rotate(6deg);
  }

  .product-grid {
    gap: 8px;
  }

  .card-body {
    padding: 8px 6px;
  }

  .card-title {
    font-size: 0.82rem;
  }

  .price-current {
    font-size: 0.88rem;
  }
}

/* -------------------------------------------------------------------------
   DESKTOP SCREENS (>= 1025px)
   ------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  /* Hide hamburger and ensure desktop nav is visible */
  .hamburger-btn {
    display: none !important;
  }

  .desktop-nav {
    display: flex !important;
  }
}

