/* ============================================
   MODERN E-COMMERCE WEBSITE - ENHANCED CSS
   Fixed Version with Proper Visibility
   Fully Responsive & Animated Design
   PHP 5.6 Compatible
   ============================================ */

   :root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    background: var(--light);
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

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

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

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    background: var(--white);
    position: relative;
}

.top-bar {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 998;
}

.top-bar.hidden {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
}

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

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a {
    color: var(--white);
    transition: var(--transition);
    font-weight: 500;
}

.top-bar-links a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.main-header {
    padding: 20px 0;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.compact {
    padding: 10px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

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

.logo i {
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: block;
}

.search-form {
    display: flex;
    gap: 10px;
    background: var(--light);
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    color: var(--dark);
}

.search-form input::placeholder {
    color: var(--text-light);
}

.search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.header-icon {
    position: relative;
    font-size: 24px;
    color: var(--dark);
    transition: var(--transition);
    cursor: pointer;
}

.header-icon:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    background: var(--dark);
    box-shadow: var(--shadow);
}

.main-nav.sticky-nav {
    top: 80px; /* main-header ki height */
}

.main-nav.sticky-nav.compact-mode {
    top: 60px; /* compact main-header ki height */
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 16px 24px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--primary);
    transition: transform 0.3s;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.nav-menu li a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    max-width: 650px;
    color: var(--white);
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.3);
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.category-card:hover::before {
    opacity: 0.1;
}

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

.category-card > * {
    position: relative;
    z-index: 1;
}

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

.category-card:hover .category-icon {
    transform: rotate(360deg) scale(1.1);
}

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

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

/* ============================================
   PRODUCT GRID - FIXED VISIBILITY
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    /*height: 200px;*/
    overflow: hidden;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.product-info {
    padding: 15px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    line-height: 1.4;
}

.product-title:hover {
    color: var(--primary);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-light);
    margin: 0; /* Remove default margin */
}

.stars {
    color: var(--warning);
    font-size: 14px;
    letter-spacing: 1px;
}

.product-rating span:last-child {
    font-size: 12px;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0; /* Remove default margin */
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

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

.btn-block {
    width: 100%;
    display: block;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a, 
.pagination span {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    background: var(--white);
    min-width: 44px;
    text-align: center;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--light);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    opacity: 0.9;
}

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

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-section ul li i {
    margin-right: 10px;
    color: var(--primary);
}

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

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

.social-icon:hover {
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-form p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    position: sticky;
    top: 100px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.info-item i {
    font-size: 28px;
    color: var(--white);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--white);
}

.info-item p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
    color: var(--white);
}

.info-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    opacity: 0.8;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

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

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }
    
    .slide-content h1 {
        font-size: 48px;
    }
    
    .slider-container {
        height: 500px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-btn.prev {
        left: 15px;
    }
    
    .slider-btn.next {
        right: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    /*.product-grid {*/
    /*    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
    /*    gap: 20px;*/
    /*}*/
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .contact-info {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .search-form button span {
        display: none;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    /*.product-image {*/
    /*    height: 200px;*/
    /*}*/
    
    .product-title {
        font-size: 14px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-rating {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px;
    }
    
    .contact-form h2,
    .contact-info h2 {
        font-size: 24px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* End of Enhanced Modern CSS */

/* Top Bar - Hide on mobile */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
}

/* Main Header Responsive */
.main-header {
    padding: 15px 0;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Search Toggle Button */
.mobile-search-toggle {
    display: none;
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    gap: 8px;
    background: var(--light);
    padding: 6px;
    border-radius: 10px;
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

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

.header-icon {
    position: relative;
    font-size: 22px;
    color: var(--dark);
}

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

/* MOBILE RESPONSIVE - 768px and below */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-text {
        display: none;
    }
    
    /* Show mobile search toggle */
    .mobile-search-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--light);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        color: var(--primary);
        font-size: 18px;
        cursor: pointer;
        order: 2;
    }
    
    /* Hide search bar by default on mobile */
    .search-bar {
        display: none !important; /* Force hide */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
        max-width: 100%;
        flex: none; /* Remove flex property on mobile */
    }
    
    /* Show search when active */
    .search-bar.mobile-active {
        display: block !important;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .search-form button span {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
        order: 3;
    }
    
    .header-icon {
        font-size: 20px;
    }
}

/* SMALL MOBILE - 480px and below */
@media (max-width: 480px) {
    .main-header {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 20px;
    }
    
    .mobile-search-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .header-icon {
        font-size: 18px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}


/* ============================================
   PRODUCTS WITH SIDEBAR LAYOUT
   ============================================ */

.products-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ============================================
   SIDEBAR BANNER
   ============================================ */

.sidebar-banner {
    position: sticky;
    top: 100px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    height: fit-content;
}

.banner-content {
    padding: 40px 30px;
    color: var(--white);
    text-align: center;
    position: relative;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.banner-discount {
    font-size: 36px;
    font-weight: 800;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-text {
    font-size: 15px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.banner-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 150px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* ============================================
   PRODUCT GRID WITH SIDEBAR
   ============================================ */

.products-with-sidebar .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 0;
}

/* ============================================
   PRODUCT META (RATING & PRICE IN ONE LINE)
   ============================================ */

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin: 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .products-with-sidebar {
        grid-template-columns: 250px 1fr;
        gap: 25px;
    }
    
    .products-with-sidebar .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .banner-discount {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .products-with-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar-banner {
        position: relative;
        top: 0;
    }
    
    .banner-content {
        padding: 30px 25px;
    }
    
    .products-with-sidebar .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-with-sidebar .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .deals-banner {
        display: none;
    }
}

        /* Category Products Section Styles */
        .category-products-section {
            background: var(--white);
            padding: 60px 0;
            min-height: 400px;
        }
        
        .loading-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: var(--radius);
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .skeleton-card {
            height: 400px;
        }
        
        /* Deals Section */
        .deals-banner {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
            padding: 80px 0;
            color: var(--white);
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .deals-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: pulse 15s infinite;
        }
        
        .deals-content {
            position: relative;
            z-index: 1;
        }
        
        .deals-title {
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 20px;
            text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
        }
        
        .countdown {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 30px 20px;
        }
        
        .countdown-item {
            background: rgba(255, 255, 255, 0.2);
            padding: 20px 30px;
            border-radius: var(--radius);
            backdrop-filter: blur(10px);
        }
        
        .countdown-value {
            display: block;
            font-size: 42px;
            font-weight: 700;
        }
        
        .countdown-label {
            display: block;
            font-size: 14px;
            text-transform: uppercase;
            margin-top: 5px;
        }
        
        /* Testimonials */
        .testimonial-card {
            background: var(--white);
            padding: 30px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            text-align: center;
        }
        
        .testimonial-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: var(--white);
            font-weight: 700;
        }
        
        .testimonial-text {
            font-style: italic;
            color: var(--text-light);
            margin: 20px 0;
            line-height: 1.8;
        }
        
        .testimonial-author {
            font-weight: 600;
            color: var(--dark);
        }
        
/* ============================================
   MODERN E-COMMERCE WEBSITE - ENHANCED CSS
   WITH MOBILE FILTER TOGGLE FUNCTIONALITY
   Fully Responsive & Animated Design
   ============================================ */

/* ... [Previous CSS remains same until Mobile Search section] ... */

/* Add this to your existing style.css */

/* ============================================
   MOBILE FILTER STYLES - BELOW 968px
   ============================================ */

@media (max-width: 968px) {
    /* Show mobile filter toggle button */
    .mobile-filter-toggle {
        display: flex !important;
        background: var(--primary);
        color: var(--white);
        border: none;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        font-size: 15px;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-filter-toggle:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }
    
    /* Filter Overlay */
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .filter-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Sidebar Slide-in */
    .shop-sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        overflow-y: auto;
        z-index: 999;
        transition: left 0.3s ease;
        margin: 0 !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .shop-sidebar.mobile-active {
        left: 0;
    }
    
    /* Close button for mobile filter */
    .mobile-filter-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--danger);
        color: var(--white);
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        transition: var(--transition);
    }
    
    .mobile-filter-close:hover {
        background: #dc2626;
        transform: rotate(90deg);
    }
    
    .shop-sidebar.mobile-active .mobile-filter-close {
        display: flex !important;
    }
    
    /* Add padding to first section for close button */
    .shop-sidebar.mobile-active .sidebar-section:first-child {
        padding-top: 50px;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .shop-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mobile-filter-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Prevent body scroll when filter is open */
body.filter-open {
    overflow: hidden;
}

/* Animation for slide-in effect */
@keyframes slideInLeft {
    from {
        left: -100%;
    }
    to {
        left: 0;
    }
}

@keyframes slideOutLeft {
    from {
        left: 0;
    }
    to {
        left: -100%;
    }
}

.shop-sidebar.mobile-active {
    animation: slideInLeft 0.3s ease;
}

/* Desktop - Hide mobile elements */
@media (min-width: 969px) {
    .mobile-filter-toggle {
        display: none !important;
    }
    
    .filter-overlay {
        display: none !important;
    }
    
    .mobile-filter-close {
        display: none !important;
    }
}