/* ============================================
   Lasanha de Parma — Sistema de Pedidos
   Design: Premium Italian Dark Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(28, 25, 22, 0.85);
    --bg-card-hover: rgba(38, 34, 28, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    --accent: #c8a96e;
    --accent-hover: #dabb7f;
    --accent-dark: #a88b50;
    --accent-glow: rgba(200, 169, 110, 0.25);
    --accent-soft: rgba(200, 169, 110, 0.08);
    
    --text-primary: #f5f0e8;
    --text-secondary: #a89b8c;
    --text-muted: #6b6158;
    --text-dark: #1a1a1a;
    
    --success: #4caf50;
    --success-soft: rgba(76, 175, 80, 0.15);
    --danger: #e74c3c;
    --danger-soft: rgba(231, 76, 60, 0.15);
    --warning: #f39c12;
    --warning-soft: rgba(243, 156, 18, 0.15);
    --info: #3498db;
    
    --border: rgba(200, 169, 110, 0.15);
    --border-hover: rgba(200, 169, 110, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(200, 169, 110, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --container-max: 1200px;
    --header-height: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Background Pattern ---------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(200, 169, 110, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(200, 169, 110, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    height: var(--header-height);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
}

.header-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(200, 169, 110, 0.3));
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(200, 169, 110, 0.5));
}

.header-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.header-title span {
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* ---------- Page Hero ---------- */
.page-hero {
    text-align: center;
    padding: 48px 0 32px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-hero h1 .accent {
    color: var(--accent);
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Steps Indicator ---------- */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(107, 97, 88, 0.2);
    transition: var(--transition);
}

.step.active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--border-hover);
}

.step.completed {
    color: var(--success);
    background: var(--success-soft);
    border-color: rgba(76, 175, 80, 0.3);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(107, 97, 88, 0.2);
    color: var(--text-muted);
}

.step.active .step-number {
    background: var(--accent);
    color: var(--text-dark);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-divider {
    width: 32px;
    height: 1px;
    background: rgba(107, 97, 88, 0.3);
}

/* ---------- Products Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* ---------- Product Card ---------- */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.product-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.product-card.out-of-stock {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(40%);
}

.product-card.out-of-stock::after {
    content: 'ESGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: var(--danger);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 3px;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.9), transparent);
    pointer-events: none;
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    z-index: 5;
}

.stock-badge.in-stock {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.stock-badge.low-stock {
    background: var(--warning-soft);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.stock-badge.no-stock {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ---------- Prep Type Selector ---------- */
.prep-selector {
    margin-bottom: 16px;
}

.prep-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.prep-options {
    display: flex;
    gap: 6px;
}

.prep-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.prep-option:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
    background: rgba(200, 169, 110, 0.05);
}

.prep-option.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 12px var(--accent-glow);
}

.prep-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* ---------- Quantity Selector ---------- */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.qty-selector:hover {
    border-color: var(--border-hover);
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 600;
}

.qty-btn:hover:not(:disabled) {
    background: var(--accent-soft);
    color: var(--accent);
}

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

.qty-btn:active:not(:disabled) {
    transform: scale(0.9);
}

.qty-value {
    width: 48px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 44px;
    line-height: 44px;
    font-family: var(--font-body);
}

.qty-value.has-value {
    color: var(--accent);
}

/* ---------- Qty Hint ---------- */
.qty-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition);
}

.qty-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.qty-hint a {
    color: var(--accent);
    text-decoration: none;
}

.qty-hint a:hover {
    text-decoration: underline;
}

/* ---------- Cart Summary Bar ---------- */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    transform: translateY(100%);
    transition: var(--transition);
}

.cart-bar.visible {
    transform: translateY(0);
}

.cart-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-count strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.cart-total {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-total .currency {
    color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(200, 169, 110, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    box-shadow: 0 6px 25px rgba(200, 169, 110, 0.4);
    transform: translateY(-2px);
}

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

.btn-secondary {
    background: rgba(200, 169, 110, 0.1);
    color: var(--accent);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(200, 169, 110, 0.2);
    border-color: var(--border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(107, 97, 88, 0.3);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-icon {
    font-size: 1.1em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- Navigation Buttons ---------- */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 100px;
    gap: 16px;
}

.nav-buttons .spacer {
    flex: 1;
}

/* ---------- Summary Page ---------- */
.summary-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.summary-section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Summary Items */
.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(107, 97, 88, 0.1);
}

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

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

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

.summary-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.summary-item-qty {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.summary-item-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
}

.summary-prep-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(200, 169, 110, 0.3);
    vertical-align: middle;
    margin-left: 6px;
}

/* Summary Total */
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--border);
}

.summary-total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-total-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ---------- Confirmation Page ---------- */
.confirmation {
    text-align: center;
    padding: 60px 0;
    max-width: 500px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-soft);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: var(--success);
    animation: scaleIn 0.5s ease;
}

.confirmation h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirmation .order-number {
    display: inline-block;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin: 16px 0;
}

.confirmation p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ---------- Empty Cart Message ---------- */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

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

.empty-message h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ---------- Alert Messages ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: var(--info);
}

.alert-warning {
    background: var(--warning-soft);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: var(--warning);
}

.alert-danger {
    background: var(--danger-soft);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--danger);
}

.alert-success {
    background: var(--success-soft);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--success);
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

/* ---------- Loading Spinner ---------- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(200, 169, 110, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ---------- WhatsApp Notice ---------- */
.whatsapp-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    font-size: 0.88rem;
    color: #25d366;
}

.whatsapp-notice a {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
}

.whatsapp-notice a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.2rem;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .steps {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .step {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
    
    .step-divider {
        width: 16px;
    }
    
    .cart-bar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .cart-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-bar .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .summary-item {
        flex-wrap: wrap;
    }
    
    .confirmation h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .page-hero {
        padding: 32px 0 24px;
    }
    
    .page-hero h1 {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-price {
        font-size: 1.3rem;
    }
    
    .summary-section {
        padding: 20px;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--accent);
    color: var(--text-dark);
}

/* ---------- Selection Warning Overlay ---------- */
.selection-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

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

.selection-warning-box {
    background: var(--bg-secondary);
    border: 2px solid var(--danger);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 0 40px rgba(231, 76, 60, 0.2), var(--shadow-lg);
}

.selection-warning-overlay.active .selection-warning-box {
    transform: translateY(0) scale(1);
}

.selection-warning-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: warningBounce 0.6s ease;
}

.selection-warning-box h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 10px;
}

.selection-warning-box p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.selection-warning-box .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
}

@keyframes warningBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

/* Highlight pulse for product cards */
.product-card.highlight-pulse {
    animation: highlightPulse 0.6s ease 3;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: var(--shadow-md);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 0 20px rgba(200, 169, 110, 0.4), var(--shadow-glow);
        border-color: var(--accent);
    }
}
