:root {
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFC107;
    --dark-yellow: #FFA000;
    --light-yellow: #FFF9C4;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
    --gray-border: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.naa {
    margin-left: 0.5rem;
    color:var(--primary-yellow);
    -webkit-text-stroke: 1px black; 
    text-decoration: none; 
    font-weight: bold;    
    font-size: 1.8rem;     
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding-top: 0;
    margin-top: 0;
}
main.main-content {
    margin-top: 0;
    padding-top: 0;
}
.navbar {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: solid 1px var(--primary-yellow);
    width: 100%;
}
html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.main-content {
    margin-top: 0;
    padding-top: 0;
    position: relative;
    z-index: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
     position: relative; 
}
.navbar {
    z-index: 1000; 
}

.category-dropdown {
    z-index: 999; 
}

.main-content {
    position: relative;
    z-index: 1;
}
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo a:not(:has(img)) {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.category-btn {
    background-color: var(--primary-yellow);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.category-btn:hover {
    background-color: var(--secondary-yellow);
}

.search-bar {
    flex: 1;
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--secondary-yellow)
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    background: var(--primary-yellow);
    border: none;
    color: black;
    padding: 0 25px;
    cursor: pointer;
    font-size: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-icon:hover {
    color: var(--dark-yellow);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}


.banner-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.banner-container {
    display: flex;
    gap: 20px;
    height: auto;
}

.main-banner {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.banner-slider {
    display: flex;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: auto;
    background-size: contain;
    background-position: center;
    position: relative;
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    max-width: 60%;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }

.side-banners {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
}

.category-scroll-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.category-scroll-container {
    position: relative;
}

.category-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    cursor: pointer;
}

.category-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 3px solid var(--primary-yellow);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h4 {
    font-size: 14px;
    margin-top: 5px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-yellow);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
}

.scroll-left { left: -20px; }
.scroll-right { right: -20px; }

.products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all {
    color: var(--dark-yellow);
    text-decoration: none;
    font-weight: 500;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: black;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-cart, .btn-wishlist {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.3s;
}

.btn-cart {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-cart:hover {
    background: var(--dark-yellow);
}

.btn-wishlist {
    background: #f0f0f0;
    color: var(--text-dark);
}

.btn-wishlist:hover {
    background: #e0e0e0;
}

.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

.product-details-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: var(--primary-yellow);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: black;
}

.original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #ff4444;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
}

.product-stock {
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.stock-status {
    color: green;
    font-weight: 500;
}

.product-description {
    margin: 30px 0;
}

.product-description h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.product-description p {
    line-height: 1.6;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
}

#quantity {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-border);
    border-right: 1px solid var(--gray-border);
    height: 40px;
    font-size: 16px;
}

.btn-add-to-cart, .btn-wishlist {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-add-to-cart {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-add-to-cart:hover {
    background: var(--dark-yellow);
}

.btn-wishlist {
    background: #f0f0f0;
    color: var(--text-dark);
}

.btn-wishlist:hover {
    background: #e0e0e0;
}
.product-card.loading {
    animation: loadingPulse 1.5s infinite;
}

.product-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 200px;
}

.loading-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.featured-badge, .trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dark-yellow);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.trending-badge {
    background: #ff4444;
    top: 40px;
}

.in-stock {
    color: green;
    font-size: 14px;
    font-weight: 500;
}

.out-of-stock {
    color: #ff4444;
    font-size: 14px;
    font-weight: 500;
}

.product-short-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 8px 0;
    min-height: 40px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 14px;
}

.brand {
    color: #666;
    font-weight: 500;
}

.category-main {
    padding: 10px;
    cursor: pointer;
}

.subcategories {
    margin-left: 20px;
    border-left: 2px solid var(--light-yellow);
    padding-left: 10px;
}

.subcategory-item {
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 3px;
}

.subcategory-item:hover {
    background: var(--light-yellow);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-products p {
    font-size: 18px;
}
.main-banner {
    flex: 3;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: auto;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: auto;
}

.banner-slide {
    min-width: 100%;
    height: auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner-slide .banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    max-width: 400px;
}

.side-banners {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        width: 100%;
    }
    
    .nav-container {
        padding: 0 10px;
        flex-wrap: wrap;
    }
    
    .logo a {
        font-size: 22px;
    }
    
    .nav-center {
        order: 3;
        margin: 10px 0 0 0;
        max-width: 100%;
        width: 100%;
    }
    
    .search-bar input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .banner-section {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .banner-container {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .main-banner {
        width: 100%;
        height: 250px;
    }
    
    .side-banners {
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }
    
    .side-banner {
        height: 120px;
    }
    
    .category-scroll-section {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .products-section {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: auto;
        display: flex;
        padding-bottom: 15px;
        scrollbar-width: thin;
    }
    
    .products-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .product-card {
        min-width: 160px;
        max-width: 160px;
        flex: 0 0 auto;
        margin-right: 10px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-cart, .btn-wishlist {
        font-size: 12px;
        padding: 6px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .product-details {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-info h1 {
        font-size: 24px;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-page {
        grid-template-columns: 1fr;
        position: relative;
        padding-bottom: 80px;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        z-index: 1002;
        background: white;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        display: block !important; 
        visibility: visible !important; 
    }
    
      .filters-sidebar.active {
        left: 0;
    }
    
    .filter-section {
        padding: 15px 0;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .filter-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #333;
        display: block !important;
    }
    
    .filter-content {
        max-height: none !important;
        overflow-y: visible !important;
        display: block !important;
    }
    
    .filter-checkbox {
        padding: 12px 0;
        font-size: 16px;
        display: flex !important;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .filter-checkbox input {
        width: 20px !important;
        height: 20px !important;
        margin-right: 12px;
        display: block !important;
        opacity: 1 !important;
    }
    
    .filter-checkbox span {
        font-size: 16px;
        color: #333;
        display: block !important;
    }
    
    .price-range {
        padding: 15px 0;
        display: block !important;
    }
    
    .price-range input[type="range"] {
        width: 100% !important;
        margin: 15px 0;
        display: block !important;
    }
    
    .price-values {
        display: flex !important;
        justify-content: space-between;
        font-size: 16px;
    }
    
    .btn-apply-filters, .btn-clear-filters {
        width: 100% !important;
        padding: 15px !important;
        margin: 10px 0;
        font-size: 16px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1001;
    }
    
    .filter-overlay.active {
        display: block;
    }
    
    .close-filters {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        z-index: 1003;
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        background: var(--primary-yellow);
        color: var(--text-dark);
        border: none;
        padding: 15px 25px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        cursor: pointer;
    }
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        min-width: 140px;
        max-width: 140px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
}



body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-banner {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.skeleton-side-banner {
    width: 100%;
    height: 190px;
    border-radius: 10px;
}

.skeleton-category-card {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.skeleton-product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 380px; 
    width: 100%;
    position: relative;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-text-sm {
    height: 15px;
    width: 60%;
}

.skeleton-btn {
    height: 40px;
    border-radius: 5px;
}

.skeleton-wishlist-card {
    width: 100%;
    height: 320px;
    border-radius: 10px;
}

.skeleton-cart-item {
    height: 140px;
    border-radius: 10px;
}

.skeleton-checkout-summary {
    height: 300px;
    border-radius: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: auto;
}

.loading-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.error-state i {
    font-size: 48px;
    color: #ff4444;
    margin-bottom: 20px;
}

.btn-retry {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

.btn-retry:hover {
    background: var(--dark-yellow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

.category-card {
    animation: slideIn 0.5s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

.btn-cart:hover, 
.btn-add-to-cart:hover,
.btn-move-to-cart:hover {
    animation: pulse 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 168, 0, 0.4);
}

.nav-icon,
.category-item,
.product-card,
.btn-cart,
.btn-wishlist,
.filter-checkbox {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px) scale(1.02);
}

.product-image img {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
    border-radius: 10px 10px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.featured-badge, .trending-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    animation: shimmer 1s infinite linear;
}

.user-auth-container {
    position: relative;
}

.user-auth-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}

.login-btn {
    background: #4285F4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #357ae8;
}

.user-dropdown {
    position: relative;
}

.user-profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s;
}

.user-profile-btn:hover {
    background: #f5f5f5;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.user-dropdown-content a:hover {
    background: #f9f9f9;
    color: #FFA000;
}

.user-dropdown-content a i {
    width: 20px;
    text-align: center;
}

.user-dropdown-content a:last-child {
    border-bottom: none;
    color: #f44336;
}

.user-dropdown-content a:last-child:hover {
    background: #ffebee;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--dark-yellow);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.user-display span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .user-display span {
        display: none;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}




.user-dropdown {
    position: relative;
    display: none; 
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
    background: white;
}

.user-profile-btn:hover {
    background: #f9f9f9;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.user-profile-btn i:first-child {
    font-size: 22px;
    color: #FFA000;
}

.user-profile-btn i:last-child {
    font-size: 12px;
    transition: transform 0.3s;
    margin-left: 5px;
}

.user-dropdown.active .user-profile-btn i:last-child {
    transform: rotate(180deg);
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 15px 0;
    min-width: 220px;
    z-index: 1000;
    display: none;
    animation: fadeInDown 0.3s ease;
    border: 1px solid #f0f0f0;
    margin-top: 10px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown.active .user-dropdown-content {
    display: block;
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.user-dropdown-content a:hover {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.1), transparent);
    color: #FFA000;
    border-left-color: #FFD700;
    padding-left: 30px;
}

.user-dropdown-content a i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.user-dropdown-content a:last-child {
    color: #f44336;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 20px;
}

.user-dropdown-content a:last-child:hover {
    background: #fff5f5;
}
.wc-badge-small {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #7F54B3;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-item-image {
    position: relative;
}
.category-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    height: 5px;
}

.category-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.category-card {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h4 {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
    font-weight: 500;
}

.products-container {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 #f0f0f0;
}

.products-container::-webkit-scrollbar {
    height: 6px;
}

.products-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.products-container::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

.products-container::-webkit-scrollbar-thumb:hover {
    background: #FFA000;
}

.product-card {
    flex: 0 0 auto;
    width: 250px;
    margin-right: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.scroll-buttons {
    display: flex;
    gap: 10px;
}

.scroll-left-btn, .scroll-right-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFD700;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scroll-left-btn:hover, .scroll-right-btn:hover {
    background: #FFA000;
    transform: scale(1.1);
}

.scroll-left-btn:active, .scroll-right-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .scroll-buttons {
        display: none;
    }
    
    .products-container {
        gap: 15px;
    }
    
    .product-card {
        width: 200px;
    }
}
.category-banner {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    display: block !important;
    visibility: visible !important;
}

.category-banner .banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: white;
}

.category-banner .banner-content h3 {
    font-size: 24px;
    margin: 0 0 5px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.category-banner .banner-content p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.category-banner-section {
    margin: 20px 0;
    width: 100%;
    display: block !important;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: auto;
}

.banner-slide {
    flex: 0 0 100%;
    height: auto;
    background-size: contain;
    background-position: center;
    position: relative;
}
@media (max-width: 768px) {
    .banner-section {
        padding: 0 10px;
        margin: 15px auto;
        width: 100%;
        overflow: hidden;
    }
    
    .banner-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        height: auto;
    }
    
    .main-banner {
        width: 100%;
        height: auto !important;
        position: relative;
        overflow: hidden;
        border-radius: 10px;
    }
    
    .banner-slider {
        display: flex !important;
        width: 100%;
        height: auto !important;
        transition: transform 0.5s ease-in-out;
    }
    
    .banner-slide {
        flex: 0 0 100%;
        width: 100%;
        height: auto !important;
        background-size: contain !important;
        background-position: center !important;
        cursor: pointer;
    }
    
    .banner-slide .banner-content {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        color: white;
        text-align: left;
    }
    
    .banner-slide .banner-content h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .banner-slide .banner-content p {
        font-size: 14px;
        opacity: 0.9;
    }
    
    .side-banners {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }
    
    .side-banner {
        flex: 1;
        height: 120px;
        border-radius: 10px;
        background-size: cover !important;
        background-position: center !important;
        cursor: pointer;
    }
    
    .side-banner .banner-content {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        color: white;
    }
    
    .side-banner .banner-content h3 {
        font-size: 14px;
        margin: 0;
    }
    
    .banner-prev, .banner-next {
        display: none !important;
    }
}

.banner-slide:hover, .side-banner:hover, .category-banner:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-banner {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.category-banner .banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: white;
}

.category-banner .banner-content h3 {
    font-size: 24px;
    margin: 0 0 5px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.027);
}

.category-banner .banner-content p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.068);
}

.category-banner-section {
    margin: 20px 0;
    width: 100%;
}

.banner-section {
    width: 100%;
    max-width: 1400px;
    margin: 15px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.banner-container {
    width: 100%;
    margin: 0 auto;
    height: auto !important;
}

.main-banner.full-width {
    width: 100%;
    flex: 1 1 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #fff;
    height: auto !important;
    min-height: 0;
    max-height: none;
}

@media (min-width: 769px) {
    .main-banner.full-width {
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .main-banner.full-width {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-banner.full-width {
        min-height: 0 !important;
        max-height: none !important;
    }
}

@media (max-width: 360px) {
    .main-banner.full-width {
        min-height: 0 !important;
        max-height: none !important;
    }
}

.banner-slider {
    display: flex;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    min-height: 0;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.banner-slide.poster-slide {
    align-items: center;
    padding: 0;
}

.banner-poster-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.banner-slide .banner-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
}

@media (max-width: 768px) {
    .banner-slide .banner-content {
        padding: 12px 15px;
    }
    
    .banner-slide .banner-content h2 {
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 3px;
        font-weight: 600;
    }
    
    .banner-slide .banner-content p {
        font-size: clamp(10px, 3vw, 13px);
        opacity: 0.9;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .banner-slide .banner-content {
        padding: 8px 12px;
    }
    
    .banner-slide .banner-content h2 {
        font-size: clamp(12px, 3.5vw, 15px);
    }
    
    .banner-slide .banner-content p {
        font-size: clamp(9px, 2.5vw, 11px);
    }
}

@media (max-width: 360px) {
    .banner-slide .banner-content {
        padding: 6px 10px;
    }
    
    .banner-slide .banner-content h2 {
        font-size: 11px;
    }
    
    .banner-slide .banner-content p {
        font-size: 8px;
    }
}

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

@media (max-width: 480px) {
    .banner-prev, .banner-next {
        display: none !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .banner-prev, .banner-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
        display: flex !important;
    }
}

.banner-prev { left: 15px; }
.banner-next { right: 15px; }

.banner-prev:hover, .banner-next:hover {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.skeleton-banner {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@media (max-width: 480px) {
    .main-banner.full-width {
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto;
        height: auto !important;
    }
    
    .banner-slide {
        min-height: 0;
        height: auto !important;
    }
    
    .banner-slide .banner-content {
        bottom: 8px;
        left: 10px;
        right: 10px;
        padding: 8px;
    }
    
    .banner-slide .banner-content h2 {
        font-size: clamp(12px, 4.5vw, 16px);
        margin-bottom: 2px;
    }
    
    .banner-slide .banner-content p {
        font-size: clamp(9px, 3vw, 12px);
    }
    
    .banner-prev, .banner-next {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .main-banner.full-width {
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .banner-slide {
        min-height: 0;
        height: auto !important;
    }
    
    .banner-slide .banner-content {
        bottom: 5px;
        left: 8px;
        right: 8px;
        padding: 5px;
    }
    
    .banner-slide .banner-content h2 {
        font-size: 12px;
    }
    
    .banner-slide .banner-content p {
        font-size: 9px;
        line-height: 1.2;
    }
}
.btn-wishlist.active {
    background: #eae8e8;
    color: rgb(255, 0, 0);
    animation: heartBeat 0.3s ease;
}

.btn-wishlist.active i {
    color: rgb(255, 8, 8);
}

.btn-wishlist.active:hover {
    background: #ff6666;
}

.btn-cart.added {
    background: var(--primary-yellow);
    color: rgb(0, 0, 0);
}

.btn-cart.added:hover {
    background:var(--secondary-yellow)
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #45a049; }
    100% { transform: scale(1); }
}

.btn-cart.added:active {
    animation: cartPulse 0.3s ease;
}

.btn-cart, .btn-wishlist {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cart i, .btn-wishlist i {
    transition: transform 0.2s ease;
}

.btn-cart:hover i, .btn-wishlist:hover i {
    transform: scale(1.1);
}


.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
}


.wc-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #7F54B3;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
}
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #45a049; }
    100% { transform: scale(1); }
}

.btn-cart.cart-click-animation {
    animation: cartPulse 0.3s ease !important;
}

.btn-cart {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cart i {
    transition: transform 0.2s ease;
}

.btn-cart:hover i {
    transform: scale(1.1);
}
.volume-discounts-section {
    margin: 25px 0;
    padding: 20px;
    background: #fff9f0;
    border-radius: 12px;
    border: 1px solid #FFD700;
}

.volume-discounts-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-discounts-section h3 i {
    color: #FFA000;
}

.discount-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.discount-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discount-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.discount-card.selected {
    border-color: #FFA000;
    background: #fff9f0;
}

.discount-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.discount-header {
    margin-bottom: 12px;
}

.discount-header h4 {
    font-size: 16px;
    color: #FFA000;
    font-weight: 600;
    margin: 0;
}

.discount-header h4 span {
    color: #333;
    font-size: 14px;
    font-weight: normal;
}

.discount-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.discount-left {
    flex: 1;
}

.discount-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

.discount-row .label {
    color: #666;
}

.discount-row .value {
    font-weight: 600;
    color: #333;
}

.discount-right {
    text-align: right;
    min-width: 90px;
}

.original-price-box {
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 6px;
}

.original-price-box .old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    display: block;
}

.original-price-box .new-price {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
    display: block;
    line-height: 1.3;
}

.savings-box {
    border-top: 1px dashed #ddd;
    padding-top: 8px;
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.savings-box i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .discount-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .discount-card {
        padding: 12px;
    }
    
    .discount-header h4 {
        font-size: 15px;
    }
    
    .original-price-box .new-price {
        font-size: 15px;
    }
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.qty-btn:disabled:hover {
    background: #f0f0f0;
    transform: none;
}

.cart-item.has-discount .quantity-control {
    background: #fff9f0;
    border-color: #FFA000;
}

.cart-discount-badge {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.cart-volume-discount {
    background: #fff9f0;
    border-left: 4px solid #FFA000;
    padding: 10px;
    margin-top: 8px;
    border-radius: 6px;
    font-size: 13px;
}

.cart-volume-discount .savings {
    color: #4CAF50;
    font-weight: 600;
}

.category-nav-container {
    position: relative;
    width: 100%;
    background: transparent;
    border-bottom: none;
}

/* Desktop: vertical category sidebar on the LEFT */
.desktop-categories {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: visible;
    z-index: 999;
    background: white;
    max-width: none;
    margin: 0;
    padding: 12px 0 24px;
    border-right: 1px solid #eee;
    border-bottom: none;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.06);
}

.desktop-categories.active {
    display: none;
}

@media (min-width: 993px) {
    .desktop-categories {
        display: block;
    }

    .desktop-categories.active {
        display: none;
    }

    body.cat-sidebar-open {
        padding-left: 260px;
        transition: padding-left 0.25s ease;
    }

    body.cat-sidebar-open .navbar {
        width: calc(100% + 260px);
        margin-left: -260px;
    }

    /* Products page already has its own left filters — hide global category bar */
    body.page-products .desktop-categories {
        display: none !important;
    }

    body.page-products {
        padding-left: 0 !important;
    }

    body.page-products .navbar {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Login page: no shopping category sidebar */
    body.page-login .desktop-categories,
    body.page-login .category-nav-container {
        display: none !important;
    }
    body.page-login {
        padding-left: 0 !important;
    }
    body.page-login .navbar {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 992px) {
    .desktop-categories {
        display: none !important;
    }

    .desktop-categories.active {
        display: none !important;
    }

    body.cat-sidebar-open {
        padding-left: 0;
    }
}

.category-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
}

.category-item {
    position: relative;
    width: 100%;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: none;
    border-bottom: 1px solid #f3f3f3;
    border-radius: 0;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.category-link:hover {
    background: #FFF8E1;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.category-link i {
    font-size: 15px;
    color: #FFA000;
    flex-shrink: 0;
}

.category-link:hover i {
    color: #333;
}

.category-arrow {
    font-size: 11px;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #999;
}

.category-item:hover .category-arrow {
    transform: rotate(-90deg);
    color: #FFA000;
}

/* Submenus: accordion inside left sidebar (flyouts get clipped by overflow) */
.category-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    background: #fafafa;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    z-index: 1;
    margin-top: 0;
    margin-left: 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    display: none;
    max-height: none;
}

.category-item:hover .category-dropdown-menu {
    /* hover alone should not open — click toggles .open */
    display: none;
}

.category-item.open > .category-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.category-item.open .category-arrow {
    transform: rotate(180deg);
    color: #FFA000;
}

.subcategory-item {
    display: block;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.subcategory-item:hover {
    background: #fff9f0;
    color: #FFA000;
    border-left-color: #FFD700;
    padding-left: 30px;
}

.subcategory-count {
    float: right;
    color: #999;
    font-size: 12px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 20px;
}

.mobile-category-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.mobile-category-toggle i {
    font-size: 20px;
    color: #FFA000;
}

.mobile-category-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 5px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.mobile-category-sidebar.active {
    left: 0;
}

.mobile-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: white;
}

.mobile-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-back-btn:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-back-btn.hidden {
    visibility: hidden;
    pointer-events: none;
}

.mobile-category-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-category-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.mobile-category-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-category-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-category-main:hover {
    background: #fff9f0;
}

.mobile-category-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-category-left i {
    font-size: 18px;
    color: #FFA000;
    width: 24px;
}

.mobile-category-left span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.mobile-category-arrow {
    color: #999;
    font-size: 14px;
}

.mobile-subcategories {
    display: none;
    background: #fafafa;
    padding: 10px 0;
}

.mobile-subcategories.show {
    display: block;
}

.mobile-subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px 15px 56px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s;
    border-left: 3px solid transparent;
}

.mobile-subcategory-item:hover {
    background: white;
    color: #FFA000;
    border-left-color: #FFD700;
}

.mobile-subcategory-count {
    color: #999;
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
}

.category-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.category-overlay.active {
    display: block;
}

@media (max-width: 992px) {
    .desktop-categories {
        display: none;
    }
    
    .mobile-category-toggle {
        display: flex;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

.category-dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.category-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.category-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-dropdown-menu::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

.category-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #FFA000;
}

.category-dropdown-menu .subcategory-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.cart-item.has-discount {
    background: #fff9f0;
    border-left: 4px solid #FFA000;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cart-discount-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-discount-badge i {
    font-size: 10px;
}

.volume-discount-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.volume-badge {
    background: #FFA000;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.volume-badge i {
    font-size: 12px;
}

.volume-details {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #FFD700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.volume-details .saved-amount {
    color: #4CAF50;
    font-weight: 600;
    background: #e8f5e8;
    padding: 3px 10px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .volume-discount-info {
        min-width: auto;
        width: 100%;
    }
    
    .volume-details {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .cart-item.has-discount {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .volume-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .volume-details {
        font-size: 12px;
    }
}


.special-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #9C27B0;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.featured-badge + .discount-badge,
.featured-badge + .special-discount-badge {
    top: 40px;
}

.discount-badge + .special-discount-badge {
    left: auto;
    right: 10px;
    background: #FF9800;
}
.special-discount-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.special-badge {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.special-badge i {
    font-size: 12px;
}

.special-details {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #9C27B0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.special-details .saved-amount {
    color: #4CAF50;
    font-weight: 600;
    background: #e8f5e8;
    padding: 3px 10px;
    border-radius: 20px;
}

.cart-item.has-discount .special-discount-info + .quantity-control {
    margin-top: 10px;
    border-color: #9C27B0;
}

.cart-item.has-discount .special-discount-info + .quantity-control .qty-btn {
    background: #f3e5f5;
}

@media (max-width: 768px) {
    .special-discount-info {
        min-width: auto;
        width: 100%;
    }
    
    .special-details {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}