﻿
/* ==================================
   PUNTOMIX - RESPONSIVE
   ================================== */

@media (max-width: 768px) {

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 27px;
    }

    .header-actions {
        margin-left: auto;
        gap: 15px;
    }

    .header-action span {
        display: none;
    }

    .search-box {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .nav-content {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 25px;
        scrollbar-width: none;
    }

        .nav-content a {
            white-space: nowrap;
        }
}


/* ==================================
   CATEGORÍAS RESPONSIVE
   ================================== */

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 20px 0 35px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .section-link {
        font-size: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        min-height: 130px;
        padding: 15px 10px;
        border-radius: 13px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

        .category-icon svg {
            width: 30px;
            height: 30px;
        }

    .category-card h3 {
        font-size: 14px;
    }
}

/* ==================================
   PRODUCTOS RESPONSIVE
   ================================== */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 160px;
        padding: 12px;
    }

    .product-info {
        padding: 12px;
    }

        .product-info h3 {
            font-size: 14px;
        }

    .product-price {
        font-size: 19px;
    }

    .add-cart-btn {
        font-size: 12px;
        padding: 10px 8px;
    }
}

@media (max-width: 380px) {
    .product-image {
        height: 130px;
    }

    .add-cart-btn svg {
        width: 15px;
        height: 15px;
    }
}

/* ==================================
   PROMOCIONES RESPONSIVE
   ================================== */

@media (max-width: 768px) {

    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .promotion-card {
        min-height: 190px;
        padding: 24px;
    }

    .promotion-content h2 {
        font-size: 23px;
    }

    .promotion-decoration svg {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 380px) {

    .promotion-card {
        padding: 20px;
    }

    .promotion-content {
        max-width: 80%;
    }

        .promotion-content h2 {
            font-size: 21px;
        }

        .promotion-content p {
            font-size: 12px;
        }
}

/* ==================================
   FOOTER RESPONSIVE
   ================================== */

@media (max-width: 992px) {

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}

@media (max-width: 480px) {

    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-logo {
        font-size: 27px;
    }

    .footer-column h3 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-column li a,
    .footer-contact {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}


/* ==================================
   FILTROS RESPONSIVE
   ================================== */

@media (max-width: 768px) {
    .catalog-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 13px;
    }

    .filter-search {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .catalog-filters select {
        width: 100%;
        min-width: 0;
    }

    .filter-btn,
    .filter-clear {
        text-align: center;
    }

    .filter-clear {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .catalog-filters {
        grid-template-columns: 1fr;
    }

    .filter-search {
        grid-column: auto;
    }
}

/* ==================================
   DETALLE RESPONSIVE
   ================================== */

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-image {
        min-height: 300px;
        padding: 25px;
    }

        .detail-image img {
            max-height: 260px;
        }

    .detail-info {
        padding: 0;
    }

        .detail-info h1 {
            font-size: 28px;
        }

    .detail-price {
        font-size: 29px;
    }

    .detail-add-cart {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .detail-section {
        padding: 20px 0 45px;
    }

    .detail-image {
        min-height: 250px;
    }

    .detail-info h1 {
        font-size: 25px;
    }
}
