/* style.css - Modern Vanilla CSS Framework */
:root {
    --primary: #25D366; /* WhatsApp Green */
    --primary-hover: #1EBE5D;
    --secondary: #2C3E50;
    --background: #f4f7f6;
    --surface: #ffffff;
    --text-main: #2C3E50;
    --text-muted: #7f8c8d;
    --danger: #ff4757;
    --danger-hover: #ff6b81;
    --border: #e1e8eb;
    --input-bg: #ffffff;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-text: #ecf0f1;
    --sidebar-bg: #2C3E50;
    --sidebar-width: 280px;
    --header-icon-color: #333333;
    --cart-badge-color: #e74c3c;
    --font-heading: 'Playfair Display', serif;
    --font-main: 'Outfit', sans-serif;
    --font-product: inherit;
    --btn-grad-start: var(--primary);
    --btn-grad-end: var(--primary-hover);
    
    /* Announcement Bar defaults */
    --announcement-bg: var(--primary);
    --announcement-color: #ffffff;
}

.announcement-bar {
    background-color: var(--announcement-bg);
    color: var(--announcement-color);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.announcement-bar.hidden {
    display: none;
}

/* Theme Overrides for Admin Panel */
.admin-body.theme-gray {
    --background: #f1f3f5;
    --surface: #ffffff;
    --border: #dee2e6;
    --text-main: #343a40;
    --secondary: #495057;
}

.admin-body.theme-dark {
    --background: #121212;
    --surface: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #2d2d2d;
    --input-bg: #2d2d2d;
    --secondary: #ffffff;
    --sidebar-bg: #000000;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-body.theme-dark .admin-top-bar,
.admin-body.theme-dark .card,
.admin-body.theme-dark .metric-card,
.admin-body.theme-dark .stats-card,
.admin-body.theme-dark .card-header {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.stat-icon-container {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-bottom: 10px;
}

.admin-body.theme-dark .stat-icon-container {
    background: rgba(255, 255, 255, 0.1);
}


.admin-body.theme-dark .products-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.admin-body.theme-dark .schedule-row {
    background: #252525;
}
.admin-body.theme-dark .schedule-row:hover {
    background: #2d2d2d;
}
.admin-body.theme-dark .time-inputs input[type="time"] {
    background: #333;
    color: white;
    border-color: #444;
}

.admin-body.theme-dark .form-group input[type="text"],
.admin-body.theme-dark .form-group input[type="number"],
.admin-body.theme-dark .form-group textarea,
.admin-body.theme-dark .custom-select {
    background-color: var(--input-bg);
    color: white;
    border-color: var(--border);
}

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

input, button, select, textarea {
    font-family: inherit;
}

body {
    font-family: var(--font-main, 'Outfit'), system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(200px) saturate(200%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 10px 0;
    gap: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.header-content h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Store Status Badge */
.store-status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-status-badge.open {
    background: #e8f5e9;
    color: #2e7d32;
}

.store-status-badge.open::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #2e7d32;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

.store-status-badge.closed {
    background: #ffebee;
    color: #c62828;
}

.store-status-badge.closed::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #c62828;
    border-radius: 50%;
}

.store-status-badge.hidden {
    display: none !important;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

/* Delivery Method Selector */
.delivery-method-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 50px;
}

.delivery-method-option {
    flex: 1;
    text-align: center;
}

.delivery-method-option input {
    display: none;
}

.delivery-method-option label {
    display: block;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-muted);
}

.delivery-method-option input:checked + label {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.hidden {
    display: none !important;
}

.store-logo {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: var(--surface);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.store-logo:hover {
    transform: scale(1.05);
}

/* Banner */
.store-banner {
    width: 100%;
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.store-banner img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* --- Phase 12: Premium Visual Enhancements --- */

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform;
}

@media (max-width: 768px) {
    .reveal {
        transform: translateY(15px);
        transition: opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1), transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    }
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered Delay for Grid Items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Product Image Hover Enhancement (Desktop) */
@media (min-width: 1024px) {
    .product-image-wrapper img {
        transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    }
    .product-image-wrapper:hover img {
        transform: scale(1.08);
    }
}

/* Image Lightbox (Full Screen View) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ----------------------------------------------- */

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 5000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: wa-pulse 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-wa.hidden {
    display: none;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Modal Quantity Selector */
.details-qty-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.details-qty-selection label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.qty-control-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 2px;
}

.qty-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn-circle:hover {
    background: var(--bg-secondary);
}

.qty-display {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Cart Notes */
.cart-notes-container {
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.cart-notes-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-notes-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cart-notes-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.23);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.23);
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--secondary);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Utils */
.hidden {
    display: none !important;
}

/* Utilities */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background-color: #fafbfc;
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary);
}

.card-body {
    padding: 24px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: var(--surface);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.text-right { text-align: right !important; }
.btn-block { width: 100%; }

/* Catalog View (index.html) */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Category Filters (Modern Chips) */
.category-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px 25px;
    margin-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-btn {
    padding: 10px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.1);
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--header-icon-color);
    pointer-events: none;
}

.header-actions .search-box {
    margin: 0;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--input-bg);
    transition: var(--transition);
}

.header-actions .search-box input {
    border-radius: 25px; /* More modern look for header search */
    padding: 10px 100px 10px 45px; /* Added right padding for filter dropdown */
}

.voice-search-btn {
    position: absolute;
    right: 105px; /* Ajustado para ficar ao lado do filtro no header */
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
}

.voice-search-btn:hover {
    color: var(--primary);
    background-color: rgba(37, 211, 102, 0.1);
}

.voice-search-btn.active {
    color: #fff;
    background-color: var(--primary);
    animation: mic-pulse 1.5s infinite;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

@keyframes mic-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 480px) {
    .voice-search-btn {
        right: 55px;
    }
}

/* Header Filter (Inside search-box) */
.header-filter {
    position: absolute;
    right: 5px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
    transition: var(--transition);
}

.filter-icon {
    color: var(--text-muted);
    pointer-events: none;
}

#sortSelect {
    border: none !important;
    background: transparent !important;
    padding: 0 25px 0 5px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    width: auto !important;
    max-width: 90px;
    box-shadow: none !important;
    cursor: pointer;
    text-overflow: ellipsis;
}

.header-filter:hover #sortSelect {
    color: var(--primary) !important;
}

.header-filter:hover .filter-icon {
    color: var(--primary);
}

@media (max-width: 480px) {
    #sortSelect {
        width: 30px !important;
        padding: 0 !important;
        text-indent: -999px; /* Hide text on very small screens, show only icon/arrow */
    }
    .header-actions .search-box input {
        padding-right: 50px;
    }
}

/* Slideshow Styles */
.slideshow-container { position: relative; width: 100%; max-width: 1400px; margin: 0 auto 20px auto; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); background-color: #f5f5f5; }
@media (max-width: 768px) { 
    .slideshow-container { width: auto; margin: 5px 10px 20px 10px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); } 
}
.slides-wrapper { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.slide { min-width: 100%; box-sizing: border-box; }
.slide img { width: 100%; display: block; object-fit: cover; aspect-ratio: 1920 / 400; cursor: pointer; }
@media (max-width: 768px) { .slide img { aspect-ratio: 1276 / 300; object-fit: cover; } }
.slide-nav { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; background-color: rgba(0,0,0,0.3); border: none; }
.slide-nav.next { right: 0; border-radius: 3px 0 0 3px; }
.slide-nav:hover { background-color: rgba(0,0,0,0.8); }
.slide-dots { position: absolute; bottom: 15px; width: 100%; text-align: center; }
.dot { cursor: pointer; height: 10px; width: 10px; margin: 0 4px; background-color: rgba(255,255,255,0.5); border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; }
.dot.active, .dot:hover { background-color: white; }

/* Settings Grid */
/* Admin Dashboard Layout */
/* Settings Grid */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-gap: 20px; } .settings-card { display: flex; align-items: flex-start; gap: 15px; padding: 20px; border: 1px solid #eee; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; background: #fff; } .settings-card:hover { border-color: #3498db; box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1); transform: translateY(-2px); } .settings-card-icon { font-size: 24px; min-width: 40px; display: flex; justify-content: center; align-items: center; } .settings-card-content h3 { font-size: 1rem; color: #333; margin-bottom: 5px; font-weight: 600; } .settings-card-content p { font-size: 0.85rem; color: #777; line-height: 1.4; }

/* Cart Sidebar & Icon Styles */
.cart-icon {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon svg {
    color: var(--header-icon-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--cart-badge-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--surface);
}

/* Side Cart (Mini Cart) - Elite Design */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

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

.cart-sidebar-content {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--surface);
    z-index: 9001;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.cart-overlay.active .cart-sidebar-content {
    right: 0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px 25px; /* Increased side padding */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Premium Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 5px;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.cart-item-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--background);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Prevents flex children from overflowing */
}

.cart-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cart-item-variation {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -2px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 5px;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f1f3f5;
    border-radius: 30px;
    padding: 5px 15px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--secondary);
    font-weight: bold;
    line-height: 1;
}

.remove-btn {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px; /* Larger hit area */
    margin: -10px; /* Offset padding to keep alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    color: var(--danger);
}

/* Free Shipping Bar */
.free-shipping-wrapper {
    padding: 12px 55px 12px 25px; /* More horizontal padding */
    background: transparent;
    border-bottom: none;
    position: relative;
}

.free-shipping-container {
    display: flex;
    flex-direction: column;
}

.progress-bar-bg {
    height: 6px;
    background: #eee;
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.free-shipping-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.free-shipping-success {
    color: var(--primary);
    font-weight: 700;
}

/* Mobile Side Cart Improvements */
@media (max-width: 480px) {
    .cart-sidebar-content {
        max-width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 15px 20px;
    }
    
    .cart-header h2 {
        font-size: 1.15rem;
    }
    
    .cart-items {
        padding: 10px 20px; /* Better padding for mobile */
        gap: 8px;
    }
    
    .cart-item {
        padding: 15px;
        gap: 15px;
        border-radius: 12px;
        position: relative; /* For absolute remove button */
    }
    
    .cart-item-img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2; /* Back to 2 on mobile since we have height */
        line-clamp: 2;
        padding-right: 25px; /* Space for remove button */
    }

    .cart-item-price {
        font-size: 1.05rem;
    }
    
    .quantity-controls {
        gap: 12px;
        padding: 5px 15px;
    }
    
    .qty-btn {
        font-size: 1.2rem;
    }

    /* Floating Remove Button on Mobile */
    .remove-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: #fff5f5;
        color: #ff6b6b;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
        padding: 0;
        margin: 0;
        border: 1px solid #ffe3e3;
    }
}

@media (max-width: 480px) {
    .cart-footer {
        padding: 15px 25px;
    }
    
    .cart-total {
        margin-bottom: 15px;
        font-size: 1.15rem;
    }

    .coupon-section-cart {
        margin: 10px 0 !important;
        padding-top: 10px !important;
    }
}

/* Professional Multi-Column Footer */
.store-footer {
    background-color: #ffffff;
    padding: 100px 0 0;
    margin-top: 80px;
    border-top: 1px solid var(--border);
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
}

.footer-column h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--secondary);
}

.footer-bio {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 15px;
}

.contact-info li svg {
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--primary);
}

.online-badge {
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
    position: relative;
}

.online-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1.5px solid #25D366;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.benefits-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-card {
    background: #f8fafb;
    padding: 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.benefit-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
    border-color: var(--border);
}

.benefit-icon {
    font-size: 1.8rem;
    background: #ffffff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.benefit-text strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.benefit-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

/* Base style for social links injected via JS */
.social-links-grid a {
    width: 42px;
    height: 42px;
    background: #f0f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-links-grid a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: #ffffff;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.footer-bottom-content span {
    font-weight: 600;
    color: var(--secondary);
}

.empty-cart-icon {
    margin-bottom: 20px;
    color: #ffdce0;
}

.empty-cart-premium h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-cart-premium p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } 
.modal-overlay.active { opacity: 1; pointer-events: auto; } 
.modal-content { background: var(--surface); width: 90%; max-width: 500px; border-radius: 12px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s ease; max-height: 90vh; overflow-y: auto; } 
.modal-overlay.active .modal-content { transform: translateY(0); } 
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px; } 
.modal-header h2 { font-size: 1.25rem; color: var(--text); display: flex; align-items: center; gap: 8px; margin: 0; } 
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s ease; line-height: 1; } 
.modal-close:hover { color: var(--danger); } 
.form-row { display: flex; gap: 15px; margin-bottom: 15px; } 
.form-row .form-group { flex: 1; margin-bottom: 0; }

/* Pix Modal Specifics */
.pix-body {
    padding: 20px 0;
}

.pix-code-container {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pix-code-container:hover {
    border-color: var(--secondary) !important;
}

#pixCodeText {
    user-select: all;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

#pixCodeText::-webkit-scrollbar {
    width: 6px;
}

#pixCodeText::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 10px;
}

.pix-instructions ol li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Voice Search */
.voice-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: absolute;
    right: 15px; /* Ajustado para ficar dentro da barra */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.voice-search-btn:hover {
    color: var(--primary);
}

.voice-search-btn.active {
    color: #ff416c;
    animation: voice-pulse 1.5s infinite;
}

@keyframes voice-pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.7; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

.search-box input {
    padding-right: 50px !important;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8f9fa;
    background-image: radial-gradient(var(--primary-light) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 0.9rem;
    margin-top: 4px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.filters-section input, .filters-section select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--input-bg);
    transition: var(--transition);
}

.filters-section select {
    width: 200px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.filters-section input:focus, .filters-section select:focus,
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
    min-height: 400px; /* Prevent collapse during load */
}

/* Skeleton Screens for Premium Loading */
.skeleton-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.03);
    height: 400px;
}

.skeleton-banner {
    width: 100%;
    height: 300px;
    background: #eee;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.skeleton-category {
    min-width: 80px;
    height: 80px;
    background: #eee;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-img {
    width: 100%;
    height: 280px;
    background: #eee;
}

.skeleton-info {
    padding: 15px;
}

.skeleton-line {
    height: 12px;
    background: #eee;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-line.title { width: 80%; height: 16px; margin-bottom: 15px; }
.skeleton-line.price { width: 40%; height: 20px; }

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer-anim 1.5s infinite;
}

@keyframes shimmer-anim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Success Modal & Checkmark */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #7ac142;
    fill: none;
    animation: stroke-anim 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #7ac142;
    stroke-width: 3;
    animation: stroke-anim 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke-anim { 100% { stroke-dashoffset: 0; } }

.receipt-preview {
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #333;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px dotted #eee;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.receipt-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--secondary);
    display: block;
}

/* Stock Management UI */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(2px);
}

.out-of-stock-overlay span {
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.low-stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 4;
}

.stock-urgency-msg {
    background: #fff8e1;
    color: #f57c00;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 15px 0;
    border-left: 4px solid #ff9800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-urgency-msg strong {
    font-weight: 800;
    text-decoration: underline;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 1px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 211, 102, 0.2);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* ForÃ§a que seja 900x900 proporcionalmente (quadrado) */
    background-color: var(--input-bg);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    align-items: center;
}

.product-image-wrapper::-webkit-scrollbar {
    display: none;
}

.product-image-container {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Product Carousel Nav */
.product-card .carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .carousel-controls {
    opacity: 1;
}

.carousel-control-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--secondary);
    font-weight: bold;
}

.carousel-control-btn:hover {
    background: white;
    color: var(--primary);
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.indicator-dot.active {
    background: white;
    width: 12px;
    border-radius: 3px;
}

/* Flash Sale Timer */
.flash-sale-timer {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: white;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 5;
    text-transform: uppercase;
    font-family: var(--font-main);
    border-radius: 0 0 15px 15px; /* Alinhado com o fundo do card */
    margin-top: 5px;
}

.flash-sale-timer span {
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 25px;
    text-align: center;
}

.product-card:hover .flash-sale-timer {
    background: linear-gradient(to right, #ff4b2b, #ff416c);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-weight: bold;
    color: var(--secondary);
    transition: var(--transition);
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: var(--primary);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    z-index: 15;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    pointer-events: none;
}

.badge-destaque { background: linear-gradient(135deg, #f1c40f, #f39c12); color: #fff; }
.badge-promocao { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; }
.badge-novidade { background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; }
.badge-acabando { background: linear-gradient(135deg, #e67e22, #d35400); color: #fff; }
.badge-descontaco { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: #fff; }

.product-info {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-family: var(--font-product);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary);
}

.product-description {
    font-family: var(--font-product);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-product);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}


/* Admin Dashboard Layout - Premium SaaS Refinement */
.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    color: white;
    z-index: 1000;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 80px 25px 40px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}


.sidebar-nav {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
    margin: 4px 15px;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(37, 211, 102, 0.15) 0%, rgba(37, 211, 102, 0) 100%);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    font-weight: 700;
    box-shadow: inset 4px 0 0 -2px var(--primary);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Custom Scrollbar for Admin Sidebar */
.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    background-color: var(--background); /* Use variable for themes */
    min-height: 100vh;
    position: relative;
}

.admin-main-content::before {
    content: "";
    position: fixed;
    top: 50%;
    left: calc(50% + (var(--sidebar-width) / 2));
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../assets/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.admin-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 15px 30px;
    margin: -30px -30px 30px -30px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
    height: 70px;
}

.admin-body.theme-dark .admin-top-bar {
    background: rgba(30, 30, 30, 0.82);
}

.admin-top-bar h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.top-bar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar-actions .btn {
    padding: 10px 18px;
    height: 42px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.top-bar-actions .btn-whatsapp {
    width: auto;
    margin-top: 0;
    background-color: #25D366;
}

.top-bar-actions .btn-whatsapp:hover {
    background-color: #20BA5A;
}

.top-bar-actions .btn svg {
    width: 18px;
    height: 18px;
}

/* Specific button styles for clarity */
#waShareBtn {
    background: #25D366;
    border-color: #25D366;
}

#btnAddNew {
    background: var(--primary);
    border-color: var(--primary);
}

/* Card Enhancements */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-header {
    background: rgba(0, 0, 0, 0.01);
    padding: 18px 25px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.card-body {
    padding: 25px;
}




/* Forms in Admin */
.admin-panel .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}

.admin-panel .btn-primary {
    padding: 12px 25px;
}

/* Section visibility */
.admin-section {
    display: none;
    animation: slideUpFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.admin-section.active {
    display: block;
}

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

/* Global interaction refinements */
.btn:active {
    transform: scale(0.96);
}

.card, .nav-link, .btn, .report-filter, .schedule-row {
    will-change: transform, box-shadow, opacity;
}

/* Product Card (Gallery in Admin) */
.admin-products-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
/* High-Precision Zoom (Mercado Libre style) */
.details-main-img-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: var(--radius-lg);
}

.details-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.1s ease-out; /* Super snappy */
    will-change: transform, transform-origin;
}

.details-main-img-container.zoomed {
    cursor: zoom-out;
}

@media (max-width: 992px) {
    .details-main-img-container {
        cursor: default;
    }
}

/* Admin Dashboard Enhancements */
.admin-main-content .card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.admin-main-content .card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-main-content .card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.admin-main-content .card-body {
    padding: 20px;
}

canvas#salesChart, canvas#trafficChart {
    width: 100% !important;
    height: auto !important;
}



/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.config-row {
    display: flex;
    gap: 15px;
}

.config-col {
    flex: 1;
}

.color-picker-wrapper {
    width: 100%;
    height: 42px;
    padding: 2px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.color-picker-wrapper input[type="color"] {
    position: relative;
    top: -5px;
    left: -5px;
    width:calc(100% + 10px);
    height:calc(100% + 10px);
    border: none;
    cursor: pointer;
    background: none;
}

.custom-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--input-bg);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: var(--input-bg);
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--input-bg);
    cursor: pointer;
    font-size: 0.85rem;
}

.dashed-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 2;
}

.dashed-upload {
    height: 60px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    background-color: rgba(37, 211, 102, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.dashed-upload:hover {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: var(--primary);
}

.btn-move {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
    padding: 0 !important;
    transition: all 0.2s !important;
}

.btn-move:hover {
    background: var(--primary) !important;
    transform: scale(1.1);
}

.upload-hint {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
}

.img-preview-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    background-color: #f8fafb;
    border: 2px dashed #e1e8eb;
    border-radius: var(--radius);
    min-height: 120px;
}

.preview-img-box {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.preview-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific constraints for large banner previews */
#slideDesktopPreview, #slideMobilePreview, #logoPreviewContainer, #bannerPreviewContainer {
    width: 100%;
    height: auto;
    max-height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#slideDesktopImg, #slideMobileImg, #logoPreviewImage, #bannerPreviewImage {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.preview-img-box button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.2s;
}

.preview-img-box .btn-move {
    top: auto;
    bottom: 5px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
}

.preview-img-box .btn-move-left {
    right: 35px;
}

.preview-img-box .btn-move-right {
    right: 5px;
}

.preview-img-box button:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.preview-img-box .btn-move:hover {
    background: var(--primary);
}

.preview-img-box button:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Toggle Switch */
.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Schedule Grid Premium Refinement */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-row {
    background: #f8fafb;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.schedule-row:hover {
    background: #fff;
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transform: translateX(5px);
}

.day-label {
    flex: 0 0 100px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.time-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.time-inputs input[type="time"] {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    font-weight: 600;
    color: var(--secondary);
}

.switch-small {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.switch-small .lbl-msg {
    font-size: 0.85rem;
    font-weight: 600;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Admin Tables & Lists Premium */
.products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.products-table th {
    background-color: var(--background);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.73rem;
    letter-spacing: 0.8px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.products-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: var(--secondary);
    font-size: 0.95rem;
    vertical-align: middle;
}

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

.products-table tr:hover td {
    background-color: #fcfdfe;
}

.table-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.table-img:hover {
    transform: scale(1.1);
}

/* Status Badges Refined */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.status-active {
    background-color: rgba(37, 211, 102, 0.1);
    color: #1e8e49;
}

.status-inactive {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

/* Action Buttons Refined */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.action-buttons .btn-sm:hover {
    transform: translateY(-2px);
}

.form-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

.form-actions {
    display: flex;
    gap: 10px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

/* Trust Signals (Mercado Livre Style) */
.trust-signal-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 20px 0;
    font-size: 0.88rem;
    color: var(--secondary);
    line-height: 1.35;
}

.trust-highlight {
    color: #00a650;
    font-weight: 600;
    font-family: var(--font-product);
}

.trust-signal-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.product-image, .product-card {
    cursor: pointer;
}

.products-table th, .products-table td {
    padding: 15px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.products-table th {
    font-weight: 600;
    color: var(--secondary);
    background-color: transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table tr {
    transition: var(--transition);
}

.products-table tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.table-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: rgba(37, 211, 102, 0.15);
    color: #1b9c4b;
}

.status-inactive {
    background-color: var(--border);
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}



@media (max-width: 768px) {
    .header-content {
        height: auto;
        padding: 12px 0;
    }
    
    .header-content h1 {
        font-size: 1.1rem;
    }
    
    .store-logo {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .store-banner img {
        max-height: 200px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
    
    .brand-container {
        justify-content: center;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 20px 0;
    }
    
    .filters-section select {
        width: 100%;
    }
    
    /* Rule removed to allow 2-column layout */

    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .products-table th, .products-table td {
        padding: 10px;
    }

    .table-img {
        width: 40px;
        height: 40px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Adjustments for Header Search */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        min-height: auto;
    }
    
    .brand-container {
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .header-actions .search-box {
        flex: 1;
        max-width: none;
    }
    
    .cart-icon {
        padding: 5px;
        flex-shrink: 0;
    }
}


/* --- Admin Panel Components (Base & Responsive) --- */
.mobile-menu-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    height: 70px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 280px !important;
        height: 100% !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 9999 !important;
        box-shadow: none !important;
        display: block !important;
        overflow-y: auto !important;
    }

    .admin-sidebar.active {
        transform: translateX(0) !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.3) !important;
    }

    .admin-main-content {
        margin-left: 0 !important;
        padding: 20px !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .mobile-close-btn {
        display: block !important;
    }

    .admin-top-bar {
        padding: 10px 0 !important;
    }

    .top-bar-actions .btn {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }
}

/* Schedule Grid */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--background);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
    gap: 10px;
}
.day-label {
    font-weight: 600;
    min-width: 80px;
    color: var(--secondary);
}
.time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.time-inputs input[type="time"] {
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}
.closed-toggle {
    margin-left: 10px;
}
@media (max-width: 480px) {
    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .time-inputs {
        width: 100%;
        justify-content: space-between;
    }
}

/* Store Status Badge */
.store-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 15px;
    text-transform: uppercase;
}
.store-status-badge.open {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}
.store-status-badge.closed {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}
.store-status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.store-status-badge.open::before { background-color: #25D366; box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2); }
.store-status-badge.closed::before { background-color: #e74c3c; }

@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; }
    .store-status-badge { order: 3; width: 100%; margin-left: 0; margin-top: 10px; justify-content: center; }
}

/* Product Share Button & Animations */
.product-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 5;
    color: var(--secondary);
    font-size: 1rem;
}
.product-share-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

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

.product-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Staggered animation for products */
.products-grid .product-card:nth-child(1) { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.2s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.3s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.4s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.5s; }
.products-grid .product-card:nth-child(n+6) { animation-delay: 0.6s; }

/* Share Modal / Toast */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.share-toast.show {
    opacity: 1;
    bottom: 40px;
}


/* Share button icon color theming */
:root {
    --share-btn-color: #ffffff;
}
.product-share-btn {
    color: var(--share-btn-color) !important;
}
.product-share-btn svg {
    stroke: var(--share-btn-color) !important;
}

/* Category Icons Styling */
.category-filters {
    display: flex;
    gap: 20px !important;
    overflow-x: auto;
    padding: 10px 5px 20px 5px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-filters::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 75px;
    transition: transform 0.2s ease;
    border: none;
    background: transparent;
    padding: 0;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--category-bg, var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 3px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle span {
    font-size: 1.5rem;
    color: var(--category-icon-color, var(--text-main));
}

.category-item.active .category-circle {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
    transform: scale(1.05);
}

.category-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    white-space: nowrap;
}

.category-item.active .category-label {
    color: var(--primary);
}

/* Product Details Modal - Mercado Livre Style */
.product-details-modal {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    padding: 0;

/* --- Base Details Action (Desktop first) --- */
.details-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.details-action .btn-block {
    margin-bottom: 0;
}
/* ------------------------------------------- */
    overflow-y: auto !important;
    position: relative;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
}

.modal-mobile-handle {
    display: none;
}

.details-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 100;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
}

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

/* Layout Desktop */
@media (min-width: 769px) {
    .product-details-grid {
        display: grid;
        grid-template-columns: 80px 1fr 400px;
        gap: 20px;
        padding: 30px;
    }

    .details-thumbnails {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 500px;
        overflow-y: auto;
        padding-right: 5px;
    }
    
    .details-thumbnails::-webkit-scrollbar {
        width: 4px;
    }
    .details-thumbnails::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

    .details-thumb {
        width: 60px;
        height: 60px;
        border: 2px solid var(--border);
        border-radius: 4px;
        cursor: pointer;
        object-fit: contain;
        transition: all 0.2s;
        background: white;
        flex-shrink: 0;
    }

    .details-thumb:hover, .details-thumb.active {
        border-color: var(--primary);
    }

    .details-main-img-container {
        display: flex;
        justify-content: center;
        align-items: center;
        background: white;
        min-height: 400px;
        position: relative;
    }

    .details-main-img {
        max-width: 100%;
        max-height: 500px;
        object-fit: contain;
        display: block;
    }

    .details-mobile-carousel {
        display: none !important;
    }

    .details-dots {
        display: none !important;
    }

    .details-info {
        padding-left: 20px;
        border-left: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        max-height: 600px;
        overflow-y: auto;
    }
}

/* Layout Mobile */
@media (max-width: 768px) {
    .product-details-modal {
        width: 100%;
        max-height: 94vh;
        height: auto;
        top: auto;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        display: none; /* Controlled by .active and display !important in next rule */
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
        visibility: hidden;
        margin: 0;
        overflow: hidden !important; /* The BODY inside will scroll */
    }
    
    .product-details-modal.active {
        transform: translateY(0);
        visibility: visible;
        display: flex !important;
    }

    .modal-mobile-handle {
        display: block;
        width: 40px;
        height: 5px;
        background: var(--border);
        border-radius: 10px;
        margin: 12px auto;
        flex-shrink: 0;
    }
    
    .product-details-body {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 120px; /* Increased to avoid covering content with sticky footer */
    }

    .details-action {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 12px 20px 20px !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        margin: 0 !important;
        border-top: 1px solid var(--border) !important;
    }
    
    .details-action .btn {
        margin: 0 !important;
        flex: 1 !important;
        font-size: 1rem !important;
        height: 50px !important;
        border-radius: 12px !important;
    }
    
    .details-action .btn-outline {
        flex: 0 0 50px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8f9fa !important;
        border-color: #eee !important;
    }
    
    .details-action .btn-outline span {
        display: none;
    }
    
    .details-action .btn-outline svg {
        margin: 0 !important;
        color: var(--text-main);
    }
    .product-details-grid {
        display: flex;
        flex-direction: column;
    }

    .details-thumbnails {
        display: none; /* Hide sidebar thumbs on mobile */
    }

    .details-main-img {
        display: none !important;
    }

    .details-main-img-container {
        width: 100%;
        aspect-ratio: 1/1;
        position: relative;
        overflow: hidden;
        background: white;
    }

    .details-mobile-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        height: 100%;
    }

    .details-mobile-carousel::-webkit-scrollbar { display: none; }

    .details-mobile-slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .details-mobile-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .details-info {
        padding: 20px;
    }
}

.details-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.details-bottom-content {
    padding: 0 30px 40px;
}

@media (max-width: 768px) {
    .details-bottom-content {
        padding: 0 15px 50px; /* Extra bottom space before the fixed footer area */
    }
}

/* Accordion Styles (Mercado Livre inspired) */
.details-accordion {
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

.accordion-header .details-section-title {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.accordion-header .chevron-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-header.active .chevron-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.accordion-header.active + .accordion-content {
    border-color: var(--border);
}

.details-description {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.8;
    white-space: pre-line;
}

.details-price-row {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--input-bg);
    border-radius: 8px;
}

.details-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    display: block;
}

.details-current-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.details-installments {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.details-installments strong {
    color: #2e7d32; /* Succes/Healthy Green */
}

.details-urgency {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.details-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 25px;
    padding: 15px 0;
    border-top: 1px dashed var(--border);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.trust-badge svg {
    color: #27ae60;
}

.trust-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .details-trust-badges {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
    .trust-badge {
        flex-direction: row;
        text-align: left;
    }
}

.details-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.details-variations {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.variation-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Base Desktop Details Action moved up */

.details-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.details-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s;
}

.details-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Details Carousel Controls */
.details-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--secondary);
}

.details-carousel-btn.prev { left: 10px; }
.details-carousel-btn.next { right: 10px; }

@media (min-width: 769px) {
    .details-carousel-btn { display: none; }
}

/* Swatches */
.swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.swatch-item {
    min-width: 45px;
    height: 45px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.swatch-item:hover {
    border-color: var(--primary);
}

.swatch-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.swatch-pill {
    min-width: 70px;
    height: 38px;
    border-radius: 20px;
}

/* Modal Scrollbar Polish */
.product-details-modal::-webkit-scrollbar {
    width: 6px;
}

.product-details-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.product-details-modal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.product-details-modal::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Related Products */
.related-products-section {
    margin-top: 30px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.related-item {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-item-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* Cart Free Shipping Bar */
.free-shipping-wrapper {
    padding: 0 20px;
    margin-bottom: 20px;
}

.free-shipping-container {
    background: #f8f9fa;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.free-shipping-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    display: block;
}

.progress-bar-bg {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease-out;
}

.free-shipping-success {
    color: #27ae60;
    font-weight: 700;
}

/* Empty Cart Premium */
.empty-cart-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-cart-icon {
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-cart-premium h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.empty-cart-premium p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    max-width: 250px;
}

/* --- Phase 5: Aesthetic & UI Polish --- */

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

.pulse-animation {
    animation: pulse-cart 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation: shimmer 1.2s linear infinite forwards;
    transition: opacity 0.3s ease;
}

.shimmer img {
    opacity: 0;
}

/* Refined Typography */
h1, h2, h3 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    letter-spacing: -0.3px;
}

/* Button Refinement */
.btn {
    letter-spacing: 0.2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
}

/* Horizontal Category Scroll Polish */
.category-filters {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Swatches Refinement */
.swatch-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.swatch-item:hover:not(.active) {
    border-color: var(--text-muted);
    transform: scale(1.05);
}

.swatch-item.active {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.empty-cart-premium .btn {
    width: 100%;
    max-width: 200px;
}
/* --- Mobile UX Enhancement: Floating Bottom Cart & Search Focus --- */

/* 1. Mobile Cart Float */
.mobile-cart-float {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1040;
    display: none; /* Desktop hidden */
    width: auto;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.15));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

@media (max-width: 768px) {
    .mobile-cart-float {
        display: block;
    }
    
    .mobile-cart-float.hidden {
        display: none !important;
    }
    
    /* Auto-hide when any modal is open to avoid overlap */
    .modal-overlay.active ~ .mobile-cart-float,
    .cart-overlay.active ~ .mobile-cart-float {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(20px);
    }
}

.mobile-cart-btn-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 22px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mobile-cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.mobile-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--cart-badge-color, #e74c3c);
    color: white;
    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 white;
}

.mobile-cart-text {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
    letter-spacing: -0.3px;
}

/* 2. Header & Search Refinement for Mobile */
@media (max-width: 768px) {
    .main-header {
        padding: 5px 0;
    }
    
    .header-content {
        gap: 10px !important;
        padding: 8px 15px !important;
    }

    /* Hide the old cart icon at the top */
    .header-actions #cartIcon {
        display: none !important;
    }
    
    .header-actions {
        flex: 1;
        justify-content: stretch;
    }
    
    .header-actions .search-box {
        width: 100%;
    }
    
    .header-actions .search-box input {
        height: 44px;
        font-size: 0.95rem;
        background: rgba(0,0,0,0.03); /* Subtle background for better contrast */
    }

    .brand-container {
        padding-bottom: 5px;
    }
    
    .brand-container h1 {
        font-size: 1.2rem !important;
    }
    
    .store-logo {
        width: 45px !important;
        height: 45px !important;
    }
    
    .store-status-badge {
        font-size: 0.7rem !important;
        padding: 2px 8px !important;
    }
}

/* Ensure the floating WA button doesn't overlap the new cart */
@media (max-width: 768px) {
    .floating-wa {
        bottom: 90px !important; /* Move it up */
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }
}

/* --- Reports Section Premium Styles --- */
#section-reports {
    animation: fadeIn 0.4s ease-out;
}

.report-filter {
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.report-filter.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2) !important;
}

.stats-grid {
    margin-top: 10px;
}

.stats-card {
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

.stats-card h3 {
    color: var(--secondary);
    font-weight: 800;
    font-size: 2rem !important;
}

.stats-card p {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.reports-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

#reportsEventList td {
    vertical-align: middle;
    padding: 15px;
}

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

/* Color Input Group */
.color-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    transition: var(--transition);
    margin-top: 5px;
}

.color-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
}

.color-picker-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.color-picker-wrapper input[type="color"] {
    width: 140%;
    height: 140%;
    margin: -20% 0 0 -20%;
    border: none;
    cursor: pointer;
}

.hex-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-family: 'Outfit', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
}

.hex-input:focus {
    outline: none !important;
    box-shadow: none !important;
}


/* Dashboard Grid & Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 10px;
}

.metric-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.metric-card.highlight {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(37, 211, 102, 0.03) 100%);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.metric-info {
    flex: 1;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.metric-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    padding: 16px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

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

.activity-item:hover {
    background: rgba(0,0,0,0.01);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--secondary);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .dashboard-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}



/* Premium Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    color: var(--secondary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid var(--primary);
    animation: toastSlideIn 0.4s forwards;
}

.toast.removing {
    transform: translateX(120%);
    opacity: 0;
}

@keyframes toastSlideIn {
    to { transform: translateX(0); }
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

/* Toast Variants */
.toast-success { border-left-color: #25D366; }
.toast-error { border-left-color: #e74c3c; }
.toast-warning { border-left-color: #f1c40f; }
.toast-info { border-left-color: #3498db; }

.toast-success .toast-icon { color: #25D366; }
.toast-error .toast-icon { color: #e74c3c; }
.toast-warning .toast-icon { color: #f1c40f; }
.toast-info .toast-icon { color: #3498db; }

/* --- Premium Skeleton Loading (Shimmer) --- */
.skeleton-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.03);
    pointer-events: none;
    position: relative;
    height: 100%;
}

.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius) var(--radius) 0 0;
}

.skeleton-info {
    padding: 12px 15px;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-line.title { width: 80%; }
.skeleton-line.description { width: 100%; height: 10px; opacity: 0.6; }
.skeleton-line.price { width: 40%; height: 20px; margin-top: 15px; }

/* --- Premium Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Premium Button Loading States --- */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
}


/* --- Premium Product Details Modal --- */
.product-details-modal {
    max-width: 1000px !important;
    width: 95% !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: var(--radius) !important;
}

.product-details-body {
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.details-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.product-details-grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 0;
}

.details-thumbnails {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.details-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.details-thumb.active {
    border-color: var(--primary);
}

.details-main-img-container {
    padding: 20px;
    background: #fbfcfd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.details-main-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.details-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-name {
    font-family: var(--font-product);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.2;
}

.details-price-row {
    margin: 10px 0;
}

.details-current-price {
    font-family: var(--font-product);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.details-original-price {
    font-family: var(--font-product);
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 10px;
}

/* Variations Swatches */
.swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.swatch-item {
    font-family: var(--font-product);
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.swatch-item.active {
    border-color: var(--primary);
    background: rgba(37, 211, 102, 0.05);
    color: var(--primary);
}

.swatch-pill {
    border-radius: 20px;
}

.details-description, 
.related-item-name, 
.related-item-price, 
.details-section-title,
.details-installments {
    font-family: var(--font-product) !important;
}

/* Trust Signals */
.trust-signal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(37, 211, 102, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.trust-highlight {
    font-weight: 700;
    color: #00a650;
}

/* Mobile Adjustments for Modal */
@media (max-width: 768px) {
    .product-details-grid {
        grid-template-columns: 1fr;
    }

    .details-thumbnails {
        display: none;
    }

    .details-main-img-container {
        padding: 0;
        aspect-ratio: 1/1;
    }

    .details-main-img {
        display: none; /* Inverted: use carousel on mobile */
    }

    .details-mobile-carousel {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        width: 100%;
        height: 100%;
    }

    .details-mobile-slide {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .details-mobile-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .details-info {
        padding: 20px;
    }

    .details-name {
        font-size: 1.5rem;
    }

    .details-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }

    .details-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border);
        transition: var(--transition);
    }

    .details-dot.active {
        background: var(--primary);
        width: 16px;
        border-radius: 4px;
    }
    
    .modal-mobile-handle {
        width: 40px;
        height: 4px;
        background: #e1e8eb;
        border-radius: 2px;
        margin: 10px auto;
        display: block;
    }
}

.details-mobile-carousel {
    display: none;
}

/* ==========================================================================
   FINAL OVERRIDES - ENSURE 2-COLUMN GRID ON MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 8px !important;
    }

    .product-card {
        border-radius: 12px !important;
    }

    .product-info {
        padding: 10px !important;
        gap: 4px !important;
    }

    .product-name {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        min-height: 2.4em !important;
        color: var(--text-main) !important;
    }

    .product-description {
        display: none !important; /* Hide description in grid for better density on phones */
    }

    .product-price {
        font-size: 1.1rem !important;
    }

    .product-badge {
        top: 5px !important;
        left: 5px !important;
        padding: 3px 6px !important;
        font-size: 0.6rem !important;
    }

    .product-card-action {
        padding: 0 10px 10px !important;
    }

    .product-card-action .btn {
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
        height: auto !important;
        min-height: 40px !important;
    }

    .product-variation {
        margin-bottom: 5px !important;
    }

    .product-variation select {
        padding: 4px !important;
        font-size: 0.75rem !important;
        height: 28px !important;
    }
    
    .product-variation label {
        font-size: 0.65rem !important;
    }

    .details-name {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .back-to-top {
        bottom: 160px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 10001 !important;
    }

    .back-to-top.visible {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
}

/* --- PRODUCT STORIES (INSTAGRAM STYLE) --- */
.stories-container {
    width: 100%;
    overflow-x: auto;
    padding: 15px 5px 25px 5px;
    margin-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.stories-wrapper {
    display: flex;
    gap: 15px;
}

.story-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 85px;
    flex-shrink: 0;
}

.story-ring {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    position: relative;
    transition: transform 0.3s ease;
}

.story-ring:not(.watched) {
    animation: story-pulse 2s infinite;
}

.story-ring.watched {
    background: var(--border);
}

.story-circle:hover .story-ring {
    transform: scale(1.05);
}

.story-img-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    background: white;
}

.story-img-container img, .story-img-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Story Player Overlay */
.story-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-player-overlay.active {
    display: flex;
    opacity: 1;
}

.story-player-content {
    width: 100%;
    max-width: 450px;
    height: 100%;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .story-player-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

.story-progress-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 100;
}

.story-progress-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    flex: 1;
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width linear;
}

.story-header-player {
    position: absolute;
    top: 25px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.story-owner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.story-owner img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.story-owner span {
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.story-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.story-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-media-container img, .story-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-product-footer {
    position: absolute;
    bottom: 40px;
    left: 15px;
    right: 15px;
    z-index: 100;
    animation: slideUp 0.5s ease;
}

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

.story-nav-prev, .story-nav-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 90;
    cursor: pointer;
}

.story-nav-prev { left: 0; }
.story-nav-next { right: 0; }

/* --- REAL SCARCITY GATILHOS --- */
.scarcity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    animation: flashScale 2s infinite;
}

@keyframes flashScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.activity-toast {
    position: fixed;
    bottom: 85px;
    left: 20px;
    background: white;
    padding: 12px 18px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(150px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
}

@media (max-width: 768px) {
    .activity-toast {
        bottom: 110px; /* Acima do botão do carrinho mobile */
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        padding: 8px 15px;
        gap: 8px;
    }
    .activity-toast-img {
        width: 32px;
        height: 32px;
    }
    .activity-toast-text {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.activity-toast.visible {
    transform: translateY(0);
}

.activity-toast-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-toast-text {
    font-size: 0.85rem;
    color: var(--secondary);
    line-height: 1.3;
}

.activity-toast-text b {
    color: var(--primary);
}

/* --- ANIMATIONS --- */
@keyframes story-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 39, 67, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 39, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 39, 67, 0); }
}

/* --- CART RECOVERY --- */
.cart-recovery-bubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 280px;
}

.cart-recovery-bubble-icon {
    font-size: 1.5rem;
}

.cart-recovery-bubble-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.2;
}

.cart-recovery-bubble-text small {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.exit-intent-modal {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .exit-intent-modal {
    transform: scale(1);
}

@media (max-width: 768px) {
    .cart-recovery-bubble {
        bottom: 110px;
        left: 15px;
        right: 15px;
        max-width: none;
    }
}

.exit-intent-coupon-box {
    background: #f8f9fa;
    border: 2px dashed var(--primary);
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.4rem;
    display: inline-block;
    padding: 10px 40px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.1);
    letter-spacing: 2px;
    position: relative;
}

.exit-intent-coupon-box::before,
.exit-intent-coupon-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.exit-intent-coupon-box::before { left: -12px; }
.exit-intent-coupon-box::after { right: -12px; }

/* Modal Overlay - usado pela Roleta e outros modais genéricos */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay .modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.modal-overlay .modal-close:hover {
    background: rgba(0,0,0,0.15);
}

@keyframes modalFadeIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Wheel of Fortune (Roleta de Descontos) */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0,0,0,0.15), 0 0 0 10px white;
    overflow: visible;
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 5s cubic-bezier(0.15, 0, 0.15, 1);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.wheel-pointer::after {
    content: '▼';
    font-size: 40px;
    color: #e74c3c;
}

.btn-spin {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 800;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-spin:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.btn-spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}

#wheelResult {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    min-height: 1.5em;
}

@media (max-width: 480px) {
    .wheel-container {
        width: 250px;
        height: 250px;
    }
}


/* --- Auth & Profile Styles --- */
.header-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.header-user-btn:hover {
    background: rgba(0,0,0,0.05);
}

.header-user-btn svg {
    color: #25D366;
}

.auth-modal {
    max-width: 400px !important;
    padding: 30px !important;
}

.auth-view h2 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1.5rem;
}

.auth-view p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.auth-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #25D366;
    font-weight: 700;
    text-decoration: none;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    font-size: 3rem;
    background: #f0f7f4;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Table Actions & Affiliate Buttons */
.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-actions .btn {
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border-width: 1.5px;
}

.table-actions .btn svg {
    width: 16px;
    height: 16px;
}

.btn-outline-primary {
    background-color: transparent !important;
    border: 1.5px solid #3498db !important;
    color: #3498db !important;
}

.btn-outline-primary:hover {
    background-color: #3498db !important;
    color: white !important;
}

.btn-outline-danger {
    background-color: transparent !important;
    border: 1.5px solid #ff4757 !important;
    color: #ff4757 !important;
}

.btn-outline-danger:hover {
    background-color: #ff4757 !important;
    color: white !important;
}

.btn-whatsapp-sm {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
}

.btn-whatsapp-sm:hover {
    background: #128C7E !important;
    transform: translateY(-1px);
}
