/* =========================================================
   VELOCITY STORE
   RESPONSIVE SYSTEM
   Mobile / Tablet / Desktop
========================================================= */


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1200px) {

    .container {
        width: min(94%, 1120px);
    }

    .hero-content {
        gap: 40px;
    }

    .hero-title {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .container {
        width: min(94%, 900px);
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-button {
        display: flex;
    }

    .navbar {
        padding: 16px 0;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 700px;
        margin: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 620px;
        margin: 30px auto 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    .container {
        width: min(92%, 620px);
    }

    .section {
        padding: 65px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 2rem;
    }


    /* =====================================================
       NAVBAR
    ===================================================== */

    .navbar {
        padding: 13px 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-actions {
        gap: 8px;
    }

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


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        padding: 60px 0 45px;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 0.98;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
    }


    /* =====================================================
       PRODUCTS
       2 CARDS PER ROW
    ===================================================== */

    .products-grid {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

        width: 100%;

    }

    .product-card {

        width: 100%;

        min-width: 0;

        border-radius: 18px;

    }

    .product-info {
        padding: 11px;
    }

    .product-name {
        font-size: 0.9rem;
    }

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

    .product-actions {
        gap: 6px;
    }


    /* =====================================================
       CATEGORIES
    ===================================================== */

    .categories-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

    }

    .category-card {
        min-height: 160px;
    }


    /* =====================================================
       FEATURES
    ===================================================== */

    .features-grid {
        grid-template-columns: 1fr;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .footer-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 30px;

    }

}


/* =========================================================
   SMALL MOBILE
   ---------------------------------------------------------
   IMPORTANT:
   Keep 2 product cards per row
========================================================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }


    /* =====================================================
       PRODUCTS
       ALWAYS 2 PER ROW
    ===================================================== */

    .products-grid {

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 9px !important;

        width: 100% !important;

    }

    .products-grid > * {

        width: 100% !important;

        min-width: 0 !important;

        max-width: none !important;

    }

    .product-card {

        width: 100% !important;

        min-width: 0 !important;

        max-width: none !important;

        margin: 0 !important;

        border-radius: 16px;

    }

    .product-info {

        padding: 10px;

    }

    .product-name {

        font-size: 0.82rem;

    }

    .product-price {

        font-size: 0.9rem;

    }

    .product-image {

        aspect-ratio: 1 / 1;

    }


    /* =====================================================
       CATEGORIES
    ===================================================== */

    .categories-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;

    }


    /* =====================================================
       FOOTER
    ===================================================== */

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


    /* =====================================================
       HERO
    ===================================================== */

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

    .section-title {
        font-size: 1.8rem;
    }


    /* =====================================================
       CART
    ===================================================== */

    .cart-drawer {
        width: 100%;
    }


    /* =====================================================
       PRODUCT HOVER
    ===================================================== */

    .product-card:hover {
        transform: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ---------------------------------------------------------
   Still 2 cards per row
========================================================= */

@media (max-width: 360px) {

    .container {
        width: 94%;
    }

    .products-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 7px !important;

    }

    .product-card {
        border-radius: 14px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 0.76rem;
    }

    .product-price {
        font-size: 0.84rem;
    }

    .categories-grid {
        gap: 7px;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .product-card:hover {
        transform: none;
    }

    .category-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;

    }

}
