* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #101828;
    --text: #344054;
    --muted: #667085;
    --border: #e4e7ec;
    --bg: #f7f9fc;
    --white: #ffffff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--dark);
}

button,
input {
    font: inherit;
}

.catalogo-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.catalogo-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.store-avatar {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 18px;
    font-weight: 800;
}

.store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-brand strong {
    display: block;
    font-size: 16px;
}

.store-brand span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.cart-button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
}

.cart-button span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    margin-left: 5px;
    background: var(--primary);
    color: white;
    font-size: 11px;
}

.catalogo-hero {
    padding: 58px 0 48px;
    background:
        radial-gradient(circle at 70% 10%, #e8efff, transparent 30%),
        linear-gradient(180deg, #ffffff, #f7f9fc);
}

.hero-label,
.section-heading span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.catalogo-hero h1 {
    max-width: 700px;
    margin-top: 10px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.catalogo-hero p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 17px;
}

.catalogo-search {
    margin-top: 30px;
    max-width: 620px;
    height: 56px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

.catalogo-search span {
    color: var(--muted);
    font-size: 24px;
}

.catalogo-search input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 15px;
}

.catalogo-content {
    padding: 30px 0 80px;
}

.categories-scroll {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-chip {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.category-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 34px 0 18px;
}

.section-heading h2 {
    margin-top: 5px;
    font-size: 28px;
}

.section-heading small {
    color: var(--muted);
}

.public-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.public-product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.public-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.public-product-image {
    height: 220px;
    position: relative;
    background: #f2f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.public-product-image > span {
    font-size: 50px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    background: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.public-product-body {
    padding: 18px;
}

.public-product-body > small {
    color: var(--muted);
    font-size: 12px;
}

.public-product-body h3 {
    margin-top: 7px;
    font-size: 18px;
}

.public-product-body > p {
    margin-top: 8px;
    min-height: 38px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.public-product-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
}

.public-product-footer strong {
    display: block;
    font-size: 20px;
}

.public-product-footer span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.public-product-footer .out-stock {
    color: #b42318;
}

.add-cart {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.add-cart:hover {
    background: var(--primary-dark);
}

.add-cart:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.catalog-empty,
.catalog-no-results {
    min-height: 360px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.catalog-empty div {
    font-size: 42px;
    margin-bottom: 15px;
}

.catalog-empty p {
    margin-top: 8px;
    color: var(--muted);
}

/* CARRINHO */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(16, 24, 40, .42);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;

    width: min(430px, 100%);

    background: white;

    transform: translateX(100%);
    transition: transform .22s ease;

    display: flex;
    flex-direction: column;

    box-shadow: -20px 0 40px rgba(16,24,40,.12);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.cart-header h2 {
    margin-top: 4px;
}

.cart-header button {
    width: 38px;
    height: 38px;
    border: 0;
    background: #f2f4f7;
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f4f7;
    display: grid;
    place-items: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info strong {
    display: block;
    font-size: 14px;
}

.cart-item-info > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.cart-qty {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.cart-remove {
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-size: 18px;
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.cart-empty div {
    font-size: 42px;
    margin-bottom: 15px;
}

.cart-empty p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.cart-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-total span {
    color: var(--muted);
}

.cart-total strong {
    font-size: 21px;
}

.checkout-button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.checkout-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 1050px) {

    .public-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {

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

    .catalogo-hero {
        padding-top: 40px;
    }
}

@media (max-width: 520px) {

    .catalogo-container {
        width: min(100% - 24px, 1180px);
    }

    .header-content {
        min-height: 66px;
    }

    .store-brand span {
        display: none;
    }

    .cart-button {
        padding: 10px 11px;
    }

    .catalogo-hero h1 {
        font-size: 38px;
    }

    .public-product-grid {
        grid-template-columns: 1fr;
    }

    .public-product-image {
        height: 270px;
    }
}

.checkout-page {
    padding: 45px 0 80px;
}

.checkout-back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.checkout-heading {
    margin-top: 22px;
}

.checkout-heading > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.checkout-heading h1 {
    margin-top: 8px;
    font-size: 38px;
}

.checkout-heading p {
    color: var(--muted);
    margin-top: 8px;
}

.checkout-alert {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff1f0;
    border: 1px solid #ffd5d2;
    color: #b42318;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 25px;
    align-items: start;
    margin-top: 30px;
}

.checkout-card,
.checkout-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}

.checkout-card {
    margin-bottom: 18px;
}

.checkout-card h2,
.checkout-summary h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.checkout-grid label,
.checkout-full-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.checkout-grid input,
.checkout-full-label select,
.checkout-full-label textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 13px 14px;
    background: white;
    outline: 0;
    font: inherit;
}

.checkout-grid input:focus,
.checkout-full-label select:focus,
.checkout-full-label textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.07);
}

.checkout-span-2 {
    grid-column: span 2;
}

.delivery-options {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

.delivery-options label {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
}

.checkout-full-label + .checkout-full-label {
    margin-top: 18px;
}

.checkout-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.checkout-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.checkout-summary {
    position: sticky;
    top: 98px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.checkout-summary-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.checkout-summary-total strong {
    font-size: 22px;
}

.checkout-empty-cart {
    padding: 25px 0;
    color: var(--muted);
}

.order-success {
    max-width: 700px;
    margin: 50px auto;
    padding: 55px 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    text-align: center;
}

.order-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ecfdf3;
    color: #067647;
    font-size: 32px;
    font-weight: 800;
}

.order-success > span {
    color: #067647;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.order-success h1 {
    margin-top: 10px;
}

.order-success p {
    margin-top: 20px;
    color: var(--muted);
}

.order-number {
    display: block;
    margin-top: 8px;
    font-size: 24px;
}

.order-success-total {
    margin-top: 25px;
    font-size: 18px;
}

.checkout-back-store {
    display: inline-flex;
    margin-top: 30px;
    padding: 14px 20px;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 850px) {

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }

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

    .checkout-span-2 {
        grid-column: auto;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 16px;

    border-radius: 12px;

    background: #16a34a;
    color: white;

    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.whatsapp-button:hover {
    background: #15803d;
}

@media (max-width: 520px) {

    .whatsapp-button {
        padding: 0 11px;
        font-size: 12px;
    }

}

.checkout-delivery-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.checkout-delivery-fee strong {
    color: var(--dark);
}

.catalogo-hero.has-banner {
    position: relative;
    background:
        linear-gradient(
            90deg,
            rgba(10, 18, 34, .82) 0%,
            rgba(10, 18, 34, .58) 45%,
            rgba(10, 18, 34, .20) 100%
        ),
        var(--store-banner)
        center center / cover
        no-repeat;

    color: white;
}

.catalogo-hero.has-banner .hero-label {
    color: #dbe7ff;
}

.catalogo-hero.has-banner h1 {
    color: white;
}

.catalogo-hero.has-banner p {
    color: rgba(255,255,255,.86);
}

.catalogo-hero.has-banner .catalogo-search {
    background: rgba(255,255,255,.96);
}

@media (max-width: 700px) {

    .catalogo-hero.has-banner {
        background:
            linear-gradient(
                rgba(10,18,34,.72),
                rgba(10,18,34,.72)
            ),
            var(--store-banner)
            center center / cover
            no-repeat;
    }

}

/* ===== AJUSTE DAS FOTOS DOS PRODUTOS ===== */
.public-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.public-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}

[hidden] {
    display: none !important;
}

.store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* Modal de complementos */

.complement-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 1100;
}

.complement-modal {
    position: fixed;
    inset: 0;
    z-index: 1101;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.complement-modal[hidden],
.complement-modal-overlay[hidden] {
    display: none !important;
}

.complement-modal-card {
    width: 100%;
    max-width: 620px;
    max-height: 90%;
    overflow: auto;
    background: #fff;
    border-radius: 20px;
}

.complement-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.complement-modal-header span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.complement-modal-header h2 {
    margin: 0;
}

.complement-modal-header button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 25px;
    cursor: pointer;
}

.complement-modal-body {
    padding: 22px 24px;
}

.complement-group {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
}

.complement-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.complement-group-header {
    margin-bottom: 14px;
}

.complement-group-header h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.complement-group-header small {
    color: #64748b;
}

.complement-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    cursor: pointer;
}

.complement-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.complement-option input {
    width: 20px;
    height: 20px;
}

.complement-option-price {
    font-weight: 700;
    white-space: nowrap;
}

.complement-free {
    color: #16a34a;
}

.complement-modal-error {
    margin: 0 24px 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
}

.complement-modal-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.complement-modal-footer small {
    display: block;
    color: #64748b;
}

.complement-modal-footer strong {
    display: block;
    margin-top: 3px;
    font-size: 20px;
}

.cart-item-complements {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

@media (max-width: 600px) {

    .complement-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .complement-modal-card {
        border-radius: 18px 18px 10px 10px;
    }

    .complement-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .complement-modal-footer .checkout-button {
        width: 100%;
    }
}

.checkout-item-complements {
    display: grid;
    gap: 3px;
    margin: 5px 0;
}

.checkout-item-complements small {
    display: block;
    color: #64748b;
    font-size: 12px;
}

/* Catálogo organizado por categorias */

.catalog-category-sections {
    display: grid;
    gap: 42px;
}

.catalog-category-section {
    scroll-margin-top: 110px;
}

.category-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.category-section-heading span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--primary);
}

.category-section-heading h2 {
    margin: 0;
    font-size: 25px;
}

.category-section-heading p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.category-section-heading small {
    color: #64748b;
    white-space: nowrap;
}

.catalog-products-summary {
    margin-top: 28px;
    text-align: right;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 600px) {

    .catalog-category-sections {
        gap: 34px;
    }

    .category-section-heading {
        align-items: flex-start;
    }

    .category-section-heading h2 {
        font-size: 21px;
    }
}

/* Alinhamento uniforme dos cards de produtos */

.public-product-grid {
    align-items: stretch;
}

.public-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.public-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.public-product-body > p {
    margin-bottom: 18px;
}

.public-product-footer {
    margin-top: auto;
    align-items: flex-end;
}

.public-product-footer > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.public-product-footer > div:first-child > strong {
    line-height: 1.2;
}

.add-cart {
    flex-shrink: 0;
}

/* Notificação ao adicionar produto */

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    z-index: 2000;
    min-width: 240px;
    max-width: calc(100% - 32px);
    padding: 13px 18px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Enviar pedido pelo WhatsApp */

.checkout-whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 22px auto 10px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition:
        transform .15s ease,
        opacity .15s ease;
}

.checkout-whatsapp-button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

/* ==================================================
   MELHORIAS MOBILE - CATÁLOGO PÚBLICO
   ================================================== */

@media (max-width: 700px) {

    /* Cabeçalho */
    .catalogo-header .header-content {
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .store-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .store-avatar {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        border-radius: 12px;
        overflow: hidden;
    }

    .store-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .store-brand > div:last-child {
        min-width: 0;
        flex: 1;
    }

    .store-brand strong {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.15;
        font-size: 15px;
    }

    .store-brand span {
        font-size: 11px;
    }

    /* Botões do cabeçalho */
    .header-content > a:not(.store-brand),
    .header-content > button {
        flex-shrink: 0;
    }

    /* Produtos em 2 colunas somente no mobile */
    .public-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .public-product-card {
        min-width: 0;
        border-radius: 14px;
    }

    .public-product-image {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .public-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .public-product-body {
        padding: 11px !important;
    }

    .public-product-body > small {
        font-size: 9px;
    }

    .public-product-body h3 {
        font-size: 14px;
        line-height: 1.25;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .public-product-body > p {
        font-size: 11px;
        line-height: 1.35;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .public-product-footer {
        gap: 8px;
    }

    .public-product-footer strong {
        font-size: 15px;
    }

    .public-product-footer span {
        font-size: 9px;
    }

    .add-cart {
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 0;
        border-radius: 11px;
    }
}

@media (max-width: 380px) {

    .public-product-grid {
        gap: 8px !important;
    }

    .public-product-body {
        padding: 9px !important;
    }

    .public-product-body h3 {
        font-size: 13px;
    }

    .public-product-footer strong {
        font-size: 14px;
    }

    .add-cart {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
}

/* Carrinho compacto no cabeçalho mobile */

@media (max-width: 700px) {

    .cart-button,
    .header-cart,
    .catalog-cart-button {
        min-width: 86px !important;
        min-height: 46px !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        gap: 5px !important;
        font-size: 13px !important;
    }

    .cart-button span,
    .header-cart span,
    .catalog-cart-button span {
        font-size: 12px !important;
    }

    .cart-count {
        min-width: 22px !important;
        height: 22px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
    }
}

/* Carrinho compacto no cabeçalho mobile */

@media (max-width: 700px) {

    .cart-button {
        min-width: auto !important;
        min-height: 44px !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        gap: 6px !important;

        font-size: 12px !important;
        white-space: nowrap;
    }

    .cart-button #cartCount {
        min-width: 20px !important;
        height: 20px !important;
        padding: 0 5px !important;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        font-size: 10px !important;
        line-height: 1;
    }
}

/* WhatsApp flutuante somente no mobile */

@media (max-width: 700px) {

    .whatsapp-button {
        position: fixed !important;
        right: 18px !important;
        bottom: 88px !important;

        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;

        padding: 0 !important;
        border-radius: 50% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        z-index: 1500 !important;

        font-size: 0 !important;
        box-shadow: 0 10px 28px rgba(0,0,0,.22);
    }

    .whatsapp-button::before {
        content: "☎";
        font-size: 24px;
        line-height: 1;
    }
}

@media (max-width: 700px) {

    .whatsapp-button::before {
        content: "";
        width: 28px;
        height: 28px;
        display: block;

        background-color: #fff;

        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19.11 17.41c-.29-.15-1.71-.84-1.97-.94-.26-.1-.45-.15-.64.15-.19.29-.74.94-.9 1.13-.16.19-.32.22-.61.07-.29-.15-1.22-.45-2.32-1.43-.86-.76-1.44-1.71-1.61-2-.16-.29-.02-.45.12-.59.13-.13.29-.32.43-.48.15-.16.19-.29.29-.48.1-.19.05-.36-.02-.51-.07-.15-.64-1.55-.88-2.12-.23-.56-.47-.48-.64-.49h-.55c-.19 0-.51.07-.77.36-.26.29-1.01.99-1.01 2.41 0 1.42 1.04 2.8 1.18 2.99.15.19 2.04 3.11 4.94 4.36.69.3 1.23.48 1.65.61.69.22 1.32.19 1.82.12.56-.08 1.71-.7 1.95-1.38.24-.68.24-1.26.17-1.38-.07-.12-.26-.19-.55-.34z'/%3E%3Cpath d='M16.03 3.2A12.6 12.6 0 0 0 5.19 22.21L3.2 28.8l6.77-1.94a12.56 12.56 0 0 0 6.05 1.54h.01c6.95 0 12.6-5.65 12.6-12.6 0-3.36-1.31-6.52-3.69-8.9a12.52 12.52 0 0 0-8.91-3.7zm0 22.99h-.01a10.38 10.38 0 0 1-5.29-1.45l-.38-.23-4.02 1.15 1.07-3.91-.25-.4a10.39 10.39 0 1 1 8.88 4.84z'/%3E%3C/svg%3E") center / contain no-repeat;

        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19.11 17.41c-.29-.15-1.71-.84-1.97-.94-.26-.1-.45-.15-.64.15-.19.29-.74.94-.9 1.13-.16.19-.32.22-.61.07-.29-.15-1.22-.45-2.32-1.43-.86-.76-1.44-1.71-1.61-2-.16-.29-.02-.45.12-.59.13-.13.29-.32.43-.48.15-.16.19-.29.29-.48.1-.19.05-.36-.02-.51-.07-.15-.64-1.55-.88-2.12-.23-.56-.47-.48-.64-.49h-.55c-.19 0-.51.07-.77.36-.26.29-1.01.99-1.01 2.41 0 1.42 1.04 2.8 1.18 2.99.15.19 2.04 3.11 4.94 4.36.69.3 1.23.48 1.65.61.69.22 1.32.19 1.82.12.56-.08 1.71-.7 1.95-1.38.24-.68.24-1.26.17-1.38-.07-.12-.26-.19-.55-.34z'/%3E%3Cpath d='M16.03 3.2A12.6 12.6 0 0 0 5.19 22.21L3.2 28.8l6.77-1.94a12.56 12.56 0 0 0 6.05 1.54h.01c6.95 0 12.6-5.65 12.6-12.6 0-3.36-1.31-6.52-3.69-8.9a12.52 12.52 0 0 0-8.91-3.7zm0 22.99h-.01a10.38 10.38 0 0 1-5.29-1.45l-.38-.23-4.02 1.15 1.07-3.91-.25-.4a10.39 10.39 0 1 1 8.88 4.84z'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}

@media (max-width: 700px) {
    .whatsapp-button {
        background: #71c55b !important;
    }
}

/* Links para página de detalhes */

.product-card-detail-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-name-detail-link {
    color: inherit;
    text-decoration: none;
}

.product-name-detail-link:hover {
    text-decoration: underline;
}

/* Padroniza o carrinho do cabeçalho com a página de detalhes */

.cart-button {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
}

.cart-button #cartCount {
    background: #ffffff !important;
    color: #111827 !important;
}
