:root {
    --primary: #FF6600; /* Vibrant Orange for E-commerce */
    --primary-hover: #E65C00;
    --primary-light: rgba(255, 102, 0, 0.1);
    
    --dark: #1F2937;
    --dark-light: #374151;
    --bg-main: #F9FAFB;
    --bg-card: #FFFFFF;
    
    --text-main: #111827;
    --text-muted: #6B7280;
    
    --border: #E5E7EB;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.fade-in-down { animation: fadeInDown 0.6s ease forwards; }

/* Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Header */
.store-header {
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
}

.search-bar {
    max-width: 800px;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

/* Category Navigation Dropdowns */
.category-nav {
    background-color: #063124;
    color: white;
    position: relative;
    z-index: 900;
}

.category-nav .nav-container {
    display: flex;
    gap: 25px;
    padding: 0 24px;
    flex-wrap: wrap;
}

.category-nav .nav-container::-webkit-scrollbar {
    display: none;
}

.category-nav .nav-item {
    position: relative;
}

.category-nav .nav-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.category-nav .nav-link:hover {
    color: var(--primary);
}

.category-nav .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 3px solid var(--primary);
}

.category-nav .nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-nav .dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
}

.category-nav .dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.category-nav .dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary);
    padding-left: 25px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-main);
    font-size: 15px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: white;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.icon-btn:hover {
    color: var(--primary);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.icon-btn:hover svg {
    transform: translateY(-2px);
}

/* Floating Cart Widget */
.floating-cart-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    text-decoration: none;
}

.floating-cart-widget:hover {
    transform: translateY(-50%) translateX(-5px);
}

.floating-cart-widget .cart-items-count {
    background: #E85D04;
    color: white;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-cart-widget .cart-total-price {
    background: white;
    color: var(--text-main);
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0 0 0 8px;
}

/* Hero Slider */
.hero-section {
    margin: 30px 0;
}
.hero-banner {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1F2937, #111827);
    color: white;
    display: flex;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-5px);
    border-color: transparent;
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.product-price-old {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
}

/* Footer */
.store-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

/* Shop Layout & Sidebar Filters */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 300px;
        background: white;
        z-index: 10000;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        margin: 0;
        border-radius: 0;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }
    .shop-sidebar.open {
        display: block;
        transform: translateX(0);
    }
}

.shop-sidebar {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    color: var(--text-main);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-checkbox:hover input ~ .checkmark {
    background-color: #e2e8f0;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.price-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.price-input:focus {
    border-color: var(--primary);
}

/* ============================================================
   MOBILE RESPONSIVE UPDATES
============================================================ */

/* Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    width: 100%;
    height: 100%;
    min-height: 44px; /* Touch friendly */
    position: relative;
    transition: var(--transition);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke: currentColor;
    fill: none;
}

.mobile-nav-item.active svg {
    fill: currentColor;
    stroke: none;
}

.nav-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 15px);
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    border: 1px solid white;
}

/* Offcanvas Menu */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-offcanvas.open {
    left: 0;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.offcanvas-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.offcanvas-header {
    background: var(--primary);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.offcanvas-user-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offcanvas-user-icon svg {
    width: 30px;
    height: 30px;
}

.offcanvas-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.offcanvas-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.offcanvas-link.orange {
    color: var(--primary);
}

.offcanvas-accordion-content {
    display: none;
    background: #f8fafc;
    padding: 0;
}

.offcanvas-accordion-content.open {
    display: block;
}

.offcanvas-sublink {
    display: block;
    padding: 10px 20px 10px 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.quick-links-title {
    padding: 20px 20px 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
}

.quick-link-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 60px; /* Above bottom nav */
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
}

.mobile-sticky-cta .btn-group {
    display: flex;
    gap: 10px;
}

.mobile-sticky-cta .btn {
    flex: 1;
    padding: 12px 0;
    font-size: 15px;
}

/* Checkout Progress Indicator */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.checkout-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}
.checkout-step {
    position: relative;
    z-index: 2;
    background: var(--bg-main);
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.checkout-step .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #cbd5e1;
}
.checkout-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.checkout-step .step-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}
.checkout-step.active .step-label {
    color: var(--primary);
}


/* Mobile Media Queries */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for bottom nav */
    }

    /* Mobile Product Grid - Force 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 20px 0 !important;
    }
    
    .product-card {
        padding: 10px !important;
    }
    
    /* Header/Nav mobile tweaks */
    .category-nav,
    .promo-banner-container,
    .floating-cart-widget,
    .header-actions .icon-btn:not(.mobile-hamburger) {
        display: none !important;
    }
    
    .search-bar {
        display: none !important; /* Hide search bar from header, keep it simple */
    }
    
    .store-header .container {
        justify-content: center;
        position: relative;
    }

    .mobile-hamburger {
        display: block !important;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-main);
        padding: 5px;
        cursor: pointer;
    }

    .mobile-header-search {
        display: block !important;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-main);
    }
    
    /* Homepage Resizing */
    .hero-section {
        grid-template-columns: 1fr !important;
    }
    
    .main-slider-container {
        height: 250px !important;
    }

    .slider-slide h1 {
        font-size: 24px !important;
    }

    /* Bottom Nav */
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Product Page */
    .mobile-sticky-cta {
        display: block;
    }
    
    .product-details-container {
        padding-bottom: 60px; /* Space for sticky CTA */
    }
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.account-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}
