/* =====================================================
   Singh and Brothers - Main Stylesheet
   Modern Blue E-commerce Design (Fully Responsive)
   ===================================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #0f172a;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

.top-bar i {
    margin-right: 8px;
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 11px;
        padding: 8px 0;
    }
}

/* ===== HEADER ===== */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a2e;
    flex-shrink: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.logo-text h1 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f8fafc;
}

.search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 22px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.search-bar button:hover {
    background-color: #1d4ed8;
}

.header-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.header-icon {
    position: relative;
    text-decoration: none;
    color: #475569;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    min-width: 65px;
}

.header-icon:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

.header-icon-img {
    font-size: 22px;
    margin-bottom: 4px;
}

.badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* ===== MOBILE HEADER RESPONSIVE ===== */
@media (max-width: 968px) {
    .header-main {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-main {
        position: relative;
        padding: 12px 0;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .logo-text h1 {
        font-size: 17px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .header-icon span {
        display: none;
    }
    
    .header-icon {
        min-width: 45px;
        padding: 8px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 5px;
    }
    
    .search-bar input {
        padding: 15px 50px 15px 20px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .search-bar button {
        padding: 0 24px;
        font-size: 18px;
        border-radius: 0 12px 12px 0;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 10px 0;
        gap: 8px;
    }
    
    .logo {
        flex: 1;
        gap: 8px;
    }
    
    .logo-text h1 {
        font-size: 15px !important;
    }
    
    .logo-text p {
        font-size: 9px !important;
    }
    
    .logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        border-radius: 8px;
    }
    
    .header-icons {
        gap: 2px;
    }
    
    .header-icon {
        min-width: 38px;
        padding: 5px 6px;
    }
    
    .header-icon-img {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        right: 3px;
        top: 2px;
    }
    
    .search-bar input {
        padding: 12px 45px 12px 16px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .search-bar button {
        padding: 0 18px;
        font-size: 16px;
        border-radius: 0 10px 10px 0;
    }
}

/* ===== NAVIGATION ===== */
.nav {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-menu a i {
    font-size: 16px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #2563eb;
    color: white;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a2e;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a2e;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.mobile-nav-menu i {
    font-size: 18px;
    width: 24px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    overflow: hidden;
    min-height: 480px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
}

.slide.active {
    display: flex;
}

.slide-wrapper {
    display: flex;
    align-items: center;
    min-height: 480px;
    gap: 50px;
}

.slide-content {
    flex: 1;
    padding: 40px 0;
    z-index: 10;
}

.slide-badge {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
    line-height: 1.1;
}

.slide-desc {
    font-size: 17px;
    color: #64748b;
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 500px;
}

.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-image::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.slide-image img {
    max-width: 90%;
    max-height: 450px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* ===== SLIDER RESPONSIVE ===== */
@media (max-width: 968px) {
    .slide-title {
        font-size: 40px;
    }
    
    .slide-wrapper {
        min-height: 400px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 450px;
    }
    
    .slide-wrapper {
        min-height: auto;
        padding: 30px 0;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        min-height: 480px;
    }
    
    .slide-wrapper {
        flex-direction: column;
        min-height: auto;
        padding: 25px 0;
        gap: 15px;
    }
    
    .slide-content {
        text-align: center;
        padding: 15px 0;
        order: 1;
        width: 100%;
    }
    
    .slide-image {
        order: 2;
        width: 100%;
    }
    
    .slide-image img {
        max-height: 280px;
        max-width: 100%;
    }
    
    .slide-image::before {
        width: 200px;
        height: 200px;
    }
    
    .slide-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .slide-desc {
        font-size: 15px;
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .slide-badge {
        font-size: 10px;
        padding: 4px 14px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 420px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-desc {
        font-size: 14px;
    }
    
    .slide-image img {
        max-height: 220px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        min-height: 350px;
    }
    
    .slide-wrapper {
        min-height: 350px;
        flex-direction: row;
        gap: 20px;
        padding: 15px 0;
    }
    
    .slide-image img {
        max-height: 200px;
    }
    
    .slide-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .slide-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .slide-content {
        padding: 10px 0;
    }
    
    .slide-badge {
        font-size: 9px;
        padding: 3px 12px;
        margin-bottom: 8px;
    }
}

/* ===== SLIDER DOTS ===== */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(148, 163, 184, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover {
    background-color: rgba(148, 163, 184, 0.8);
}

.dot.active {
    background-color: #2563eb;
    width: 28px;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .slider-dots {
        bottom: 15px;
        gap: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .dot.active {
        width: 22px;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn i {
    font-size: 14px;
}

@media (hover: none) {
    .btn:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* ===== FEATURES ===== */
.features {
    padding: 50px 0;
    background-color: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    color: #2563eb;
}

.feature-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}

.feature-text p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* ===== FEATURES RESPONSIVE ===== */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 30px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 10px 0;
        gap: 14px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border-radius: 10px;
    }
    
    .feature-text h3 {
        font-size: 14px;
    }
    
    .feature-text p {
        font-size: 12px;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 70px 0;
    background-color: #f8fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
}

.view-all {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.view-all:hover {
    gap: 10px;
}

.view-all i {
    font-size: 14px;
}

/* ===== SECTIONS RESPONSIVE ===== */
@media (max-width: 968px) {
    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 22px !important;
    }
    
    .view-all {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .section-title {
        font-size: 20px !important;
    }
}

/* =====================================================
   CATEGORY CARDS - RESPONSIVE
   ===================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    border-color: #3b82f6;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.category-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background-color: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background-color: #dbeafe;
}

.category-icon img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.category-icon i {
    font-size: 40px;
    color: #3b82f6;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.category-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #2563eb;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CATEGORY RESPONSIVE ===== */
@media (max-width: 968px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
    }
    
    .category-icon img {
        width: 55px;
        height: 55px;
    }
    
    .category-icon i {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 18px 10px;
        border-radius: 10px;
        min-height: 120px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .category-icon img {
        width: 40px;
        height: 40px;
    }
    
    .category-icon i {
        font-size: 28px !important;
    }
    
    .category-name {
        font-size: 12px;
        font-weight: 600;
    }
    
    .category-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 380px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 12px 6px;
        min-height: 100px;
        border-radius: 8px;
        border-width: 1.5px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .category-icon img {
        width: 35px;
        height: 35px;
    }
    
    .category-icon i {
        font-size: 24px !important;
    }
    
    .category-name {
        font-size: 11px;
    }
}

@media (hover: none) {
    .category-card:hover {
        transform: none;
    }
}

/* =====================================================
   PRODUCT CARDS - 4 COLUMNS DESKTOP, 2 COLUMNS MOBILE
   ===================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    border-color: #cbd5e1;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s;
    border: none;
    color: #64748b;
    font-size: 16px;
}

.wishlist-btn:hover {
    background-color: #2563eb;
    color: white;
    transform: scale(1.1);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background-color: #f8fafc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 22px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f172a;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.product-name:hover {
    color: #2563eb;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
}

.old-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.discount {
    background-color: #dcfce7;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    padding: 12px;
    background-color: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.btn-buy-now {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ===== PRODUCT RESPONSIVE - 2 COLUMNS ON MOBILE ===== */
/* Tablet */
@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-image {
        height: 250px;
    }
}

/* Mobile - 2 columns */
@media (max-width: 640px) {
    
    
    .product-card {
        border-radius: 12px;
        border-width: 1px;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .product-image {
        height: 180px !important;
    }
    
    .product-image img {
        transition: none;
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .product-info {
        padding: 10px !important;
    }
    
    .product-name {
        font-size: 12px !important;
        margin-bottom: 4px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 32px;
    }
    
    .product-price {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .current-price {
        font-size: 14px !important;
        font-weight: 700;
    }
    
    .old-price {
        font-size: 11px !important;
    }
    
    .discount {
        font-size: 9px;
        padding: 2px 6px;
        border-radius: 4px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .product-actions form {
        width: 100%;
    }
    
    .btn-add-cart {
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 6px;
        min-height: 30px;
        border-width: 1.5px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-cart i {
        font-size: 12px;
    }
    
    .btn-buy-now {
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 6px;
        min-height: 30px;
        width: 100%;
        justify-content: center;
    }
    
    .product-badge {
        font-size: 8px;
        padding: 2px 8px;
        top: 6px;
        left: 6px;
        border-radius: 4px;
    }
    
    .wishlist-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: 6px;
        right: 6px;
    }
    
    .wishlist-btn i {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .product-grid {
        gap: 8px;
    }
    
    .product-image {
        height: 140px !important;
    }
    
    .product-info {
        padding: 8px !important;
    }
    
    .product-name {
        font-size: 11px !important;
        min-height: 28px;
    }
    
    .current-price {
        font-size: 12px !important;
    }
    
    .old-price {
        font-size: 10px !important;
    }
    
    .discount {
        font-size: 8px;
        padding: 1px 5px;
    }
    
    .btn-add-cart {
        font-size: 9px;
        padding: 4px 6px;
        min-height: 26px;
    }
    
    .btn-add-cart i {
        font-size: 10px;
    }
    
    .btn-buy-now {
        font-size: 9px;
        padding: 4px 6px;
        min-height: 26px;
    }
    
    .product-badge {
        font-size: 7px;
        padding: 1px 6px;
        top: 4px;
        left: 4px;
    }
    
    .wishlist-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
        top: 4px;
        right: 4px;
    }
    
    .wishlist-btn i {
        font-size: 10px;
    }
}

/* Extra Small Mobile */
@media (max-width: 350px) {
    .product-grid {
        gap: 6px;
    }
    
    .product-image {
        height: 120px !important;
    }
    
    .product-info {
        padding: 6px !important;
    }
    
    .product-name {
        font-size: 10px !important;
        min-height: 24px;
    }
    
    .current-price {
        font-size: 11px !important;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        font-size: 8px;
        padding: 3px 4px;
        min-height: 22px;
    }
    
    .btn-add-cart i {
        font-size: 8px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .product-image {
        height: 150px !important;
    }
    
    .product-info {
        padding: 10px !important;
    }
    
    .product-name {
        font-size: 12px !important;
        min-height: 28px;
    }
    
    .current-price {
        font-size: 13px !important;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        padding: 4px 8px;
        font-size: 10px;
        min-height: 28px;
    }
}

/* Hide Add to Cart text on very small screens */
@media (max-width: 400px) {
    .btn-add-cart .cart-text {
        display: none;
    }
    
    .btn-add-cart i {
        margin-right: 0;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    margin-bottom: 25px;
    font-size: 17px;
    font-weight: 700;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-section a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.social-icon:hover {
    background-color: #3b82f6;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 18px;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.payment-methods span {
    color: #cbd5e1;
    font-weight: 500;
}

.payment-icon {
    background-color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h3 {
        margin-bottom: 15px;
        font-size: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 12px;
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    padding: 60px 0 40px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header h1 {
        font-size: 32px !important;
    }
    
    .page-header p {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-header h1 {
        font-size: 26px !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.breadcrumb .active {
    color: white;
    font-weight: 600;
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        gap: 6px;
    }
}

/* ===== SEARCH AUTOCOMPLETE ===== */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.search-autocomplete.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: #1a1a2e;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 3px;
}

.search-result-price {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .search-autocomplete {
        max-height: 300px;
        border-radius: 0 0 12px 12px;
    }
    
    .search-result-item {
        padding: 15px 20px;
    }
    
    .search-result-img {
        width: 60px;
        height: 60px;
    }
    
    .search-result-name {
        font-size: 15px;
    }
    
    .search-result-price {
        font-size: 14px;
    }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    display: block;
    min-width: 40px;
    text-align: center;
}

.pagination li a:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.pagination li.active span {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination li a,
    .pagination li span {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
        border-radius: 6px;
    }
}

/* ===== DISABLED BUTTONS ===== */
.btn-add-cart:disabled,
.btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-add-cart:disabled:hover,
.btn-buy-now:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== CONTAINER RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* =====================================================
   DARK MODE SUPPORT
   ===================================================== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #e2e8f0;
    }
    
    .header {
        background-color: #1e293b;
    }
    
    .logo-text h1 {
        color: #e2e8f0;
    }
    
    .logo-text p {
        color: #94a3b8;
    }
    
    .header-icon {
        color: #94a3b8;
    }
    
    .header-icon:hover {
        background-color: #334155;
        color: #3b82f6;
    }
    
    .search-bar input {
        background-color: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .search-bar input:focus {
        background-color: #1e293b;
        border-color: #3b82f6;
    }
    
    .nav {
        background-color: #1e293b;
        border-color: #334155;
    }
    
    .nav-menu a {
        color: #94a3b8;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: #2563eb;
        color: white;
    }
    
    .product-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .product-card:hover {
        border-color: #475569;
    }
    
    .product-name {
        color: #e2e8f0;
    }
    
    .product-name:hover {
        color: #3b82f6;
    }
    
    .category-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .category-name {
        color: #e2e8f0;
    }
    
    .category-card:hover {
        border-color: #3b82f6;
    }
    
    .category-icon {
        background-color: #334155;
    }
    
    .category-card:hover .category-icon {
        background-color: #1e3a5f;
    }
    
    .wishlist-btn {
        background-color: #1e293b;
        color: #94a3b8;
    }
    
    .wishlist-btn:hover {
        background-color: #2563eb;
        color: white;
    }
    
    .section {
        background-color: #0f172a;
    }
    
    .features {
        background-color: #1e293b;
        border-color: #334155;
    }
    
    .feature-icon {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
        color: #3b82f6;
    }
    
    .feature-text h3 {
        color: #e2e8f0;
    }
    
    .feature-text p {
        color: #94a3b8;
    }
    
    .slide-title {
        color: #e2e8f0;
    }
    
    .slide-desc {
        color: #94a3b8;
    }
    
    .hero-slider {
        background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    }
    
    .mobile-nav {
        background: #1e293b;
    }
    
    .mobile-nav-header {
        border-color: #334155;
    }
    
    .mobile-nav-close {
        color: #e2e8f0;
    }
    
    .mobile-nav-menu li {
        border-color: #334155;
    }
    
    .mobile-nav-menu a {
        color: #e2e8f0;
    }
    
    .mobile-nav-menu a:hover,
    .mobile-nav-menu a.active {
        background-color: #334155;
        color: #3b82f6;
    }
    
    .mobile-menu-toggle {
        color: #e2e8f0;
    }
    
    .pagination li a,
    .pagination li span {
        border-color: #334155;
        color: #94a3b8;
    }
    
    .pagination li a:hover {
        border-color: #3b82f6;
        background: #1e3a5f;
        color: #3b82f6;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav,
    .footer,
    .features,
    .hero-slider {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
/* =====================================================
   ALL PRODUCTS PAGE - ADDITIONAL CSS (Nayi CSS)
   ===================================================== */

   
/* Filter Section Responsive */
@media (max-width: 968px) {
    .filter-section {
        padding: 20px !important;
    }
    
    .filter-section form {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .filter-section form select,
    .filter-section form .btn {
        width: 100% !important;
        min-width: unset !important;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    .filter-section form select {
        padding: 10px 35px 10px 14px !important;
        font-size: 15px !important;
        min-height: 44px !important;
    }
}

/* Page Header Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 25px !important;
    }
    
    .page-header h1 {
        font-size: 28px !important;
    }
    
    .page-header p {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 0 20px !important;
    }
    
    .page-header h1 {
        font-size: 22px !important;
    }
    
    .page-header p {
        font-size: 13px !important;
    }
}

/* Section Padding */
@media (max-width: 768px) {
    .products-section {
        padding: 30px 0 40px !important;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 20px 0 30px !important;
    }
}

/* Product Grid - Desktop 4 Columns, Mobile 2 Columns */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .product-image {
        height: 180px !important;
    }
    
    .product-info {
        padding: 10px !important;
    }
    
    .product-name {
        font-size: 12px !important;
    }
    
    .current-price {
        font-size: 14px !important;
    }
    
    .old-price {
        font-size: 11px !important;
    }
    
    .discount {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    .product-actions {
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    .product-actions form {
        width: 100% !important;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 10px !important;
        min-height: 30px !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .product-image {
        height: 150px !important;
    }
    
    .product-info {
        padding: 8px !important;
    }
    
    .product-name {
        font-size: 11px !important;
    }
    
    .current-price {
        font-size: 13px !important;
    }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .product-image {
        height: 120px !important;
    }
    
    .product-name {
        font-size: 10px !important;
    }
    
    .current-price {
        font-size: 11px !important;
    }
}

/* Empty State */
@media (max-width: 480px) {
    .empty-state {
        padding: 40px 15px !important;
    }
    
    .empty-state .empty-icon {
        font-size: 60px !important;
    }
    
    .empty-state h3 {
        font-size: 20px !important;
    }
}
.header-icon .badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    z-index: 10;
    line-height: 1;
}
@media (max-width: 768px) {
    /* Hide text labels on mobile */
    .header-icon span:not(.badge) {
        display: none !important;
    }
    
    /* Badge always visible on mobile */
    .header-icon .badge {
        display: flex !important;
        top: 2px;
        right: 4px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        padding: 0 4px;
        border-radius: 8px;
    }
    
    /* Adjust header icon for better badge visibility */
    .header-icon {
        min-width: 40px;
        padding: 6px 8px;
        position: relative;
    }
    
    .header-icon-img {
        font-size: 20px;
        margin-bottom: 0;
    }
}
.wishlist-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

@media (max-width: 768px) {
    .cart-count-badge,
    .wishlist-count-badge {
        min-width: 16px;
        height: 16px;
        font-size: 8px;
        top: -6px;
        right: -6px;
        padding: 0 3px;
    }
}

.header-icon .badge {
    display: flex !important;
}

/* Fix for header icons on mobile - keep badge visible */
@media (max-width: 768px) {
    .header-icon {
        position: relative !important;
    }
    
    /* Make sure badge is above everything */
    .header-icon .badge {
        z-index: 999 !important;
    }
}

/* =====================================================
   CART PAGE - ADDITIONAL CSS (Nayi CSS)
   ===================================================== */

/* Cart Grid Layout */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Cart Items Container */
.cart-items-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-items-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0f172a;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-item-name:hover {
    color: #2563eb;
}

.cart-item-attributes {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #64748b;
}

.cart-item-attributes i {
    margin-right: 5px;
}

.cart-item-attributes strong {
    color: #0f172a;
}

.cart-item-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.cart-item-price {
    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
}

.cart-item-quantity {
    font-size: 14px;
    color: #94a3b8;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-subtotal {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.cart-item-subtotal-label {
    font-size: 15px;
    color: #64748b;
}

.cart-item-subtotal-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* Quantity Input */
.quantity-input {
    width: 70px;
    padding: 8px 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Remove Button */
.remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #fca5a5;
}

/* Continue Shopping */
.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 25px;
}

.continue-shopping:hover {
    gap: 12px;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0f172a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-label {
    color: #64748b;
}

.summary-value {
    font-weight: 600;
    color: #0f172a;
}

.summary-divider {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-total {
    padding: 20px 0;
    margin-bottom: 25px;
}

.summary-total-label {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.summary-total-value {
    font-size: 26px;
    font-weight: 800;
    color: #2563eb;
}

.summary-features {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.summary-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.summary-feature:last-child {
    margin-bottom: 0;
}

.summary-feature-icon {
    font-size: 20px;
}

.summary-feature-icon.green {
    color: #10b981;
}

.summary-feature-icon.blue {
    color: #2563eb;
}

.summary-feature-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.summary-feature-desc {
    font-size: 12px;
    color: #64748b;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 16px;
}

.checkout-btn i {
    margin-left: 8px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-cart-title {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-cart-text {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Alert Message */
.alert-success-cart {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success-cart i {
    font-size: 20px;
}

/* =====================================================
   CART PAGE RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 968px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cart-summary {
        position: static !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .cart-items-container {
        padding: 20px;
    }
    
    .cart-items-title {
        font-size: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .cart-item-name {
        font-size: 15px;
    }
    
    .cart-item-attributes {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    
    .cart-item-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-price {
        font-size: 18px;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-input {
        width: 60px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .cart-item-subtotal-value {
        font-size: 16px;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    .summary-total-value {
        font-size: 22px;
    }
    
    .checkout-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .empty-cart {
        padding: 50px 15px;
    }
    
    .empty-cart-icon {
        font-size: 60px;
    }
    
    .empty-cart-title {
        font-size: 22px;
    }
    
    .empty-cart-text {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cart-items-container {
        padding: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-name {
        font-size: 14px;
    }
    
    .cart-item-price {
        font-size: 16px;
    }
    
    .quantity-input {
        width: 50px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .remove-btn {
        padding: 6px 10px;
    }
    
    .cart-summary {
        padding: 15px;
    }
    
    .summary-total-value {
        font-size: 20px;
    }
    
    .checkout-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* =====================================================
   FILTER SECTION - STYLISH & RESPONSIVE
   ===================================================== */

.filter-section {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 0 0 auto;
}

.filter-select {
    padding: 12px 40px 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 160px;
    color: #1a1a2e;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.filter-select:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-filter {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn-filter:active {
    transform: translateY(0);
}

.btn-clear {
    background: #f1f5f9;
    color: #475569;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-clear:hover {
    background: #e2e8f0;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.product-count {
    margin-left: auto;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
    white-space: nowrap;
}

.product-count span {
    color: #2563eb;
    font-weight: 700;
}

/* =====================================================
   FILTER SECTION - RESPONSIVE
   ===================================================== */

@media (max-width: 968px) {
    .filter-section {
        padding: 20px !important;
        border-radius: 14px !important;
    }
    
    .filter-form {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .filter-group {
        width: 100% !important;
    }
    
    .filter-select {
        width: 100% !important;
        min-width: unset !important;
        padding: 14px 40px 14px 18px !important;
        font-size: 15px !important;
    }
    
    .filter-actions {
        width: 100% !important;
    }
    
    .filter-actions .btn {
        flex: 1 !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
    
    .product-count {
        margin-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
        padding: 12px !important;
        font-size: 15px !important;
        white-space: normal !important;
    }
}

@media (max-width: 640px) {
    .filter-section {
        padding: 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    }
    
    .filter-select {
        padding: 12px 35px 12px 14px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        min-height: 48px !important;
        background-position: right 12px center !important;
    }
    
    .filter-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .filter-actions .btn {
        width: 100% !important;
        flex: none !important;
        padding: 12px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }
    
    .btn-filter {
        box-shadow: 0 4px 12px rgba(37,99,235,0.2) !important;
    }
    
    .product-count {
        font-size: 13px !important;
        padding: 10px !important;
        border-radius: 6px !important;
        background: #f1f5f9 !important;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 12px !important;
        border-radius: 10px !important;
        margin-bottom: 20px !important;
    }
    
    .filter-select {
        padding: 10px 30px 10px 12px !important;
        font-size: 15px !important;
        min-height: 42px !important;
        border-width: 1.5px !important;
        background-size: 10px !important;
    }
    
    .filter-actions .btn {
        padding: 10px !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }
    
    .product-count {
        font-size: 12px !important;
        padding: 8px !important;
    }
}

/* =====================================================
   FILTER SECTION - DARK MODE
   ===================================================== */

@media (prefers-color-scheme: dark) {
    .filter-section {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .filter-select {
        background-color: #334155 !important;
        border-color: #475569 !important;
        color: #e2e8f0 !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    }
    
    .filter-select:hover {
        border-color: #3b82f6 !important;
        background-color: #1e293b !important;
    }
    
    .filter-select:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 4px rgba(59,130,246,0.15) !important;
    }
    
    .btn-clear {
        background: #334155 !important;
        color: #94a3b8 !important;
    }
    
    .btn-clear:hover {
        background: #475569 !important;
        color: #e2e8f0 !important;
        transform: translateY(-2px) !important;
    }
    
    .product-count {
        background: #334155 !important;
        color: #94a3b8 !important;
    }
    
    .product-count span {
        color: #60a5fa !important;
    }
}

/* =====================================================
   FILTER SECTION - ANIMATION
   ===================================================== */

.filter-section {
    animation: fadeSlideDown 0.4s ease-out;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   SHOP PAGE - SIDEBAR & FILTERS (Nayi CSS)
   ===================================================== */

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.category-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.category-link.active {
    background: #eff6ff;
    color: #2563eb;
}

.category-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.sub-category-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 5px 20px;
}

.sub-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.sub-category-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.sub-category-link.active {
    background: #eff6ff;
    color: #2563eb;
}

.sub-category-count {
    font-size: 11px;
    color: #94a3b8;
}

/* Price Filter */
.price-filter {
    padding: 5px 0;
}

.price-range {
    position: relative;
    height: 40px;
    margin-bottom: 15px;
}

.price-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    position: absolute;
    pointer-events: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    margin-bottom: 12px;
}

.price-apply-btn {
    width: 100%;
    padding: 8px;
    font-size: 13px;
}

/* Size Filter */
.size-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
}

.size-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.size-label {
    font-weight: 500;
}

/* Color Filter */
.color-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
}

.color-checkbox input[type="checkbox"] {
    display: none;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    display: inline-block;
}

.color-checkbox input:checked + .color-dot {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
}

.color-name {
    font-size: 12px;
}

/* Shop Top Bar */
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-result-count {
    font-size: 14px;
    color: #64748b;
}

.shop-result-count span {
    font-weight: 700;
    color: #0f172a;
}

.shop-sort .filter-select {
    padding: 10px 35px 10px 15px;
    font-size: 14px;
    min-width: 180px;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-rating .stars {
    color: #f59e0b;
    font-size: 12px;
}

.product-rating .stars .far {
    color: #d1d5db;
}

.rating-count {
    font-size: 12px;
    color: #94a3b8;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .shop-sidebar {
        position: static !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .shop-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .shop-sort .filter-select {
        width: 100%;
        min-width: unset;
    }
    
    .category-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .sub-category-link {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sidebar-widget {
        padding: 15px;
        border-radius: 10px;
    }
    
    .widget-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .category-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .sub-category-link {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .color-filter {
        gap: 8px;
    }
    
    .color-dot {
        width: 18px;
        height: 18px;
    }
    
    .size-filter {
        gap: 6px;
    }
    
    .size-checkbox {
        font-size: 12px;
    }
    
    .price-values {
        font-size: 13px;
    }
    
    .shop-result-count {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sidebar-widget {
        padding: 12px;
        border-radius: 8px;
    }
    
    .widget-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .category-link {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .sub-category-link {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .color-dot {
        width: 16px;
        height: 16px;
    }
    
    .color-name {
        font-size: 11px;
    }
    
    .size-checkbox {
        font-size: 11px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .sidebar-widget {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .widget-title {
        color: #e2e8f0 !important;
        border-bottom-color: #334155 !important;
    }
    
    .category-link {
        color: #94a3b8 !important;
    }
    
    .category-link:hover {
        background: #334155 !important;
        color: #3b82f6 !important;
    }
    
    .category-link.active {
        background: #1e3a5f !important;
        color: #3b82f6 !important;
    }
    
    .sub-category-link {
        color: #94a3b8 !important;
    }
    
    .sub-category-link:hover {
        background: #334155 !important;
        color: #3b82f6 !important;
    }
    
    .sub-category-link.active {
        background: #1e3a5f !important;
        color: #3b82f6 !important;
    }
    
    .category-count,
    .sub-category-count {
        color: #64748b !important;
    }
    
    .price-values {
        color: #94a3b8 !important;
    }
    
    .shop-result-count {
        color: #94a3b8 !important;
    }
    
    .shop-result-count span {
        color: #e2e8f0 !important;
    }
    
    .size-checkbox {
        color: #94a3b8 !important;
    }
    
    .color-checkbox {
        color: #94a3b8 !important;
    }
    
    .price-slider {
        background: #475569 !important;
    }
    
    .price-slider::-webkit-slider-thumb {
        background: #3b82f6 !important;
    }
    
    .price-slider::-moz-range-thumb {
        background: #3b82f6 !important;
    }
}

/* =====================================================
   CATEGORY DROPDOWN - NAYI CSS
   ===================================================== */

.category-item.has-submenu {
    position: relative;
}

.category-toggle {
    cursor: pointer;
    user-select: none;
}

.category-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #94a3b8;
}

.category-toggle.active .category-arrow {
    transform: rotate(180deg);
}

.category-toggle .category-arrow i {
    transition: transform 0.3s ease;
}

/* Sub-category list - dropdown style */
.sub-category-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 5px 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sub-category-list.open {
    display: block !important;
}

.sub-category-list li {
    margin-bottom: 2px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .category-arrow {
        color: #64748b !important;
    }
}

/* =====================================================
   SHOP PAGE - NAYI CSS (Jo Pehle Se Nahi Hai)
   ===================================================== */

/* Shop Category Title */
.shop-category-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

/* Filter List - Like Image */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.filter-link.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.filter-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.filter-link.active .filter-count {
    color: #2563eb;
}

/* Color Filter List */
.color-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.color-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.color-filter-item:hover {
    background: #f1f5f9;
}

.color-filter-item.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.color-filter-item .color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
}

.more-colors-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.more-colors-link:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE - NAYI CSS
   ===================================================== */

@media (max-width: 968px) {
    .shop-category-title h2 {
        font-size: 20px;
    }
    
    .filter-link {
        font-size: 13px;
        padding: 5px 8px;
    }
}

@media (max-width: 640px) {
    .shop-category-title h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .filter-link {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .color-filter-item {
        font-size: 12px;
        padding: 3px 8px 3px 3px;
    }
    
    .color-filter-item .color-dot {
        width: 14px;
        height: 14px;
    }
}

/* Dark Mode - Nayi CSS */
@media (prefers-color-scheme: dark) {
    .shop-category-title h2 {
        color: #e2e8f0 !important;
    }
    
    .filter-link {
        color: #94a3b8 !important;
    }
    
    .filter-link:hover {
        background: #334155 !important;
        color: #3b82f6 !important;
    }
    
    .filter-link.active {
        background: #1e3a5f !important;
        color: #3b82f6 !important;
    }
    
    .filter-count {
        color: #64748b !important;
    }
    
    .filter-link.active .filter-count {
        color: #3b82f6 !important;
    }
    
    .color-filter-item {
        color: #94a3b8 !important;
    }
    
    .color-filter-item:hover {
        background: #334155 !important;
    }
    
    .color-filter-item.active {
        border-color: #3b82f6 !important;
        background: #1e3a5f !important;
    }
    
    .more-colors-link {
        color: #3b82f6 !important;
    }
}
/* =====================================================
   PRODUCT DETAIL PAGE - ZOOM FIX
   ===================================================== */

   
/* Main Image Container */
#slideshow-items-container {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    cursor: crosshair;
}

.slideshow-items {
    width: 100%;
    display: none;
    border-radius: 12px;
}

.slideshow-items.active {
    display: block !important;
}

/* Zoom Lens */
#lens {
    position: absolute;
    display: none;
    z-index: 10;
    background-color: rgba(59, 130, 246, 0.15);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Zoom Result - FIXED */
#result {
    position: absolute;
    display: none;
    z-index: 100;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    background-repeat: no-repeat;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background-size: 200% 200% !important;
}

/* Thumbnails */
.thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;
}

.slideshow-thumbnails {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.slideshow-thumbnails:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.slideshow-thumbnails.active {
    opacity: 1;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

/* =====================================================
   RESPONSIVE ZOOM
   ===================================================== */

@media (max-width: 968px) {
    #result {
        display: none !important;
    }
    
    #lens {
        display: none !important;
    }
    
    #slideshow-items-container {
        cursor: default !important;
        max-height: 500px;
    }
}
/* ===== ORDER DETAILS PAGE ===== */

/* Section Container */
.order-details-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    min-height: 70vh;
}

/* Back Button */
.back-button-wrapper {
    margin-bottom: 30px;
}

.back-button {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: inline-block;
}

.back-button:hover {
    color: #333;
}

/* Main Card */
.order-details-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Order Header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.order-number {
    font-size: 28px;
    margin-bottom: 10px;
}

.order-date {
    color: #666;
    margin: 0;
}

.order-header-right {
    text-align: right;
}

/* Order Status Badge */
.order-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.order-status-delivered {
    background: #d4edda;
    color: #155724;
}

.order-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status-processing {
    background: #cce5ff;
    color: #004085;
}

.order-status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

/* Content Grid */
.order-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Section Titles */
.section-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

/* Order Items */
.order-items-section {
    overflow: hidden;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.order-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.order-item-placeholder {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-item-placeholder span {
    font-size: 30px;
}

.order-item-details {
    flex: 1;
    min-width: 150px;
}

.order-item-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-item-sku {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.order-item-variants {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.order-item-quantity {
    color: #666;
    font-size: 13px;
}

.order-item-price {
    text-align: right;
    flex-shrink: 0;
}

.order-item-total {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
}

.order-item-unit-price {
    color: #666;
    font-size: 13px;
}

/* Sidebar */
.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-value {
    font-weight: bold;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
}

.total-amount {
    color: #e74c3c;
}

/* Payment Info */
.payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.payment-detail {
    margin-bottom: 10px;
}

.payment-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 2px;
}

.payment-value {
    font-weight: bold;
    text-transform: uppercase;
}

.payment-status {
    font-weight: bold;
    text-transform: capitalize;
}

.payment-status-paid {
    color: #27ae60;
}

.payment-status-pending {
    color: #f39c12;
}

.payment-status-failed {
    color: #e74c3c;
}

.transaction-id {
    font-weight: bold;
    font-size: 12px;
    word-break: break-all;
}

/* Shipping Address */
.shipping-address {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.customer-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.customer-phone {
    color: #666;
    font-size: 14px;
    margin-bottom: 3px;
}

.customer-email {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.address-details {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Order Notes */
.order-notes {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
}

.order-notes h4 {
    margin-bottom: 10px;
}

.order-notes p {
    color: #856404;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and Small Laptops */
@media screen and (max-width: 992px) {
    .order-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .order-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
    .order-details-section {
        padding: 30px 15px;
    }
    
    .order-details-card {
        padding: 20px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .order-header-left {
        width: 100%;
    }
    
    .order-header-right {
        text-align: center;
        width: 100%;
    }
    
    .order-number {
        font-size: 22px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .order-item-image,
    .order-item-placeholder {
        width: 100%;
        max-width: 150px;
        height: 150px;
    }
    
    .order-item-details {
        width: 100%;
    }
    
    .order-item-price {
        text-align: center;
        width: 100%;
    }
    
    .order-sidebar {
        grid-template-columns: 1fr;
    }
    
    .summary-total {
        font-size: 16px;
    }
    
    .order-status {
        font-size: 12px;
        padding: 6px 15px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .order-details-card {
        padding: 15px;
    }
    
    .order-number {
        font-size: 18px;
    }
    
    .order-date {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .order-item-name {
        font-size: 14px;
    }
    
    .order-item-total {
        font-size: 14px;
    }
    
    .order-summary,
    .payment-info,
    .shipping-address {
        padding: 15px;
    }
    
    .order-notes {
        padding: 15px;
        font-size: 14px;
    }
}
/* =====================================================
   MY ORDERS PAGE - NAYI CSS (NO CONFLICTS)
   ===================================================== */

/* Main Section */
.orders-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    min-height: 70vh;
}

.orders-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
}

/* Orders Container */
.orders-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Individual Order Card */
.order-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.order-card:last-child {
    margin-bottom: 0;
}

.order-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Order Card Header */
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.order-card-header-left {
    flex: 1;
}

.order-card-header-right {
    text-align: right;
    flex-shrink: 0;
}

.order-card-number {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}

.order-card-date {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.order-card-total {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
}

/* Order Status Badge - Unique Class */
.order-status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.order-status-badge.status-delivered {
    background: #d4edda;
    color: #155724;
}

.order-status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status-badge.status-processing {
    background: #cce5ff;
    color: #004085;
}

.order-status-badge.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

/* Order Details Grid */
.order-card-details {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.order-detail-item {
    padding: 5px 0;
}

.order-detail-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 3px;
    font-weight: 500;
}

.order-detail-value {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    text-transform: uppercase;
}

.order-detail-value.payment-paid {
    color: #27ae60;
}

.order-detail-value.payment-pending {
    color: #f39c12;
}

.order-detail-value.payment-failed {
    color: #e74c3c;
}

/* Order Actions */
.order-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* View Order Button */
.btn-view-order {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view-order:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Cancel Order Button */
.btn-cancel-order {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cancel-order:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Pagination */
.orders-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Empty State */
.empty-orders {
    background: white;
    border-radius: 8px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-orders-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-orders-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c2c2c;
    font-weight: 700;
}

.empty-orders-text {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Start Shopping Button */
.btn-start-shopping {
    padding: 15px 40px;
    font-size: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-start-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* =====================================================
   RESPONSIVE - SIRF ORDERS PAGE KE LIYE
   ===================================================== */

/* Tablets */
@media screen and (max-width: 992px) {
    .orders-page-title {
        font-size: 28px;
    }
    
    .orders-container {
        padding: 20px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .orders-section {
        padding: 30px 15px;
    }
    
    .orders-page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .orders-container {
        padding: 15px;
        border-radius: 6px;
    }
    
    .order-card {
        padding: 15px;
    }
    
    .order-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .order-card-header-right {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .order-card-total {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .order-card-number {
        font-size: 16px;
    }
    
    .order-card-details {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .order-detail-item {
        padding: 3px 0;
    }
    
    .order-detail-value {
        font-size: 14px;
    }
    
    .order-card-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-view-order,
    .btn-cancel-order {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px;
    }
    
    .empty-orders {
        padding: 40px 20px;
    }
    
    .empty-orders-icon {
        font-size: 60px;
    }
    
    .empty-orders-title {
        font-size: 20px;
    }
    
    .empty-orders-text {
        font-size: 14px;
    }
    
    .btn-start-shopping {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .orders-page-title {
        font-size: 20px;
    }
    
    .orders-container {
        padding: 10px;
        border-radius: 4px;
    }
    
    .order-card {
        padding: 12px;
        border-width: 1.5px;
        border-radius: 6px;
    }
    
    .order-card-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .order-card-number {
        font-size: 14px;
    }
    
    .order-card-date {
        font-size: 12px;
    }
    
    .order-card-total {
        font-size: 16px;
    }
    
    .order-status-badge {
        font-size: 10px;
        padding: 4px 12px;
    }
    
    .order-card-details {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .order-detail-label {
        font-size: 11px;
    }
    
    .order-detail-value {
        font-size: 13px;
    }
    
    .btn-view-order,
    .btn-cancel-order {
        font-size: 13px;
        padding: 10px;
        border-radius: 6px;
    }
    
    .empty-orders {
        padding: 30px 15px;
    }
    
    .empty-orders-icon {
        font-size: 50px;
    }
    
    .empty-orders-title {
        font-size: 18px;
    }
    
    .empty-orders-text {
        font-size: 13px;
    }
    
    .btn-start-shopping {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Very Small Mobile */
@media screen and (max-width: 360px) {
    .order-card {
        padding: 10px;
    }
    
    .order-card-number {
        font-size: 13px;
    }
    
    .order-card-total {
        font-size: 14px;
    }
    
    .order-status-badge {
        font-size: 9px;
        padding: 3px 10px;
    }
    
    .order-detail-value {
        font-size: 12px;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .orders-section {
        padding: 20px 0;
        min-height: auto;
    }
    
    .order-card {
        padding: 12px;
    }
    
    .order-card-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .order-card-header-right {
        text-align: right;
        flex-direction: row;
        align-items: center;
    }
    
    .order-card-details {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .order-card-actions {
        flex-direction: row;
    }
    
    .btn-view-order,
    .btn-cancel-order {
        width: auto;
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* =====================================================
   DARK MODE - SIRF ORDERS PAGE KE LIYE
   ===================================================== */

@media (prefers-color-scheme: dark) {
    .orders-section {
        background-color: #0f172a;
    }
    
    .orders-page-title {
        color: #e2e8f0;
    }
    
    .orders-container {
        background: #1e293b;
    }
    
    .order-card {
        border-color: #334155;
        background: #1e293b;
    }
    
    .order-card:hover {
        border-color: #3b82f6;
    }
    
    .order-card-header {
        border-bottom-color: #334155;
    }
    
    .order-card-number {
        color: #e2e8f0;
    }
    
    .order-card-date {
        color: #94a3b8;
    }
    
    .order-card-total {
        color: #f87171;
    }
    
    .order-detail-label {
        color: #94a3b8;
    }
    
    .order-detail-value {
        color: #e2e8f0;
    }
    
    .order-detail-value.payment-paid {
        color: #34d399;
    }
    
    .order-detail-value.payment-pending {
        color: #fbbf24;
    }
    
    .order-detail-value.payment-failed {
        color: #f87171;
    }
    
    .order-card-actions {
        border-top-color: #334155;
    }
    
    .btn-view-order {
        background-color: #334155;
        color: #e2e8f0;
    }
    
    .btn-view-order:hover {
        background-color: #475569;
    }
    
    .btn-cancel-order {
        background-color: #dc2626;
    }
    
    .btn-cancel-order:hover {
        background-color: #b91c1c;
    }
    
    .empty-orders {
        background: #1e293b;
    }
    
    .empty-orders-title {
        color: #e2e8f0;
    }
    
    .empty-orders-text {
        color: #94a3b8;
    }
    
    .order-status-badge.status-delivered {
        background: #065f46;
        color: #34d399;
    }
    
    .order-status-badge.status-cancelled {
        background: #7f1d1d;
        color: #fca5a5;
    }
    
    .order-status-badge.status-pending {
        background: #78350f;
        color: #fbbf24;
    }
    
    .order-status-badge.status-processing {
        background: #1e3a5f;
        color: #60a5fa;
    }
    
    .order-status-badge.status-shipped {
        background: #164e63;
        color: #67e8f9;
    }
}