/* ===== CSS Variables ===== */
:root {
    --primary-color: #4f5b27;
    --primary-dark: #3d4720;
    --secondary-color: #4f5b27;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --success-color: #27ae60;
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    --error-color: #dc3545;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    --info-blue-bg: #cce5ff;
    --info-blue-text: #004085;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Top Bar ===== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-link, .login-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.phone-link:hover, .login-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}
.nav-dropdown .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    list-style: none;
    padding: 10px 0;
    margin: 8px 0 0;
    box-shadow: var(--shadow);
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: var(--transition);
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu li {
    padding: 0;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}
.nav-dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--light-color);
    border-radius: 25px;
    outline: none;
    transition: var(--transition);
    width: 250px;
}

.search-box input:focus {
    border-color: var(--primary-color);
    width: 300px;
}

.search-box i {
    position: absolute;
    right: 15px;
    color: var(--text-light);
}

.wishlist-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 24px;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 15px;
}

.wishlist-icon:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    animation: bounce 0.5s ease;
}

.cart-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 24px;
    text-decoration: none;
    transition: var(--transition);
    /* display: none; */
}

.cart-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.user-profile-link:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .user-name-text {
        display: inline-block !important;
    }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    margin-top: 0;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.hero-text {
    max-width: 700px;
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev {
    left: 30px;
}

.hero-nav-next {
    right: 30px;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--white);
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.8);
    width: 30px;
    border-radius: 6px;
}

.indicator.active::before {
    width: 100%;
    height: 100%;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Animations ===== */
.animate-fade-up {
    animation: fadeUp 0.8s ease;
}

.animate-fade-up-delay {
    animation: fadeUp 0.8s ease 0.2s both;
}

.animate-fade-up-delay-2 {
    animation: fadeUp 0.8s ease 0.4s both;
}

.animate-fade-up-delay-3 {
    animation: fadeUp 0.8s ease 0.6s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Features Section ===== */
.features {
    padding: 15px 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Products Section ===== */
.products {
    padding: 50px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 20px;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    will-change: transform;
    transition: transform 0.2s ease;
}

.product-tabs.floating {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0);
    padding: 5px 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
    z-index: 999;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    transform: translateZ(0);
    backface-visibility: hidden;
}


.tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--light-color);
    background: var(--white);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 3px 10px;
        border: 1px solid var(--light-color);
        border-radius: 12px;
        font-size: 12px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--light-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    transition: var(--transition);
}

/* Image Loading States */
.image-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-loaded {
    opacity: 1;
}

.bg-image-loaded {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.product-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.product-action-btn.wishlist-btn.active {
    background: #e74c3c;
    color: var(--white);
}

.product-action-btn.wishlist-btn.active i {
    font-weight: 900;
}

.btn-quick-view {
    padding: 12px 25px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-quick-view:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.discount-badge {
    background: #e74c3c;
}

.product-badge.new-badge {
    background: var(--success-color);
}

.product-badge.bestseller-badge {
    background: #f39c12;
}

.product-info {
    padding: 20px 18px 18px;
    background: var(--white);
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    display: block;
}

.product-name a:hover {
    color: var(--primary-color, #ff6b35);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 14px;
}

.product-rating .rating-text {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.discount {
    font-size: 13px;
    color: var(--success-color);
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.product-actions-bottom {
    margin-top: 5px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart .btn-text {
    display: inline;
}

@media (min-width: 481px) {
    .product-price {
        justify-content: flex-start;
        align-items: baseline;
    }
    
    .product-price .btn-add-cart {
        display: none !important;
    }
    
    .product-actions-bottom {
        display: block !important;
    }
    
    .product-actions-bottom .btn-add-cart {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        font-size: 16px;
    }
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* ===== Categories Section ===== */
.categories {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.category-image i {
    position: absolute;
    z-index: 1;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card:hover .category-image {
    transform: rotate(360deg);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== Recognized by Media Section ===== */
.recognized-media {
    padding: 40px 0;
    background: var(--white);
}

.media-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.media-slider {
    display: flex;
    gap: 20px;
    will-change: transform;
}

@media (min-width: 769px) {
    .media-slider {
        animation: scrollMedia 30s linear infinite;
    }
}

.media-slide {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    /* background: var(--white); */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.media-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.media-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    /* background: var(--white); */
}

@keyframes scrollMedia {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 5 - 20px * 5));
    }
}

@media (max-width: 768px) {
    .media-slide {
        width: 150px;
        height: 90px;
    }
    
    @keyframes scrollMedia {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 5 - 20px * 5));
        }
    }
}

/* ===== Instagram Section ===== */
.instagram-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.instagram-slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.instagram-slider-wrapper::-webkit-scrollbar {
    height: 8px;
}

.instagram-slider-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.instagram-slider-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.instagram-slider-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.instagram-slider {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 10px 0;
}

.instagram-slide {
    flex: 0 0 auto;
    width: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.instagram-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.instagram-video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.instagram-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 aspect ratio (vertical video) */
    overflow: hidden;
    background: #000;
    border-radius: 8px 8px 0 0;
}

.instagram-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 aspect ratio (vertical video) */
    overflow: hidden;
    background: #000;
}

.instagram-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-video-card:hover .instagram-thumbnail {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button-overlay i {
    color: var(--white);
    font-size: 24px;
    margin-left: 3px; /* Slight offset for visual centering */
}

.instagram-video-card:hover .play-button-overlay {
    background: rgba(255, 107, 53, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.instagram-caption {
    padding: 15px;
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px 15px;
    color: #ff6b35;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.instagram-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 15px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
    border: none;
    cursor: pointer;
}

.instagram-btn i {
    font-size: 16px;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.instagram-slide iframe,
.instagram-slide blockquote {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
    margin: 0 !important;
}

.instagram-slide blockquote.instagram-media {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.instagram-view-all .instagram-video-card {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-view-all-wrapper {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.35);
}

.instagram-view-all-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.instagram-view-all-text i {
    font-size: 22px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
    width: 320px;
    height: 400px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-radius: 12px;
    color: white;
}

.loading-spinner i {
    font-size: 32px;
    color: white;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin: 0;
    font-size: 14px;
    color: white;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.instagram-placeholder {
    width: 320px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-radius: 12px;
    color: white;
}

.instagram-follow-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.instagram-follow-btn:hover {
    transform: scale(1.1);
}

.instagram-follow-btn i {
    font-size: 48px;
}

/* Instagram Video Modal */
.instagram-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.instagram-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.instagram-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.instagram-video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.instagram-video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.instagram-video-modal-player {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.instagram-video-modal-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instagram-video-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.instagram-video-modal-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .instagram-video-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .instagram-video-modal-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.4);
}

.btn-instagram i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .instagram-section {
        padding: 20px 0;
    }
    
    .instagram-slider-wrapper {
        padding: 0 10px;
    }

    .instagram-slider {
        gap: 15px;
        padding: 0 5px;
    }

    .instagram-slide {
        width: calc((100vw - 60px) / 2);
        min-width: calc((100vw - 60px) / 2);
        max-width: calc((100vw - 60px) / 2);
        flex-shrink: 0;
    }
    
    .instagram-video-wrapper {
        padding-top: 177.78%; /* 9:16 aspect ratio (vertical video) */
    }
    
    .instagram-thumbnail-wrapper {
        padding-top: 177.78%; /* 9:16 aspect ratio (vertical video) */
    }
    
    .instagram-btn {
        padding: 4px 3px;
        font-size: 9px;
        margin-bottom:10px;
    }
    
    .instagram-btn i {
        font-size: 14px;
    }
    
    .instagram-caption {
        padding: 10px;
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .instagram-link {
        padding: 0 10px 10px;
        font-size: 11px;
    }
    
    .instagram-placeholder {
        width: calc((100vw - 60px) / 2);
        min-width: calc((100vw - 60px) / 2);
        max-width: calc((100vw - 60px) / 2);
        height: 350px;
    }
}


/* ===== About Section ===== */
.about {
    padding: 50px 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.3;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover .about-img-wrapper img {
    transform: scale(1.05);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.websolguru-credit {
    font-size: 14px;
}

.websolguru-credit a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.websolguru-credit a:hover {
    color: var(--primary-color);
}

/* ===== Cart Sidebar ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 24px;
    color: var(--text-dark);
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-color);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    margin-bottom: 5px;
}

.cart-item-name a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition, all 0.3s ease);
    display: inline-block;
}

.cart-item-name a:hover {
    color: var(--primary-color, #ff6b35);
    text-decoration: underline;
}
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--light-color);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.remove-item:hover {
    color: #c0392b;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--light-color);
    background: var(--white);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cart-total {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.cart-total span {
    color: var(--primary-color);
    font-size: 24px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* ===== Wishlist Icon ===== */
.wishlist-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 24px;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 15px;
}

.wishlist-icon:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    animation: bounce 0.5s ease;
}

/* ===== Quick View Modal ===== */
.quickview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.quickview-modal.active {
    opacity: 1;
    visibility: visible;
}

.quickview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.quickview-content {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3001;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.quickview-modal.active .quickview-content {
    transform: scale(1);
}

.quickview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 3002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.quickview-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.quickview-body {
    padding: 40px;
}

.quickview-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.quickview-image {
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-color);
}

.quickview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.quickview-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.quickview-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #ffc107;
}

.quickview-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}

.quickview-price .current {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.quickview-price .old {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.quickview-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.quickview-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quickview-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* ===== Wishlist Sidebar ===== */
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.wishlist-sidebar.active {
    right: 0;
}

.wishlist-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-header h3 {
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-header h3 i {
    color: #e74c3c;
}

.wishlist-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.wishlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.wishlist-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.wishlist-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-color);
}

.wishlist-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-color);
    flex-shrink: 0;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 16px;
}

.wishlist-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
}

.wishlist-item-actions .btn {
    padding: 8px 15px;
    font-size: 14px;
}

.wishlist-item-actions .btn-remove {
    background: #e74c3c;
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-item-actions .btn-remove:hover {
    background: #c0392b;
}

.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.wishlist-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .product-rating{
        display:none;
    }
    .quickview-product {
        grid-template-columns: 1fr;
    }
    
    .quickview-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .quickview-body {
        padding: 20px;
    }
    
    .wishlist-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 10px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 10px 0;
    }

    .nav-dropdown .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 8px 0 0 15px;
        padding: 5px 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    .nav-dropdown-menu a {
        padding: 8px 0;
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .search-box input {
        width: 200px;
    }

    .search-box input:focus {
        width: 200px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
        height: 100vh;
        height: 100dvh; /* Use dynamic viewport height for mobile */
        z-index: 10000; /* Ensure it's above header on mobile */
        overflow: hidden;
    }
    
    .cart-items {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-footer {
        position: relative;
        bottom: auto;
        z-index: 2;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
        height: calc(100vh - 70px);
        min-height: 500px;
        max-height: 600px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero-nav-prev {
        left: 15px;
    }
    
    .hero-nav-next {
        right: 15px;
    }
    
    .hero-indicators {
        bottom: 20px;
        padding: 8px 15px;
    }

    .section-title {
        font-size: 32px;
    }
    
    .section-title span {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(179px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 180px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(12px, 1fr));
        gap: 5px;
    }
    
    .feature-card {
        padding: 20px 5px;
    }
    
    .feature-card h3 {
        font-size: 8px;
    }
    
    .feature-card p {
        font-size: 7px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        display: none;
    }
}

@media (min-width: 350px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 3px 0;
    }

    .top-bar-content {
        flex-direction: row;
    }

    .container {
        padding: 0px 17px;
    }

    .cart-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        margin-top: 0px;
        height: calc(100vh);
        min-height: 228px;
        max-height: 228px;
    }

    .hero-slide-bg {
        background-size: contain;
    }

    .product-name {
        font-size: 11px;
        min-height: 20px;
    }

    .current-price {
        font-size: 18px;
    }

    .old-price {
        font-size: 10px;
    }

    .btn-add-cart {
        width: 45px;
        height: 45px;
        min-width: 45px;
        padding: 0;
        border-radius: 50%;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        box-shadow: 0 4px 20px var(--primary-color);
        position: relative;
        overflow: hidden;
    }

    .btn-add-cart::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-add-cart:active {
        transform: scale(0.9);
        animation: cartClick 0.3s ease;
    }

    .btn-add-cart:active::before {
        width: 100%;
        height: 100%;
    }

    .btn-add-cart i,
    .btn-add-cart .btn-text {
        position: relative;
        z-index: 1;
    }

    .btn-add-cart .btn-text {
        display: none;
    }

    .product-price {
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .product-actions-bottom {
        display: none;
    }

    @keyframes cartClick {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(0.85);
        }
        100% {
            transform: scale(0.9);
        }
    }

    .section-title {
        font-size: 27px;
    }

    .section-subtitle {
        font-size: 9px;
        margin-top: 6px;
    }

    .section-header {
        margin-bottom: 15px;
    }

    .categories {
        padding: 17px 0;
    }

    .category-card {
        padding: 14px 11px;
    }

    .category-card h3 {
        font-size: 15px;
    }

    .about {
        padding: 20px 0;
    }

    .about-text h2 {
        font-size: 25px;
    }

    .recognized-media {
        padding: 20px 0;
    }

    .media-slider-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .media-slider-wrapper::-webkit-scrollbar {
        display: none;
    }

    .media-slider {
        display: flex;
        gap: 15px;
        width: max-content;
        animation: none !important;
    }

    .media-slide {
        width: calc((100vw - 34px - 30px) / 2.5);
        min-width: calc((100vw - 34px - 30px) / 2.5);
        height: 100px;
        flex-shrink: 0;
    }

    .media-slide img {
        padding: 8px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 410px) {
    .product-rating{
        display:none;
    }
    .hero {
        min-height: 197px;
        max-height: 197px;
    }

    .product-image {
        height: 155px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    .product-info {
        padding: 6px 10px 0px;
    }
    .product-price{
        gap:0px;
    }
    .btn-add-cart {
width:35px;
height:35px;
min-width:35px;
font-size:10px;
    }
    .product-rating{
        display:none;
    }
    .product-name{
        font-size:14px;
    }
}

/* ===== Loading Animation ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}


