@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* --- COLOR PALETTE --- */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;

    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --text-muted: #555555;

    --accent-primary: #00ff88;
    --accent-primary-hover: #00cc6a;
    --accent-secondary: #00ddee;

    --accent-glow: rgba(0, 255, 136, 0.15);
    --accent-glow-strong: rgba(0, 255, 136, 0.4);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.05);

    --glass-bg: rgba(5, 5, 5, 0.8);

    --success: #00ff88;
    --danger: #ff4444;
    --warning: #ffc107;
    --info: #00ddee;

    /* --- LAYOUT --- */
    --container-width: 1280px;
    --header-height: 80px;
    --sidebar-width: 260px;

    /* --- RADIUS --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* --- TRANSITIONS --- */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Flexbox */
.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.w-100 {
    width: 100%;
}

.w-50 {
    width: 50%;
}

/* Spacing */
.m-0 {
    margin: 0 !important;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* Text & Visuals */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-accent {
    color: var(--accent-primary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Navbar */
.navbar {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    line-height: 1;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow-strong);
    color: #000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--bg-card-hover);
}

.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

textarea.form-control {
    resize: vertical;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-secondary);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.table tr:hover td {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

/* Alerts & Badges */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================
   PAGE SPECIFIC
   ========================================= */

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}

.hero-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-row {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    /* Removed negative letter-spacing related to "broken" look */
    letter-spacing: -1px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    /* Explicit gap between solid and outline text */
}

/* Mobile responsive adjustment for title */
@media (max-width: 768px) {
    .hero-row {
        font-size: 2.8rem;
        flex-direction: column;
        gap: 0.2rem;
        line-height: 1;
        margin-bottom: 1rem;
    }
}

.hero-highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-primary);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 1.25rem -1.5rem;
    height: 280px;
    /* Fixed height for alignment */
    background: rgba(255, 255, 255, 0.03);
    /* Transparent frosted */
    backdrop-filter: blur(10px);
    /* Glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Shows full natural image */
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price-tag {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Product Details Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    width: calc(100% - var(--sidebar-width));
}

.admin-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
    transform: translateX(5px);
}

.admin-table-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Admin Tabs */
.sub-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sub-tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
}

.sub-tab:hover,
.sub-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Filter Buttons */
.filter-btn {
    transition: var(--transition-fast);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a:hover {
    color: var(--accent-primary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    /* Admin Tablet */
    .admin-sidebar {
        width: 80px;
        padding: 1rem 0.5rem;
    }

    .admin-sidebar .sidebar-menu-item span:last-child,
    .admin-sidebar .sidebar-brand div:last-child {
        display: none;
    }

    .admin-sidebar .sidebar-brand,
    .admin-sidebar .sidebar-menu-item {
        justify-content: center;
    }

    .admin-main {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        height: auto;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        background: var(--bg-secondary);
        padding: 1.5rem;
        border-radius: var(--radius-sm);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    /* General */
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Grids */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Utility Helpers */
    .mobile-flex-col {
        flex-direction: column;
    }

    .mobile-w-100 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* CUSTOM CHECKBOXES */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

.checkbox-container input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover .checkmark {
    border-color: var(--accent-primary);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-container input:checked~.checkbox-label {
    color: var(--text-primary);
}

/* PRODUCT CARD REFINEMENTS */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    cursor: pointer;
}

.product-thumb-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

/* .product-thumb removed to prevent conflict with main product styles */
.product-thumb {
    position: relative;
    /* Reset from absolute */
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb {
    transform: scale(1.08);
}

.product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}

.product-actions .btn {
    padding: 0.6rem 0;
    font-size: 0.8rem;
    width: 100%;
}


/* ADMIN PANEL OVERRIDES */
.admin-layout {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.admin-sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    z-index: 900;
}

/* =========================================
   PRODUCT LIST VIEW & SIDEBAR
   ========================================= */

/* Improved Sticky Sidebar */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    /* Fill viewport height minus header */
    overflow-y: auto;
    /* Scroll internally */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
    padding-right: 0.5rem;
}

/* Scrollbar Styling */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

/* View Mode Toggles */
.view-mode-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-mode-btn:hover,
.view-mode-btn.active {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Product List View */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-list .product-card {
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
    height: auto;
    min-height: 220px;
}

.product-list .product-image-container {
    width: 240px;
    height: 240px;
    margin: -1.5rem 2rem -1.5rem -1.5rem;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    flex-shrink: 0;
}

.product-list .product-details {
    padding: 1rem 0;
    justify-content: space-between;
    height: 100%;
}

.product-list .product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-list .product-category {
    margin-bottom: 0.5rem;
}

.product-list .product-actions {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-list .product-actions .btn {
    width: auto;
    padding: 0.8rem 2.5rem;
}

/* Responsive List View adjustment */
@media (max-width: 768px) {
    .product-list .product-card {
        flex-direction: column;
    }

    .product-list .product-image-container {
        width: calc(100% + 3rem);
        margin: -1.5rem -1.5rem 1.25rem -1.5rem;
        height: 250px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .product-list .product-actions {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .product-list .product-actions .btn {
        width: 100%;
    }
}/* =========================================
   MAIN SLIDER (21:9)
   ========================================= */
.main-slider {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    /* Adjusted spacing */
    max-width: var(--container-width);
    /* Enforce 21:9 Aspect Ratio */
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    /* Stack them */
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
    /* Only active takes space in flow if needed, but absolute is better for fading */
    position: absolute;
    z-index: 2;
}

/* Fix for stacking: */
.main-slider .slide {
    position: absolute;
    opacity: 0;
    z-index: 1;
}

.main-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures fill */
}

.slider-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    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;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-primary);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active-dot,
.dot:hover {
    background-color: var(--accent-primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .main-slider {
        margin: 1rem 0;
        border-radius: 0;
        /* Full width on mobile often looks better without radius if edge-to-edge */
        aspect-ratio: 16 / 9;
        /* Allow taller on mobile? User asked for 21:9 only though. Keeping 21:9 might be too short. */
        aspect-ratio: 21 / 9;
        /* Stick to request */
    }
}
/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-banner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    /* Enforce 16:9 */
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.8;
    /* Default slight dim */
    background: var(--bg-card);
}

.category-banner:hover {
    transform: translateY(-5px);
    opacity: 1 !important;
}

.category-banner.active {
    opacity: 1 !important;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-banner:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.category-overlay span {
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-overlay.static {
    background: var(--bg-card);
}
