﻿/* ==========================================================
   MILX PREMIUM
   responsive.css
==========================================================*/

/* =========================================
   1400px
========================================= */

@media (max-width:1400px) {

    :root {
        --container-max: 1140px;
    }
}

/* =========================================
   1200px
========================================= */

@media (max-width:1200px) {

    .container {
        max-width: 960px;
    }

    .xs-section {
        padding: 80px 0;
    }

    .xs-card h5 {
        font-size: 1.1rem;
    }
}

/* =========================================
   992px
========================================= */

@media (max-width:992px) {

    .container {
        max-width: 720px;
    }

    /* Navbar */

    .xs-navbar {
        min-height: 78px;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 16px;
        background: #111;
        border: 1px solid rgba(212,175,55,.12);
    }

    /* Hero */

    .xs-hero {
        min-height: 70vh;
    }

        .xs-hero h1 {
            font-size: 2.7rem;
        }

        .xs-hero p {
            font-size: 1rem;
        }

    /* Cards */

    .xs-card {
        margin-bottom: 24px;
    }

    /* Footer */

    .xs-footer {
        text-align: center;
    }

    .xs-social {
        justify-content: center;
    }
}

/* =========================================
   768px
========================================= */

@media (max-width:768px) {

    .container {
        max-width: 540px;
    }

    /* Typography */

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* Hero */

    .xs-hero {
        min-height: 60vh;
    }

        .xs-hero .hero-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .xs-hero .btn-xs {
            width: 100%;
        }

    /* Products */

    .xs-card {
        border-radius: 14px;
    }

        .xs-card img {
            aspect-ratio: 1/1;
        }

    /* Section */

    .xs-section {
        padding: 60px 0;
    }

    /* Footer */

    .xs-footer {
        padding-top: 60px;
    }

    .xs-footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    /* Admin */

    .admin-table {
        display: block;
        overflow: auto;
        white-space: nowrap;
    }
}

/* =========================================
   576px
========================================= */

@media (max-width:576px) {

    .container {
        padding-inline: 18px;
    }

    /* Navbar */

    .navbar-brand span {
        font-size: 1rem;
    }

    .navbar-brand img {
        width: 36px;
        height: 36px;
    }

    /* Hero */

    .xs-hero {
        min-height: 52vh;
    }

        .xs-hero h1 {
            font-size: 1.8rem;
        }

        .xs-hero p {
            font-size: .95rem;
        }

    /* Buttons */

    .btn-xs {
        width: 100%;
        justify-content: center;
    }

    /* Forms */

    .form-control,
    .form-select {
        min-height: 48px;
    }

    /* Cards */

    .xs-card .body {
        padding: 1rem;
    }

    .price-tag {
        font-size: 1.15rem;
    }

    /* Brands */

    .xs-brand-card {
        width: 120px;
        height: 90px;
    }

        .xs-brand-card img {
            max-width: 70px;
        }

    /* WhatsApp */

    .whatsapp-float {
        width: 58px;
        height: 58px;
        bottom: 18px;
        right: 18px;
    }

    html[dir="rtl"] .whatsapp-float {
        right: auto;
        left: 18px;
    }
}

/* =========================================
   400px
========================================= */

@media (max-width:400px) {

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .xs-section {
        padding: 45px 0;
    }

    .navbar-brand span {
        display: none;
    }

    .xs-card {
        border-radius: 12px;
    }
}

/* =========================================
   Landscape Phones
========================================= */

@media (max-height:500px) and (orientation:landscape) {

    .xs-hero {
        min-height: 120vh;
    }
}

/* =========================================
   Hover Devices
========================================= */

@media (hover:hover) {

    .xs-card:hover {
        transform: translateY(-8px);
    }

    .btn-xs:hover {
        transform: translateY(-3px);
    }
}

/* =========================================
   Touch Devices
========================================= */

@media (hover:none) {

    .xs-card:hover {
        transform: none;
    }

    .btn-xs:hover {
        transform: none;
    }
}

/* =========================================
   Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {

    *:not(.xs-brands-track) {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
