/* --- CORE VARIABLES --- */
:root {
    /* Palette */
    --bg-dark: #0f1115;
    --bg-darker: #050507;

    --text-main: #f0f4f8;
    --text-muted: #94a3b8;

    --primary: #fb923c;
    /* Bright Orange */
    --primary-glow: rgba(251, 146, 60, 0.4);
    --secondary: #38bdf8;
    /* Cyan */

    --card-bg: rgba(30, 41, 59, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);

    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);

    --radius: 16px;
    --radius-sm: 8px;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    --hover-gradient: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --glow-sm: 0 0 12px rgba(251, 146, 60, 0.25);
}

/* --- GLOBAL RESETS & TYPOGRAPHY --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(251, 146, 60, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul,
li {
    list-style: none;
}

/* --- LAYOUT UTILS --- */
.wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- HEADER & BRAND --- */
header {
    margin-bottom: 40px;
    text-align: center;
}

.brand-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: padding;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- BANNER --- */
.banner {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    position: relative;
    background: var(--card-bg);
    animation: zoomIn 0.8s ease-out;
}

.banner img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.banner:hover img {
    transform: scale(1.02);
}

.fallback {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* --- NAVIGATION --- */
.main-nav {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 48px;

    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);

    animation: slideUp 0.6s ease-out 0.2s backwards;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: 99px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1e293b;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    min-width: 260px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
}

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

.dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-item.open .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.dropdown a:hover {
    background: rgba(251, 146, 60, 0.1);
    color: var(--primary);
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: -12px 0 28px;
}

.toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
}

.toolbar-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.toolbar-group select {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.toolbar-group select option {
    background: var(--bg-dark);
    color: #fff;
}

/* --- GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 146, 60, 0.3);
    box-shadow: var(--glow-sm), var(--shadow-lg);
    background: rgba(30, 41, 59, 0.8);
}

/* Stagger Animation for first few items */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fff;
    /* White bg for better product visibility */
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    padding: 10px;
    transition: transform 0.4s ease;
}

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

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #fff;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes price/cta down */
}

.price-tag {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-info {
    display: flex;
    flex-direction: column;
}

.discount-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 4px;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(239, 68, 68, 0.15);
    /* Red tint */
    color: #ef4444;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- CTA ACTIONS --- */
.cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.btn.primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn.primary:hover {
    background: var(--hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.4);
}

.btn.primary:hover::after {
    opacity: 1;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    width: 48px;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- FOOTER --- */
footer {
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-muted);
    margin: 0 8px;
}

footer a:hover {
    color: var(--secondary);
}

/* --- COOKIES --- */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
    min-width: 320px;
    max-width: 720px;
    width: calc(100% - 32px);
}

#cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#cookie-banner p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.cookie-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-details {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-muted);
}

.btn.ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.link-btn {
    background: none;
    border: none;
    color: var(--secondary);
    padding: 0;
    font-weight: 600;
    cursor: pointer;
}

.link-btn:hover {
    text-decoration: underline;
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .toolbar {
        justify-content: stretch;
    }

    .toolbar-group {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        flex-wrap: wrap;
        top: 10px;
        padding: 8px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .title h1 {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .banner {
        border-radius: var(--radius-sm);
    }
}

/* --- Page Specific --- */
.page-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    animation: fadeInUp 0.6s ease-out;
}

.page-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.page-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
