/* --- ROOT LIGHT MODE VARIABLES --- */
:root {
    --bg-main: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e9ecef;
    --accent-red: #e63946;
    --accent-green: #2a9d8f;
    --accent-blue: #0284c7;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- LIGHT HEADER / NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.logo-sub {
    font-size: 13px;
    background: #0f172a;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.offer-badge {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* --- HERO SECTION --- */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero {
    text-align: center;
    padding: 35px 15px 25px;
}

.hero-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    font-weight: 700;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 6px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.highlight-price {
    color: var(--accent-red);
    font-weight: 800;
    font-size: 18px;
}

.old-price {
    text-decoration: line-through;
    font-size: 14px;
    opacity: 0.6;
}

.delivery-pill {
    display: inline-block;
    margin-top: 12px;
    background: rgba(42, 157, 143, 0.1);
    border: 1px solid rgba(42, 157, 143, 0.3);
    color: var(--accent-green);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

/* --- CONTROLS SECTION --- */
.controls-container {
    margin: 20px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.category-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}

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

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.card-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.product-condition {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-red);
}

.original-price {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.stock-status {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

.view-btn {
    margin-top: auto;
    background: var(--accent-blue);
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.view-btn:hover {
    background: #0369a1;
}

/* --- FOOTER --- */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--card-border);
    padding: 30px 16px;
    margin-top: 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 12px;
    color: var(--text-secondary);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card-details {
        padding: 12px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 16px;
    }
}
/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-text strong {
    color: var(--text-primary);
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.cookie-btn:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
