@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-copy h1 { font-size: 132px; }
}

@media (max-width: 1199px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  .top-strip { display: none; }
  .desktop-nav { display: none !important; }
  .mobile-header-search-wrap { display: block; }
  .hero-slider,
  .product-detail-grid,
  .cart-layout,
  .checkout-layout,
  .account-layout,
  .auth-page,
  .detail-tabs,
  .tracking-hero,
  .tracking-layout-panels,
  .checkout-hero {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    --hero-slide-height: 300px;
    min-height: auto;
  }
  .hero-visual { min-height: auto; }
  .hero-showcase-track {
    --hero-gap: 14px;
    --hero-third-width: 0px;
    --hero-card-large: calc((100% - var(--hero-gap)) / 2);
  }
  .hero-slide,
  .hero-slide img,
  .hero-visual img {
    min-height: 0;
    height: var(--hero-slide-height);
  }
  .hero-slide.is-third,
  .hero-slide.is-hidden {
    width: var(--hero-card-large);
    transform: translate3d(calc(100% + 20px), 0, 0);
    opacity: 0;
    pointer-events: none;
  }
  .hero-slide-control.prev { left: 8px; }
  .hero-slide-control.next { right: 8px; }
  .product-detail {
    padding-block: 18px 48px;
  }
  .product-detail-grid {
    gap: 16px;
  }
  .product-gallery {
    padding: 12px;
    border-radius: 14px;
  }
  .main-product-image {
    aspect-ratio: 5 / 4;
    max-height: 520px;
    border-radius: 12px;
  }
  .thumb-row {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    gap: 7px;
    margin-top: 8px;
  }
  .thumb-row button,
  .thumb-row img {
    border-radius: 10px;
  }
  .shop-layout { grid-template-columns: 1fr; }
  .sale-inner { grid-template-columns: 1fr; justify-items: start; }
  .sale-action { justify-items: start; }
  .sale-products { justify-content: flex-start; flex-wrap: wrap; }
  .hero-meta-grid,
  .hero-product-rail,
  .hero-promo-band {
    grid-template-columns: 1fr 1fr;
  }
  .feature-callout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-support-grid,
  .tracking-route-card,
  .tracking-metrics,
  .tracking-step-grid,
  .contact-showcase-grid,
  .order-action-grid,
  .bought-together-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bought-together-summary {
    align-items: start;
  }
  .filter-sidebar { display: none; }
  .filter-toggle { display: inline-flex; }
  .sticky-summary,
  .account-sidebar,
  .filter-sidebar { position: static; }
  .account-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: auto;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { padding-bottom: 102px; }
  .site-container { width: min(100% - 32px, 1440px); }
  .breadcrumb-line {
    margin-bottom: 10px;
    font-size: 13px;
  }
  .product-gallery,
  .product-buy-box,
  .detail-tabs {
    padding: 10px;
    border-radius: 14px;
  }
  .main-product-image {
    aspect-ratio: 5 / 4;
    max-height: 360px;
    border-radius: 12px;
  }
  .thumb-row {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 6px;
    margin-top: 7px;
  }
  .header-nav { min-height: 68px; }
  .header-nav .site-container {
    gap: 10px;
  }
  .header-nav .brand-mark {
    max-width: calc(100% - 64px);
    gap: 0;
  }
  .header-nav .brand-logo-header-icon {
    width: 122px;
    height: 70px;
  }
  .mobile-menu-brand .brand-logo-mobile-icon {
    width: 116px;
    height: 52px;
    max-height: 52px;
  }
  .brand-gem {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 15px;
  }
  .brand-copy strong {
    font-size: 11.5px;
    letter-spacing: .05em;
  }
  .brand-copy small {
    min-height: 18px;
    padding: 0 6px;
    font-size: 7px;
    letter-spacing: .04em;
    max-width: none;
  }
  .brand-logo-header .brand-logo-image {
    height: 48px;
  }
  .brand-logo-mobile .brand-logo-image {
    height: 58px;
  }
  .brand-logo-footer .brand-logo-image {
    height: 78px;
  }
  .footer-brand .brand-logo-footer-icon {
    width: 220px;
    height: 138px;
  }
  .mobile-header-actions {
    gap: 6px;
    margin-left: 0;
    margin-right: 2px;
  }
  .mobile-icon-pill,
  .mobile-menu-trigger {
    min-height: 40px;
    padding: 0 10px;
  }
  .mobile-menu-trigger {
    min-width: 58px;
    min-height: 42px;
  }
  .mobile-header-actions .mobile-icon-pill {
    min-width: 40px;
  }
  .mobile-header-actions .icon-link-badge {
    top: -3px;
    right: -3px;
  }
  .mobile-menu-trigger-copy strong {
    font-size: 9px;
  }
  .hero-slider {
    --hero-slide-height: 224px;
    padding: 8px 0 8px;
  }
  .hero-showcase-track {
    --hero-gap: 0px;
    --hero-third-width: 100%;
    --hero-card-large: 100%;
  }
  .hero-slide,
  .hero-slide img,
  .hero-visual img {
    min-height: 0;
    height: var(--hero-slide-height);
  }
  .hero-slide.is-next {
    width: 100%;
    left: calc(100% + 12px);
    opacity: .92;
  }
  .hero-slide.is-third,
  .hero-slide.is-hidden {
    width: 100%;
    left: calc(200% + 24px);
    opacity: 0;
    pointer-events: none;
  }
  .hero-slide-overlay {
    gap: 14px;
    padding: 16px;
  }
  .hero-slide-copy {
    gap: 8px;
    max-width: 24ch;
  }
  .hero-slide-copy h2 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.1;
  }
  .hero-slide-copy p {
    font-size: 14px;
    line-height: 1.5;
  }
  .hero-slide-badge,
  .hero-link-kind,
  .hero-link-action {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
  .hero-slide-control {
    width: 38px;
    height: 38px;
  }
  .hero-slide-control.prev { left: 10px; }
  .hero-slide-control.next { right: 10px; }
  .hero-dots {
    bottom: -14px;
  }
  .hero-copy { padding: 20px 12px; }
  .hero-copy h1 { font-size: 54px; }
  .auth-art img {
    min-height: 260px;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-brand .brand-gem {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }
  .footer-brand .brand-copy strong {
    font-size: 16px;
  }
  .footer-brand .brand-copy small {
    font-size: 8.5px;
    letter-spacing: .06em;
    max-width: none;
  }
  .admin-auth-art {
    padding: 0;
  }
  .admin-auth-visual-body {
    padding: 24px;
  }
  .admin-auth-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .variant-picker-head,
  .checkout-address-tools,
  .checkout-card-head,
  .summary-heading,
  .bought-together-actions,
  .bought-together-summary {
    align-items: start;
    flex-direction: column;
  }
  .bought-together-grid,
  .testimonial-grid,
  .instagram-strip,
  .contact-showcase-grid,
  .mobile-menu-department-grid,
  .mobile-menu-link-grid,
  .return-proof-grid,
  .range-grid,
  .form-grid,
  .address-grid,
  .compare-table,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-credit {
    flex-direction: column;
    text-align: center;
  }
  .product-grid-shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .app-product-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(164px, calc((100vw - 44px) / 2.15));
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .app-category-rail {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, calc((100vw - 42px) / 2.3));
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .app-product-rail::-webkit-scrollbar,
  .app-category-rail::-webkit-scrollbar {
    display: none;
  }
  .app-product-rail .product-card,
  .app-category-rail .category-tile {
    scroll-snap-align: start;
  }
  .app-category-rail .category-tile {
    min-height: 164px;
  }
  .sale-inner,
  .section-heading,
  .shop-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .section-block {
    padding-block: 28px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 14px;
  }
  .section-heading h2 {
    font-size: 22px;
    line-height: 1.18;
  }
  .hero-chip-row,
  .hero-quick-links,
  .hero-meta-grid,
  .hero-product-rail {
    grid-template-columns: 1fr;
  }
  .hero-chip-row {
    display: grid;
  }
  .hero-quick-links {
    display: grid;
  }
  .hero-quick-links a {
    width: 100%;
  }
  .hero-floating-card { display: none; }
  .hero-promo-band {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 78vw);
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .hero-promo-band::-webkit-scrollbar {
    display: none;
  }
  .hero-promo-card {
    grid-template-columns: 1fr;
    scroll-snap-align: start;
  }
  .countdown { grid-template-columns: repeat(3, auto auto); }
  .feature-callout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-callout-card {
    aspect-ratio: 1 / 1.1;
    min-height: 184px;
  }
  .feature-callout-copy {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .feature-callout-copy strong {
    font-size: 21px;
  }
  .feature-callout-total {
    font-size: 11px;
    padding: 7px 10px;
  }
  .detail-cart-form,
  .checkout-pincode-row,
  .bundle-product-card {
    grid-template-columns: 1fr;
  }
  .variant-list,
  .bundle-variant-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .variant-choice,
  .variant-choice-compact {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .suggestion-item,
  .suggestion-link-row {
    grid-template-columns: 44px 1fr;
  }
  .suggestion-recent-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px 12px;
  }
  .suggestion-recent-row .suggestion-link-copy {
    gap: 2px;
  }
  .suggestion-recent-row .suggestion-link-copy strong {
    white-space: nowrap;
  }
  .suggestion-recent-row .suggestion-link-copy small {
    font-size: 11px;
  }
  .suggestion-tag {
    display: none;
  }
  .suggestion-item b,
  .suggestion-tag {
    justify-self: start;
  }
  .suggestion-item b {
    grid-column: 2;
  }
  .suggestion-tag {
    grid-column: 2;
  }
  .return-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bundle-product-check {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
  }
  .bundle-select-label {
    min-height: 32px;
  }
  .checkout-saved-address {
    min-width: 100%;
  }
  .product-card {
    min-height: 100%;
  }
  .product-media {
    aspect-ratio: 1 / .9;
  }
  .product-media > a,
  .product-media .hover-img {
    padding: 6px;
  }
  .product-media img {
    object-fit: cover;
  }
  .discount-badge,
  .stock-badge {
    top: 8px;
    padding: 5px 8px;
    font-size: 10px;
  }
  .discount-badge { left: 8px; }
  .stock-badge { right: 8px; }
  .wishlist-form {
    right: 8px;
    bottom: 8px;
  }
  .wishlist-form button {
    width: 36px;
    height: 36px;
  }
  .product-info {
    padding: 10px;
  }
  .product-meta {
    font-size: 11px;
    gap: 6px;
  }
  .product-rating-badge {
    gap: 3px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  .product-rating-badge i,
  .product-rating-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
  }
  .product-rating-badge small {
    display: none;
  }
  .product-rating-compact {
    gap: 3px;
    min-width: 44px;
    max-width: 50px;
    min-height: 24px;
    padding: 0 7px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
  }
  .product-rating-compact i,
  .product-rating-compact svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
  }
  .product-card h3 {
    min-height: 36px;
    margin: 7px 0 5px;
    font-size: 15px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .product-card p {
    min-height: 32px;
    margin-bottom: 6px;
    font-size: 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .price-row {
    margin: 8px 0 6px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .price-row strong {
    font-size: 16px;
  }
  .delivery-line,
  .return-line {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .product-actions {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }
  .product-actions button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 12px;
    box-shadow: none;
  }
  .footer-highlight-grid {
    grid-template-columns: 1fr;
  }
  .footer-credit {
    flex-direction: column;
    text-align: center;
  }
  .detail-cart-form {
    grid-template-columns: 1fr;
  }
  .detail-share-row,
  .bought-together-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-status-strip {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cart-row {
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .cart-row-media {
    width: 86px;
    min-width: 86px;
  }
  .cart-row > .cart-line-total { grid-column: 2; justify-items: start; text-align: left; }
  .cart-row-head,
  .cart-row-meta {
    flex-direction: column;
    align-items: start;
  }
  .cart-row-actions,
  .cart-inline-actions,
  .cart-qty-form {
    width: 100%;
  }
  .cart-qty-form {
    align-items: stretch;
  }
  .cart-qty-form input,
  .cart-qty-form .cart-action-btn,
  .cart-inline-actions form,
  .cart-inline-actions .cart-action-btn {
    width: 100%;
  }
  .cart-inline-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cart-inline-actions .cart-action-btn {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }
  .cart-price-stack {
    justify-items: start;
    text-align: left;
  }
  .cart-row img {
    width: 100%;
    height: 86px;
  }
  .cart-summary-card {
    position: static;
  }
  .checkout-progress {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .checkout-card-head,
  .summary-heading,
  .checkout-card-meta,
  .checkout-note-row,
  .tracking-live-row {
    align-items: start;
    flex-direction: column;
  }
  .auth-form-shell {
    padding: 18px;
  }
  .auth-panel-customer {
    width: min(100%, 400px);
  }
  .auth-brand-lockup {
    gap: 10px;
  }
  .brand-logo-auth-icon {
    width: min(100%, 250px);
    height: 156px;
  }
  .brand-logo-auth .brand-logo-image {
    height: 116px;
  }
  .auth-brand-stack-copy strong {
    font-size: 19px;
    letter-spacing: .12em;
  }
  .auth-brand-stack-copy small {
    min-height: 18px;
    padding: 0 8px;
    font-size: 7px;
    letter-spacing: .04em;
    max-width: none;
  }
  .auth-brand-compact {
    justify-content: center;
  }
  .auth-brand-title {
    font-size: 16px;
  }
  .auth-copy-block h1 {
    font-size: 30px;
  }
  .admin-auth-copy h1 {
    font-size: 32px;
  }
  .admin-auth-pills {
    display: grid;
  }
  .admin-auth-metrics {
    grid-template-columns: 1fr;
  }
  .order-card {
    grid-template-columns: 1fr;
  }
  .order-card-head,
  .order-card-side,
  .tracking-progress-top,
  .tracking-panel-head,
  .tracking-feed-row,
  .tracking-actions-row {
    align-items: start;
    flex-direction: column;
  }
  .order-card-side {
    justify-items: start;
    text-align: left;
  }
  .tracking-metrics,
  .tracking-step-grid,
  .order-action-grid,
  .review-gallery {
    grid-template-columns: 1fr;
  }
  .tracking-route-card,
  .checkout-support-grid {
    grid-template-columns: 1fr;
  }
  .info-page-grid {
    grid-template-columns: 1fr;
  }
  .bundle-product-card {
    grid-template-columns: auto 64px 1fr;
  }
  .bundle-product-card > strong {
    grid-column: 3;
  }
  .bundle-product-card img {
    width: 64px;
    height: 64px;
  }
  .checkout-summary-item {
    grid-template-columns: 56px 1fr;
  }
  .checkout-summary-item > strong {
    grid-column: 2;
  }
  .tracking-item-row {
    grid-template-columns: 72px 1fr;
  }
  .tracking-item-row > strong {
    grid-column: 2;
  }
  .bottom-nav { display: grid; }
  .whatsapp-float { display: none; }
}

@media (max-width: 380px) {
  .header-nav .brand-mark {
    max-width: calc(100% - 60px);
    gap: 0;
  }
  .header-nav .brand-logo-header-icon {
    width: 108px;
    height: 62px;
  }
  .mobile-menu-trigger {
    padding: 0 8px;
    min-width: 54px;
  }
  .mobile-menu-trigger-copy strong {
    font-size: 8.5px;
  }
  .hero-copy h1 { font-size: 44px; }
  .hero-product-mini {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-product-mini img {
    margin-inline: auto;
  }
  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .header-nav .brand-mark {
    max-width: calc(100% - 56px);
  }
  .header-nav .brand-logo-header-icon {
    width: 108px;
    height: 62px;
  }
  .mobile-menu-trigger {
    width: 46px;
    min-width: 46px;
    min-height: 42px;
    padding: 0;
  }
  .mobile-menu-trigger-copy {
    display: none;
  }
  .product-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .product-actions button {
    min-height: 36px;
    padding-inline: 8px;
    font-size: 11.5px;
  }
  .cart-inline-actions {
    grid-template-columns: 1fr;
  }
  .footer-brand .brand-logo-footer-icon {
    width: min(100%, 188px);
    height: 118px;
  }
}

/* Final responsive hero slider override: keep the top banner carousel smooth
   and prevent the old left-position slide rules from taking over. */
@media (max-width: 1023px) {
  .hero-slider {
    --hero-slide-height: clamp(218px, 33vw, 300px);
  }

  .hero-showcase-track {
    --hero-gap: 12px;
    --hero-card-width: clamp(300px, calc((100% - var(--hero-gap)) / 1.42), 560px);
    display: flex;
    gap: var(--hero-gap);
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-showcase-track::-webkit-scrollbar {
    display: none;
  }

  .hero-slide,
  .hero-slide.is-active,
  .hero-slide.is-next,
  .hero-slide.is-third,
  .hero-slide.is-hidden {
    position: relative;
    left: auto;
    flex: 0 0 var(--hero-card-width);
    width: auto;
    height: var(--hero-slide-height);
    opacity: 1;
    pointer-events: auto;
    transform: translateZ(0);
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    --hero-slide-height: clamp(176px, 51vw, 224px);
  }

  .hero-showcase-track {
    --hero-gap: 10px;
    --hero-card-width: min(100%, calc(100vw - 32px));
  }

  .hero-slide-control {
    width: 36px;
    height: 36px;
  }

  .hero-dots {
    bottom: -12px;
  }
}

@media (max-width: 1023px) {
  .hero-showcase-track,
  .hero-showcase-track.hero-count-1,
  .hero-showcase-track.hero-count-2,
  .hero-showcase-track.hero-count-3 {
    --hero-gap: 0px !important;
    --hero-card-width: 100% !important;
    gap: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .hero-slide,
  .hero-slide.is-active,
  .hero-slide.is-next,
  .hero-slide.is-third,
  .hero-slide.is-hidden {
    flex-basis: 100% !important;
    width: 100% !important;
    transform: translateZ(0) !important;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    --hero-slide-height: clamp(148px, 45vw, 208px);
  }

  .hero-showcase,
  .hero-slide,
  .hero-slide img,
  .hero-visual img {
    border-radius: 8px !important;
  }

  .hero-slide-control {
    width: 34px !important;
    height: 58px !important;
    opacity: .9;
  }

  .hero-dots {
    bottom: 7px !important;
  }
}
