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

:root {
    --primary-color: #4F46E5;
    --secondary-color: #7C3AED;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --dark: #1F2937;
    --light: #F9FAFB;
    --border: #E5E7EB;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
#header,
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 1;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-content,
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hamburger Menu */
.hamburger {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1001;
    margin-right: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Sidebar Container and Layout */
.Sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.Sidebar.open { 
    left: 0; 
}

.Sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: bold;
    font-size: 1.1rem;
}

.Sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.Sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
}

.Sidebar-menu a:hover { 
    background: #f3f4f6; 
}

.Sidebar-menu a.active {
    color: #667eea;
    background: #f3f4f6;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.has-dropdown { 
    position: relative; 
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-menu li a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    font-size: 0.95rem;
    color: #555;
    justify-content: flex-start;
}

.has-dropdown.open > .dropdown-menu {
    max-height: 300px;
}

.has-dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
}

.Overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.Overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    cursor: pointer;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Navigation */
.nav-menu,
.main-nav {
    flex: 1;
}

.nav-menu ul,
.main-nav {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link,
.main-nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.nav-link:hover,
.main-nav a:hover {
    opacity: 0.8;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    outline: none;
    transition: var(--transition);
    width: 200px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.3);
    width: 250px;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

.icon-btn,
.search-icon,
.wishlist-icon,
.cart-icon-header,
.user-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover,
.search-icon:hover,
.wishlist-icon:hover,
.cart-icon-header:hover,
.user-icon:hover {
    transform: scale(1.1);
}

.badge,
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 1;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-title,
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
}

.hero-subtitle,
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.2s backwards;
}

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

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--border);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #D1D5DB;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

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

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

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
}

/* Filter Tabs */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs,
.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn,
.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tab-btn.active,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-btn:hover,
.filter-btn:hover {
    border-color: var(--primary-color);
}

/* Brand Logo Selection */
.brand-logo-selection {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    text-align: center;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: block;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.brand-logo-selection a {
    display: block;
    line-height: 0;
    transition: var(--transition);
}

.brand-logo {
    max-width: 90px;
    height: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;

    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,

.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* Product Section 

html,body {
    height: 100%;
    margin: 0;

}

body {

    min-height: 100vh;
    display: flex;
    flex-direction: column;    
}

main{
    flex: 1;
}*/

.product-section {
    max-width: 1400px;
    margin: 0 auto 4rem;
    scroll-margin-top: 150px;
   
}

/* Card Container */
.card-container {
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

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

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* Wishlist button on card */
.card-wishlist-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-wishlist-btn i {
    font-size: 18px;
    color: #e91e63;
    transition: all 0.3s ease;
}

.card-wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.card-wishlist-btn.in-wishlist i {
    color: #e91e63;
}

.card-wishlist-btn:not(.in-wishlist) i {
    color: #ccc;
}

.card-wishlist-btn.in-wishlist {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: transform 0.3s;
    display: block;
    overflow: hidden;
    object-fit: contain;
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h5 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cost {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.add-to-cart:active {
    transform: scale(0.95);
}

/* Product Details Overlay Styles */
.product-details-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.product-details-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.product-details-container {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
}

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

.product-details-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f44336;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
}

.product-details-close:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

.product-details-content {
    display: flex;
    gap: 30px;
    padding: 40px;
}

.product-details-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-details-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details-info h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-details-specs {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.product-details-specs p {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.product-details-specs p:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.product-details-price-section {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.product-details-price {
    font-size: 32px;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 20px;
}

.product-details-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-details-add-cart,
.product-details-wishlist,
.product-details-whatsapp {
    flex: 1;
    min-width: 150px;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.product-details-add-cart {
    background: #6366f1;
    color: white;
}

.product-details-add-cart:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.product-details-wishlist {
    background: #fff;
    color: #e91e63;
    border: 2px solid #e91e63;
}

.product-details-wishlist:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.product-details-wishlist.in-wishlist {
    background: #e91e63;
    color: white;
}

.product-details-whatsapp {
    background: #25D366;
    color: white;
}

.product-details-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.product-details-add-cart i,
.product-details-wishlist i,
.product-details-whatsapp i {
    font-size: 18px;
}

/* Features Section */
.features-section {
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #6B7280;
}

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

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

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

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    position: relative;        
}

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    color: #9CA3AF;
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-content,
    .header-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .logo {
        padding-left: 0;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title,
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle,
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Brand logos */
    .brand-logo-selection {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .brand-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .logo-grid {
        gap: 1.5rem;
    }
    
    .brand-logo {
        max-width: 60px;
    }
    
    /* Product cards - FORCE 2 COLUMNS */
    .card-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    
    .card {
        width: 100%;
        min-width: 0;
    }
    
    .card-wishlist-btn {
        width: 32px;
        height: 32px;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .card-wishlist-btn i {
        font-size: 14px;
    }
    
    .card-badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .card img {
        height: 180px;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .card-content h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .card-content p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .cost {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .add-to-cart {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Product details overlay mobile */
    .product-details-container {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .product-details-content {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .product-details-image {
        margin-bottom: 10px;
    }
    
    .product-details-info h2 {
        font-size: 24px;
        margin-top: 0;
    }
    
    .product-details-price {
        font-size: 26px;
    }
    
    .product-details-buttons {
        flex-direction: column;
    }
    
    .product-details-add-cart,
    .product-details-wishlist,
    .product-details-whatsapp {
        width: 100%;
        min-width: auto;
    }
    
    /* Sidebar full width on mobile */
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    /* Section title */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Filter buttons scrollable */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-buttons {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    /* Force 2 columns on smallest screens */
    .card-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
        padding: 0.75rem 0.25rem;
    }
    
    .card-wishlist-btn {
        width: 28px;
        height: 28px;
        top: 0.4rem;
        left: 0.4rem;
    }
    
    .card-wishlist-btn i {
        font-size: 12px;
    }
    
    .card-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .card img {
        height: 150px;
    }
    
    .card-content {
        padding: 0.5rem;
    }
    
    .card-content h5 {
        font-size: 0.85rem;
    }
    
    .card-content p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    
    .cost {
        font-size: 1rem;
    }
    
    .add-to-cart {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .add-to-cart i {
        font-size: 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Cart Items Styling */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-details h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.cart-item-price {
    color: #007bff;
    font-weight: bold;
    margin: 5px 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cart-item-quantity button:hover {
    background: #f0f0f0;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item-remove:hover {
    background: #c82333;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/*.sidebar.active {
    right: 0;
}