/* ============================================================================
   Lojinha CSTJCE — Storefront Stylesheet (Dynamic Theme via CSS Variables)
   ============================================================================ */

:root {
    --primary: #1e3a8a;
    --secondary: #f59e0b;
    --accent: #0f766e;
    --bg: #f8fafc;
    --header-bg: #ffffff;
    --footer-bg: #0f172a;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #15803d;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 24px 54px rgba(15, 23, 42, 0.18);
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: min(1220px, 92%);
    margin: 0 auto;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 8px 0;
}

/* Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(10px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--secondary)));
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: grid;
    place-items: center;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--primary);
}

.brand-text small {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-muted);
    transition: all 0.18s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.nav-promo {
    color: #b45309;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 6px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cart-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.28);
}

.cart-count {
    background: var(--secondary);
    color: #0f172a;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.94rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { filter: brightness(1.09); transform: translateY(-1px); }

.btn-secondary {
    background: var(--secondary);
    color: #0f172a;
}
.btn-secondary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover { filter: brightness(1.08); }

.btn-outline {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }

.btn-ghost-danger {
    background: transparent;
    color: var(--danger);
    border-color: #fecaca;
}
.btn-ghost-danger:hover { background: #fef2f2; }

.btn-whatsapp {
    background: #16a34a;
    color: #fff;
}
.btn-whatsapp:hover { background: #15803d; }

/* Alerts & Flash */
.flash-wrap { margin-top: 18px; }
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: 16px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Hero Section */
.hero-section {
    background:
        linear-gradient(125deg, color-mix(in srgb, var(--primary) 94%, #000), color-mix(in srgb, var(--primary) 72%, var(--accent))),
        var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: #fff;
    padding: 72px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin: 0 0 28px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-card-showcase {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    padding: 28px;
    border-radius: 20px;
}

.hero-card-tag {
    display: inline-block;
    background: var(--secondary);
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-card-showcase h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.hero-card-showcase p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
}

.hero-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-link {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.18s;
}

.chip-link:hover {
    background: var(--secondary);
    color: #0f172a;
    border-color: var(--secondary);
}

/* Sections */
.section { padding: 56px 0; }
.section-tinted { background: color-mix(in srgb, var(--primary) 4%, #ffffff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 4px;
}

.promo-eyebrow { color: #d97706; }

.section-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
}

.section-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.94rem;
}
.section-link:hover { text-decoration: underline; }
.section-meta { color: var(--text-muted); font-size: 0.92rem; }

/* Page Banner */
.page-banner {
    background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 75%, var(--accent)));
    color: #fff;
    padding: 38px 0;
}
.page-banner h1 { margin: 0 0 6px; font-size: 2rem; font-weight: 800; }
.page-banner p { margin: 0; color: rgba(255, 255, 255, 0.88); }

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.product-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img { transform: scale(1.04); }

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-primary { background: var(--primary); color: #fff; }
.badge-promo { background: #dc2626; color: #fff; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: #e2e8f0; color: #334155; }

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 4px;
}

.product-title {
    margin: 0 0 6px;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--text);
}

.product-excerpt {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mini-tag {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
}

.product-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-box { display: flex; flex-direction: column; line-height: 1.15; }
.price-old { font-size: 0.8rem; color: #94a3b8; text-decoration: line-through; }
.price-now { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.price-promo { color: #dc2626; }

.card-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.click-price-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-cta-pill {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.event-thumb {
    position: relative;
    height: 185px;
    background: #e2e8f0;
}

.event-thumb img { width: 100%; height: 100%; object-fit: cover; }

.event-date-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #fff;
    color: var(--primary);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    line-height: 1.05;
    box-shadow: var(--shadow-md);
}

.event-date-pill strong { display: block; font-size: 1.25rem; font-weight: 800; }
.event-date-pill span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }

.event-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-meta-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.event-ticket-badge {
    color: var(--accent);
    font-weight: 700;
}

.event-body h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.event-body p { margin: 0 0 18px; color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Catalog Layout & Filters */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.filter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-header h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.filter-reset { font-size: 0.84rem; color: var(--primary); font-weight: 600; }

.filter-group {
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
}

.filter-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-list { display: flex; flex-direction: column; gap: 8px; }

.filter-radio, .filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }

.pill-option {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.pill-option input { display: none; }
.pill-option.is-selected, .pill-option:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.price-range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.94rem;
    background: #fff;
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.form-control-sm { padding: 7px 10px; font-size: 0.88rem; }

.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Product Modal & Detail Page */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 200;
}
.modal-backdrop.is-open { display: flex; }

.modal-card {
    background: #fff;
    border-radius: 20px;
    width: min(860px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.2s ease;
}

.event-modal-card { width: min(640px, 100%); padding: 28px; }

@keyframes modalPop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}
.modal-close:hover { background: #f1f5f9; }

.modal-loading { padding: 60px; text-align: center; color: var(--text-muted); font-weight: 600; }

.pm-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
}

.pm-media {
    background: #f1f5f9;
    min-height: 360px;
}

.pm-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pm-info h2 { margin: 0; font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.pm-desc { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.detail-price-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.detail-price-old { font-size: 0.88rem; color: #94a3b8; text-decoration: line-through; display: flex; align-items: center; gap: 8px; }
.detail-price-main { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.detail-price-pix { color: var(--accent); font-size: 0.92rem; margin-top: 4px; }
.detail-price-card { color: var(--text-muted); font-size: 0.86rem; margin-top: 2px; }

.pm-variations { display: flex; flex-wrap: wrap; gap: 8px; }
.var-btn {
    border: 1.5px solid var(--border);
    background: #fff;
    padding: 7px 14px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.var-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pm-actions, .detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.product-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    box-shadow: var(--shadow-sm);
    margin-top: 16px;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.product-detail-info { padding: 32px; }
.back-link { font-weight: 700; color: var(--primary); }
.sku-label { display: inline-block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.detail-description { color: var(--text-muted); margin: 16px 0; }

/* Cart & Checkout */
.cart-layout, .checkout-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.cart-items-box, .checkout-card, .cart-summary-box, .confirmation-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.checkout-card { margin-bottom: 20px; }
.checkout-card h2 { margin: 0 0 18px; font-size: 1.18rem; font-weight: 800; color: var(--primary); }

.cart-row {
    display: grid;
    grid-template-columns: 76px 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.cart-name { font-weight: 700; display: block; }
.cart-var { display: block; font-size: 0.82rem; color: var(--text-muted); }
.cart-unit { font-size: 0.84rem; color: var(--text-muted); }
.cart-qty-form { display: flex; gap: 6px; align-items: center; }
.cart-qty-form input { width: 68px; }
.cart-line-total { font-weight: 800; font-size: 1.05rem; color: var(--primary); }
.btn-icon-remove { background: transparent; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; }
.btn-icon-remove:hover { color: var(--danger); }

.cart-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-summary-box { position: sticky; top: 96px; }
.cart-summary-box h3 { margin: 0 0 16px; font-size: 1.15rem; font-weight: 800; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.94rem; }
.summary-pix { color: var(--accent); }
.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    margin-top: 8px;
    border-top: 2px solid var(--border);
    font-size: 1.25rem;
    color: var(--primary);
}
.summary-note { font-size: 0.82rem; color: var(--text-muted); margin: 12px 0 18px; }
.text-success { color: var(--success); }

.option-cards { display: flex; flex-direction: column; gap: 10px; }
.option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.option-card:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, #fff);
}
.option-card small { display: block; color: var(--text-muted); margin-top: 2px; }

.address-fields, .card-installments-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.checkout-item-list { list-style: none; padding: 0; margin: 0 0 14px; }
.checkout-item-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}
.checkout-item-list small { display: block; color: var(--text-muted); }

/* Order Confirmation */
.confirmation-card { max-width: 860px; margin: 0 auto; padding: 34px; }
.confirmation-header { text-align: center; margin-bottom: 26px; }
.check-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 2rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
}
.pix-payment-box, .info-payment-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 26px;
}
.info-payment-box { background: #eff6ff; border-color: #bfdbfe; }
.pix-qr-wrap { margin: 16px auto; display: inline-block; background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--border); }
.pix-copy-row { display: flex; gap: 10px; max-width: 600px; margin: 14px auto; }
.pix-meta { color: var(--text-muted); display: block; margin-top: 8px; }
.confirmation-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Empty State */
.empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 46px 24px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state h3 { color: var(--text); margin-top: 0; }

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 52px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 36px;
}
.footer-brand { margin: 0 0 10px; color: #fff; font-size: 1.3rem; }
.footer-desc { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 0.98rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Floating WhatsApp & Toasts */
.whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
    z-index: 95;
    transition: transform 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.07); }

.toast-container {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 250;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #0f172a;
    color: #fff;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.2s ease;
}
.toast-success { background: #15803d; }
.toast-error { background: #dc2626; }

/* 404 Page */
.error-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.error-box { background: #fff; padding: 44px; border-radius: 20px; text-align: center; max-width: 480px; box-shadow: var(--shadow-md); }
.error-code { font-size: 4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid, .catalog-layout, .cart-layout, .checkout-layout, .pm-grid, .product-detail-card, .confirmation-details-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .filter-card, .cart-summary-box { position: static; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 20px;
        display: none;
        box-shadow: var(--shadow-md);
    }
    .main-nav.is-open { display: flex; }
    .cart-pill { margin-left: 0; justify-content: center; }
    .form-grid-2, .form-grid-3, .pm-actions, .detail-actions { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 64px 1fr; }
    .pix-copy-row { flex-direction: column; }
}
