/* V192: Catalog page styles - Mobile-first */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #faf9f6;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    color: #1f2937;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    color: #6b7280;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #16a34a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Error State */
.error-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    margin: 60px auto;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error-container h2 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.error-container p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Success State */
.success-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    margin: 60px auto;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.success-container h2 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 12px;
}

.success-container p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
}

/* Official wordmark: same lockup as the landing's <Wordmark> (Montserrat 600,
   0.2em tracking; the left padding re-centres the tracked text). */
.logo-wordmark {
    display: inline-block;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 0.2em;
    padding-left: 0.2em;
    line-height: 1;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.15s;
}

/* Only the policy-page link is interactive: give it a 44px tap height. */
a.logo-wordmark {
    padding-top: 6px;
    padding-bottom: 6px;
}

a.logo-wordmark:hover {
    opacity: 0.75;
}

a.logo-wordmark:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.logo-wordmark-small {
    font-size: 14px;
    color: #6b7280; /* AA on the cream page; #9ca3af was ~2.4:1 */
}

.greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 12px;
}

.subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Search Bar */
.search-bar {
    margin-bottom: 12px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 1rem;
    background: white;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: #16a34a;
}

.search-bar input:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f0f0;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    color: #374151;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.tab.active {
    background: #16a34a;
    color: white;
}

/* Products Container (flex column for sections). The footer below it already
   clears the cart FAB / unlock bar, so no extra bottom padding here. */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Category Section */
.category-section {
    margin-bottom: 50px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-banner {
    display: block;
    margin: 20px auto 30px;
    max-width: 400px;
    width: 100%;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    text-align: center;
    text-transform: uppercase;
}

.category-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #1f2937;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Subcategory Groups */
.subcategory-group {
    margin-bottom: 12px;
}

.subcategory-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #444;
    margin: 25px 0 15px 0;
}

/* Paired image+card cells in two explicit columns (see splitPairedColumns), so
   photo cells alternate columns and a photo never leaves a hole beside a plain card. */
.subcategory-paired-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.paired-col { flex: 1; min-width: 0; }
/* Original cell order for phones; desktop uses splitPairedColumns below. */
.subcategory-paired-stack { display: none; }
/* break-inside: the unmatched-products grid is column-count based and would otherwise
   split a card between its two columns (MAGNESIO cut in half, 2026-10-20). */
.product-cell { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; break-inside: avoid; }
.product-cell-img { width: 100%; height: 180px; border-radius: 8px; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.subcategory-banner-img { display: block; margin: 0 auto 15px auto; width: calc(50% - 8px); height: 180px; border-radius: 8px; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

@media (max-width: 500px) {
    body {
        padding: 16px;
    }
    .category-banner {
        height: 150px;
    }
    .category-title {
        font-size: 1.15rem;
    }
    .category-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 0.85rem;
    }
    .subcategory-name {
        font-size: 0.95rem;
        margin: 15px 0 10px 0;
    }
    .subcategory-paired-grid { display: none; }
    .subcategory-paired-stack { display: block; margin-bottom: 30px; }
    .product-cell-img { height: 150px; }
    .subcategory-banner-img { width: 100%; max-width: none; height: 150px; }
}

/* Product Cards Grid (inside each category section) */
.category-products-grid {
    column-count: 2;
    column-gap: 15px;
    margin-bottom: 30px;
}

/* After the base rule on purpose: equal specificity, last one wins. */
@media (max-width: 500px) {
    .category-products-grid { column-count: 1; }
}

/* Flat search results grid (no category sections) */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s;
    border-left: 3px solid transparent;
}

.product-card.in-cart {
    border-left-color: #16a34a;
}

.product-card.pulse {
    animation: pulse 0.3s ease;
}

/* Product Top Row */
.product-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
}

/* Product Price Row */
.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-meals,
.product-meals-sep {
    font-size: 0.95rem;
    color: #6b7280;
}

.product-validade {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
}

.price-current {
    font-weight: 700;
    font-size: 1.1rem;
    color: #16a34a;
}

.price-original {
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Product Badges */
.promo-badge {
    display: inline-block;
    background: #fef3c7;
    color: #d97706;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.product-actions .info-btn {
    margin-left: auto;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
}

.qty-btn:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.qty-btn:disabled:hover {
    border-color: #d1d5db;
    color: #374151;
}

.qty-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Out of Stock - Card overlay */
.product-card.out-of-stock {
    position: relative;
    overflow: hidden;
}

.product-card.out-of-stock .product-name,
.product-card.out-of-stock .product-meals,
.product-card.out-of-stock .product-meals-sep,
.product-card.out-of-stock .price-current,
.product-card.out-of-stock .price-original,
.product-card.out-of-stock .product-actions {
    opacity: 0.35;
}

.esgotado-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    background: rgba(239, 82, 82, 0.82);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 6px 36px;
    border-radius: 4px;
    letter-spacing: 3px;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

/* Small badge (inline, used alongside price) */
.out-of-stock-badge {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}

/* Cart FAB */
.cart-fab {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
    z-index: 100;
    cursor: pointer;
}

.cart-fab svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
}

/* Cart Panel */
.cart-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cart-panel.open {
    transform: translateY(0);
}

.cart-handle {
    padding: 12px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px;
}

.cart-header h3 {
    font-size: 1.1rem;
    color: #1f2937;
}

.cart-clear {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

/* Cart Items */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1f2937;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #6b7280;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cart Footer */
.cart-footer {
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    border-top: 1px solid #e5e7eb;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-submit:active {
    background: #15803d;
}

.btn-whatsapp {
    display: inline-block;
    padding: 14px 28px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-whatsapp:active {
    background: #15803d;
}

/* Submitting Overlay */
.submitting-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    gap: 16px;
    color: #6b7280;
}

/* Empty Search */
.empty-search {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Product Info Button */
.info-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    border: none;
    background: #f0f0f0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0.2px;
}

.info-btn:hover {
    background: #e5e5e5;
}

.info-btn:active {
    background: #d9d9d9;
}

/* Product Info Modal Overlay */
.info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 400;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Product Info Modal */
.info-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 450;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.info-modal-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    flex: 1;
    padding-right: 12px;
}

.info-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    font-size: 1.2rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

.info-modal-close:active {
    background: #e5e7eb;
}

/* Carousel Container (with arrows) */
.info-carousel-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
    position: relative;
}

/* Arrow Buttons — desktop only */
.info-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.info-arrow:hover {
    background: #f9fafb;
    color: #1a1a1a;
    border-color: #d1d5db;
}

.info-arrow:active {
    background: #f3f4f6;
}

.info-arrow-left { left: 8px; }
.info-arrow-right { right: 8px; }

@media (min-width: 768px) {
    .info-arrow {
        display: flex;
    }
    .info-carousel-wrapper {
        margin: 0 44px;
    }
}

/* Carousel */
.info-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.info-carousel {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.info-page {
    min-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

/* Carousel Dots */
.info-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
    flex-shrink: 0;
}

.info-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.info-dot.active {
    background: #1a1a1a;
    transform: scale(1.3);
}

.info-page-label {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    padding: 2px 0 max(12px, env(safe-area-inset-bottom, 12px));
    flex-shrink: 0;
}

/* ===== Product Info Details Table ===== */
.info-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: #1a1a1a;
}

.info-details-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.info-details-table tr:last-child {
    border-bottom: none;
}

.info-details-table td {
    padding: 12px 16px;
    vertical-align: top;
    line-height: 1.55;
}

.info-details-table .info-label {
    width: 120px;
    font-weight: 600;
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    padding-right: 12px;
}

@media (max-width: 500px) {
    .info-details-table .info-label {
        width: 100px;
        font-size: 0.72rem;
    }
    .info-details-table td {
        padding: 10px 14px;
        font-size: 0.82rem;
    }
}

.info-details-table .info-value {
    color: #1a1a1a;
}

.info-details-table .info-value strong {
    font-weight: 600;
}

.info-details-table .info-value ul {
    margin: 0;
    padding-left: 18px;
}

.info-details-table .info-value ul li {
    margin-bottom: 3px;
}

.info-allergen-box {
    background: #f9f9f9;
    border-left: 3px solid #1a1a1a;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-weight: 700;
    font-size: 0.83rem;
    line-height: 1.5;
}

.info-color-tag,
.info-phase-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin: 0 6px 6px 0;
}

.info-color-tag {
    color: #1f2937;
}

.info-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.info-phase-tag {
    background: #f3f4f6;
    color: #374151;
}

/* ===== Nutritional Table ===== */
.nutri-table-header {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 16px 20px 12px;
    margin: 16px 16px 0;
    border-radius: 10px 10px 0 0;
}

.nutri-table-header h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.nutri-table-header p {
    font-size: 0.78rem;
    color: #ccc;
    line-height: 1.4;
}

.nutri-table-scroll {
    overflow-x: auto;
    margin: 0 16px;
}

.nutri-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    overflow-wrap: break-word;
}

.nutri-table thead th {
    background: #f7f7f7;
    font-weight: 700;
    padding: 9px 12px;
    text-align: right;
    border-bottom: 2px solid #1a1a1a;
    color: #1a1a1a;
    font-size: 0.76rem;
}

.nutri-table thead th:first-child {
    text-align: left;
}

.nutri-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
    text-align: right;
}

.nutri-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.nutri-table tbody tr:last-child td {
    border-bottom: none;
}

.nutri-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.nutri-table .indent {
    padding-left: 26px;
    font-weight: 400;
    color: #666;
}

.nutri-footnote {
    font-size: 0.72rem;
    color: #999;
    margin: 10px 16px 16px;
    line-height: 1.4;
}

@media (max-width: 500px) {
    .nutri-table {
        font-size: 0.76rem;
    }
    .nutri-table thead th {
        padding: 7px 8px;
        font-size: 0.7rem;
    }
    .nutri-table tbody td {
        padding: 6px 8px;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart sync notice */
.cart-notice {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px;
    background: #1f2937;
    color: white;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 400;
}

/* Open catalog (no link): WhatsApp button to get prices */
body.browse-only {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
}

/* No price row or +/- here: keep the card tall enough for the ESGOTADO ribbon */
body.browse-only .product-card {
    min-height: 120px;
}

.unlock-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    z-index: 300;
}

.unlock-note {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 10px;
}

.unlock-link.btn-whatsapp {
    display: block;
    max-width: 480px;
    margin: 0 auto;
}

.unlock-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 8px;
}

/* Footer: store policies (catalog page and policy pages) */
.catalog-footer {
    margin-top: 32px;
    padding: 20px 0 8px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.catalog-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.catalog-footer-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
}

.catalog-footer-links a:hover {
    text-decoration: underline;
}

.catalog-footer-disclaimer {
    max-width: 640px;
    margin: 18px auto 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #6b7280;
}

.catalog-footer-disclaimer p + p {
    margin-top: 8px;
}

.catalog-footer-disclaimer a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: underline;
}

.catalog-footer-note {
    margin-top: 14px; /* typography comes from the .logo-wordmark-small child */
}

/* Policy pages (/catalogo/politica-de-*) */
.policy {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 24px 20px;
    line-height: 1.6;
}

@media (min-width: 600px) {
    .policy {
        padding: 32px 36px;
    }
}

.policy h1 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.policy-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.policy h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 28px 0 10px;
}

.policy p {
    margin-bottom: 12px;
}

.policy ul {
    margin: 0 0 12px 20px;
}

.policy li {
    margin-bottom: 6px;
}
