/* ===================================
   RESPONSIVE MOBILE-FIRST DESIGN
   Neon Theme Responsive Breakpoints
   =================================== */

/* Base Mobile Styles (< 768px) - UPDATED FROM 576px */
@media (max-width: 768px) {

    /* Hero Section */
    .hero-section h1,
    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    /* Buttons */
    .neon-btn {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
        /* Touch target */
    }

    /* Trust Strip */
    .rtc-trust-strip {
        padding: 40px 15px !important;
    }

    .rtc-trust-strip .trust-item {
        margin-bottom: 30px !important;
    }

    /* Categories Grid - Force 1 Column */
    .rtc-categories .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    /* Cards */
    .glass-card,
    .product-card,
    .feature-card {
        padding: 20px !important;
    }

    /* Carousel Controls */
    .carousel-prev,
    .carousel-next {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
    }
}

/* Tablet Styles (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {

    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    /* Categories Grid - 2 Columns on Tablet */
    .rtc-categories .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Why Us Grid */
    .rtc-why-us .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop Styles (993px+) */
@media (min-width: 993px) {

    /* Container Max Width */
    .rtc-home-container {
        max-width: 100%;
    }

    section>div {
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Categories Grid */
    .rtc-categories .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }

    /* Why Us Grid */
    .rtc-why-us .why-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Hover Effects (Desktop Only) */
    .neon-card:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hero-section h1 {
        font-size: 4rem !important;
    }

    .hero-section p {
        font-size: 1.3rem !important;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 
=====================================================
   FINAL OVERRIDE: FORCE RECTANGULAR CATEGORY CARDS
   (Loaded last via responsive.css to beat specificty)
===================================================== 
*/
body .woocommerce ul.products li.product.product-category,
body ul.products li.product.product-category,
body .rtc-categories .category-card,
body .product-category a,
body .product-category img,
body .category-card img,
.rtc-dynamic-cats-slider img {
    border-radius: 12px !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;

    /* Remove Arch / Circle Shapes */
    clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;

    /* Ensure sizing */
    overflow: hidden !important;
}

/* Force image aspect ratio to be rectangular if forced to square/circle */
body .product-category img,
body .category-card img {
    width: 100% !important;
    height: 220px !important;
    /* Standard height */
    object-fit: cover !important;
    aspect-ratio: auto !important;
}

/* 
=====================================================
   MOBILE MENU SHOP BUTTON FIX (REFINED)
   Make it compact, smaller, and not full width
===================================================== 
*/
@media (max-width: 921px) {

    /* Target the button itself */
    .ast-mobile-popup-drawer .main-header-menu a[href*="shop"],
    .ast-mobile-popup-drawer .ast-header-navigation a[href*="shop"],
    .ast-mobile-popup-drawer .menu-item a[href*="shop"] {
        width: fit-content !important;
        max-width: 120px !important;
        /* Even smaller */
        display: inline-block !important;
        /* Force inline */

        /* Flex/Grid Resets */
        flex: none !important;
        align-self: flex-start !important;
        justify-self: start !important;

        margin: 10px 0 10px 20px !important;
        padding: 6px 15px !important;
        /* Very compact */
        font-size: 12px !important;

        background: #f8bb2f !important;
        color: #0f172a !important;
        border-radius: 50px !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(248, 187, 47, 0.3) !important;
        text-align: center !important;
        line-height: normal !important;
        white-space: nowrap !important;
        /* Prevent text wrap */
    }
}

/* 
=====================================================
   NEON COOKIE BANNER STYLES
===================================================== 
*/
.rtc-cookie-banner {
    position: fixed;
    bottom: -150px;
    /* Hidden initially */
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #1e38ef;
    /* Blue Border */
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(30, 56, 239, 0.4);
    z-index: 99999;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rtc-cookie-banner.active {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.cookie-text h4 {
    margin: 0;
    color: #f8bb2f;
    /* Gold */
    font-size: 1.1rem;
    font-weight: 700;
}

.cookie-text p {
    margin: 5px 0 0;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-text a {
    color: #1e38ef;
    text-decoration: none;
    font-weight: 600;
}

.neon-btn-accept {
    background: linear-gradient(135deg, #1e38ef, #4361ee);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(30, 56, 239, 0.4);
    transition: all 0.3s ease;
}

.neon-btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 56, 239, 0.6);
    background: linear-gradient(135deg, #f8bb2f, #ffd60a);
    color: #000;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .rtc-cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 10px;
        right: 10px;
        bottom: -300px;
        max-width: none;
    }

    .rtc-cookie-banner.active {
        bottom: 15px;
    }


    .cookie-actions {
        width: 100%;
        text-align: right;
    }
}

/* 
=====================================================
   CUSTOM NEON CURSOR STYLES
===================================================== 
*/

/* Hide cursor on mobile/touch devices */
@media (max-width: 1024px) {

    .rtc-cursor,
    .rtc-cursor-follower {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    body {
        cursor: none;
        /* Hide default cursor */
    }

    /* Interactive elements show pointer */
    a,
    button,
    input,
    textarea,
    select,
    .neon-btn {
        cursor: none;
    }

    /* Small Center Dot */
    .rtc-cursor {
        position: fixed;
        width: 8px;
        height: 8px;
        background: #f8bb2f;
        /* Gold */
        border-radius: 50%;
        z-index: 9999999;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, background 0.3s;
        box-shadow: 0 0 10px rgba(248, 187, 47, 0.8);
    }

    /* Trailing Outer Ring */
    .rtc-cursor-follower {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(30, 56, 239, 0.5);
        /* Blue */
        border-radius: 50%;
        z-index: 9999998;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
        box-shadow: 0 0 15px rgba(30, 56, 239, 0.2);
    }

    /* Active State (Hover) */
    .rtc-cursor.active {
        width: 0;
        height: 0;
        opacity: 0;
    }

    .rtc-cursor-follower.active {
        width: 70px;
        height: 70px;
        background: rgba(30, 56, 239, 0.1);
        border-color: #f8bb2f;
        /* Gold Border */
        box-shadow: 0 0 30px rgba(248, 187, 47, 0.3);
        backdrop-filter: blur(2px);
    }

    /* Click State */
    .rtc-cursor-follower.clicked {
        transform: translate(-50%, -50%) scale(0.8);
        background: rgba(248, 187, 47, 0.3);
    }
}