/* ============================================================
   PEQUEMARKET — RESPONSIVE STYLES
   ============================================================ */

/* ============================================================
   LARGE (LG): 992px - 1199px
   ============================================================ */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero__content {
        max-width: 65%;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

/* ============================================================
   MEDIUM (MD): 768px - 991px
   ============================================================ */
@media (max-width: 991px) {
    body {
        font-size: 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .section {
        padding: 60px 0;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-main__inner {
        position: relative;
    }

    .nav-main__list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9998;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-main__list.open {
        display: flex;
        max-height: 600px;
    }

    .nav-main__item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-main__link {
        padding: 14px 20px;
        width: 100%;
        border-bottom: none;
    }

    .nav-main__link:hover {
        border-bottom: none;
        background-color: rgba(255,255,255,0.1);
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: rgba(0,0,0,0.15);
        display: none;
    }

    .nav-main__item.dropdown-open .nav-dropdown {
        display: block;
    }

    .nav-dropdown__link {
        color: rgba(255,255,255,0.8);
        padding: 10px 20px 10px 36px;
    }

    .nav-dropdown__link:hover {
        background-color: rgba(255,255,255,0.05);
        color: var(--accent);
    }

    /* Header */
    .header-main__inner {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    /* Hero */
    .hero {
        min-height: 400px;
    }

    .hero__content {
        max-width: 80%;
    }

    .hero__title {
        font-size: 2rem;
    }

    /* Category blocks */
    .category-blocks {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-block:nth-child(2) {
        border-right: none;
    }

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

    /* Promo banner */
    .promo-banner__inner {
        grid-template-columns: 1fr;
    }

    .promo-banner__image {
        order: -1;
    }

    .promo-banner__image img {
        height: 240px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-block {
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .feature-block__icon-wrap {
        margin: 0;
        flex-shrink: 0;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    /* Catalog layout */
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        display: none;
    }

    .filter-sidebar.open {
        display: block;
    }

    .filter-mobile-toggle {
        display: flex;
    }

    /* Product detail */
    .product-detail__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* About */
    .about-story {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-story__image img {
        height: 320px;
    }

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

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

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        padding: 60px 0;
    }

    /* Cart & Order */
    .cart-layout,
    .order-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .order-summary {
        position: static;
    }

    .cart-table__header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-item__product {
        grid-column: 1;
    }

    /* Trust badges */
    .trust-badges__inner {
        gap: 28px;
    }

    /* Offer banner */
    .offer-banner__inner {
        grid-template-columns: 1fr;
    }

    .offer-banner__content {
        padding: 24px 28px;
    }

    /* Order steps */
    .order-step__label {
        display: none;
    }
}

/* ============================================================
   SMALL (SM): 576px - 767px
   ============================================================ */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .section {
        padding: 48px 0;
    }

    /* Top bar */
    .top-bar__right {
        display: none;
    }

    /* Header */
    .header-main__inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .search-bar {
        grid-column: 1 / -1;
        order: 3;
    }

    .header-main__inner {
        grid-template-columns: auto 1fr auto;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero {
        min-height: 360px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero__trust {
        flex-direction: column;
        gap: 10px;
    }

    /* Categories */
    .category-blocks {
        grid-template-columns: 1fr 1fr;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Section header */
    .section__header {
        margin-bottom: 32px;
    }

    /* Promo banner */
    .promo-banner {
        padding: 48px 0;
    }

    .promo-banner__title {
        font-size: 1.5rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-block__number {
        font-size: 2.25rem;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Certs */
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-main {
        padding: 48px 0;
    }

    /* Trust badges */
    .trust-badges__inner {
        gap: 24px;
        flex-direction: column;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }

    .newsletter-form__input {
        border-radius: var(--radius-card);
        margin-bottom: 8px;
    }

    .newsletter-form__btn {
        border-radius: var(--radius-card);
        width: 100%;
        padding: 14px;
    }

    /* Product detail tabs */
    .tabs__nav {
        gap: 0;
    }

    .tabs__btn {
        padding: 12px 14px;
        font-size: 0.8125rem;
    }

    /* Product specs quick */
    .product-info__guarantees {
        flex-direction: column;
        gap: 12px;
    }

    /* Order steps */
    .order-steps {
        flex-direction: column;
    }

    .order-step {
        border-right: none;
        border-bottom: 1px solid var(--border);
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .order-step:last-child {
        border-bottom: none;
    }

    .order-step__label {
        display: block;
    }

    /* Form grid */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Cookie banner */
    .cookie-banner__inner {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-btn-accept,
    .cookie-btn-config {
        flex: 1;
        text-align: center;
    }
}

/* ============================================================
   EXTRA SMALL (XS): < 576px
   ============================================================ */
@media (max-width: 575px) {
    .container {
        padding: 0 14px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.25rem; }

    .section {
        padding: 40px 0;
    }

    /* Category blocks */
    .category-blocks {
        grid-template-columns: 1fr 1fr;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card__body {
        padding: 14px;
    }

    .product-card__footer {
        padding: 0 14px 14px;
    }

    /* Hero */
    .hero {
        min-height: 300px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.9375rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-block__number {
        font-size: 2rem;
    }

    /* Certs */
    .certs-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Top bar */
    .top-bar__left {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .top-bar__sep {
        display: none;
    }

    /* Breadcrumb */
    .page-header {
        padding: 40px 0;
    }

    /* Cart table */
    .cart-item {
        flex-direction: column;
        gap: 10px;
    }

    .cart-item__image {
        width: 60px;
        height: 60px;
    }

    /* Values grid */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Pagination */
    .pagination {
        gap: 4px;
    }

    .pagination__btn {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    /* Tabs */
    .tabs__btn {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    /* Offer banner */
    .offer-banner__badge {
        font-size: 1.25rem;
    }

    /* Print */
    .btn--lg {
        padding: 14px 24px;
    }

    /* Section centered btn */
    .section-centered-btn .btn {
        width: 100%;
        justify-content: center;
    }

    /* Features */
    .feature-block {
        flex-direction: column;
        text-align: center;
    }

    .feature-block__icon-wrap {
        margin: 0 auto 16px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .top-bar,
    .header-main,
    .nav-main,
    .cookie-banner,
    .newsletter-section,
    .footer-main,
    .trust-badges,
    .footer-copyright,
    .filter-sidebar,
    .filter-mobile-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .section {
        padding: 20pt 0;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}
