/* ==========================================
   PANINI STORE BRASIL - PREMIUM STYLING
   ========================================== */

/* 1. CSS VARIABLES & RESET */
:root {
    --panini-navy: #1D449C;
    --panini-navy-dark: #143275;
    --panini-gold: #F5C518;
    --panini-gold-dark: #D4A017;
    --panini-gold-glow: rgba(245, 197, 24, 0.35);
    
    --gray-bg: #F4F6FA;
    --gray-light: #E2E8F0;
    --gray-border: #E2E8F0;
    --gray-dark: #1E293B;
    --gray-text: #64748B;
    --gray-title: #2D3748;
    
    --white: #FFFFFF;
    --black: #0C0C10;
    --green-success: #10B981;
    --red-alert: #EF4444;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.1);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--gray-bg);
    color: var(--gray-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 2. HEADER & TOP BANNER */
.top-bar {
    background-color: var(--panini-gold);
    color: var(--panini-navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 8px 12px;
    z-index: 100;
}

@media(min-width: 768px) {
    .top-bar {
        font-size: 12px;
    }
}

.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth), top 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media(min-width: 768px) {
    .header-container {
        padding: 16px 24px;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

@media(min-width: 768px) {
    .header-logo {
        height: 48px;
    }
}

.header-logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: none;
}

@media(min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 24px;
    }
}

.nav-item {
    color: var(--panini-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
    color: var(--panini-gold-dark);
}

.cart-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--panini-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    padding: 6px 12px;
    border-radius: 8px;
}

.cart-button:hover {
    background-color: rgba(29, 68, 156, 0.05);
    color: var(--panini-gold-dark);
}

.cart-icon-wrapper {
    position: relative;
}

.cart-svg-icon {
    width: 28px;
    height: 28px;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--panini-gold);
    color: var(--panini-navy);
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.cart-btn-text {
    display: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media(min-width: 768px) {
    .cart-btn-text {
        display: inline;
    }
}

/* 3. HERO & PROMO SECTIONS */
.hero-banner-img {
    width: 100%;
    line-height: 0;
}

.hero-banner-img img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-section {
    background-color: var(--panini-navy);
    color: var(--white);
    padding: 12px 16px;
    text-align: center;
    border-bottom: 2px solid var(--panini-gold);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-subtitle {
    color: var(--panini-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(16px, 4.5vw, 22px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 4px 0;
}

.promo-gift-bar {
    background: #F5C518;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.promo-icon {
    flex-shrink: 0;
}

.promo-text {
    font-size: 13px;
    font-weight: 600;
    color: #1D449C;
    line-height: 1.4;
    text-align: left;
}

.promo-highlight {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* 4. PRODUCTS CATALOG */
.catalog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

@media(min-width: 768px) {
    .catalog-section {
        padding: 48px 24px;
    }
}

.catalog-header {
    margin-bottom: 24px;
}

.catalog-pretitle {
    color: var(--panini-gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.catalog-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: var(--panini-navy);
    margin-top: 4px;
}

@media(min-width: 768px) {
    .catalog-title {
        font-size: 28px;
    }
}

.catalog-subtitle {
    color: var(--gray-text);
    font-size: 13px;
    margin-top: 6px;
}

@media(min-width: 768px) {
    .catalog-subtitle {
        font-size: 14px;
    }
}

/* Grid System */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media(min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media(min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Standard Product Card */
.product-card {
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(29, 68, 156, 0.2);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--white);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--panini-gold);
    color: var(--panini-navy);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    letter-spacing: 0.02em;
}

.card-badge.badge-new {
    background-color: var(--panini-gold);
    color: var(--panini-navy);
}

.card-badge.badge-combo {
    background-color: #3182CE;
    color: var(--white);
}

.card-badge.badge-premium {
    background: linear-gradient(to right, #FCD34D, var(--panini-gold-dark));
    color: var(--panini-navy);
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media(min-width: 768px) {
    .card-info {
        padding: 16px;
    }
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-title);
    line-height: 1.35;
    margin-bottom: 8px;
}

@media(min-width: 768px) {
    .card-title {
        font-size: 15px;
    }
}

.card-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-title);
}

@media(min-width: 768px) {
    .card-price {
        font-size: 20px;
    }
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    background: #fee2e2;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 4px;
}

/* Visitors badge */
.visitors-badge {
    position: fixed;
    bottom: 24px;
    left: 16px;
    background: #1D449C;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(29, 68, 156, 0.4);
    z-index: 50;
    animation: fadeInUp 0.5s ease;
}

.visitors-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

canvas.confetti-canvas {
    z-index: 99999 !important;
}

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

/* Social proof toast */
.social-proof-toast {
    position: fixed;
    top: 80px;
    right: 16px;
    background: white;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 3px solid #22c55e;
    z-index: 999;
    max-width: 240px;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.social-proof-toast.show {
    transform: translateX(0);
}


.sp-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sp-name {
    font-size: 12px;
    font-weight: 700;
    color: #1D3A6E;
}

.sp-product {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.sp-time {
    font-size: 10px;
    color: #22c55e;
    font-weight: 600;
    margin-top: 2px;
}

/* Coupon reminder bar */
.coupon-reminder {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #1D449C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.coupon-reminder-timer {
    background: #F5C518;
    color: #1D449C;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    min-width: 52px;
    text-align: center;
}

/* Scratch card */
.scratch-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.scratch-overlay.hidden { display: none; }

.scratch-modal {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.scratch-logo {
    font-size: 40px;
    margin-bottom: 8px;
}

.scratch-modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1D3A6E;
    margin: 0 0 6px;
}

.scratch-modal p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}

.scratch-card-wrapper {
    position: relative;
    width: 280px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.4);
}

#scratch-canvas {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    cursor: crosshair;
    border-radius: 12px;
}

.scratch-prize {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, #1D449C, #0f2d6b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.scratch-prize .prize-percent {
    font-size: 48px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: #F5C518;
    line-height: 1;
}

.scratch-prize .prize-label {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.9;
}

.scratch-prize .prize-code {
    font-size: 11px;
    margin-top: 6px;
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
}

.scratch-timer {
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    margin: 8px 0;
    background: #fee2e2;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
}

.scratch-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.scratch-apply-btn {
    width: 100%;
    height: 48px;
    background: #1D449C;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
}

.scratch-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

/* Premium Card Overrides (iCollect & Omni Set) */
.product-card.premium-dark {
    background-color: var(--black);
    border: 2px solid var(--panini-gold);
    box-shadow: 0 0 16px var(--panini-gold-glow);
}

.product-card.premium-dark:hover {
    box-shadow: 0 0 24px rgba(245, 197, 24, 0.55);
    transform: translateY(-6px);
}

.product-card.premium-dark .card-img-wrapper {
    background: radial-gradient(circle at center, #D4A017 0%, #1c140a 55%, #000 100%);
    border-bottom: 1px solid rgba(245, 197, 24, 0.2);
}

.product-card.premium-dark .card-info {
    background-color: var(--black);
}

.product-card.premium-dark .card-title {
    color: var(--white);
}

.product-card.premium-dark .card-price {
    color: var(--panini-gold);
}

.product-card.premium-dark .card-badge {
    background: linear-gradient(135deg, #FFE066 0%, #D4A017 100%);
    color: var(--panini-navy);
    font-weight: 900;
}

/* Grid Count Footer */
.grid-footer {
    margin-top: 24px;
    text-align: center;
}

.catalog-count-text {
    font-size: 13px;
    color: var(--gray-text);
}

/* 5. FAQ SECTION */
.faq-section {
    background-color: var(--white);
    border-top: 1px solid var(--gray-border);
}

.faq-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 48px 16px;
}

@media(min-width: 768px) {
    .faq-container {
        padding: 60px 24px;
    }
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: var(--gray-title);
    text-align: center;
    margin-bottom: 24px;
}

@media(min-width: 768px) {
    .faq-title {
        font-size: 26px;
    }
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--gray-bg);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.faq-item[open] {
    background-color: var(--white);
    border-color: var(--gray-border);
    box-shadow: var(--shadow-md);
}

.faq-summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: var(--gray-title);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

@media(min-width: 768px) {
    .faq-summary {
        font-size: 15px;
    }
}

/* Hide standard marker in Safari */
.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-toggle-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--panini-navy);
    transition: var(--transition-smooth);
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--panini-gold-dark);
}

.faq-content {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.5;
}

@media(min-width: 768px) {
    .faq-content {
        font-size: 14px;
    }
}

/* 6. FOOTER */
.main-footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-border);
    margin-top: auto;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media(min-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        padding: 48px 24px;
        gap: 40px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 44px;
    width: auto;
    align-self: flex-start;
    margin-bottom: 16px;
}

.about-text {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.6;
}

.about-text strong {
    color: var(--gray-title);
}

.footer-heading {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-title);
    margin-bottom: 16px;
}

.advantages-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advantages-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-title);
    line-height: 1.4;
}

.check-svg-icon {
    width: 16px;
    height: 16px;
    color: var(--panini-navy);
    flex-shrink: 0;
    margin-top: 2px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon-link {
    color: var(--gray-text);
    transition: var(--transition-fast);
}

.social-icon-link:hover {
    color: var(--panini-navy);
    transform: translateY(-2px);
}

.social-svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-border);
    padding: 24px 16px;
    text-align: center;
}

.copyright-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-title);
    margin-bottom: 6px;
}

.trademark-disclaimer {
    font-size: 10px;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* 7. CART SIDE GAVETA (DRAWER) */

/* Backdrop */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Drawer panel */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px !important;
    max-width: 85vw !important;
    background-color: var(--white);
    z-index: 1001;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── HEADER ── */
.drawer-header {
    background-color: var(--panini-navy);
    padding: 16px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.drawer-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

/* Item count badge in header */
.drawer-count-badge {
    background-color: var(--panini-gold);
    color: var(--panini-navy);
    font-size: 12px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.close-drawer-btn:hover {
    opacity: 1;
}

.close-svg {
    width: 22px;
    height: 22px;
}

/* Progress bar inside header */
.progress-bar-container {
    margin-bottom: 0;
}

.progress-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.progress-bar-bg {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--panini-gold);
    transition: width 0.4s ease;
}

/* ── BODY ── */
.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Empty state */
.cart-empty-state {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.empty-state-svg {
    width: 72px;
    height: 72px;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-title);
    margin-bottom: 4px;
}

.empty-subtitle {
    font-size: 13px;
    color: var(--gray-text);
}

/* Cart items */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: var(--gray-bg);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1D3A6E;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.qty-small-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.qty-small-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-title);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.qty-small-btn:hover {
    background-color: var(--gray-bg);
    border-color: #cbd5e0;
}

.qty-small-number {
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--gray-title);
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--panini-navy);
}

.delete-item-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    flex-shrink: 0;
}

.delete-item-btn:hover {
    color: var(--red-alert);
}

.delete-svg {
    width: 16px;
    height: 16px;
}

/* Gift badge pill */
.gift-badge-pill {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--green-success);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hide finance rows when cart is empty (CSS :has — Chrome 105+, Safari 15.4+, FF 121+) */
.cart-drawer:has(.cart-empty-state) .footer-row-subtotal,
.cart-drawer:has(.cart-empty-state) .footer-row-delivery,
.cart-drawer:has(.cart-empty-state) .footer-row-gift,
.cart-drawer:has(.cart-empty-state) .footer-row-total {
    display: none;
}

/* Footer gift-info row permanently hidden — shown as cart item instead */
#cart-gift-info {
    display: none !important;
}

/* ── FOOTER ── */
.drawer-footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px;
    background-color: var(--white);
    flex-shrink: 0;
}

.footer-row-subtotal,
.footer-row-delivery,
.footer-row-gift {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #64748b;
}

.subtotal-value,
.delivery-value {
    font-weight: 600;
    color: #64748b;
}

.footer-row-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    color: #1D3A6E;
    margin-bottom: 0;
}

.total-label {
    font-weight: 700;
}

.total-value {
    font-size: 18px;
    font-weight: 700;
    color: #1D3A6E;
}

.checkout-submit-btn {
    display: block;
    width: 100%;
    height: 48px;
    background-color: var(--panini-navy);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.15s;
    letter-spacing: 0.01em;
}

.checkout-submit-btn:hover:not(:disabled) {
    background-color: var(--panini-navy-dark);
}

.checkout-submit-btn:disabled {
    display: none;
}

.continue-shopping-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--panini-navy);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    margin-top: 12px;
    padding: 4px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.continue-shopping-btn:hover {
    opacity: 0.75;
}

/* 8. GENERAL MODAL BACKDROP */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* 9. PRODUCT DETAIL MODAL */

/* Mobile: bottom sheet */
.modal-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background-color: var(--white);
    z-index: 120;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.modal-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Desktop: centered dialog — reset bottom-sheet positioning */
@media(min-width: 600px) {
    .modal-container {
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: unset;
        right: unset;
        width: 90%;
        max-width: 480px;
        border-radius: 16px;
        transform: translate(-50%, -50%) scale(0.92);
        max-height: 90vh;
    }
    .modal-container.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Sticky header row */
.modal-header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-border);
}

.modal-header-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 44px);
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--gray-title);
    background-color: var(--gray-bg);
}

/* Image area — full bleed, contain with neutral bg */
.modal-image-col {
    width: 100%;
    height: 280px;
    background-color: #f8f9fa;
    overflow: hidden;
    flex-shrink: 0;
}

@media(min-width: 600px) {
    .modal-image-col { height: 300px; }
}

.modal-product-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    display: block;
    padding: 0;
}

/* Info section */
.modal-info-col {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* Pretitle + badge row */
.modal-pretitle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.modal-pretitle {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--panini-gold-dark);
}

.modal-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.modal-badge.badge-new {
    background-color: var(--panini-gold);
    color: var(--panini-navy);
}

.modal-badge.badge-combo {
    background-color: #3182CE;
    color: var(--white);
}

.modal-badge.badge-premium {
    background: linear-gradient(to right, #FCD34D, var(--panini-gold-dark));
    color: var(--panini-navy);
}

.modal-product-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #1D3A6E;
    line-height: 1.25;
    margin-bottom: 12px;
}

/* Price block */
.modal-price-block {
    margin-bottom: 12px;
}

.modal-price-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 2px;
}

.modal-product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--panini-navy);
    line-height: 1;
}

.modal-product-description {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.5;
    margin-bottom: 16px;
    max-height: 80px;
    overflow-y: auto;
}

/* Quantity controls */
.modal-qty-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qty-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-title);
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn-minus, .qty-btn-plus {
    background-color: var(--gray-bg);
    border: none;
    font-size: 18px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-title);
    transition: var(--transition-fast);
}

.qty-btn-minus:hover, .qty-btn-plus:hover {
    background-color: var(--gray-light);
}

.qty-number {
    font-size: 15px;
    font-weight: 700;
    width: 40px;
    text-align: center;
}

/* CTA button — sticky at bottom so it never hides behind browser chrome */
.modal-add-to-cart-btn {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: var(--panini-navy);
    color: var(--white);
    border: none;
    border-radius: 10px;
    height: 52px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
    /* white backing so it doesn't show content scrolling behind it */
    box-shadow: 0 -8px 16px var(--white);
    /* respect iPhone home indicator */
    margin-bottom: env(safe-area-inset-bottom, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.modal-add-to-cart-btn:hover {
    background-color: var(--panini-navy-dark);
}

/* Premium overrides */
.modal-container.premium-modal {
    border: 2px solid var(--panini-gold);
    box-shadow: 0 0 24px var(--panini-gold-glow);
}

.modal-container.premium-modal .modal-image-col {
    background: radial-gradient(circle at center, #D4A017 0%, #1c140a 55%, #000 100%);
}

.modal-container.premium-modal .modal-product-price {
    color: var(--panini-gold-dark);
}

/* 10. FULLSCREEN CHECKOUT OVERLAY */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: #F1F5F9;
    z-index: 120;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.checkout-overlay.active {
    transform: translateY(0);
}

/* Header */
.co-header {
    background: var(--panini-navy);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.co-logo {
    height: 36px;
    width: auto;
}

.co-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: background 0.15s;
    flex-shrink: 0;
}
.co-close-btn:hover { background: rgba(255,255,255,0.28); }
.co-close-btn svg { width: 20px; height: 20px; }

/* Scrollable body */
.co-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 48px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    align-self: center;
    box-sizing: border-box;
}

/* Steps indicator */
.co-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
}

.co-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 56px;
}

.co-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #CBD5E1;
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-step.active .co-step-num {
    background: var(--panini-gold);
    color: var(--panini-navy);
}

.co-step.done .co-step-num {
    background: var(--green-success);
    color: var(--white);
}

.co-step-label {
    font-size: 10px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.co-step.active .co-step-label { color: var(--panini-navy); }

.co-step-line {
    flex: 1;
    height: 2px;
    background: #CBD5E1;
    min-width: 24px;
    max-width: 56px;
    margin-top: 14px;
}

/* Blocks */
.co-block {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 8px rgba(0,0,0,0.04);
}

.co-block-header {
    background: var(--panini-navy);
    color: var(--white);
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Summary items */
.co-summary-items {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.co-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.co-summary-item-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.co-summary-item-info {
    flex: 1;
    min-width: 0;
}

.co-summary-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-summary-item-qty {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

.co-summary-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--panini-navy);
    flex-shrink: 0;
}

.co-summary-text-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748B;
    padding: 4px 0;
    border-top: 1px dashed #E2E8F0;
    margin-top: 2px;
}

.co-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #E2E8F0;
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
}

.co-summary-total strong {
    color: var(--panini-gold-dark);
    font-size: 18px;
}

/* Form grid */
.co-form-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.co-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.co-field-full { grid-column: span 2; }
.co-field-city { grid-column: span 1; min-width: 0; }
.co-field-state { grid-column: span 1; min-width: 0; }

.co-label {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.co-input {
    box-sizing: border-box;
    width: 100%;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1E293B;
    background: var(--white);
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 0;
}

.co-input:focus {
    border-color: var(--panini-navy);
    box-shadow: 0 0 0 3px rgba(29, 68, 156, 0.12);
}

/* Shipping options */
.co-shipping-options {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-ship-option {
    box-sizing: border-box;
    width: 100%;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
}

.co-ship-option input[type="radio"] {
    accent-color: var(--panini-navy);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.co-ship-option.active {
    border-color: var(--panini-navy);
    background: rgba(29, 68, 156, 0.03);
}

.co-ship-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.co-ship-name {
    font-size: 12px;
    font-weight: 600;
    color: #1E293B;
    white-space: normal;
    min-width: 0;
}

.co-ship-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--panini-navy);
    white-space: nowrap;
    flex-shrink: 0;
}

.co-ship-price.shipping-price-free {
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    text-transform: lowercase;
}

/* Payment option */
.co-payment-wrap {
    padding: 12px 16px;
}

.co-payment-option {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.co-payment-option.active {
    border-color: var(--panini-gold);
    background: rgba(245, 197, 24, 0.04);
}

.co-payment-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 5px solid var(--panini-navy);
    flex-shrink: 0;
}

.co-payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.co-payment-title {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
}

.co-payment-sub {
    font-size: 11px;
    color: #64748B;
}

.co-pix-badge {
    background: var(--panini-navy);
    color: var(--panini-gold);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 6px;
    letter-spacing: 0.06em;
}

/* Confirm CTA */
.co-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.co-confirm-btn {
    width: 100%;
    height: 52px;
    background: var(--panini-navy);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.co-confirm-btn:hover { background: var(--panini-navy-dark); }
.co-confirm-btn:disabled { background: #94A3B8; cursor: not-allowed; }

.co-security-note {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

/* ── ORDER BUMPS ── */
.co-bumps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
}

.co-bump-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    background: #FFFEF5;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%23F5C518' stroke-width='3' stroke-dasharray='8,5' stroke-dashoffset='0' stroke-linecap='round'/%3E%3C/svg%3E");
    transition: background-color 0.15s;
    user-select: none;
    position: relative;
}

.co-bump-card.checked {
    background-color: #FFFBEB;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%23D97706' stroke-width='3' stroke-dasharray='8,5' stroke-dashoffset='0' stroke-linecap='round'/%3E%3C/svg%3E");
}

.bump-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #D97706;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

.bump-checkbox:checked {
    background: #D97706;
    border-color: #D97706;
}

.bump-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 7px;
    height: 11px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.bump-img {
    width: 70px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.bump-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 10px;
}

.bump-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bump-tag {
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    background: #E53E3E;
    border-radius: 4px;
    padding: 2px 6px;
    align-self: flex-start;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bump-name {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
}

.bump-desc {
    font-size: 11px;
    color: #64748B;
    line-height: 1.4;
}

.bump-price {
    font-size: 15px;
    font-weight: 800;
    color: #16A34A;
    white-space: nowrap;
}

/* Success view */
.co-success-view {
    flex: 1;
    overflow-y: auto;
    padding: 32px 20px 56px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    align-self: center;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-items: center;
}

.co-success-view.active {
    display: flex;
}

.co-success-icon {
    width: 72px;
    height: 72px;
    background: var(--green-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.co-success-icon svg {
    width: 38px;
    height: 38px;
    color: var(--white);
}

.co-success-title {
    font-size: 24px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 6px;
}

.co-success-sub {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 16px;
    text-align: center;
}

.co-success-total-display {
    font-size: 15px;
    color: #1E293B;
    font-weight: 600;
    margin-bottom: 24px;
}

.co-success-total-display strong {
    color: var(--panini-navy);
    font-size: 20px;
}

/* Pix area in success */
.co-pix-area {
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.co-pix-label {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.co-pix-row {
    display: flex;
    gap: 8px;
}

.pix-code-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    font-family: monospace;
    font-size: 10px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 0 10px;
    background: #F8FAFC;
    outline: none;
    color: #1E293B;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.btn-copy-pix {
    background: var(--panini-navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.btn-copy-pix:hover { background: var(--panini-navy-dark); }

.copy-svg-icon {
    width: 14px;
    height: 14px;
}

.co-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-code-wrapper {
    width: 200px;
    height: 200px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px;
    background: var(--white);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
}

.qr-code-wrapper img,
.qr-code-wrapper canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
}

/* Instructions list */
.co-instructions {
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    padding: 16px 16px 16px 36px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-size: 13px;
    color: #1E293B;
    line-height: 1.7;
}

/* Back button */
.co-back-btn {
    background: none;
    border: none;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 8px;
}

/* Payment confirmed view */
#pix-pending-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#payment-confirmed-view {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 0;
    width: 100%;
}

.co-confirmed-icon {
    width: 88px;
    height: 88px;
    background: #22C55E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0.12);
}

.co-confirmed-icon svg {
    width: 44px;
    height: 44px;
    color: var(--white);
}

.co-confirmed-title {
    font-size: 26px;
    font-weight: 800;
    color: #16A34A;
    margin-bottom: 10px;
}

.co-confirmed-sub {
    font-size: 15px;
    color: #475569;
    margin-bottom: 32px;
}

.co-back-to-store-btn {
    background: var(--panini-navy);
    color: var(--white);
    border: none;
    border-radius: 12px;
    height: 52px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.co-back-to-store-btn:hover { background: var(--panini-navy-dark); }

/* 11. TOAST NOTIFICATION */
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background-color: var(--panini-navy);
    border-left: 4px solid var(--panini-gold);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    width: calc(100% - 32px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 150;
    pointer-events: none;
    opacity: 0;
}

.toast-notification.active {
    animation: toast-in 0.3s ease-out forwards;
}

.toast-notification.hide {
    animation: toast-out 0.25s ease-in forwards;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}
