/* ==========================================================
   MS SPORTS — Mobile-First Responsive Optimizations
   95% users are on mobile — every pixel counts!
   ========================================================== */

/* ───────────────── GLOBAL MOBILE RESETS ───────────────── */
@media (max-width: 767.98px) {

    body {
        -webkit-tap-highlight-color: rgba(0,0,0,0.05);
        -webkit-text-size-adjust: 100%;
        overflow-x: hidden;
    }

    /* Remove hover-only effects on touch */
    .product-card:hover { transform: none !important; }
    .product-card:active { transform: scale(0.98) !important; transition: transform 0.1s !important; }

    /* Disable custom cursor on mobile */
    #cursor-dot, #cursor-ring { display: none !important; }

    /* ───────────────── NAVBAR ───────────────── */
    .mh-navbar {
        padding: 6px 0 !important;
    }
    .mh-navbar .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Adjust the 3-col grid for mobile */
    .mh-navbar .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .mh-navbar .row > .col-4 {
        width: auto !important;
        flex: 0 0 auto !important;
    }
    .mh-navbar .row > .col-4:nth-child(2) {
        flex: 1 1 auto !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }

    .mh-logo-text {
        font-size: 1.4rem !important;
    }
    .mh-logo-tagline {
        font-size: 0.42rem !important;
        letter-spacing: 0.12em !important;
    }

    /* Nav buttons - bigger tap targets */
    .nav-icon-btn:not(.d-none) {
        width: 40px !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        font-size: 1.35rem !important;
        border-radius: 50% !important;
    }
    /* Explicitly hide desktop-only items */
    .mh-navbar .d-none.d-md-inline-flex {
        display: none !important;
    }
    /* Cart button specifically */
    .nav-icon-btn.ripple-btn[aria-label="Cart"] {
        width: 42px !important;
        height: 42px !important;
    }

    /* ───────────────── TRUST TICKER ───────────────── */
    .trust-ticker {
        padding: 5px 0 !important;
    }
    .trust-ticker-inner {
        font-size: 0.72rem !important;
    }
    .trust-ticker-inner .divider {
        margin: 0 10px !important;
    }

    /* ───────────────── HERO CAROUSEL ───────────────── */
    .hero-carousel-wrap .carousel-item img {
        height: 200px !important;
        max-height: 35vh !important;
        object-fit: cover;
    }
    .hero-carousel-wrap .carousel-control-prev,
    .hero-carousel-wrap .carousel-control-next {
        width: 30px !important;
        height: 30px !important;
        margin: 0 4px !important;
        opacity: 1 !important;
    }
    .hero-carousel-wrap .carousel-inner {
        border-radius: 0 0 16px 16px !important;
    }

    /* ───────────────── HERO FALLBACK ───────────────── */
    .hero-fallback {
        min-height: auto !important;
        padding: 40px 0 32px !important;
    }
    .hero-fallback .row {
        min-height: auto !important;
        padding: 0 !important;
    }

    /* Center everything in hero on mobile */
    .hero-fallback .col-lg-6 {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-badge {
        font-size: 0.68rem !important;
        padding: 4px 12px !important;
        margin-bottom: 14px !important;
    }

    .hero-title {
        font-size: 2rem !important;
        text-align: center !important;
    }
    .hero-title span {
        font-size: 1.15rem !important;
    }

    .hero-subtitle {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    /* CTA buttons - center them */
    .hero-cta-group {
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 18px !important;
        width: 100% !important;
    }
    .hero-cta-btn {
        padding: 12px 24px !important;
        font-size: 0.92rem !important;
        border-radius: 14px !important;
        flex: none !important;
    }

    /* ───────────────── FEATURES STRIP ───────────────── */
    .features-strip {
        margin-top: -16px !important;
        padding: 14px 8px !important;
        border-radius: 14px !important;
    }
    .feature-item {
        padding: 8px 4px !important;
    }
    .feature-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 6px !important;
    }
    .feature-icon i {
        font-size: 1.2rem !important;
    }
    .feature-label,
    .feature-item .font-bn.fw-bold {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    /* Remove left border on mobile 2-col grid */
    .features-strip .feature-item.border-start-md {
        border-left: none !important;
    }
    /* Only keep right border on left column items */
    .features-strip .col-6:nth-child(odd) .feature-item {
        border-right: 1px solid rgba(191,219,254,0.3);
    }
    .features-strip .col-6:nth-child(even) .feature-item {
        border-left: none !important;
    }

    /* ───────────────── CATEGORY PILLS ───────────────── */
    .category-scroll-container {
        padding: 6px 6px !important;
        margin-bottom: 18px !important;
        border-radius: 16px !important;
    }
    .category-pill {
        padding: 7px 14px !important;
        font-size: 0.78rem !important;
        margin-right: 6px !important;
        box-shadow: none !important;
    }

    /* ───────────────── SECTION HEADERS ───────────────── */
    .section-header {
        margin-bottom: 24px !important;
    }
    .section-title {
        font-size: 1.2rem !important;
    }
    .section-eyebrow {
        font-size: 0.68rem !important;
        padding: 4px 12px !important;
    }

    /* ───────────────── PRODUCT GRID ───────────────── */
    .row.row-cols-2 {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.5rem !important;
    }

    /* ───────────────── PRODUCT CARD ───────────────── */
    .product-card {
        border-radius: 10px !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
        border: 1px solid rgba(191,219,254,0.25) !important;
    }

    .product-img-wrapper {
        padding-top: 115% !important;
        border-radius: 10px 10px 0 0 !important;
    }

    /* Badges */
    .product-badges {
        top: 5px !important;
        left: 5px !important;
        gap: 3px !important;
    }
    .badge-custom {
        padding: 2px 5px !important;
        font-size: 0.55rem !important;
        border-radius: 4px !important;
    }

    /* Product info */
    .product-info {
        padding: 8px 8px 10px !important;
    }
    .product-title {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
    }
    .product-title small {
        font-size: 0.6rem !important;
        margin-top: 1px !important;
    }

    .price-box {
        margin: 4px 0 6px !important;
    }
    .sale-price {
        font-size: 1rem !important;
        font-weight: 800 !important;
    }
    .original-price {
        font-size: 0.7rem !important;
    }
    .price-from-label {
        font-size: 0.6rem !important;
    }

    /* Mobile CTA button */
    .btn-quick-add-mobile {
        padding: 7px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
        gap: 4px !important;
        margin-top: 2px !important;
    }

    /* ───────────────── CART DRAWER ───────────────── */
    .cart-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        border-left: none !important;
        border-radius: 0 !important;
    }
    .cart-header {
        padding: 12px 14px !important;
    }
    .cart-header h5 {
        font-size: 0.92rem !important;
    }
    .cart-body {
        padding: 10px 12px !important;
    }
    .cart-item {
        padding: 10px 0 !important;
    }
    .cart-item-img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 8px !important;
    }
    .cart-item-title {
        font-size: 0.8rem !important;
    }
    .cart-item-price {
        font-size: 0.85rem !important;
    }
    .qty-control {
        height: 28px !important;
    }
    .qty-btn {
        width: 28px !important;
        font-size: 0.85rem !important;
    }
    .qty-input {
        width: 30px !important;
        font-size: 0.8rem !important;
    }
    .cart-footer {
        padding: 10px 12px 14px !important;
    }
    .cart-btn-cod,
    .cart-btn-online {
        font-size: 0.85rem !important;
        padding: 11px !important;
        border-radius: 10px !important;
    }
    .cart-trust-item {
        font-size: 0.62rem !important;
    }

    /* ───────────────── CHECKOUT MODAL ───────────────── */
    .checkout-modal .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 100dvh !important;
    }
    .checkout-modal .modal-content {
        border-radius: 0 !important;
        min-height: 100dvh !important;
    }
    .checkout-modal .modal-header {
        padding: 12px 14px !important;
    }
    .checkout-modal .modal-body {
        padding: 14px !important;
    }
    .checkout-form-group label {
        font-size: 0.8rem !important;
    }
    .checkout-input {
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
        border-radius: 10px !important;
    }
    .shipping-option {
        padding: 10px 12px !important;
        border-radius: 10px !important;
        gap: 8px !important;
    }

    /* ───────────────── PRODUCT DETAIL PAGE ───────────────── */
    .product-gallery-main {
        border-radius: 12px !important;
        aspect-ratio: auto !important;
        max-height: 380px !important;
    }
    .product-gallery-main img {
        max-height: 380px !important;
        object-fit: contain !important;
    }
    .product-thumbnail {
        width: 54px !important;
        height: 54px !important;
        border-radius: 7px !important;
    }
    .qty-selector {
        height: 44px !important;
        width: 115px !important;
        border-radius: 10px !important;
    }
    .qty-selector button {
        width: 36px !important;
        font-size: 1rem !important;
    }
    .variant-pill {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
    }
    .desc-tab-btn {
        padding: 9px 12px !important;
        font-size: 0.82rem !important;
    }
    .desc-tab-pane {
        font-size: 0.88rem !important;
        padding: 12px 0 !important;
    }
    .review-card {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    /* ───────────────── FOOTER ───────────────── */
    .site-footer {
        padding-top: 36px !important;
    }
    .footer-logo-text {
        font-size: 1.5rem !important;
    }
    .footer-widget-title {
        font-size: 0.82rem !important;
        margin-bottom: 12px !important;
    }
    .footer-links a {
        font-size: 0.8rem !important;
        padding: 3px 0 !important;
    }
    .footer-trust-bar {
        margin-top: 24px !important;
        padding: 12px 0 !important;
        gap: 10px !important;
    }
    .footer-trust-item {
        font-size: 0.7rem !important;
    }
    .footer-bottom {
        font-size: 0.72rem !important;
        padding: 12px 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .social-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }

    /* ───────────────── WHATSAPP BUTTON ───────────────── */
    .wa-floating {
        display: none !important;
    }

    /* ───────────────── PLAYER GALLERY ───────────────── */
    .card.h-100.border-0.shadow-sm.rounded-4 img {
        height: 180px !important;
    }
    .card-body.p-4 {
        padding: 12px !important;
    }

    /* ───────────────── ANIMATIONS ───────────────── */
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        transition-duration: 0.35s !important;
    }
    [data-aos] {
        transition-duration: 350ms !important;
    }

    /* ───────────────── SCROLL PROGRESS ───────────────── */
    #scroll-progress-bar {
        height: 2px !important;
    }

    /* ───────────────── PRELOADER ───────────────── */
    .preloader-logo {
        font-size: 1.8rem !important;
    }
    .preloader-tagline {
        font-size: 0.68rem !important;
    }

    /* ───────────────── BREADCRUMB ───────────────── */
    .breadcrumb {
        font-size: 0.76rem !important;
    }

    /* ───────────────── THANK YOU PAGE ───────────────── */
    .thankyou-hero {
        padding: 36px 14px !important;
    }
    .thankyou-check {
        width: 65px !important;
        height: 65px !important;
        font-size: 2rem !important;
    }
}

/* ───────────────── EXTRA SMALL DEVICES (< 360px) ───────────────── */
@media (max-width: 359.98px) {
    .mh-logo-text {
        font-size: 1.15rem !important;
    }
    .hero-title {
        font-size: 1.6rem !important;
    }
    .hero-title span {
        font-size: 0.95rem !important;
    }
    .hero-cta-btn {
        padding: 10px 18px !important;
        font-size: 0.82rem !important;
    }
    .product-title {
        font-size: 0.72rem !important;
    }
    .sale-price {
        font-size: 0.9rem !important;
    }
    .btn-quick-add-mobile {
        font-size: 0.7rem !important;
        padding: 6px !important;
    }
    .category-pill {
        padding: 5px 9px !important;
        font-size: 0.68rem !important;
    }
}

/* ───────────────── MOBILE BOTTOM NAVIGATION BAR ───────────────── */
@media (max-width: 767.98px) {
    /* Add bottom padding so content doesn't hide behind sticky bar */
    body {
        padding-bottom: 64px !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: #fff;
        border-top: 1px solid rgba(191,219,254,0.5);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1040;
        padding: 0 4px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-bottom-nav .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        text-decoration: none;
        color: var(--clr-earth-light);
        font-family: var(--font-bn);
        font-size: 0.58rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 8px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        border: none;
        background: none;
        cursor: pointer;
    }
    .mobile-bottom-nav .mob-nav-item i {
        font-size: 1.2rem;
        transition: all 0.2s ease;
    }
    .mobile-bottom-nav .mob-nav-item.active {
        color: var(--clr-primary);
    }
    .mobile-bottom-nav .mob-nav-item.active i {
        color: var(--clr-accent);
    }

    /* Cart button in bottom nav - make it pop */
    .mobile-bottom-nav .mob-nav-cart {
        position: relative;
        background: linear-gradient(135deg, var(--clr-accent), #c62828) !important;
        color: #fff !important;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        margin-top: -22px;
        box-shadow: 0 4px 16px rgba(229,57,53,0.35);
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid #fff !important;
    }
    .mobile-bottom-nav .mob-nav-cart i {
        font-size: 1.3rem !important;
        color: #fff !important;
    }
    .mobile-bottom-nav .mob-nav-cart span.mob-nav-label {
        display: none !important;
    }
    .mobile-bottom-nav .mob-nav-cart .mob-cart-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        min-width: 18px;
        height: 18px;
        background: var(--clr-gold);
        color: var(--clr-earth);
        border-radius: 99px;
        font-size: 0.58rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        font-family: var(--font-en);
        border: 2px solid #fff;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ───────────────── SMOOTH TOUCH INTERACTIONS ───────────────── */
@media (hover: none) and (pointer: coarse) {
    .product-card {
        transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    }
    .product-card:active {
        transform: scale(0.97) !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    }

    .btn-quick-add-mobile:active,
    .btn-primary-mh:active,
    .btn-orange:active {
        transform: scale(0.95) !important;
        opacity: 0.9;
    }

    .category-pill:active {
        transform: scale(0.95) !important;
    }

    /* Hide hover-only overlays on touch devices */
    .product-quick-add-overlay {
        display: none !important;
    }
}
