/* ==========================================================
   RESPONSIVE › BREAKPOINTS
   Breakpoints estruturais para larguras disponíveis
   Ordem estrutural: 980px → 760px → 640px → 520px → 350px
   ========================================================== */

/* ===== 980px: tablet landscape / iPad Pro ===== */
@media (max-width: 980px) {
    .header-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        padding: 12px 20px;
        font-size: 13px;
    }

    .navbar {
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding: 14px 24px;
    }

    .brand { width: 150px; height: 74px; }

    .menu-toggle { display: grid; place-items: center; }

    .nav-links,
    .nav-actions {
        display: none;
        grid-column: 1 / -1;
    }

    .navbar.is-open .nav-links,
    .navbar.is-open .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero,
    .products-hero,
    .section-heading,
    .product-cards,
    .split-section,
    .contact-section { grid-template-columns: 1fr; }

    .hero { padding-top: 36px; }
    .hero-visual { min-height: 390px; }
    .pouch-grape { left: 34%; }
    .pouch-mango { left: 54%; }

    .benefits-row,
    .benefits-grid-page,
    .catalog-grid,
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .products-hero-copy { padding: 38px 24px 18px; }
    .products-hero-art  { min-height: 250px; }

    .catalog-toolbar { align-items: center; flex-direction: row; }

    .catalog-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-intro-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .home-category-links { grid-template-columns: 1fr; }

    .sort-control { width: 250px; min-width: 230px; }

    .product-list,
    .ice-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .product-detail,
    .cart-page,
    .checkout-page,
    .success-page { grid-template-columns: 1fr; }

    .related-grid,
    .policy-grid { grid-template-columns: repeat(2, 1fr); }

    .cart-item { grid-template-columns: 1fr 120px; }

    .cta-band { grid-template-columns: 1fr; padding-left: 220px; }

    .floating-cart-checkout {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
        min-height: 58px;
        justify-content: center;
        padding: 0;
    }

    .floating-cart-checkout strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .floating-cart-checkout span {
        position: absolute;
        top: -5px;
        right: -5px;
    }
}

/* ===== 760px: tablet portrait / iPad Mini ===== */
@media (max-width: 760px) {
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .sort-control    { width: 100%; min-width: 0; }

    .product-list,
    .ice-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .store-card    { min-height: 420px; }
    .store-image   { min-height: 190px; }

    .product-photo,
    .product-photo img { height: 190px; min-height: 190px; }
}

/* ===== 640px: mobile large (phablets) ===== */
@media (max-width: 640px) {
    .header-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        align-items: center;
        padding: 10px 12px;
        font-size: 11px;
    }

    .navbar  { padding: 12px 18px; }
    .brand   { width: 132px; height: 68px; }

    .header-strip span { justify-content: center; }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 22px;
    }

    .products-hero h1 { font-size: 42px; }
    .products-hero-art { min-height: 230px; }

    .products-hero-art .product-hero-pouch { transform: scale(0.5) rotate(-7deg); }
    .products-hero-art .pouch-grape { left: 122px; }
    .products-hero-art .pouch-mango { left: 224px; transform: scale(0.5) rotate(3deg); }
    .products-hero-art .fruit-orange { left: 12px; bottom: 58px; width: 90px; height: 90px; }

    .catalog-page { padding: 18px 14px 10px; }

    .catalog-intro {
        min-height: 0;
        margin-bottom: 16px;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .catalog-intro h1 { font-size: 36px; }
    .catalog-intro p  { font-size: 15px; }

    .catalog-intro-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .catalog-intro-points span {
        grid-template-columns: 32px 1fr;
        column-gap: 8px;
        padding: 10px;
        font-size: 11px;
    }

    .catalog-intro-points svg { width: 32px; height: 32px; padding: 7px; }
    .catalog-intro-points strong { font-size: 13px; }

    .catalog-toolbar { position: static; gap: 10px; margin-bottom: 26px; padding: 8px; }

    .catalog-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .catalog-tab {
        width: auto;
        justify-content: center;
        gap: 4px;
        padding: 0 6px;
        font-size: 12px;
    }

    .catalog-tab small { min-width: 20px; padding: 2px 4px; font-size: 9px; }

    .sort-control { min-width: 0; }

    .category-heading { align-items: flex-start; }
    .category-heading > svg { width: 54px; height: 54px; padding: 12px; }

    .hero-visual { width: 100%; min-height: 315px; transform: none; margin-bottom: 0; }

    .pouch {
        width: 118px;
        height: 220px;
        bottom: 30px;
        padding: 48px 14px 14px;
        border-radius: 8px 8px 26px 26px;
    }

    .pouch span   { font-size: 16px; }
    .pouch strong { font-size: 26px; }
    .pouch em     { margin-top: 12px; font-size: 18px; }

    .pouch-grape { left: 112px; }

    .pouch-mango { left: 210px; width: 132px; height: 240px; bottom: 25px; }

    .fruit-orange { left: 8px; bottom: 95px; width: 105px; height: 105px; }
    .fruit-mango  { right: 2px; bottom: 24px; width: 92px; height: 74px; }

    .ice { width: 38px; height: 38px; }
    .ice-one   { left: 58px;  bottom: 34px; }
    .ice-two   { left: 170px; bottom: 12px; }
    .ice-three { right: 72px; bottom: 72px; }

    .product-card      { grid-template-columns: 1fr; min-height: auto; }
    .product-copy      { padding: 26px; }
    .product-image     { height: 260px; background-size: contain; }

    .benefits-row,
    .benefits-grid-page,
    .catalog-grid,
    .related-grid,
    .policy-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .product-list,
    .ice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .store-card    { min-height: 386px; padding: 9px; border-radius: 12px; }
    .store-image   { min-height: 132px; }

    .product-photo,
    .product-photo img { height: 132px; min-height: 132px; }

    .store-card h3 { min-height: 2.4em; margin-top: 10px; font-size: 14px; }
    .store-card p  { min-height: 3.9em; font-size: 11px; }
    .store-card > strong { font-size: 16px; }

    .details-btn { min-height: 38px; padding: 5px; font-size: 10px; }

    .store-size { left: 6px; bottom: 6px; padding: 4px 6px; font-size: 9px !important; }

    .image-hero img {
        height: auto;
        object-fit: contain;
        object-position: left center;
    }

    .hero-tagline {
        top: 61%;
        width: 48%;
        padding: 2px 5px 18px;
        font-size: clamp(12px, 3.7vw, 17px);
    }

    .home-category-nav { padding: 42px 18px 6px; }
    .home-category-nav > header p { font-size: 15px; }
    .home-category-links { gap: 14px; }

    .home-category-card {
        min-height: 230px;
        grid-template-columns: 1.15fr 0.85fr;
        padding: 24px 14px 24px 22px;
        border-radius: 16px;
    }

    .home-category-card h3 { font-size: 23px; }
    .home-category-card p  { font-size: 13px; }
    .home-category-card > img { height: 185px; transform: none; }
    .ice-category-card  > img { transform: none; }

    .floating-cart-checkout {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
        min-height: 58px;
        justify-content: center;
        padding: 0;
    }

    .floating-cart-checkout strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .floating-cart-checkout span { position: absolute; top: -5px; right: -5px; }

    .product-detail,
    .cart-page,
    .checkout-page,
    .success-page { padding: 34px 24px; }

    .detail-visual { min-height: 320px; }
    .product-image-button { min-height: 320px; }
    .product-image-button > img { height: 290px; }

    .zoom-toolbar > strong { display: none; }
    .zoom-actions { width: 100%; justify-content: center; }

    .cart-item         { grid-template-columns: 1fr; align-items: start; }
    .checkout-form fieldset { grid-template-columns: 1fr; }

    .cta-band   { padding: 180px 24px 24px; }
    .cta-fruits { width: 100%; height: 155px; }

    .company-form-grid,
    .cnpj-lookup-row { grid-template-columns: 1fr; }

    .company-fieldset { padding: 18px; }
    .company-link span { display: none; }
}

/* ===== 520px: mobile medium ===== */
@media (max-width: 520px) {
    .header-strip {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
        padding: 12px 18px;
        font-size: 13px;
    }

    .header-strip span { justify-content: flex-start; }
}

/* ===== 350px: mobile extra small ===== */
@media (max-width: 350px) {
    .catalog-page { padding-inline: 10px; }
    .catalog-intro { padding: 20px 14px; }
    .catalog-intro h1 { font-size: 31px; }
    .catalog-intro-points span { padding: 8px; }

    .category-heading { gap: 10px; }
    .category-heading > svg { width: 46px; height: 46px; padding: 10px; }
    .category-heading h2 { font-size: 26px; }
    .category-heading p  { font-size: 13px; }

    .product-list,
    .ice-list { gap: 8px; }

    .details-btn { font-size: 9px; }

    .floating-cart-checkout { width: 52px; height: 52px; min-height: 52px; }
}
