/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Main Site Colors */
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;

    /* Collection Page Colors */
    --collection-primary: #2563eb;
    --collection-secondary: #7c3aed;
    --collection-accent: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --whatsapp-color: #25D366;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.2);
    --filter-sidebar-width: 85%;
    --sort-sidebar-width: 85%;
    --bottom-nav-height: 70px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea0d 0%, #764ba20d 100%);
    min-height: 100vh;
}
.sort-sidebar {
    display: none !important;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.user-links {
    display: flex;
    gap: 15px;
}

.user-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.user-links a:hover {
    color: var(--secondary-color);
}




 
/* Search Form - Desktop */
.search-form {
    display: flex;
    align-items: center;
    margin: 0 20px;
    flex: 1;
    max-width: 400px;
}
.search-form input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 0.9rem;
}
.search-form button {
    background: var(--secondary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
}
.search-form button:hover {
    background: var(--primary-color);
}

/* Mobile Search Form (hidden by default) */
.mobile-search-form {
    display: none;
    background: white;
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--gray-200);
}
.mobile-search-form.active {
    display: block;
}
.mobile-search-form form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.mobile-search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 30px 0 0 30px;
    outline: none;
}
.mobile-search-form button {
    background: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
}
.mobile-search-form button:hover {
    background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .search-form {
        display: none; /* Hide desktop search on tablet/mobile */
    }
}
/*just for testing end*/


/* ===== NAVIGATION ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 10px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}
.mobile-left-icons {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}
/* ===== MOBILE SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.sidebar-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.close-sidebar {
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.close-sidebar:hover {
    color: var(--secondary-color);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 16px;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.sidebar-menu a i {
    width: 25px;
    margin-right: 10px;
    color: var(--secondary-color);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--secondary-color);
    color: white;
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    color: white;
}

.sidebar-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

.sidebar-contact p {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.sidebar-contact i {
    width: 25px;
    color: var(--secondary-color);
    margin-right: 10px;
}

.sidebar .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.sidebar .social-links a {
    width: 35px;
    height: 35px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.sidebar .social-links a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.overlay.active {
    display: block;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-carousel .carousel-item {
    height: 400px;
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

/* ===== CATEGORY SECTION ===== */
.category-section {
    background: var(--white);
    padding: 20px 0;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 -10px;
}

.category-item {
    flex: 0 0 auto;
    width: calc(16.666% - 30px);
    min-width: 100px;
    text-align: center;
    padding: 0 10px;
}

.category-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-item:hover .category-circle {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.category-circle i {
    font-size: 35px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    display: block;
}

.category-item:hover .category-name {
    color: var(--secondary-color);
}

.category-slider-mobile {
    display: none;
    position: relative;
    padding: 0 40px;
}

.category-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.category-slider-mobile .category-item {
    flex: 0 0 auto;
    width: 100px;
    min-width: auto;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.prev-arrow {
    left: 0;
}

.next-arrow {
    right: 0;
}

/* ===== COLLECTION PAGE SPECIFIC STYLES ===== */
.collection-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem;
}

/* Bootstrap grid override - ensure proper columns on desktop */
.collection-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.collection-wrapper .col-lg-3,
.collection-wrapper .col-lg-9 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Desktop (≥992px) */
@media (min-width: 992px) {
    .collection-wrapper .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .collection-wrapper .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* Tablet and below (≤991px) */
@media (max-width: 991px) {
    .collection-wrapper .col-lg-3,
    .collection-wrapper .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.modern-breadcrumb {
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--collection-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-separator {
    margin: 0 0.3rem;
    color: var(--gray-300);
}

.collection-header {
    background: linear-gradient(135deg, var(--collection-primary) 0%, var(--collection-secondary) 100%);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.collection-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.collection-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-description {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1.2rem;
}

.header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.stat-item {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp-color);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    border: 2px solid rgba(255,255,255,0.2);
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-btn:active {
    transform: scale(0.95);
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(37, 99, 235, 0.1);
    height: fit-content;
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .filter-sidebar {
        position: sticky;
        top: 20px;
        margin-bottom: 0;
    }
}

.filter-header, .sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.filter-title, .sort-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i, .sort-title i {
    color: var(--collection-primary);
}

.filter-close, .sort-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.filter-section-title i {
    color: var(--collection-primary);
    font-size: 0.9rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--collection-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid var(--gray-200);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--gray-50);
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.suggestion-info h6 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.suggestion-info small {
    color: var(--collection-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.price-inputs {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.price-input input {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9rem;
}

.price-input input:focus {
    outline: none;
    border-color: var(--collection-primary);
}

.price-range-slider {
    margin: 1rem 0;
    padding: 0 0.5rem;
}

.price-slider {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    position: relative;
    margin: 20px 0;
}

.range-bar {
    height: 100%;
    background: linear-gradient(to right, var(--collection-primary), var(--collection-secondary));
    border-radius: 2px;
    position: absolute;
    left: 0;
    right: 0;
}

.handle {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--collection-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.handle:active {
    cursor: grabbing;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.3rem 0;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--collection-primary);
}

.filter-checkbox span {
    color: var(--gray-700);
    font-size: 0.95rem;
    flex: 1;
}

.count-badge {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sort-radio {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}

.sort-radio:hover {
    background: var(--gray-50);
}

.sort-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--collection-primary);
}

.sort-radio span {
    color: var(--gray-700);
    font-size: 0.95rem;
    flex: 1;
}

.sort-radio i {
    color: var(--collection-primary);
    font-size: 1rem;
    opacity: 0.5;
}

.sort-radio input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--collection-primary);
}

.sort-radio input[type="radio"]:checked ~ i {
    opacity: 1;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-tag {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag i {
    cursor: pointer;
    color: var(--gray-500);
}

.filter-tag i:hover {
    color: var(--danger-color);
}

.clear-all {
    color: var(--collection-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.apply-filters-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--collection-primary), var(--collection-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.apply-filters-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.apply-sort-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--collection-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.apply-sort-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}





.payment-method-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 140px;
}

.payment-method-card img {
    filter: brightness(0) invert(1); /* adjust if logos are dark */
}

.badge.bg-dark {
    background-color: #1f2937 !important;
    color: white;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* Guest account section */
.bg-light {
    background-color: #f9fafb !important;
    border-radius: 12px;
}

.password-field .form-control {
    padding-right: 40px;
}
/* ===== COMPACT TOOLBAR (for home page) ===== */
.compact-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 4px 0;
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

.toolbar-left {
    display: flex;
    align-items: center;
}

.toolbar-left .section-title {
    margin-bottom: 0;
    font-size: 20px;
    padding-bottom: 0;
}

.toolbar-left .section-title:after {
    display: none;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 4px;
}

.items-per-page label {
    display: flex;
    align-items: center;
    font-size: 0;
}

.items-per-page label i {
    color: var(--collection-primary);
    font-size: 0.9rem;
    margin-right: 0;
}

.items-per-page label span {
    display: none;
}

.items-per-page select {
    padding: 4px 18px 4px 6px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--gray-700);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 10px;
    width: 55px;
    height: 26px;
}

.view-options {
    display: flex;
    gap: 3px;
    background: var(--gray-100);
    padding: 2px;
    border-radius: 6px;
    height: 26px;
}

.view-btn {
    background: none;
    border: none;
    padding: 3px 5px;
    border-radius: 5px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
}

.view-btn.active {
    background: white;
    color: var(--collection-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.view-btn i {
    font-size: 0.8rem;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--collection-primary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    white-space: nowrap;
    height: 26px;
}

.view-all-link i {
    font-size: 0.6rem;
}

/* ===== COLLECTION TOOLBAR ===== */
.collection-toolbar {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.result-count {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
}

.result-count strong {
    color: var(--collection-primary);
    font-weight: 700;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.secondary-menu-btn {
    background: linear-gradient(135deg, var(--collection-primary), var(--collection-secondary));
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.2rem;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.secondary-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.secondary-menu-btn:active {
    transform: translateY(0);
}

.desktop-sort {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 16px;
    min-width: 160px;
}

.desktop-sort:focus {
    outline: none;
    border-color: var(--collection-primary);
}

.filter-backdrop, .sort-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.filter-backdrop.active, .sort-backdrop.active {
    display: block;
}

.pull-to-refresh {
    display: none;
    text-align: center;
    padding: 15px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.pull-to-refresh.show {
    display: block;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

/* Product Card */
.product-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
    background: white;
    padding: 15px;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-item {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.badge-new { background: var(--collection-accent); color: white; }
.badge-sale { background: var(--danger-color); color: white; }
.badge-featured { background: var(--collection-primary); color: white; }
.badge-out-of-stock { background: var(--gray-600); color: white; }

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 15;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* New badge */
.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 15;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== ACTION BUTTONS - ALWAYS VISIBLE ===== */
.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex !important;
    gap: 12px;
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    width: auto;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--collection-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.8);
    pointer-events: auto;
}

.action-btn i {
    display: block !important;
    font-size: 1.1rem;
    color: var(--collection-primary);
}

.action-btn:hover {
    background: var(--collection-primary);
    transform: scale(1.1);
}

.action-btn:hover i {
    color: white;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product info section */
.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--collection-primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    display: block;
}

.product-title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--collection-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-count {
    color: var(--gray-500);
    font-size: 0.7rem;
}

.product-price {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--collection-primary);
}

.old-price {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.discount-badge-small {
    background: var(--success-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.product-stock {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-status {
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.stock-in {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stock-low {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stock-out {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--collection-primary), var(--collection-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* List View Styles */
.product-grid.list-view {
    display: block !important;
}

.product-grid.list-view .product-card {
    display: flex !important;
    flex-direction: row !important;
    margin-bottom: 15px;
    height: auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.product-grid.list-view .product-image-wrapper {
    width: 180px;
    min-width: 180px;
    padding-top: 180px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
}

.product-grid.list-view .product-info {
    flex: 1;
    padding: 20px;
}

.product-grid.list-view .product-actions {
    position: static;
    transform: none;
    margin-top: 15px;
    justify-content: flex-start;
}

.product-grid.list-view .action-btn {
    width: 40px;
    height: 40px;
}

.product-grid.list-view .product-title {
    font-size: 1.2rem;
    height: auto;
}

.no-products {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-products h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.no-products p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.reset-filters-btn {
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, var(--collection-primary), var(--collection-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== BANNER SLIDER ===== */
.banner-slider {
    position: relative;
    padding: 0 40px;
}

.banner-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.banner-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.banner-item {
    flex: 0 0 auto;
    width: 300px;
}

.banner-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

.banner-item:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* ===== TAB SECTION ===== */
.custom-tabs {
    border-bottom: 2px solid #eee;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.custom-tabs::-webkit-scrollbar {
    display: none;
}

.custom-tabs .nav-item {
    flex: 0 0 auto;
}

.custom-tabs .nav-link {
    color: var(--text-color);
    border: none;
    padding: 10px 25px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.custom-tabs .nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.custom-tabs .nav-link.active:after,
.custom-tabs .nav-link:hover:after {
    transform: scaleX(1);
}

.custom-tabs .nav-link.active {
    color: var(--secondary-color);
    background: transparent;
}

/* ===== SERVICE FEATURES ===== */
.service-features-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.service-card {
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    transform: rotateY(180deg);
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--collection-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-btn {
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
    font-weight: 500;
}

.page-link:hover {
    background: var(--collection-primary);
    color: white;
    border-color: var(--collection-primary);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--collection-primary), var(--collection-secondary));
    color: white;
    border: none;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    background: var(--gray-100);
}
/* ===== CHECKOUT PAGE ===== */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-header {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.checkout-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.checkout-step {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.checkout-step:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.step-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.9rem;
}

/* Address Cards */
.address-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.address-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.address-card.selected {
    border-color: #2563eb;
    background: #f0f9ff;
}

.address-card .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Payment Method Cards */
.payment-method-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    height: 100%;
}

.payment-method-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.payment-method-card.selected {
    border-color: #2563eb;
    background: #f0f9ff;
}

.payment-method-card .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
    border-bottom: none;
    padding-top: 1rem;
}

.place-order-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Form elements */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
}

/* ===== ORDER CONFIRMATION PAGE ===== */
.confirmation-container {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.confirmation-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.confirmation-message {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.order-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.order-details p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 0.5rem;
}

.order-details p:last-child {
    border-bottom: none;
}

.order-details strong {
    color: #2563eb;
}

.continue-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.continue-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    color: white;
}

/* ===== LOGIN & REGISTER PAGES ===== */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-form .form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.auth-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.auth-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .checkout-header h2 {
        font-size: 1.5rem;
    }
    
    .step-title h4 {
        font-size: 1.1rem;
    }
    
    .order-summary {
        margin-top: 2rem;
        position: static;
    }
    
    .address-card, .payment-method-card {
        margin-bottom: 1rem;
    }
    
    .confirmation-title {
        font-size: 1.5rem;
    }
    
    .confirmation-icon {
        font-size: 4rem;
    }
    
    .auth-container {
        margin: 2rem auto;
    }
}

@media (max-width: 576px) {
    .checkout-step {
        padding: 1rem;
    }
    
    .address-card, .payment-method-card {
        padding: 1rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .confirmation-container {
        padding: 1.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 10px;
    pointer-events: auto;
}

.toast-header {
    padding: 12px 15px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-body {
    padding: 12px 15px;
    font-size: 0.95rem;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 8px 10px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 99;
    border-top: 1px solid var(--gray-200);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s;
    border-radius: 10px;
    gap: 4px;
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

.mobile-nav-item.active {
    color: var(--collection-primary);
    background: rgba(37, 99, 235, 0.1);
}

.cart-count-badge {
    background: var(--collection-primary);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(10px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section i {
    width: 20px;
    color: var(--secondary-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #d35400;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small Desktop / Large Tablet */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-sidebar {
        position: sticky;
        top: 20px;
    }
    
    .sort-sidebar {
        display: none !important;
    }
    
    .desktop-sort {
        display: block;
    }
    
    .secondary-menu-btn {
        display: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
     .mobile-left-icons {
        display: none;
    }
    
    .filter-sidebar {
        margin-bottom: 20px;
    }
    
    .collection-header {
        padding: 1.5rem 1rem;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .desktop-sort {
        min-width: 140px;
    }
    
    .product-title {
        font-size: 0.9rem;
        height: 2.4rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }
     .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
       .mobile-left-icons {
        display: flex !important;
        gap: 15px;
        order: 3;
    }
    .logo {
        order: 2;
        margin: 0;
    }
    .hamburger {
        display: block !important;
         order: 1;
         
    }
    .mobile-left-icons a {
        color: var(--primary-color);
        font-size: 1.2rem;
        position: relative;
    }
      .mobile-cart .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--secondary-color);
        color: white;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    
    .category-grid {
        display: none;
    }
    
    .category-slider-mobile {
        display: block;
    }
    
    /* Product Grid - always 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image {
        padding: 8px;
    }
    
    /* Action buttons for mobile */
    .action-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 0.8rem;
        height: 2.2rem;
    }
    
    .current-price {
        font-size: 0.9rem;
    }
    
    .old-price {
        font-size: 0.7rem;
    }
    
    .add-to-cart-btn {
        padding: 6px 0;
        font-size: 0.7rem;
    }
    
    /* Collection toolbar on mobile */
    .collection-toolbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        margin-bottom: 12px !important;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border: 1px solid var(--gray-200);
        position: sticky;
        top: 0;
        z-index: 90;
        min-height: auto !important;
    }

    .result-count {
        font-size: 0.75rem !important;
        color: var(--gray-600);
        white-space: nowrap;
        margin: 0 !important;
        padding: 0 !important;
    }

    .result-count strong {
        font-size: 0.75rem !important;
    }

    .toolbar-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
    }

    .items-per-page {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .items-per-page label {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        font-size: 0 !important;
    }

    .items-per-page label i {
        font-size: 0.9rem !important;
        color: var(--collection-primary);
        margin: 0 !important;
    }

    .items-per-page label span {
        display: none !important;
    }

    .items-per-page select {
        padding: 4px 18px 4px 6px !important;
        font-size: 0.7rem !important;
        border-width: 1px !important;
        border-radius: 6px !important;
        max-width: 55px !important;
        background-position: right 2px center !important;
        background-size: 12px !important;
        height: 28px !important;
    }

    .secondary-menu-btn {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
        gap: 3px !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, var(--collection-primary), var(--collection-secondary));
        color: white;
        border: none;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .secondary-menu-btn i {
        font-size: 0.75rem !important;
    }

    .secondary-menu-btn span {
        display: inline !important;
        font-size: 0.7rem !important;
    }

    .secondary-menu-btn i:last-child {
        display: none !important;
    }

    .view-options {
        display: flex !important;
        gap: 2px !important;
        background: var(--gray-100);
        padding: 2px !important;
        border-radius: 8px !important;
        height: 28px !important;
    }

    .view-btn {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        min-width: 28px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .view-btn i {
        font-size: 0.8rem !important;
    }

    .desktop-sort {
        display: none !important;
    }

    /* Filter sidebar mobile */
    .filter-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: var(--filter-sidebar-width);
        max-width: 300px;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        border-radius: 0 15px 15px 0;
        margin-bottom: 0;
    }
    
    .filter-sidebar.mobile-open {
        left: 0;
    }
    
    .sort-sidebar {
        position: fixed;
        right: -100%;
        top: 0;
        width: var(--sort-sidebar-width);
        max-width: 300px;
        height: 100vh;
        z-index: 9999;
        transition: right 0.3s ease;
        overflow-y: auto;
        border-radius: 15px 0 0 15px;
    }
    
    .sort-sidebar.mobile-open {
     right: -1px;  /* add px */
    display: block !important;
    }
    
    .filter-close, .sort-close {
        display: block;
    }
    
    .filter-backdrop.active,
    .sort-backdrop.active {
        display: block;
    }
    
    .whatsapp-float-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: calc(var(--bottom-nav-height) + 10px);
        right: 12px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
}

/* Extra Small Mobile (≤400px) - keep 2 columns, just smaller */
@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-image-wrapper {
        padding-top: 100%;
    }
    
    .product-info {
        padding: 6px;
    }
    
    .product-title {
        font-size: 0.75rem;
        height: 2rem;
        line-height: 1.2;
    }
    
    .current-price {
        font-size: 0.8rem;
    }
    
    .old-price {
        font-size: 0.65rem;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .add-to-cart-btn {
        padding: 4px 0;
        font-size: 0.65rem;
    }
    
    .secondary-menu-btn span {
        display: none !important;
    }
    
    .secondary-menu-btn {
        padding: 5px !important;
        width: 32px !important;
    }
    
    .items-per-page select {
        max-width: 45px !important;
        padding: 4px 14px 4px 4px !important;
    }
    
    .result-count {
        font-size: 0.65rem !important;
    }
    
    .view-btn {
        min-width: 24px !important;
        padding: 3px 4px !important;
    }
    
    .view-btn i {
        font-size: 0.7rem !important;
    }
}

/* Very Small Mobile (≤340px) - still 2 columns */
@media (max-width: 340px) {
    .product-image-wrapper {
        width: 100%;
        height: auto;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .product-badge .badge-item {
        padding: 2px 5px;
        font-size: 0.55rem;
    }
    
    .product-title {
        font-size: 0.7rem;
    }
    
    .current-price {
        font-size: 0.75rem;
    }
}

/* List view on mobile - keep as horizontal rows */
.product-grid.list-view .product-card {
    display: flex !important;
    flex-direction: row !important;
}

/* ===== QUICK VIEW MODAL STYLES ===== */
.quick-view-main-image {
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.quick-view-gallery {
    margin-top: 10px;
}

.gallery-thumb {
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--collection-primary);
    transform: scale(1.05);
}

.quantity-selector {
    width: 120px;
}

.quantity-selector button {
    color: var(--collection-primary);
    font-weight: bold;
}

.quantity-selector button:hover {
    background: var(--collection-primary);
    color: white;
}

.quantity-selector button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

    /* Category Section - Ensure Single Row with Horizontal Scroll */
.category-section {
    position: relative;
    overflow: hidden;
}

/* Desktop Grid View - Hide on tablets and below */
.category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: center;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}

/* Banner Slider Section - Fully Responsive with Full Images */
.banner-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #f8f9fa;
}

.banner-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 45px;
}

.banner-slider-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    justify-content: center;
    scroll-padding: 0 50%;
}

/* Hide scrollbar for cleaner look */
.banner-slider-wrapper::-webkit-scrollbar {
    height: 5px;
}

.banner-slider-wrapper::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.banner-slider-wrapper::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

.banner-slider-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

.banner-item {
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner-item:hover img {
    transform: scale(1.03);
}

/* Responsive Sizes - Auto Adjust Based on Screen */
/* 4K Screens (2560px and above) */
@media (min-width: 2560px) {
    .banner-slider {
        max-width: 1800px;
    }
    
    .banner-item {
        width: calc(100% / 4 - 1rem);
        max-width: 500px;
        min-width: 350px;
    }
    
    .banner-slider-wrapper {
        gap: 2rem;
    }
}

/* Large Desktop (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .banner-slider {
        max-width: 1600px;
    }
    
    .banner-item {
        width: calc(100% / 3.5 - 1rem);
        max-width: 450px;
        min-width: 320px;
    }
    
    .banner-slider-wrapper {
        gap: 1.8rem;
    }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .banner-slider {
        max-width: 1300px;
    }
    
    .banner-item {
        width: calc(100% / 3 - 1rem);
        max-width: 400px;
        min-width: 300px;
    }
    
    .banner-slider-wrapper {
        gap: 1.5rem;
    }
}

/* Small Desktop/Large Laptop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .banner-slider {
        max-width: 1100px;
        padding: 0 40px;
    }
    
    .banner-item {
        width: calc(100% / 2.8 - 1rem);
        max-width: 380px;
        min-width: 280px;
    }
    
    .banner-slider-wrapper {
        gap: 1.3rem;
    }
}

/* Medium Laptop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .banner-slider {
        padding: 0 35px;
    }
    
    .banner-item {
        width: calc(100% / 2.5 - 1rem);
        max-width: 350px;
        min-width: 260px;
    }
    
    .banner-slider-wrapper {
        gap: 1.2rem;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .banner-slider {
        padding: 0 35px;
    }
    
    .banner-item {
        width: calc(100% / 2 - 1rem);
        max-width: 400px;
        min-width: 280px;
    }
    
    .banner-slider-wrapper {
        gap: 1.2rem;
        justify-content: flex-start;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .banner-slider {
        padding: 0 30px;
    }
    
    .banner-item {
        width: 280px;
        min-width: 260px;
    }
    
    .banner-slider-wrapper {
        gap: 1rem;
        justify-content: flex-start;
    }
}

/* Mobile Portrait (below 575px) */
@media (max-width: 575px) {
    .banner-slider {
        padding: 0 25px;
    }
    
    .banner-item {
        width: 260px;
        min-width: 240px;
    }
    
    .banner-slider-wrapper {
        gap: 0.8rem;
        justify-content: flex-start;
    }
}

/* Slider Arrows Styling */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    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.1);
    font-size: 20px;
    font-weight: bold;
    color: #495057;
}

.slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
    color: #007bff;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

/* Responsive Arrows */
@media (max-width: 768px) {
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .prev-arrow {
        left: 5px;
    }
    
    .next-arrow {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}


/* Tab Products Section - Centered Tabs */
.tab-products-section {
    padding: 3rem 0;
    background: #fff;
}

/* Tabs Navigation - Centered */
.custom-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    margin-bottom: 2rem !important;
    flex-wrap: wrap;
}

.nav-tabs.custom-tabs .nav-item {
    margin: 0;
}

.nav-tabs.custom-tabs .nav-link {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs.custom-tabs .nav-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.nav-tabs.custom-tabs .nav-link.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border: none;
}

.nav-tabs.custom-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

/* Responsive Tab Sizes */
@media (max-width: 768px) {
    .custom-tabs {
        gap: 0.3rem;
    }
    
    .nav-tabs.custom-tabs .nav-link {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .custom-tabs {
        gap: 0.2rem;
    }
    
    .nav-tabs.custom-tabs .nav-link {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-tabs.custom-tabs .nav-link.active::after {
        width: 30px;
        bottom: -1px;
    }
}

/* Optional: Make tabs scrollable on very small screens */
@media (max-width: 480px) {
    .custom-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
        padding-bottom: 5px;
    }
    
    .custom-tabs::-webkit-scrollbar {
        height: 3px;
    }
    
    .custom-tabs .nav-item {
        flex-shrink: 0;
    }
}
/* For laptop screens (max-width: 1366px) - Force horizontal scroll */
@media (max-width: 1366px) {
    .category-grid {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .category-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .category-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
}

/* Hide mobile slider on desktop */
.category-slider-mobile {
    display: none;
}

/* Category Item Styling */
.category-item {
    flex-shrink: 0;
    text-align: center;
    width: 100px;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
    background-color: rgba(0, 123, 255, 0.1);
}

.category-circle i {
    font-size: 32px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
    text-align: center;
}

/* Responsive Breakpoints */
@media (min-width: 1400px) {
    .category-grid {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .category-item {
        width: auto;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .category-item {
        width: 90px;
    }
    
    .category-circle {
        width: 70px;
        height: 70px;
    }
    
    .category-circle i {
        font-size: 28px;
    }
    
    .category-name {
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    /* Hide desktop grid on tablets/mobile */
    .category-grid {
        display: none;
    }
    
    /* Show mobile slider */
    .category-slider-mobile {
        display: block;
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    
    .category-slider-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0.5rem 0;
        scrollbar-width: none;
    }
    
    .category-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .category-item {
        flex-shrink: 0;
        width: 85px;
    }
    
    .category-circle {
        width: 70px;
        height: 70px;
    }
    
    .category-circle i {
        font-size: 28px;
    }
    
    
    /* Slider arrows */
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .slider-arrow:hover {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .prev-arrow {
        left: 5px;
    }
    
    .next-arrow {
        right: 5px;
    }
}
/* Category Section - Force Center on All Screens */
.category-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Desktop Grid View */
.category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0.5rem 0;
    width: 100%;
}

/* For ALL laptop screens - force center with scroll */
@media (max-width: 1600px) {
    .category-grid {
        display: flex;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 0.5rem 2rem;
        scrollbar-width: thin;
        position: relative;
    }
    
    /* Center the first item when page loads */
    .category-grid {
        scroll-snap-type: x mandatory;
        scroll-padding: 0 50%;
    }
    
    .category-item:first-child {
        scroll-snap-align: start;
    }
    
    .category-item {
        scroll-snap-align: center;
    }
    
    .category-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .category-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
}

/* Hide mobile slider on desktop */
.category-slider-mobile {
    display: none;
}

/* Specific fix for 13" laptops (1366x768) */
@media (min-width: 1200px) and (max-width: 1366px) {
    .category-grid {
        justify-content: center;
        gap: 1.2rem;
        padding: 0.5rem 1.5rem;
    }
    
    .category-item {
        width: 85px;
        flex-shrink: 0;
    }
    
    .category-circle {
        width: 70px;
        height: 70px;
    }
    
    .category-circle i {
        font-size: 28px;
    }
    
    .category-name {
        font-size: 12px;
    }
}

/* For 14" laptops */
@media (min-width: 1367px) and (max-width: 1440px) {
    .category-grid {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .category-item {
        width: 95px;
        flex-shrink: 0;
    }
}

/* For larger screens - fully centered with no scroll */
@media (min-width: 1601px) {
    .category-grid {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
    }
}


/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-collection-primary { color: var(--collection-primary) !important; }
.bg-primary { background: var(--primary-color) !important; }
.bg-secondary { background: var(--secondary-color) !important; }
.bg-light { background: var(--light-bg) !important; }
.bg-collection-primary { background: var(--collection-primary) !important; }

.rounded-custom { border-radius: var(--border-radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.shadow-custom-hover:hover { box-shadow: var(--shadow-hover) !important; }

.transition { transition: var(--transition) !important; }