:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FFEDD5;
    --bg-primary: #ffffff;
    --bg-secondary: #F3F4F6;
    --bg-dark: #111827;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border: #E5E7EB;
    --shadow: rgba(0,0,0,0.1);
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-500: #737373;
    --neutral-900: #171717;
    --primary-500: #F97316;
    --primary-600: #EA580C;
    --surface-light: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-dark: #030712;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border: #374151;
    --shadow: rgba(0,0,0,0.3);
    --neutral-100: #262626;
    --neutral-200: #404040;
    --neutral-500: #a3a3a3;
    --neutral-900: #fafafa;
    --surface-light: #1f2937;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Almarai', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Bar */
.top-bar {
    background: var(--bg-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #9CA3AF;
    text-decoration: none;
    margin-left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar a:hover { color: var(--primary); }

.top-bar-actions {
    display: flex;
    gap: 1rem;
}

.top-bar-actions button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.top-bar-actions button:hover {
    background: var(--primary);
}

/* Header */
.header {
    background: var(--bg-primary);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-text span { color: var(--primary); }

/* Search */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    padding-left: 3rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    position: relative;
}

.header-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.header-btn:hover { color: var(--primary); }

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Navigation with Mega Menu */
.main-nav {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link i { font-size: 0.75rem; }

/* Mega Menu (Legendary Design) */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3000;
}

[data-theme="dark"] .mega-menu {
    background: rgba(17, 24, 39, 0.95);
}

/* Only open when nav item has 'open' class (set via JS) */
.nav-item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    body { padding-bottom: 64px; }
    .header-actions { gap: 0.5rem; }
    .header-btn span { display: none; }
    .header-btn i { font-size: 1.2rem; }
    .search-box { margin-top: 0.5rem; }
    .search-box input { height: 40px; font-size: 0.9rem; }
    .search-box button { width: 36px; height: 36px; }
    
    .hero-section { padding: 1.5rem 0; }
    .hero-slider-3d { height: 260px; }
    .hero-slide { width: 100%; left: 0; border-radius: 16px; }
    .hero-slide-content { padding: 1rem; }
    .hero-btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
    .hero-slide img { object-position: center; }
    
    .featured-3d-slider { height: 360px; }
    .featured-slide { width: 90vw; margin-left: calc(-0.5 * 90vw); height: 320px; }
    .featured-slide img { height: 200px; object-fit: cover; }
    
    .section { padding: 2rem 0; }
    .section-title { font-size: 1.25rem; }
    .view-all { font-size: 0.9rem; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-image { height: 180px; }
    .products-header { flex-wrap: wrap; gap: 0.75rem; flex-direction: column; align-items: stretch; }
    .products-count { width: 100%; }
    .sort-options { width: 100%; justify-content: flex-end; }
    .categories-slider { gap: 1rem; }
    .category-card { min-width: 140px; }
    .filter-section .filter-options,
    .filter-section .price-range { display: none; }
    .filter-section.open .filter-options,
    .filter-section.open .price-range { display: flex; }
    .filter-section.open .filter-title i { transform: rotate(180deg); }
    
    .footer { padding: 2rem 0 1.5rem; }
}

@media (max-width: 480px) {
    .hero-slider-3d { height: 220px; }
    .featured-3d-slider { height: 320px; }
    .featured-slide { height: 300px; }
    .featured-slide img { height: 180px; object-fit: cover; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-name { font-size: 1rem; }
    .current-price { font-size: 1.1rem; }
    .mobile-nav-link i { font-size: 1.2rem; }
    .page-header { padding: 2rem 0; }
    .page-title { font-size: 1.75rem; }
    .main-content { grid-template-columns: 1fr; }
    .sidebar { position: static; top: auto; }
    .products-header { flex-wrap: wrap; gap: 0.75rem; }
    .sort-options { width: 100%; justify-content: flex-end; }
}

.mega-menu-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 450px;
}

/* Mega Menu Sidebar */
.mega-sidebar {
    width: 320px;
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.mega-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.mega-sidebar-link i:first-child {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

html[dir="rtl"] .mega-sidebar-link i:first-child {
    margin-right: 0;
    margin-left: 10px;
}

.mega-sidebar-link .arrow-indicator {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.mega-sidebar-link:hover,
.mega-sidebar-link.active {
    color: var(--primary);
    background: var(--bg-primary);
}

.mega-sidebar-link:hover .arrow-indicator,
.mega-sidebar-link.active .arrow-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* Tablet tweaks */
@media (max-width: 992px) {
    .main-content { grid-template-columns: 1fr; }
    .sidebar { position: static; top: auto; }
    .products-header { flex-direction: column; align-items: stretch; gap: .75rem; }
    .products-count { width: 100%; }
    .sort-options { width: 100%; justify-content: flex-end; }
}

/* Mega Menu Content Area */
.mega-content-area {
    flex: 1;
    padding: 2.5rem;
    position: relative;
}

.mega-sub-content {
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    display: none;
}

.mega-sub-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: block;
}

.mega-content-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2.5rem;
    height: 100%;
}

.mega-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.mega-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Changed for LTR/RTL support handled by dir */
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

html[dir="rtl"] .mega-section-title::after {
    left: auto;
    right: 0;
}

.mega-links-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
    list-style: none;
}

.mega-links-list li a {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    padding: 0.5rem 0;
}

.mega-links-list li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

html[dir="rtl"] .mega-links-list li a:hover {
    transform: translateX(-5px);
}

/* Mega Banner Card */
.mega-banner-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mega-banner-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.3);
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.mega-banner-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.mega-banner-content h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.mega-banner-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.mega-banner-content a {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.mega-banner-content a:hover {
    transform: translateY(-5px);
}

.mega-banner-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 15rem;
    opacity: 0.15;
    transform: rotate(-15deg);
    z-index: 1;
}

html[dir="rtl"] .mega-banner-bg {
    right: auto;
    left: -20px;
    transform: rotate(15deg);
}

/* Mobile Side Menu (Legendary) */
.side-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%; /* Hidden by default */
    width: 85%;
    max-width: 400px;
    background: var(--bg-primary);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}

html[dir="ltr"] .side-menu {
    right: auto;
    left: -100%;
    border-right: 1px solid var(--border);
    box-shadow: 10px 0 40px rgba(0,0,0,0.2);
    transition: left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.side-menu.active {
    right: 0;
}

html[dir="ltr"] .side-menu.active {
    left: 0;
}

.side-menu-header {
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    padding: 2px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.close-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s;
}

.close-menu:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.side-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.menu-tab {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.menu-tab.active {
    background: var(--bg-primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.menu-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.menu-panel.active {
    display: block;
}

/* Legendary Mobile Categories */
.legendary-cat-list {
    list-style: none;
}

.l-cat-item {
    margin-bottom: 1rem;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.l-cat-item.expanded {
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--primary-light);
}

.l-cat-head {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}

.l-cat-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-left: 1rem;
}

html[dir="ltr"] .l-cat-icon {
    margin-left: 0;
    margin-right: 1rem;
}

.l-cat-name {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
}

.l-cat-arrow {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.l-cat-item.expanded .l-cat-arrow {
    transform: rotate(180deg);
}

.l-cat-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
}

.l-cat-item.expanded .l-cat-body {
    max-height: 1000px; /* Arbitrary large height */
}

.l-sub-group {
    padding: 0 1rem 1rem 1rem;
}

.l-sub-title {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
    text-decoration: none;
}

.l-sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.l-sub-links a {
    background: var(--bg-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
}

/* Legendary Main Menu List */
.legendary-nav-list {
    list-style: none;
}

.legendary-nav-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.legendary-nav-list li a i {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.legendary-nav-list li a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.legendary-nav-list li a:hover i {
    color: var(--primary);
}

/* Side Menu Footer */
.side-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.menu-actions {
    display: flex;
    gap: 1rem;
}

.menu-actions button,
.menu-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Bottom Fix */
.mobile-nav {
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .mobile-nav {
    background: rgba(17, 24, 39, 0.9);
}

/* Hero 3D Slider */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1F2937 100%);
    overflow: hidden;
}

.hero-slider-3d {
    perspective: 1000px;
    height: 450px;
    position: relative;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    position: absolute;
    width: 70%;
    height: 100%;
    left: 15%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}

.hero-slide-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-slide-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-slide-content .price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.hero-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.hero-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-nav {
    background: rgba(17, 24, 39, 0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0 1rem;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
}

.mobile-nav-link i {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-link.active i {
    transform: translateY(-2px);
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    opacity: 0; /* Hidden by default, maybe better to use distinct active style */
}

/* Floating Indicator for active item could be added here if needed */

.mobile-nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(120%);
    background: var(--primary);
    color: white;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(249, 115, 22, 0.4);
}

@media (max-width: 991px) { /* Changed from 768px to cover tablets too */
    .mobile-nav {
        display: block;
    }
    body {
        padding-bottom: 80px; /* Increased padding */
    }
}

.hero-slide.active {
    transform: translateZ(100px);
    z-index: 10;
}

.hero-slide.prev {
    transform: translateX(-50%) translateZ(-100px) rotateY(25deg);
    opacity: 0.6;
    z-index: 5;
}

.hero-slide.next {
    transform: translateX(50%) translateZ(-100px) rotateY(-25deg);
    opacity: 0.6;
    z-index: 5;
}

.hero-slide.hidden {
    opacity: 0;
    transform: translateZ(-300px);
    z-index: 0;
}

.hero-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-nav button.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
}

.hero-arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
}

.hero-arrows button:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Categories Slider */
.categories-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.categories-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 180px;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-light), #FED7AA);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 0.5rem;
}

.slider-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px var(--shadow);
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Featured Products 3D Slider */
.featured-slider-section {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.featured-slider-section .section-title {
    color: white;
}

.featured-slider-section .view-all {
    color: var(--primary);
}

.featured-3d-slider {
    perspective: 1200px;
    height: 450px;
    position: relative;
}

.featured-slides {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.featured-slide {
    position: absolute;
    width: 300px;
    height: 400px;
    left: 50%;
    margin-left: -150px;
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.featured-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-slide-content {
    padding: 1.25rem;
}

.featured-slide-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.featured-slide-content .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.featured-slide-content .old-price {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.featured-slide.active {
    transform: translateX(0) translateZ(150px) rotateY(0);
    z-index: 10;
}

.featured-slide.prev {
    transform: translateX(-250px) translateZ(50px) rotateY(30deg);
    z-index: 5;
}

.featured-slide.next {
    transform: translateX(250px) translateZ(50px) rotateY(-30deg);
    z-index: 5;
}

.featured-slide.far-prev {
    transform: translateX(-450px) translateZ(-50px) rotateY(45deg);
    opacity: 0.5;
    z-index: 1;
}

.featured-slide.far-next {
    transform: translateX(450px) translateZ(-50px) rotateY(-45deg);
    opacity: 0.5;
    z-index: 1;
}

.featured-slide.hidden {
    opacity: 0;
    transform: translateZ(-300px);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.product-rating i {
    color: #FBBF24;
    font-size: 0.9rem;
}

.product-rating span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

/* New Arrivals 3D */
.new-arrivals-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.new-arrivals-section .section-title {
    color: white;
}

.new-arrivals-section .view-all {
    color: white;
}

.new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10B981;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

/* Brands Slider */
.brands-section {
    background: var(--bg-primary);
    padding: 4rem 0;
    overflow: hidden;
}

.brands-track {
    display: flex;
    animation: scrollBrands 30s linear infinite;
    gap: 2rem;
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-card {
    min-width: 180px;
    height: 100px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    filter: grayscale(1);
    transition: all 0.3s;
}

.brand-card:hover {
    filter: grayscale(0);
    transform: scale(1.05);
}

.brand-card img {
    max-width: 80%;
    max-height: 80%;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), #F3F4F6);
    color: #9CA3AF;
    border: 1px dashed var(--border);
}

.product-placeholder i {
    font-size: 2rem;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.product-actions button:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.25rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.current-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-lg { padding: 1rem 1.5rem; border-radius: 14px; font-size: 1rem; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.btn-primary { background: var(--primary-500); color: #fff; border-color: var(--primary-500); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(249,115,22,0.25); }
.btn-secondary { background: var(--surface-light); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary-500); color: var(--primary-500); }

/* Products Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--neutral-900) 0%, #1F2937 100%);
    padding: 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-500);
    opacity: 0.1;
    border-radius: 50%;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
}

.breadcrumb a {
    color: #9CA3AF;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-500);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary-500);
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.sidebar {
    background: var(--surface-light);
    border-radius: 20px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-title i {
    color: var(--primary-500);
    font-size: 0.8rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.filter-option:hover {
    background: var(--neutral-100);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-500);
}

.filter-option label {
    cursor: pointer;
    flex: 1;
}

.filter-option span {
    color: var(--neutral-500);
    font-size: 0.85rem;
}

.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    font-family: inherit;
    background: var(--neutral-100);
    color: var(--neutral-900);
    direction: ltr;
    text-align: left;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* Remove number input spinners for cleaner UI */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.filter-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: var(--primary-600);
}

.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 600px) {
    .price-range {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .price-range span {
        display: none;
    }
}

.products-section {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--surface-light);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--surface-light);
    border: 2px solid var(--border);
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.page-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249,115,22,0.18);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 34px rgba(249,115,22,0.35);
}

.pagination .page-btn i {
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .pagination { gap: 0.4rem; }
    .page-btn { min-width: 40px; height: 40px; border-radius: 10px; }
}

.products-count {
    font-weight: 600;
    color: var(--neutral-500);
}

.count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 700;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
}

.sort-select-wrap i {
    color: var(--text-secondary);
}

.sort-select {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.25rem;
}

.view-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.view-btn.active {
    background: var(--primary-light);
    color: var(--primary);
}

.products-grid.list-view {
    display: grid;
    grid-template-columns: 1fr;
}

/* Product Details Page Styles */
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
}

@media (max-width: 968px) {
    .product-details-grid { grid-template-columns: 1fr; }
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 1rem;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.main-image:hover img {
    transform: scale(1.1);
}

.image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.zoom-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.product-title-large {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
}

.price-section {
    background: linear-gradient(135deg, var(--primary-light), #FED7AA);
    padding: 1.5rem;
    border-radius: 16px;
    color: #111; /* Ensure text is dark on light background */
}

.current-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.original-price-large {
    font-size: 1.25rem;
    color: #666;
    text-decoration: line-through;
    margin-right: 1rem;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: #10B981;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.wishlist-btn-large {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.tabs-section {
    margin-top: 3rem;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table th, .specs-table td {
    padding: 1rem;
    text-align: right;
}

.specs-table th {
    background: var(--bg-secondary);
    font-weight: 700;
    width: 200px;
    color: var(--text-secondary);
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    min-height: 100vh;
}

@media (max-width: 968px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checkout-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary);
    font-size: 1.25rem;
}

.section-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Track Order Page Styles */
.track-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.track-header {
    text-align: center;
    margin-bottom: 3rem;
}

.track-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #FBBF24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.track-header p {
    color: var(--text-secondary);
}

.search-box-track {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px var(--shadow);
    margin-bottom: 2rem;
}

.search-form-track {
    display: flex;
    gap: 1rem;
}

.search-form-track input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-form-track button {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-form-track button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.track-result {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px var(--shadow);
    display: none;
}

.track-result.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
