/* ==========================================================
   SECTIONS › CATALOG
   Página de catálogo de produtos: intro, toolbar, tabs,
   lista de produtos, store-cards, pouchs decorativos
   ========================================================== */

/* --- Grid genérico de cards (páginas estáticas) --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.catalog-card,
.contact-form,
.contact-card,
.about-panel,
.benefits-grid-page article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(0, 44, 27, 0.08);
}

.catalog-card { overflow: hidden; }

.catalog-card > div:last-child { padding: 24px; }

.catalog-image {
    height: 230px;
    background-size: cover;
    background-position: center;
}

.catalog-card span {
    color: var(--orange);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.catalog-card h2 {
    margin: 8px 0;
    color: var(--green-950);
}

/* --- Hero da página de produtos --- */
.products-hero {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(330px, 0.85fr) minmax(420px, 1.15fr);
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, #fffaf3 0%, #fffaf3 46%, rgba(255, 250, 243, 0.2) 70%),
        linear-gradient(135deg, #fff6e6, #f2eadb);
}

.products-hero-copy {
    padding: 42px 24px 42px max(24px, calc((100vw - 1120px) / 2));
}

.products-hero h1 {
    margin: 0 0 14px;
    color: var(--green-950);
    font-size: clamp(44px, 5.5vw, 64px);
    line-height: 1;
    font-weight: 900;
}

.products-hero p {
    max-width: 540px;
    margin: 0;
    color: #495a53;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
}

.products-hero-art {
    position: relative;
    min-height: 260px;
}

.products-hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?auto=format&fit=crop&w=900&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.82;
}

.products-hero-art .fruit-orange {
    left: 6%;
    bottom: 36px;
    width: 122px;
    height: 122px;
}

.products-hero-art .product-hero-pouch {
    transform: scale(0.62) rotate(-7deg);
    transform-origin: bottom left;
    bottom: 18px;
    z-index: 2;
}

.products-hero-art .pouch-grape { left: 185px; }

.products-hero-art .pouch-mango {
    left: 305px;
    transform: scale(0.62) rotate(3deg);
}

.products-hero-art .ice { z-index: 2; }

/* --- Página principal do catálogo --- */
.catalog-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 24px 18px;
}

.catalog-intro {
    min-height: 220px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 42px;
    margin-bottom: 26px;
    padding: 36px 42px;
    overflow: hidden;
    border: 1px solid rgba(0, 63, 38, 0.1);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 134, 23, 0.18), transparent 34%),
        linear-gradient(135deg, #fffaf1, #eff8e9);
}

.catalog-intro h1 {
    max-width: 600px;
    margin: 0;
    color: var(--green-950);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.02;
}

.catalog-intro p {
    max-width: 600px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 600;
}

.catalog-intro-points { display: grid; gap: 12px; }

.catalog-intro-points span {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(0, 63, 38, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #405149;
    font-size: 13px;
}

.catalog-intro-points svg {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 50%;
    color: var(--green-700);
    background: var(--green-100);
}

.catalog-intro-points strong {
    display: block;
    color: var(--green-950);
    font-size: 15px;
}

/* --- Toolbar (sticky) --- */
.catalog-toolbar {
    position: sticky;
    z-index: 12;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 34px;
    padding: 12px;
    border: 1px solid rgba(0, 63, 38, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(0, 44, 27, 0.09);
    backdrop-filter: blur(10px);
}

.catalog-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-tab {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 0;
    gap: 8px;
    border-radius: 9px;
    color: var(--green-950);
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.catalog-tab:hover,
.catalog-tab:focus-visible { background: #e7f6d8; }

.catalog-tab.active { background: var(--green-950); color: #fff; }

.catalog-tab small {
    min-width: 24px;
    padding: 3px 6px;
    border-radius: 999px;
    color: var(--green-950);
    background: rgba(0, 63, 38, 0.08);
    font-size: 11px;
}

.catalog-tab.active small { color: var(--green-950); background: #fff; }

.product-category[hidden] { display: none; }

.sort-control {
    min-width: 270px;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid rgba(0, 63, 38, 0.15);
    border-radius: 9px;
    background: #fff;
    color: #617066;
    font-size: 14px;
}

.sort-control select {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: #405149;
    font: inherit;
    outline: 0;
}

/* --- Categoria e lista de produtos --- */
.product-category { margin-bottom: 54px; }

.category-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.category-heading > svg {
    width: 64px;
    height: 64px;
    padding: 14px;
    border-radius: 50%;
    color: var(--green-700);
    background: #e7f6d8;
}

.category-heading.ice-heading > svg { color: #0f5c85; background: #e8f4fb; }

.category-heading h2 {
    margin: 0 0 6px;
    color: var(--green-950);
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.1;
}

.category-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.45;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ice-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Store card --- */
.store-card {
    min-width: 0;
    min-height: 452px;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid rgba(0, 63, 38, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 44, 27, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 63, 38, 0.24);
    box-shadow: 0 18px 42px rgba(0, 44, 27, 0.12);
}

.store-image {
    min-height: 220px;
    position: relative;
    display: grid;
    place-items: end center;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fff8ed);
}

.product-photo {
    width: 100%;
    height: 220px;
    min-height: 220px;
    place-items: center;
    background-color: #fff;
    background-image: none;
}

.product-photo img {
    width: 100%;
    height: 220px;
    min-height: 220px;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #fff;
    transition: transform 0.3s ease;
}

.store-size {
    position: absolute;
    z-index: 2;
    left: 9px;
    bottom: 9px;
    margin: 0 !important;
    padding: 5px 8px;
    border: 1px solid rgba(0, 63, 38, 0.1);
    border-radius: 999px;
    color: var(--green-950) !important;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 16px rgba(0, 44, 27, 0.08);
    font-size: 10px !important;
}

/* --- Decoração das embalagens (fruit-pack / ice-pack) --- */
.fruit-pack::before,
.fruit-pack::after,
.ice-pack::before,
.ice-pack::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.fruit-pack::before {
    left: 8px; bottom: 10px;
    width: 54px; height: 54px;
    background: var(--accent);
    box-shadow: 70px 0 0 -8px color-mix(in srgb, var(--accent), #fff 24%);
    opacity: 0.9;
}

.fruit-pack::after {
    right: 8px; bottom: 18px;
    width: 58px; height: 58px;
    background: radial-gradient(circle at 38% 35%, #fff 0 10%, var(--accent) 11%);
    opacity: 0.86;
}

.mini-pouch {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 150px;
    margin-bottom: 18px;
    padding: 32px 10px 10px;
    border-radius: 6px 6px 18px 18px;
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent), #fff 14%), var(--accent));
    color: #fff;
    text-align: center;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}

.mini-pouch::before,
.ice-bag::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255,255,255,0.35), transparent 34%, rgba(0,0,0,0.12));
}

.mini-pouch span,
.mini-pouch strong,
.mini-pouch em,
.mini-pouch small,
.ice-bag span,
.ice-bag strong,
.ice-bag em,
.ice-bag small { position: relative; display: block; }

.mini-pouch span,
.ice-bag span   { text-transform: uppercase; font-size: 12px; font-weight: 900; }

.mini-pouch strong,
.ice-bag strong { font-size: 22px; line-height: 1; font-style: italic; }

.mini-pouch em  { margin-top: 14px; font-size: 13px; line-height: 1.1; font-style: normal; font-weight: 900; }

.mini-pouch small,
.ice-bag small  { margin-top: 5px; font-size: 9px; font-weight: 800; }

.fruit-pack-manga .mini-pouch,
.fruit-pack-maracuja .mini-pouch { color: #5a3414; }

.ice-pack { background: linear-gradient(180deg, #fbfdff, #eef8ff); }

.ice-pack::before {
    inset: auto 10px 6px auto;
    width: 96px; height: 42px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.8), rgba(163, 218, 241, 0.5)),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(84, 166, 207, 0.18) 18px 28px);
    transform: rotate(-3deg);
}

.ice-pack::after {
    left: 10px; bottom: 14px;
    width: 44px; height: 44px;
    border-radius: 8px;
    background: rgba(211, 238, 250, 0.75);
    border: 1px solid rgba(80, 156, 195, 0.25);
    box-shadow: 28px 8px 0 -4px rgba(211, 238, 250, 0.8);
    transform: rotate(18deg);
}

.ice-bag {
    position: relative;
    z-index: 1;
    width: 114px; height: 128px;
    margin-bottom: 28px;
    padding: 28px 12px 10px;
    border-radius: 8px 8px 22px 22px;
    background: linear-gradient(160deg, #fff, #d9f0fb);
    color: #0f5c85;
    text-align: center;
    box-shadow: 0 12px 24px rgba(15, 92, 133, 0.12);
}

.ice-bag em {
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 22px;
    line-height: 0.9;
    font-style: normal;
    font-weight: 900;
}

.store-card h3 {
    margin: 14px 0 4px;
    color: var(--green-950);
    font-size: 17px;
    line-height: 1.2;
}

.store-card p,
.store-card small {
    display: block;
    margin: 0 0 6px;
    color: #5d6c64;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.store-card > strong {
    display: block;
    margin: 10px 0 12px;
    color: var(--green-950);
    font-size: 20px;
}

.card-actions { display: grid; gap: 8px; margin-top: auto; }
.card-actions form { margin: 0; }

.catalog-benefits { margin-top: 22px; }
