:root {
    /* LIGHT THEME (DEFAULT) */
    --bg-color: #f8fafc;
    --bg-surface: #ffffff;
    --bg-secondary: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.4);

    --border-color: #e2e8f0;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

html.dark {
    /* DARK THEME */
    --bg-color: #0b1120;
    --bg-surface: #1e293b;
    --bg-secondary: #0f172a;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --accent-primary: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-glow: rgba(96, 165, 250, 0.6);

    --border-color: #334155;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.6;
}

/* =========================================
   UTILITIES
   ========================================= */
.text-accent {
    color: var(--accent-primary);
}

.text-center {
    text-align: center;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand span {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-primary);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

html.dark .icon-sun {
    display: block;
}

html.dark .icon-moon {
    display: none;
}

html:not(.dark) .icon-sun {
    display: none;
}

html:not(.dark) .icon-moon {
    display: block;
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        right: 1.5rem;
        background: var(--bg-surface);
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border-color);
        display: none;
        min-width: 200px;
        text-align: right;
    }

    nav.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .menu-toggle {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   MAIN CONTENT
   ========================================= */
main {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-primary), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Slider Section */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    aspect-ratio: 21/9;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slides img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
}

.slider button {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider button:hover {
    background: var(--bg-surface);
    transform: scale(1.1);
    color: var(--accent-primary);
}


/* =========================================
   PRODUCT GRID & CARDS
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    width: 100%;
    padding: 0;
}

@media (min-width: 576px) {
    .grid {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.card {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

@media (min-width: 768px) {
    .card {
        border-radius: 16px;
    }
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 20px var(--accent-glow);
    border-color: var(--accent-primary);
}

/* Card Image */
.card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 0.5s ease;
    opacity: 0;
    filter: blur(4px);
}

.card .thumb img.loaded {
    opacity: 1;
    filter: blur(0);
}

.card:hover .thumb img.loaded {
    transform: scale(1.05);
}

/* Skeleton Loading */
.skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Card Content */
.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.card .title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: auto;
    line-height: 1.3;
}

@media (min-width: 576px) {
    .card .title {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .card .title {
        font-size: 1.1rem;
    }
}

.card .meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card .price {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
}

@media (min-width: 576px) {
    .old-price {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .old-price {
        font-size: 0.8rem;
    }
}

.new-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

@media (min-width: 576px) {
    .new-price {
        font-size: 1.05rem;
    }
}

@media (min-width: 768px) {
    .new-price {
        font-size: 1.2rem;
    }
}

/* Card Buttons */
.btn-row {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

@media (min-width: 576px) {
    .btn-row {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
}

.btn {
    flex: 1;
    padding: 0.45rem 0.25rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .btn {
        padding: 0.55rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

@media (min-width: 768px) {
    .btn {
        padding: 0.6rem;
        font-size: 0.875rem;
    }
}

.btn.primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn.ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* =========================================
   COUNTER SECTION
   ========================================= */
.counter-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 5rem auto;
    padding: 3rem 1.5rem;
    background: var(--bg-surface);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.counter-box {
    text-align: center;
}

.counter-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 0;
    line-height: 1;
}

.counter-box p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-about p,
.footer-contact p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-contact h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   FLOATING ACTION BUTTONS
   ========================================= */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
}

.wa-float a {
    display: flex;
    align-items: center;
    background: #25D366;
    /* WhatsApp Green */
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 10px;
}

.wa-float a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
    background: #128C7E;
}

.wa-float svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.wa-float .wa-text {
    font-size: 1rem;
}

@media (max-width: 640px) {
    .wa-float .wa-text {
        display: none;
        /* Hide text on mobile for compact button */
    }

    .wa-float a {
        padding: 14px;
    }
}