/* Mobile App-Like Enhancements */

/* Ensure smooth 60fps animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {

    /* PERFECT MOBILE HERO - STRICT MOCKUP MATCH */
    .premium-hero-slide {
        min-height: auto !important;
        padding: 50px 20px 60px 20px !important;
        background: radial-gradient(circle at top right, #1e3a8a, #0a192f) !important;
    }

    /* Stack hero content vertically */
    .premium-hero-slide .container>div {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    /* HIDE ALL EXTRA ELEMENTS TO MATCH MOCKUP */
    /* Hide decorative right panel on ALL slides */
    .premium-hero-slide .container>div>div:nth-child(2) {
        display: none !important;
    }

    /* Hide secondary buttons */
    .premium-hero-slide a[href="about.html"] {
        display: none !important;
    }

    /* Hide stats bar */
    .premium-hero-slide div[style*="border-top"] {
        display: none !important;
    }

    /* Perfect mobile hero content - Centered */
    .premium-hero-slide .container>div>div:first-child {
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Gold Label / Eyebrow */
    .premium-hero-slide span[style*="letter-spacing"] {
        color: #ffd700 !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        margin-bottom: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-transform: uppercase !important;
    }

    /* Main Heading - Serif & Big */
    .premium-hero-slide h1 {
        font-family: 'Playfair Display', serif !important;
        font-size: 2.6rem !important;
        line-height: 1.15 !important;
        margin-bottom: 20px !important;
        font-weight: 800 !important;
        padding: 0 !important;
        color: #fff !important;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }

    .premium-hero-slide h1 span {
        color: #ffd700 !important;
        font-style: italic !important;
    }

    /* Description Text */
    .premium-hero-slide p {
        font-family: 'Inter', sans-serif !important;
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 35px !important;
        padding: 0 10px !important;
        max-width: 100% !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Button Container */
    .premium-hero-slide>div>div>div>div[style*="display: flex"],
    .premium-hero-slide div[style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Primary Gold Button - Strict Match */
    .premium-hero-slide a[href*="shop"] {
        width: 100% !important;
        max-width: 100% !important;
        background: #fbbf24 !important;
        background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
        color: #000 !important;
        font-weight: 800 !important;
        font-size: 1.1rem !important;
        padding: 18px 0 !important;
        border-radius: 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4) !important;
        border: none !important;
        margin: 0 !important;
    }

    .premium-hero-slide a[href*="shop"] i {
        color: #000 !important;
        margin-right: 8px !important;
    }

    /* Hide navigation dots or make them subtle */
    div[style*="slider-dot"] {
        bottom: 25px !important;
    }


    /* Category boxes - 2 columns on mobile (Optimized) */
    section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Adjust category box padding for 2-column layout */
    .premium-category-card {
        padding: 20px 15px !important;
        min-height: 180px !important;
    }

    .premium-category-card i {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
    }

    .premium-category-card h3 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }

    .premium-category-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Product grid responsive */
    .product-grid,
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(auto-fill"] {
        grid-template-columns: 1fr !important;
    }

    /* SHOP PAGE OPTIMIZATION */
    /* Stack layout */
    .shop-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Sidebar styling as collapsible-like section */
    .filter-sidebar {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .filter-group h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        position: relative;
    }

    /* Filter list optimization */
    .filter-list li {
        margin-bottom: 10px;
    }

    .filter-list a {
        padding: 8px 0;
        display: block;
        font-size: 0.95rem;
    }

    /* Price slider touch friendly */
    input[type=range] {
        height: 30px;
    }

    /* Checkbox touch friendly */
    input[type=checkbox] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    /* Product grid responsive */
    .product-grid,
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(auto-fill"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer responsive */
    footer div[style*="grid-template-columns: 2fr 1fr 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Mobile nav spacing */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Testimonial tabs */
    .testimonial-tabs {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .t-tab-btn {
        width: 100% !important;
    }

    /* Logo carousel */
    .logo-carousel-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Touch-friendly sizing */
    .btn,
    button,
    a.btn {
        min-height: 48px !important;
        padding: 14px 24px !important;
        font-size: 1rem !important;
    }

    /* Product cards mobile */
    .product-card {
        margin-bottom: 20px;
    }
}

/* Extra small devices - Further optimize fonts */
@media (max-width: 480px) {
    .premium-hero-slide h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .premium-hero-slide p {
        font-size: 0.9rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .premium-hero-slide div[style*="border-top"]>div>div:first-child {
        font-size: 1.5rem !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .premium-hero-slide {
        min-height: 350px !important;
        padding: 30px 0 50px 0 !important;
    }

    .premium-hero-slide h1 {
        font-size: 1.6rem !important;
    }

    .premium-hero-slide p {
        font-size: 0.85rem !important;
        margin-bottom: 20px !important;
    }
}

/* iOS safe area */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .bottom-nav {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* Pull to refresh disable */
body {
    overscroll-behavior-y: contain;
}

/* Smooth native-like scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch feedback */
button:active,
a:active,
.btn:active {
    transform: scale(0.98);
    opacity: 0.9;
    transition: all 0.1s ease;
}

/* Prevent text selection on touch */
.premium-hero-slide * {
    -webkit-user-select: none;
    user-select: none;
}

/* Allow text selection for paragraphs only */
.premium-hero-slide p {
    -webkit-user-select: text;
    user-select: text;
}