/**
 * قالب اختصاصی صفحه فروشگاه و دسته‌بندی محصولات
 * Custom Shop & Category Page Styles
 * طراحی مینیمال و پیشرفته با فیلتر جذاب
 * 
 * @package Kowsh
 * @version 1.0.0
 */

/* ========================================
   Main Container
======================================== */
.kowsh-shop-page {
    padding: var(--kowsh-spacing-4xl) 0;
    background: #ffffff !important;
    min-height: 100vh;
    padding-top: 180px !important;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.kowsh-shop-page__container {
    max-width: var(--kowsh-container-2xl);
    margin: 0 auto;
    padding: 0 var(--kowsh-spacing-lg);
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ========================================
   Page Header - طراحی جذاب و مدرن
======================================== */
.kowsh-shop-page__header {
    text-align: center;
    margin-bottom: var(--kowsh-spacing-5xl);
    padding: var(--kowsh-spacing-4xl) var(--kowsh-spacing-xl);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(250, 250, 250, 1) 50%,
        rgba(255, 255, 255, 1) 100%);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Decorative Background Elements */
.kowsh-shop-page__header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(158, 11, 15, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.kowsh-shop-page__header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(158, 11, 15, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-15px, 15px) scale(0.9);
    }
}

/* Content Wrapper */
.kowsh-shop-page__header > * {
    position: relative;
    z-index: 1;
}

.kowsh-shop-page__title {
    font-size: 48px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 var(--kowsh-spacing-lg) 0;
    letter-spacing: -2px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 0.8s ease-out;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.kowsh-shop-page__title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--kowsh-color-barberry) 50%, 
        transparent 100%);
    border-radius: 2px;
    animation: lineExpand 1s ease-out 0.5s both;
}

@keyframes lineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

.kowsh-shop-page__description {
    font-size: 18px;
    color: #666666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: var(--kowsh-spacing-lg) 0;
    animation: descReveal 1s ease-out 0.3s both;
}

@keyframes descReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Dots */
.kowsh-shop-page__header::before,
.kowsh-shop-page__header::after {
    pointer-events: none;
}

/* ========================================
   Brand Page Specific Styles
======================================== */
.kowsh-brand-page__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--kowsh-spacing-lg);
}

.kowsh-brand-page__logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    padding: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: logoReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kowsh-brand-page__logo:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(158, 11, 15, 0.1);
}

.kowsh-brand-page__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0);
    transition: all 0.4s ease;
}

.kowsh-brand-page__logo:hover img {
    filter: grayscale(0) brightness(1.05);
}

.kowsh-brand-page__meta {
    display: flex;
    align-items: center;
    gap: var(--kowsh-spacing-md);
    margin-top: var(--kowsh-spacing-sm);
    animation: metaReveal 1s ease-out 0.5s both;
}

@keyframes metaReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.kowsh-brand-page__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(158, 11, 15, 0.08) 0%, rgba(158, 11, 15, 0.04) 100%);
    border: 1px solid rgba(158, 11, 15, 0.15);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--kowsh-color-barberry);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(158, 11, 15, 0.08);
    transition: all 0.3s ease;
}

.kowsh-brand-page__count:hover {
    background: linear-gradient(135deg, rgba(158, 11, 15, 0.12) 0%, rgba(158, 11, 15, 0.06) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 11, 15, 0.12);
}

/* Brand Page - Advanced Responsive Design
======================================== */

/* Extra Large Screens (1600px+) */
@media (min-width: 1600px) {
    .kowsh-brand-page__logo {
        width: 150px;
        height: 150px;
        padding: 20px;
        border-radius: 32px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 56px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__description {
        font-size: 20px;
        max-width: 800px;
    }
    
    .kowsh-brand-page__count {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* Large Desktop (1200px - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .kowsh-brand-page__logo {
        width: 130px;
        height: 130px;
        padding: 18px;
        border-radius: 28px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 48px;
    }
}

/* Tablet Landscape & Small Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .kowsh-brand-page__logo {
        width: 110px;
        height: 110px;
        padding: 14px;
        border-radius: 22px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 42px;
        letter-spacing: -1.5px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__description {
        font-size: 16px;
    }
    
    .kowsh-brand-page__count {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .kowsh-brand-page__header {
        gap: var(--kowsh-spacing-md);
        padding: var(--kowsh-spacing-2xl) var(--kowsh-spacing-lg);
    }
    
    .kowsh-brand-page__logo {
        width: 100px;
        height: 100px;
        padding: 12px;
        border-radius: 20px;
        animation: logoRevealTablet 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    
    @keyframes logoRevealTablet {
        0% {
            opacity: 0;
            transform: scale(0.9) translateY(15px);
        }
        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__description {
        font-size: 15px;
        line-height: 1.7;
        padding: var(--kowsh-spacing-md) 0;
    }
    
    .kowsh-brand-page__meta {
        margin-top: var(--kowsh-spacing-xs);
    }
    
    .kowsh-brand-page__count {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Large Mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .kowsh-brand-page__header {
        gap: var(--kowsh-spacing-md);
        padding: var(--kowsh-spacing-xl) var(--kowsh-spacing-md);
        border-radius: 20px;
    }
    
    .kowsh-brand-page__logo {
        width: 90px;
        height: 90px;
        padding: 12px;
        border-radius: 18px;
        animation: logoRevealMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    
    @keyframes logoRevealMobile {
        0% {
            opacity: 0;
            transform: scale(0.85) translateY(12px);
        }
        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 30px;
        letter-spacing: -0.8px;
        margin-bottom: var(--kowsh-spacing-xs);
    }
    
    .kowsh-brand-page .kowsh-shop-page__title::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__description {
        font-size: 14px;
        line-height: 1.7;
        padding: var(--kowsh-spacing-sm) 0;
    }
    
    .kowsh-brand-page__meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--kowsh-spacing-sm);
    }
    
    .kowsh-brand-page__count {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 40px;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    .kowsh-brand-page {
        padding-top: 140px !important;
    }
    
    .kowsh-brand-page__header {
        gap: var(--kowsh-spacing-sm);
        padding: var(--kowsh-spacing-lg) var(--kowsh-spacing-sm);
        border-radius: 16px;
        margin-bottom: var(--kowsh-spacing-lg);
    }
    
    /* Decorative elements smaller on mobile */
    .kowsh-brand-page .kowsh-shop-page__header::before {
        width: 150px;
        height: 150px;
        top: -30%;
        right: -15%;
    }
    
    .kowsh-brand-page .kowsh-shop-page__header::after {
        width: 120px;
        height: 120px;
        bottom: -20%;
        left: -10%;
    }
    
    .kowsh-brand-page__logo {
        width: 80px;
        height: 80px;
        padding: 10px;
        border-radius: 16px;
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.08),
            0 2px 6px rgba(0, 0, 0, 0.04);
        animation: logoRevealSmallMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    
    @keyframes logoRevealSmallMobile {
        0% {
            opacity: 0;
            transform: scale(0.8) translateY(10px);
        }
        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .kowsh-brand-page__logo:hover {
        transform: scale(1.03) translateY(-2px);
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 26px;
        letter-spacing: -0.5px;
        margin-bottom: var(--kowsh-spacing-xs);
        line-height: 1.2;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title::after {
        width: 50px;
        height: 3px;
        bottom: -6px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__description {
        font-size: 13px;
        line-height: 1.65;
        padding: var(--kowsh-spacing-xs) 0;
    }
    
    .kowsh-brand-page__meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: var(--kowsh-spacing-xs);
        animation: metaRevealMobile 0.8s ease-out 0.3s both;
    }
    
    @keyframes metaRevealMobile {
        0% {
            opacity: 0;
            transform: translateY(8px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .kowsh-brand-page__count {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 30px;
        box-shadow: 0 2px 6px rgba(158, 11, 15, 0.06);
    }
}

/* Extra Small Mobile (up to 374px) */
@media (max-width: 374px) {
    .kowsh-brand-page {
        padding-top: 130px !important;
    }
    
    .kowsh-brand-page__header {
        padding: var(--kowsh-spacing-md) var(--kowsh-spacing-xs);
        border-radius: 14px;
        gap: var(--kowsh-spacing-xs);
    }
    
    .kowsh-brand-page__logo {
        width: 70px;
        height: 70px;
        padding: 8px;
        border-radius: 14px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 22px;
        letter-spacing: -0.3px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title::after {
        width: 40px;
        height: 2px;
    }
    
    .kowsh-brand-page .kowsh-shop-page__description {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .kowsh-brand-page__count {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .kowsh-brand-page {
        padding-top: 100px !important;
    }
    
    .kowsh-brand-page__header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: var(--kowsh-spacing-lg);
        padding: var(--kowsh-spacing-lg) var(--kowsh-spacing-md);
    }
    
    .kowsh-brand-page__logo {
        width: 70px;
        height: 70px;
        padding: 8px;
        flex-shrink: 0;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .kowsh-brand-page .kowsh-shop-page__title::after {
        display: none;
    }
    
    .kowsh-brand-page .kowsh-shop-page__description {
        width: 100%;
        text-align: center;
        margin-top: var(--kowsh-spacing-xs);
    }
    
    .kowsh-brand-page__meta {
        width: 100%;
        justify-content: center;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .kowsh-brand-page__logo {
        border: 0.5px solid rgba(0, 0, 0, 0.08);
    }
    
    .kowsh-brand-page__logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations for Brand Page */
@media (hover: none) and (pointer: coarse) {
    .kowsh-brand-page__logo {
        transition: transform 0.2s ease;
    }
    
    .kowsh-brand-page__logo:hover {
        transform: none;
    }
    
    .kowsh-brand-page__logo:active {
        transform: scale(0.95);
    }
    
    .kowsh-brand-page__count:hover {
        transform: none;
    }
    
    .kowsh-brand-page__count:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, rgba(158, 11, 15, 0.15) 0%, rgba(158, 11, 15, 0.08) 100%);
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .kowsh-brand-page__logo,
    .kowsh-brand-page__meta,
    .kowsh-brand-page__count {
        animation: none;
        transition: none;
    }
    
    .kowsh-brand-page__logo:hover,
    .kowsh-brand-page__count:hover {
        transform: none;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .kowsh-brand-page__logo {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .kowsh-brand-page__logo {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .kowsh-brand-page .kowsh-shop-page__header::before,
    .kowsh-brand-page .kowsh-shop-page__header::after {
        display: none;
    }
}

/* ========================================
   Content Layout
======================================== */
.kowsh-shop-page__content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--kowsh-spacing-3xl);
    align-items: start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
}

.kowsh-shop-page__filters {
    position: sticky;
    top: calc(var(--kowsh-spacing-xl) + 80px);
    max-height: none;
    overflow: visible;
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: start;
    height: auto;
}

/* ========================================
   Filters Sidebar - طراحی مینیمال و جذاب
======================================== */
.kowsh-shop-page__filters-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    max-height: none;
}

/* Hide scrollbar completely */
.kowsh-shop-page__filters-wrapper::-webkit-scrollbar,
.kowsh-shop-page__filters::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.kowsh-shop-page__filters-wrapper,
.kowsh-shop-page__filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.kowsh-shop-page__filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.kowsh-shop-page__filters-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--kowsh-color-barberry) 0%, transparent 100%);
    border-radius: 2px;
}

.kowsh-shop-page__filters-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

.kowsh-shop-page__filters-close {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--kowsh-radius-base);
    cursor: pointer;
    color: var(--kowsh-color-text-secondary);
    transition: all var(--kowsh-transition-base);
}

.kowsh-shop-page__filters-close:hover {
    background: var(--kowsh-color-gray-100);
    color: var(--kowsh-color-text-primary);
}

.kowsh-shop-page__filters-close svg {
    width: 18px;
    height: 18px;
}

/* Filter Form */
.kowsh-shop-page__filters-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.kowsh-shop-page__filter-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.kowsh-shop-page__filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    letter-spacing: -0.2px;
}

.kowsh-shop-page__filter-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 40px;
    height: 1px;
    background: var(--kowsh-color-barberry);
}

/* Price Filter - طراحی مینیمال و جذاب */
.kowsh-shop-page__price-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.kowsh-shop-page__price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
    box-sizing: border-box;
}

.kowsh-shop-page__price-inputs input[type="number"] {
    flex: 1 1 0;
    min-width: 80px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--kowsh-font-family-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    color: #1a1a1a;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
}

.kowsh-shop-page__price-inputs input[type="number"]::-webkit-outer-spin-button,
.kowsh-shop-page__price-inputs input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.kowsh-shop-page__price-inputs input[type="number"]:focus {
    outline: none;
    border-color: var(--kowsh-color-barberry);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(158, 11, 15, 0.1);
}

.kowsh-shop-page__price-separator {
    font-size: 13px;
    color: #999999;
    font-weight: 600;
    padding: 0 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.kowsh-shop-page__price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.kowsh-shop-page__price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(158, 11, 15, 0.05) 0%, rgba(158, 11, 15, 0.02) 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--kowsh-color-barberry);
    margin-top: 4px;
}

.kowsh-shop-page__price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.kowsh-shop-page__price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kowsh-color-barberry) 0%, #c91419 100%);
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(158, 11, 15, 0.3),
        0 0 0 3px rgba(158, 11, 15, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
}

.kowsh-shop-page__price-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 3px 12px rgba(158, 11, 15, 0.4),
        0 0 0 4px rgba(158, 11, 15, 0.15);
}

.kowsh-shop-page__price-range input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kowsh-color-barberry) 0%, #c91419 100%);
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(158, 11, 15, 0.3),
        0 0 0 3px rgba(158, 11, 15, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ffffff;
}

.kowsh-shop-page__price-range input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
}

.kowsh-shop-page__price-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(158, 11, 15, 0.3);
}

.kowsh-shop-page__price-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--kowsh-color-barberry);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all var(--kowsh-transition-base);
}

.kowsh-shop-page__price-range input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(158, 11, 15, 0.3);
}

/* Checkbox Filters */
.kowsh-shop-page__filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding: 0;
}

.kowsh-shop-page__filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: #fafafa;
}

.kowsh-shop-page__filter-checkbox:hover {
    background: #f5f5f5;
    border-color: rgba(158, 11, 15, 0.1);
    transform: translateX(-3px);
}

.kowsh-shop-page__filter-checkbox input[type="checkbox"]:checked + .kowsh-shop-page__filter-checkbox-label {
    color: var(--kowsh-color-barberry);
    font-weight: 600;
}

.kowsh-shop-page__filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--kowsh-color-barberry);
    flex-shrink: 0;
    margin: 0;
}

.kowsh-shop-page__filter-checkbox input[type="checkbox"]:checked {
    background-color: var(--kowsh-color-barberry);
    border-color: var(--kowsh-color-barberry);
}

.kowsh-shop-page__filter-checkbox-label {
    font-size: 14px;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    transition: all 0.3s ease;
}

.kowsh-shop-page__filter-count {
    color: #999999;
    font-size: 12px;
    font-weight: 500;
}

/* Filter Actions */
.kowsh-shop-page__filter-actions {
    display: flex;
    flex-direction: column;
    gap: var(--kowsh-spacing-sm);
    padding-top: var(--kowsh-spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.kowsh-shop-page__filter-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--kowsh-color-barberry) 0%, #c91419 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--kowsh-font-family-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(158, 11, 15, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.kowsh-shop-page__filter-submit:hover {
    background: linear-gradient(135deg, var(--kowsh-color-barberry-dark) 0%, var(--kowsh-color-barberry) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(158, 11, 15, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.kowsh-shop-page__filter-reset {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #666666;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--kowsh-font-family-primary);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.kowsh-shop-page__filter-reset:hover {
    background: #f5f5f5;
    border-color: rgba(158, 11, 15, 0.2);
    color: var(--kowsh-color-barberry);
    transform: translateY(-1px);
}

/* ========================================
   Products Section
======================================== */
.kowsh-shop-page__products {
    background: var(--kowsh-color-white);
    border-radius: var(--kowsh-radius-xl);
    padding: var(--kowsh-spacing-xl);
    box-shadow: var(--kowsh-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Toolbar */
.kowsh-shop-page__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--kowsh-spacing-xl);
    padding-bottom: var(--kowsh-spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: var(--kowsh-spacing-md);
}

.kowsh-shop-page__toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--kowsh-spacing-md);
    flex-wrap: wrap;
}

/* WooCommerce Result Count Styling */
.kowsh-shop-page__toolbar-left .woocommerce-result-count {
    margin: 0;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
    border: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.kowsh-shop-page__toolbar-left .woocommerce-result-count:hover {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

/* WooCommerce Ordering Dropdown Styling */
.kowsh-shop-page__toolbar-left .woocommerce-ordering {
    margin: 0;
}

.kowsh-shop-page__toolbar-left .woocommerce-ordering select,
.kowsh-shop-page__toolbar-left select.orderby {
    padding: 10px 40px 10px 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 160px;
    font-family: var(--kowsh-font-family-primary);
}

.kowsh-shop-page__toolbar-left .woocommerce-ordering select:hover,
.kowsh-shop-page__toolbar-left select.orderby:hover {
    border-color: var(--kowsh-color-barberry);
    box-shadow: 0 4px 12px rgba(158, 11, 15, 0.1);
}

.kowsh-shop-page__toolbar-left .woocommerce-ordering select:focus,
.kowsh-shop-page__toolbar-left select.orderby:focus {
    outline: none;
    border-color: var(--kowsh-color-barberry);
    box-shadow: 0 0 0 3px rgba(158, 11, 15, 0.1);
}

.kowsh-shop-page__toolbar-right {
    display: none;
}

/* Mobile Filter Toggle Wrapper - زیر header */
.kowsh-shop-page__mobile-filter-toggle-wrapper {
    display: none;
    width: 100%;
    margin-bottom: var(--kowsh-spacing-xl);
    padding: 0 var(--kowsh-spacing-lg);
}

.kowsh-shop-page__filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--kowsh-spacing-sm);
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--kowsh-color-barberry) 0%, #c91419 100%);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(158, 11, 15, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.kowsh-shop-page__filters-toggle:hover {
    background: linear-gradient(135deg, var(--kowsh-color-barberry-dark) 0%, var(--kowsh-color-barberry) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(158, 11, 15, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.kowsh-shop-page__filters-toggle:active {
    transform: translateY(0);
}

.kowsh-shop-page__filters-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.kowsh-shop-page__filters-toggle span {
    font-weight: 700;
}


/* ========================================
   Product Cards - کارت‌های محصول فوق‌العاده جذاب
======================================== */

/* Reset WooCommerce Default Styles */
.woocommerce ul.products,
.woocommerce-page ul.products,
.kowsh-shop-page__products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--kowsh-spacing-xl) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
    content: none !important;
}

/* ========================================
   Kowsh Product Card - طراحی فوق‌العاده جذاب
======================================== */
.kowsh-product-card-wrapper,
.kowsh-products-card-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    height: 100% !important;
}

/* Make the kowsh-products-card work in shop grid */
.kowsh-shop-page__products .kowsh-products-card {
    height: 100%;
}

.kowsh-product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.kowsh-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(158, 11, 15, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 24px;
}

.kowsh-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kowsh-color-barberry) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    border-radius: 24px 24px 0 0;
}

.kowsh-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(158, 11, 15, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(158, 11, 15, 0.1);
}

.kowsh-product-card:hover::before {
    opacity: 1;
}

.kowsh-product-card:hover::after {
    opacity: 1;
}

/* Image Wrapper */
.kowsh-product-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f6f7 100%);
    border-radius: 24px 24px 0 0;
    z-index: 2;
}

.kowsh-product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}


.kowsh-product-card__image-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: brightness(1) saturate(1);
}

.kowsh-product-card:hover .kowsh-product-card__image-link img {
    transform: scale(1.08);
    filter: brightness(1.02) saturate(1.1);
}

/* Sale Badge */
.kowsh-product-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 25;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    box-shadow: 
        0 4px 16px rgba(216, 67, 54, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: badgePulse 3s ease-in-out infinite;
    backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: var(--kowsh-font-family-primary);
    transition: all 0.3s ease;
}

.kowsh-product-card__badge--sale {
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 50%, #ff3838 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.kowsh-product-card__badge--outofstock {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    top: auto;
    bottom: 18px;
    right: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 
            0 4px 16px rgba(216, 67, 54, 0.35),
            0 2px 6px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 
            0 6px 24px rgba(216, 67, 54, 0.45),
            0 3px 10px rgba(0, 0, 0, 0.2);
    }
}

.kowsh-product-card:hover .kowsh-product-card__badge {
    animation: none;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 
        0 8px 28px rgba(216, 67, 54, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Overlay for Quick View - حذف شده */

/* Content Section */
.kowsh-product-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    background: #ffffff;
    z-index: 2;
}

/* Product Title */
.kowsh-product-card__title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.5 !important;
    min-height: 45px;
    max-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
    letter-spacing: -0.3px;
}

.kowsh-product-card__title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: block !important;
}

.kowsh-product-card:hover .kowsh-product-card__title a {
    color: var(--kowsh-color-barberry) !important;
    transform: translateX(-2px);
}

/* Rating */
.kowsh-product-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.kowsh-product-card__stars {
    display: flex;
    gap: 3px;
    font-size: 14px;
    line-height: 1;
}

.kowsh-product-card__stars .star {
    color: #e0e0e0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.kowsh-product-card__stars .star.star-filled {
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.kowsh-product-card__rating-text {
    font-size: 12px;
    color: #666666;
    font-weight: 600;
}

/* Price */
.kowsh-product-card__price {
    margin: 4px 0 12px 0 !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl !important;
}

.kowsh-product-card__price .price,
.kowsh-product-card__price .woocommerce-Price-amount {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-end !important;
}

.kowsh-product-card__price del {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #999999 !important;
    text-decoration: line-through !important;
    opacity: 0.8 !important;
    margin-bottom: 2px !important;
}

.kowsh-product-card__price ins {
    display: block !important;
    text-decoration: none !important;
    color: var(--kowsh-color-barberry) !important;
    font-weight: 800 !important;
    font-size: 21px !important;
    letter-spacing: -0.6px;
    line-height: 1.3;
}

.kowsh-product-card__price .amount {
    color: var(--kowsh-color-barberry) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -0.6px;
}

.kowsh-product-card__price .woocommerce-Price-amount.amount {
    color: var(--kowsh-color-barberry) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
}

/* Actions */
.kowsh-product-card__actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.kowsh-product-card__actions .button,
.kowsh-product-card__actions .add_to_cart_button,
.kowsh-product-card__actions a.button {
    width: 100% !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: var(--kowsh-font-family-primary) !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    box-sizing: border-box !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.kowsh-product-card__actions .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.kowsh-product-card__actions .button:hover::before {
    width: 400px;
    height: 400px;
}

.kowsh-product-card__actions .button:hover,
.kowsh-product-card__actions .add_to_cart_button:hover,
.kowsh-product-card__actions a.button:hover {
    background: linear-gradient(135deg, var(--kowsh-color-barberry) 0%, #c91419 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 24px rgba(158, 11, 15, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.kowsh-product-card__actions .button.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    animation: successPulse 0.6s ease;
}

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

.kowsh-product-card__actions .button.loading {
    opacity: 0.8;
    pointer-events: none;
}

.kowsh-product-card__out-of-stock-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    display: block;
    cursor: not-allowed;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Products Grid/List */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--kowsh-spacing-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}


/* Product Card Container */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.kowsh-shop-page__products ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--kowsh-color-white) !important;
    border-radius: var(--kowsh-radius-xl) !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all var(--kowsh-transition-base) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(158, 11, 15, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Product Image Link */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    background: var(--kowsh-color-gray-100) !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--kowsh-radius-xl) var(--kowsh-radius-xl) 0 0 !important;
    text-decoration: none !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce-page ul.products li.product img,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.5s ease !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product span.onsale,
.woocommerce-page ul.products li.product .onsale,
.woocommerce-page ul.products li.product span.onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #d84336 !important;
    color: var(--kowsh-color-white) !important;
    border-radius: var(--kowsh-radius-base) !important;
    padding: 6px 12px !important;
    font-size: var(--kowsh-font-size-xs) !important;
    font-weight: var(--kowsh-font-weight-bold) !important;
    z-index: 10 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(216, 67, 54, 0.3) !important;
    animation: badgePulse 2s ease-in-out infinite !important;
    display: block !important;
    margin: 0 !important;
    min-width: auto !important;
    min-height: auto !important;
    text-align: center !important;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(216, 67, 54, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(216, 67, 54, 0.5);
    }
}

.woocommerce ul.products li.product:hover .onsale {
    transform: scale(1.1) rotate(-3deg);
    animation: none;
}

/* Product Content Wrapper */
.woocommerce ul.products li.product > * {
    display: block;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
    font-size: var(--kowsh-font-size-base) !important;
    font-weight: var(--kowsh-font-weight-semibold) !important;
    color: var(--kowsh-color-text-primary) !important;
    margin: var(--kowsh-spacing-md) var(--kowsh-spacing-md) var(--kowsh-spacing-sm) !important;
    padding: 0 !important;
    line-height: var(--kowsh-line-height-snug) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 48px !important;
    text-align: right !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title a {
    color: var(--kowsh-color-text-primary) !important;
    text-decoration: none !important;
    transition: color var(--kowsh-transition-base) !important;
    display: block !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title a,
.woocommerce ul.products li.product:hover h2.woocommerce-loop-product__title a {
    color: var(--kowsh-color-barberry) !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-Price-amount,
.woocommerce-page ul.products li.product .woocommerce-Price-amount {
    display: block !important;
    padding: 0 var(--kowsh-spacing-md) !important;
    margin: 0 0 var(--kowsh-spacing-md) 0 !important;
    font-size: var(--kowsh-font-size-lg) !important;
    font-weight: var(--kowsh-font-weight-bold) !important;
    color: var(--kowsh-color-text-primary) !important;
    line-height: 1.2 !important;
    text-align: right !important;
    direction: rtl !important;
}

.woocommerce ul.products li.product .price .amount,
.woocommerce-page ul.products li.product .price .amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
    font-size: var(--kowsh-font-size-sm) !important;
    font-weight: var(--kowsh-font-weight-medium) !important;
    color: var(--kowsh-color-text-tertiary) !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
    text-decoration: none !important;
    color: var(--kowsh-color-barberry) !important;
    font-weight: var(--kowsh-font-weight-bold) !important;
    display: block !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product .button,
.woocommerce-page ul.products li.product .add_to_cart_button,
.woocommerce-page ul.products li.product a.button {
    margin: 0 var(--kowsh-spacing-md) var(--kowsh-spacing-md) !important;
    padding: var(--kowsh-spacing-md) var(--kowsh-spacing-lg) !important;
    background: var(--kowsh-color-gray-800) !important;
    color: var(--kowsh-color-white) !important;
    border: none !important;
    border-radius: var(--kowsh-radius-lg) !important;
    font-size: var(--kowsh-font-size-sm) !important;
    font-weight: var(--kowsh-font-weight-semibold) !important;
    font-family: var(--kowsh-font-family-primary) !important;
    cursor: pointer !important;
    transition: all var(--kowsh-transition-base) !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    width: calc(100% - var(--kowsh-spacing-md) * 2) !important;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce-page ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .add_to_cart_button:hover,
.woocommerce-page ul.products li.product a.button:hover {
    background: var(--kowsh-color-barberry) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--kowsh-shadow-md) !important;
    color: var(--kowsh-color-white) !important;
}

.woocommerce ul.products li.product .button.added {
    background: #10b981;
    pointer-events: none;
}

.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.woocommerce ul.products li.product .button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--kowsh-color-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Star Rating */
.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating {
    margin: 0 var(--kowsh-spacing-md) var(--kowsh-spacing-sm) !important;
    font-size: var(--kowsh-font-size-sm) !important;
    height: 1em !important;
    line-height: 1 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 5.4em !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.woocommerce ul.products li.product .star-rating::before {
    content: '\2605\2605\2605\2605\2605';
    color: var(--kowsh-color-gray-300);
    float: right;
    left: 0;
    position: absolute;
    top: 0;
}

.woocommerce ul.products li.product .star-rating span {
    overflow: hidden;
    float: right;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.woocommerce ul.products li.product .star-rating span::before {
    content: '\2605\2605\2605\2605\2605';
    color: #ffc107;
    top: 0;
    position: absolute;
    left: 0;
}

/* Product Meta (Categories, Tags) */
.woocommerce ul.products li.product .product-categories,
.woocommerce ul.products li.product .product-tags {
    padding: 0 var(--kowsh-spacing-md);
    margin: 0 0 var(--kowsh-spacing-sm) 0;
    font-size: var(--kowsh-font-size-xs);
    color: var(--kowsh-color-text-tertiary);
}

.woocommerce ul.products li.product .product-categories a,
.woocommerce ul.products li.product .product-tags a {
    color: var(--kowsh-color-text-tertiary);
    text-decoration: none;
    transition: color var(--kowsh-transition-base);
}

.woocommerce ul.products li.product .product-categories a:hover,
.woocommerce ul.products li.product .product-tags a:hover {
    color: var(--kowsh-color-barberry);
}

/* List View Styles */

/* Product Info Wrapper */
.woocommerce ul.products li.product > * {
    flex: 0 0 auto;
}

.woocommerce ul.products li.product .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--kowsh-spacing-md);
}

/* Out of Stock Badge */
.woocommerce ul.products li.product.outofstock .woocommerce-loop-product__link::after {
    content: 'ناموجود';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--kowsh-color-white);
    padding: var(--kowsh-spacing-sm) var(--kowsh-spacing-md);
    border-radius: var(--kowsh-radius-base);
    font-size: var(--kowsh-font-size-sm);
    font-weight: var(--kowsh-font-weight-semibold);
    z-index: 5;
}

.woocommerce ul.products li.product.outofstock img {
    opacity: 0.5;
    filter: grayscale(50%);
}

/* Quick View / Wishlist Buttons (if added) */
.woocommerce ul.products li.product .product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: var(--kowsh-spacing-xs);
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--kowsh-transition-base);
}

.woocommerce ul.products li.product:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.woocommerce ul.products li.product .product-actions button {
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--kowsh-color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--kowsh-radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--kowsh-transition-base);
    box-shadow: var(--kowsh-shadow-sm);
}

.woocommerce ul.products li.product .product-actions button:hover {
    background: var(--kowsh-color-barberry);
    border-color: var(--kowsh-color-barberry);
    color: var(--kowsh-color-white);
    transform: scale(1.1);
}

.woocommerce ul.products li.product .product-actions button svg {
    width: 18px;
    height: 18px;
}

/* Result Count & Ordering */
.woocommerce-result-count,
.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: var(--kowsh-spacing-sm) var(--kowsh-spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--kowsh-radius-base);
    font-size: var(--kowsh-font-size-sm);
    font-family: var(--kowsh-font-family-primary);
    background: var(--kowsh-color-white);
    cursor: pointer;
    transition: all var(--kowsh-transition-base);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--kowsh-color-barberry);
    box-shadow: 0 0 0 3px rgba(158, 11, 15, 0.1);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: var(--kowsh-spacing-3xl);
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: var(--kowsh-spacing-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--kowsh-spacing-md);
    background: var(--kowsh-color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--kowsh-radius-base);
    color: var(--kowsh-color-text-secondary);
    text-decoration: none;
    font-size: var(--kowsh-font-size-sm);
    font-weight: var(--kowsh-font-weight-medium);
    transition: all var(--kowsh-transition-base);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--kowsh-color-barberry);
    color: var(--kowsh-color-white);
    border-color: var(--kowsh-color-barberry);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--kowsh-color-barberry);
    color: var(--kowsh-color-white);
    border-color: var(--kowsh-color-barberry);
}

/* ========================================
   Responsive Design - طراحی کاملاً رسپانسیو
======================================== */

/* Large Desktop (1400px+) */
@media screen and (min-width: 1400px) {
    .kowsh-shop-page__container {
        max-width: 1600px;
    }
    
    .kowsh-shop-page__content {
        grid-template-columns: 320px 1fr;
        gap: 48px;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

/* Desktop (1200px - 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .kowsh-shop-page__content {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* Tablet Large (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .kowsh-shop-page {
        padding-top: 170px !important;
    }
    
    .kowsh-shop-page__container {
        padding: 0 var(--kowsh-spacing-xl);
    }
    
    .kowsh-shop-page__header {
        padding: var(--kowsh-spacing-3xl) var(--kowsh-spacing-lg);
        margin-bottom: var(--kowsh-spacing-4xl);
    }
    
    .kowsh-shop-page__title {
        font-size: 40px;
    }
    
    .kowsh-shop-page__description {
        font-size: 16px;
    }
    
    .kowsh-shop-page__content {
        grid-template-columns: 260px 1fr;
        gap: var(--kowsh-spacing-2xl);
    }
    
    .kowsh-shop-page__filters-wrapper {
        padding: 24px;
    }
    
    .kowsh-shop-page__price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .kowsh-shop-page__price-inputs input[type="number"] {
        width: 100%;
        min-width: 100%;
    }
    
    .kowsh-shop-page__price-separator {
        display: none;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--kowsh-spacing-lg);
    }
    
    .kowsh-product-card__title {
        font-size: 14px !important;
    }
    
    .kowsh-product-card__price {
        font-size: 18px !important;
    }
}

/* Tablet (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .kowsh-shop-page {
        padding-top: 160px !important;
        overflow-x: hidden;
    }
    
    .kowsh-shop-page__container {
        padding: 0 var(--kowsh-spacing-lg);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .kowsh-shop-page__mobile-filter-toggle-wrapper {
        display: block;
        padding: 0 var(--kowsh-spacing-lg);
    }
    
    .kowsh-shop-page__filters-toggle {
        display: flex;
    }
    
    .kowsh-shop-page__content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        position: relative !important;
        grid-template-columns: 1fr !important;
    }
    
    .kowsh-shop-page__filters {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        z-index: 1000;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 20px 20px;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        padding: 0;
        margin: 0;
        margin-top: var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__filters.active {
        max-height: 70vh !important;
        opacity: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide scrollbar in mobile dropdown */
    .kowsh-shop-page__filters.active::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .kowsh-shop-page__filters.active {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .kowsh-shop-page__filters-wrapper {
        border-radius: 0;
        padding: 24px;
        box-shadow: none;
        border: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: visible;
        max-height: none;
    }
    
    /* Hide scrollbar in wrapper */
    .kowsh-shop-page__filters-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .kowsh-shop-page__filters-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .kowsh-shop-page__filters-close {
        display: flex;
    }
    
    .kowsh-shop-page__header {
        padding: var(--kowsh-spacing-2xl) var(--kowsh-spacing-lg);
        margin-bottom: var(--kowsh-spacing-3xl);
        border-radius: 20px;
    }
    
    .kowsh-shop-page__title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .kowsh-shop-page__description {
        font-size: 15px;
    }
    
    .kowsh-shop-page__content {
        grid-template-columns: 240px 1fr;
        gap: var(--kowsh-spacing-xl);
    }
    
    .kowsh-shop-page__filters-wrapper {
        padding: 20px;
    }
    
    .kowsh-shop-page__filters-title {
        font-size: 18px;
    }
    
    .kowsh-shop-page__filter-title {
        font-size: 14px;
    }
    
    .kowsh-shop-page__price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .kowsh-shop-page__price-inputs input[type="number"] {
        width: 100%;
        min-width: 100%;
    }
    
    .kowsh-shop-page__price-separator {
        display: none;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--kowsh-spacing-md);
    }
    
    /* kowsh-products-card Tablet (768px - 991px) */
    .kowsh-products-card {
        border-radius: 18px;
    }
    
    .kowsh-products-card__image {
        border-radius: 18px 18px 0 0;
    }
    
    .kowsh-products-card__content {
        padding: 16px;
    }
    
    .kowsh-products-card__title {
        font-size: 13px;
        margin-bottom: 10px;
        min-height: 40px;
        max-height: 40px;
    }
    
    .kowsh-products-card__sizes {
        gap: 5px;
        margin-bottom: 12px;
        min-height: 30px;
    }
    
    .kowsh-products-card__size {
        padding: 5px 9px;
        font-size: 11px;
    }
    
    .kowsh-products-card__price-wrapper {
        gap: 14px;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .kowsh-products-card__price-label {
        font-size: 10px;
    }
    
    .kowsh-products-card__price-new {
        font-size: 14px;
    }
    
    .kowsh-products-card__price-old {
        font-size: 12px;
    }
    
    .kowsh-products-card__add-to-cart {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    
    .kowsh-products-card__add-to-cart svg {
        width: 18px;
        height: 18px;
    }
    
    .kowsh-products-card__badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .kowsh-products-card__wishlist {
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
    }
    
    .kowsh-products-card__wishlist svg {
        width: 16px;
        height: 16px;
    }
    
    .kowsh-product-card__title {
        font-size: 14px !important;
    }
    
    .kowsh-product-card__price {
        font-size: 18px !important;
    }
    
    .kowsh-shop-page__toolbar {
        flex-direction: column;
        gap: var(--kowsh-spacing-md);
        padding: var(--kowsh-spacing-md);
        background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        margin-bottom: var(--kowsh-spacing-lg);
    }
    
    .kowsh-shop-page__toolbar-left {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--kowsh-spacing-sm);
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-result-count {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-ordering select,
    .kowsh-shop-page__toolbar-left select.orderby {
        padding: 8px 35px 8px 14px;
        font-size: 13px;
        border-radius: 10px;
        min-width: 140px;
        background-position: left 10px center;
    }
    
    .kowsh-shop-page__toolbar-right {
        display: none;
    }
}

/* Mobile Large (640px - 767px) */
@media screen and (min-width: 640px) and (max-width: 767px) {
    .kowsh-shop-page {
        padding: var(--kowsh-spacing-2xl) 0;
        padding-top: 160px !important;
        overflow-x: hidden;
    }
    
    .kowsh-shop-page__container {
        padding: 0 var(--kowsh-spacing-md);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .kowsh-shop-page__header {
        margin-bottom: var(--kowsh-spacing-3xl);
        padding: var(--kowsh-spacing-3xl) var(--kowsh-spacing-lg);
        border-radius: 20px;
    }
    
    .kowsh-shop-page__header::before,
    .kowsh-shop-page__header::after {
        width: 250px;
        height: 250px;
    }
    
    .kowsh-shop-page__title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .kowsh-shop-page__title::after {
        width: 60px;
        height: 3px;
    }
    
    .kowsh-shop-page__description {
        font-size: 15px;
        padding: var(--kowsh-spacing-md) 0;
    }
    
    .kowsh-shop-page__mobile-filter-toggle-wrapper {
        display: block;
        padding: 0 var(--kowsh-spacing-md);
        margin-bottom: var(--kowsh-spacing-xl);
    }
    
    .kowsh-shop-page__filters-toggle {
        display: flex;
    }
    
    .kowsh-shop-page__content {
        grid-template-columns: 1fr !important;
        gap: var(--kowsh-spacing-lg);
        width: 100%;
        position: relative;
        overflow-x: hidden;
    }
    
    .kowsh-shop-page__filters {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        z-index: 1000;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 20px 20px;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        padding: 0;
        margin: 0;
        margin-top: var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__filters.active {
        max-height: 75vh !important;
        opacity: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide scrollbar in mobile dropdown */
    .kowsh-shop-page__filters.active::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .kowsh-shop-page__filters.active {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .kowsh-shop-page__filters-wrapper {
        border-radius: 0;
        padding: var(--kowsh-spacing-lg);
        box-shadow: none;
        border: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: visible;
        max-height: none;
    }
    
    /* Hide scrollbar in wrapper */
    .kowsh-shop-page__filters-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .kowsh-shop-page__filters-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .kowsh-shop-page__filters-close {
        display: flex;
    }
    
    .kowsh-shop-page__products {
        padding: 0;
    }
    
    .kowsh-shop-page__toolbar {
        flex-direction: column;
        gap: var(--kowsh-spacing-sm);
        padding: var(--kowsh-spacing-md);
        background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
        border-radius: 14px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        margin-bottom: var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__toolbar-left {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-result-count {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
        order: 2;
        flex: 1;
        text-align: center;
        min-width: 100px;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-ordering {
        order: 1;
        flex: 1;
        min-width: 130px;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-ordering select,
    .kowsh-shop-page__toolbar-left select.orderby {
        width: 100%;
        padding: 8px 32px 8px 12px;
        font-size: 12px;
        border-radius: 8px;
        min-width: unset;
        background-position: left 8px center;
    }
    
    .kowsh-shop-page__toolbar-right {
        display: none;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--kowsh-spacing-md);
    }
    
    /* kowsh-products-card Mobile Responsive (640px - 767px) */
    .kowsh-products-card {
        border-radius: 16px;
    }
    
    .kowsh-products-card__image {
        border-radius: 16px 16px 0 0;
    }
    
    .kowsh-products-card__content {
        padding: 14px;
    }
    
    .kowsh-products-card__title {
        font-size: 12px;
        margin-bottom: 8px;
        min-height: 36px;
        max-height: 36px;
    }
    
    .kowsh-products-card__sizes {
        gap: 4px;
        margin-bottom: 10px;
        min-height: 28px;
    }
    
    .kowsh-products-card__size {
        padding: 4px 7px;
        font-size: 10px;
    }
    
    .kowsh-products-card__price-wrapper {
        gap: 12px;
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .kowsh-products-card__price-label {
        font-size: 9px;
    }
    
    .kowsh-products-card__price-new {
        font-size: 13px;
    }
    
    .kowsh-products-card__price-old {
        font-size: 11px;
    }
    
    .kowsh-products-card__add-to-cart {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .kowsh-products-card__add-to-cart svg {
        width: 17px;
        height: 17px;
    }
    
    .kowsh-products-card__badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .kowsh-products-card__badge--outofstock {
        bottom: 8px;
        top: auto;
    }
    
    .kowsh-products-card__wishlist {
        top: 8px;
        left: 8px;
        width: 28px;
        height: 28px;
    }
    
    .kowsh-products-card__wishlist svg {
        width: 14px;
        height: 14px;
    }
    
    .kowsh-shop-page__price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .kowsh-shop-page__price-inputs input[type="number"] {
        width: 100%;
        min-width: 100%;
    }
    
    .kowsh-shop-page__price-separator {
        display: none;
    }
    
    .kowsh-shop-page__price-display {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }
    
    /* Product Cards Mobile */
    .woocommerce ul.products li.product {
        border-radius: var(--kowsh-radius-lg);
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__link {
        border-radius: var(--kowsh-radius-lg) var(--kowsh-radius-lg) 0 0;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: var(--kowsh-font-size-sm);
        padding: var(--kowsh-spacing-sm) var(--kowsh-spacing-sm) 0;
        min-height: 40px;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: var(--kowsh-font-size-base);
        padding: 0 var(--kowsh-spacing-sm);
        margin: 0 0 var(--kowsh-spacing-sm) 0;
    }
    
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button {
        margin: 0 var(--kowsh-spacing-sm) var(--kowsh-spacing-sm);
        padding: var(--kowsh-spacing-sm) var(--kowsh-spacing-md);
        font-size: var(--kowsh-font-size-xs);
        width: calc(100% - var(--kowsh-spacing-sm) * 2);
    }
    
    .woocommerce ul.products li.product .onsale {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* Kowsh Product Card Mobile */
    .kowsh-product-card {
        border-radius: 16px;
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.04),
            0 1px 2px rgba(0, 0, 0, 0.02);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .kowsh-product-card::before,
    .kowsh-product-card::after {
        border-radius: 16px;
    }
    
    .kowsh-product-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }
    
    .kowsh-product-card__image-wrapper {
        border-radius: 16px 16px 0 0;
        aspect-ratio: 1 / 1;
    }
    
    .kowsh-product-card__content {
        padding: 14px;
        gap: 8px;
    }
    
    .kowsh-product-card__title {
        font-size: 13px !important;
        font-weight: 600 !important;
        min-height: 36px;
        max-height: 36px;
        line-height: 1.4 !important;
        letter-spacing: 0 !important;
    }
    
    .kowsh-product-card__rating {
        gap: 6px;
        margin: 2px 0;
    }
    
    .kowsh-product-card__stars {
        font-size: 11px;
        gap: 2px;
    }
    
    .kowsh-product-card__rating-text {
        font-size: 10px;
    }
    
    .kowsh-product-card__price {
        margin: 4px 0 8px 0 !important;
    }
    
    .kowsh-product-card__price ins,
    .kowsh-product-card__price .amount {
        font-size: 16px !important;
        font-weight: 700 !important;
    }
    
    .kowsh-product-card__price del {
        font-size: 11px !important;
    }
    
    .kowsh-product-card__badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 9px;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(216, 67, 54, 0.3);
    }
    
    .kowsh-product-card__badge--outofstock {
        bottom: 10px;
        right: 10px;
    }
    
    .kowsh-product-card__actions {
        padding-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .kowsh-product-card__actions .button,
    .kowsh-product-card__actions .add_to_cart_button,
    .kowsh-product-card__actions a.button {
        padding: 10px 14px !important;
        font-size: 11px !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px;
    }
    
    /* Sizes container */
    .kowsh-product-card__sizes {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin: 4px 0;
    }
    
    .kowsh-product-card__size {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 6px;
        background: #f5f5f5;
        color: #666;
    }
    
}

/* Mobile Medium (480px - 639px) */
@media screen and (min-width: 480px) and (max-width: 639px) {
    .kowsh-shop-page {
        padding-top: 150px !important;
    }
    
    .kowsh-shop-page__container {
        padding: 0 var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__mobile-filter-toggle-wrapper {
        display: block !important;
        padding: 0 var(--kowsh-spacing-md);
        margin-bottom: var(--kowsh-spacing-lg);
    }
    
    .kowsh-shop-page__filters-toggle {
        display: flex !important;
    }
    
    .kowsh-shop-page__content {
        position: relative !important;
        grid-template-columns: 1fr !important;
    }
    
    .kowsh-shop-page__filters {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        z-index: 1000;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 20px 20px;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        padding: 0;
        margin: 0;
        margin-top: var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__filters.active {
        max-height: 75vh !important;
        opacity: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .kowsh-shop-page__header {
        padding: var(--kowsh-spacing-2xl) var(--kowsh-spacing-md);
        border-radius: 16px;
        margin-bottom: var(--kowsh-spacing-2xl);
    }
    
    .kowsh-shop-page__header::before,
    .kowsh-shop-page__header::after {
        width: 180px;
        height: 180px;
    }
    
    .kowsh-shop-page__title {
        font-size: 30px;
        letter-spacing: -0.5px;
        margin-bottom: var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__title::after {
        width: 50px;
        height: 2px;
        bottom: -8px;
    }
    
    .kowsh-shop-page__description {
        font-size: 14px;
        padding: var(--kowsh-spacing-sm) 0;
    }
    
    .kowsh-shop-page__filters {
        max-width: 100%;
    }
    
    .kowsh-shop-page__filters-wrapper {
        padding: var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__filters-title {
        font-size: 18px;
    }
    
    .kowsh-shop-page__filter-title {
        font-size: 13px;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* kowsh-products-card Medium Mobile (480px - 639px) */
    .kowsh-products-card {
        border-radius: 14px;
    }
    
    .kowsh-products-card__image {
        border-radius: 14px 14px 0 0;
    }
    
    .kowsh-products-card__content {
        padding: 12px;
    }
    
    .kowsh-products-card__title {
        font-size: 11px;
        margin-bottom: 7px;
        min-height: 33px;
        max-height: 33px;
    }
    
    .kowsh-products-card__sizes {
        gap: 3px;
        margin-bottom: 9px;
        min-height: 26px;
    }
    
    .kowsh-products-card__size {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .kowsh-products-card__price-wrapper {
        gap: 10px;
        margin-top: auto;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .kowsh-products-card__price-label {
        font-size: 8px;
    }
    
    .kowsh-products-card__price-new {
        font-size: 12px;
    }
    
    .kowsh-products-card__price-old {
        font-size: 10px;
    }
    
    .kowsh-products-card__add-to-cart {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .kowsh-products-card__add-to-cart svg {
        width: 15px;
        height: 15px;
    }
    
    .kowsh-products-card__badge {
        top: 6px;
        right: 6px;
        padding: 3px 7px;
        font-size: 10px;
    }
    
    .kowsh-products-card__badge--outofstock {
        bottom: 6px;
        top: auto;
    }
    
    .kowsh-products-card__wishlist {
        top: 6px;
        left: 6px;
        width: 26px;
        height: 26px;
    }
    
    .kowsh-products-card__wishlist svg {
        width: 12px;
        height: 12px;
    }
    
    /* Product Card - Medium Mobile */
    .kowsh-product-card {
        border-radius: 14px;
        box-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.04),
            0 1px 2px rgba(0, 0, 0, 0.02);
        transition: all 0.25s ease;
    }
    
    .kowsh-product-card::before,
    .kowsh-product-card::after {
        border-radius: 14px;
    }
    
    .kowsh-product-card:active {
        transform: scale(0.97);
    }
    
    .kowsh-product-card__image-wrapper {
        border-radius: 14px 14px 0 0;
        aspect-ratio: 1 / 1;
        background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    }
    
    .kowsh-product-card__image-link img {
        transition: transform 0.4s ease !important;
    }
    
    .kowsh-product-card__content {
        padding: 12px;
        gap: 6px;
    }
    
    .kowsh-product-card__title {
        font-size: 12px !important;
        font-weight: 600 !important;
        min-height: 32px;
        max-height: 32px;
        line-height: 1.35 !important;
        margin-bottom: 4px !important;
    }
    
    .kowsh-product-card__rating {
        gap: 4px;
        margin: 2px 0;
    }
    
    .kowsh-product-card__stars {
        font-size: 10px;
        gap: 1px;
    }
    
    .kowsh-product-card__rating-text {
        font-size: 9px;
        color: #888;
    }
    
    .kowsh-product-card__price {
        margin: 2px 0 6px 0 !important;
    }
    
    .kowsh-product-card__price ins,
    .kowsh-product-card__price .amount {
        font-size: 15px !important;
        font-weight: 700 !important;
        letter-spacing: -0.3px;
    }
    
    .kowsh-product-card__price del {
        font-size: 10px !important;
        opacity: 0.6 !important;
    }
    
    .kowsh-product-card__badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 8px;
        border-radius: 16px;
        box-shadow: 0 2px 6px rgba(216, 67, 54, 0.25);
        animation: none;
    }
    
    .kowsh-product-card__badge--outofstock {
        bottom: 8px;
        right: 8px;
        top: auto;
    }
    
    .kowsh-product-card__actions {
        padding-top: 6px;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        margin-top: auto;
    }
    
    .kowsh-product-card__actions .button {
        padding: 8px 12px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
    }
    
    /* Sizes - Medium Mobile */
    .kowsh-product-card__sizes {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        margin: 3px 0;
    }
    
    .kowsh-product-card__size {
        padding: 2px 6px;
        font-size: 9px;
        border-radius: 4px;
        background: #f0f0f0;
    }
    
    .kowsh-shop-page__price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .kowsh-shop-page__price-inputs input[type="number"] {
        width: 100%;
        min-width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .kowsh-shop-page__price-separator {
        display: none;
    }
    
    .kowsh-shop-page__price-display {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
        padding: 8px;
    }
}

/* Mobile Small (<480px) */
@media screen and (max-width: 479px) {
    .kowsh-shop-page {
        padding: var(--kowsh-spacing-xl) 0;
        padding-top: 140px !important;
    }
    
    .kowsh-shop-page__container {
        padding: 0 var(--kowsh-spacing-sm);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .kowsh-shop-page__header {
        padding: var(--kowsh-spacing-xl) var(--kowsh-spacing-sm);
        border-radius: 16px;
        margin-bottom: var(--kowsh-spacing-xl);
    }
    
    .kowsh-shop-page__header::before,
    .kowsh-shop-page__header::after {
        width: 150px;
        height: 150px;
    }
    
    .kowsh-shop-page__title {
        font-size: 26px;
        letter-spacing: -0.5px;
        margin-bottom: var(--kowsh-spacing-sm);
    }
    
    .kowsh-shop-page__title::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }
    
    .kowsh-shop-page__description {
        font-size: 13px;
        padding: var(--kowsh-spacing-xs) 0;
        line-height: 1.6;
    }
    
    .kowsh-shop-page__mobile-filter-toggle-wrapper {
        display: block !important;
        padding: 0 var(--kowsh-spacing-sm);
        margin-bottom: var(--kowsh-spacing-lg);
    }
    
    .kowsh-shop-page__filters-toggle {
        display: flex !important;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .kowsh-shop-page__filters-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .kowsh-shop-page__content {
        position: relative !important;
        grid-template-columns: 1fr !important;
    }
    
    .kowsh-shop-page__filters {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        z-index: 1000;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 16px 16px;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        padding: 0;
        margin: 0;
        margin-top: var(--kowsh-spacing-sm);
    }
    
    .kowsh-shop-page__filters.active {
        max-height: 75vh !important;
        opacity: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .kowsh-shop-page__filters-wrapper {
        padding: var(--kowsh-spacing-md);
    }
    
    .kowsh-shop-page__filters-title {
        font-size: 16px;
    }
    
    .kowsh-shop-page__filter-title {
        font-size: 12px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .kowsh-shop-page__filter-checkbox {
        padding: 8px 10px;
    }
    
    .kowsh-shop-page__filter-checkbox-label {
        font-size: 13px;
    }
    
    .kowsh-shop-page__filter-submit,
    .kowsh-shop-page__filter-reset {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .kowsh-shop-page__price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .kowsh-shop-page__price-inputs input[type="number"] {
        width: 100%;
        min-width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .kowsh-shop-page__price-separator {
        display: none;
    }
    
    .kowsh-shop-page__price-display {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
        padding: 8px;
    }
    
    .kowsh-shop-page__toolbar {
        flex-direction: column;
        gap: 8px;
        padding: var(--kowsh-spacing-sm);
        background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        margin-bottom: var(--kowsh-spacing-sm);
    }
    
    .kowsh-shop-page__toolbar-left {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-result-count {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
        text-align: center;
        order: 2;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-ordering {
        width: 100%;
        order: 1;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-ordering select,
    .kowsh-shop-page__toolbar-left select.orderby {
        width: 100%;
        padding: 10px 32px 10px 12px;
        font-size: 12px;
        border-radius: 10px;
        min-width: unset;
        background-position: left 10px center;
        text-align: center;
        text-align-last: center;
    }
    
    .kowsh-shop-page__toolbar-right {
        display: none;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* kowsh-products-card Small Mobile (<480px) */
    .kowsh-products-card {
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
    
    .kowsh-products-card__image {
        border-radius: 12px 12px 0 0;
    }
    
    .kowsh-products-card__content {
        padding: 10px;
    }
    
    .kowsh-products-card__title {
        font-size: 10px;
        margin-bottom: 5px;
        min-height: 30px;
        max-height: 30px;
    }
    
    .kowsh-products-card__sizes {
        gap: 2px;
        margin-bottom: 6px;
        min-height: 22px;
    }
    
    .kowsh-products-card__size {
        padding: 2px 5px;
        font-size: 8px;
    }
    
    .kowsh-products-card__price-wrapper {
        gap: 8px;
        margin-top: auto;
        padding-top: 6px;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .kowsh-products-card__price-label {
        font-size: 7px;
    }
    
    .kowsh-products-card__price-new {
        font-size: 11px;
    }
    
    .kowsh-products-card__price-old {
        font-size: 9px;
    }
    
    .kowsh-products-card__add-to-cart {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }
    
    .kowsh-products-card__add-to-cart svg {
        width: 14px;
        height: 14px;
    }
    
    .kowsh-products-card__badge {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 9px;
        border-radius: 5px;
    }
    
    .kowsh-products-card__badge--outofstock {
        bottom: 5px;
        top: auto;
    }
    
    .kowsh-products-card__wishlist {
        top: 5px;
        left: 5px;
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }
    
    .kowsh-products-card__wishlist svg {
        width: 11px;
        height: 11px;
    }
    
    /* Product Card - Small Mobile (Ultra Compact & Clean) */
    .kowsh-product-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: all 0.2s ease;
    }
    
    .kowsh-product-card::before,
    .kowsh-product-card::after {
        border-radius: 12px;
    }
    
    .kowsh-product-card:active {
        transform: scale(0.96);
        box-shadow: none;
    }
    
    .kowsh-product-card__image-wrapper {
        border-radius: 12px 12px 0 0;
        aspect-ratio: 1 / 1;
        background: linear-gradient(135deg, #f5f7f8 0%, #eef0f1 100%);
    }
    
    .kowsh-product-card__image-link img {
        transition: none !important;
    }
    
    .kowsh-product-card__content {
        padding: 10px;
        gap: 4px;
    }
    
    .kowsh-shop-page__products {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }
    
    .kowsh-product-card__title {
        font-size: 11px !important;
        font-weight: 600 !important;
        min-height: 30px;
        max-height: 30px;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
        margin-bottom: 2px !important;
    }
    
    .kowsh-product-card__rating {
        display: none; /* Hide on very small screens */
    }
    
    .kowsh-product-card__price {
        margin: 2px 0 4px 0 !important;
    }
    
    .kowsh-product-card__price ins,
    .kowsh-product-card__price .amount {
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: -0.4px;
    }
    
    .kowsh-product-card__price del {
        font-size: 9px !important;
        opacity: 0.5 !important;
        margin-bottom: 0 !important;
    }
    
    .kowsh-product-card__badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(216, 67, 54, 0.2);
        animation: none;
        letter-spacing: 0;
    }
    
    .kowsh-product-card__badge--outofstock {
        bottom: 6px;
        right: 6px;
        top: auto;
    }
    
    .kowsh-product-card__actions {
        padding-top: 6px;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
        margin-top: auto;
    }
    
    .kowsh-product-card__actions .button {
        padding: 7px 10px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
        letter-spacing: 0;
    }
    
    /* Sizes - Small Mobile */
    .kowsh-product-card__sizes {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        margin: 2px 0;
    }
    
    .kowsh-product-card__size {
        padding: 2px 5px;
        font-size: 8px;
        border-radius: 4px;
        background: #f0f0f0;
        color: #777;
    }
    
    /* Product Cards Small Mobile - WooCommerce Default */
    .woocommerce ul.products li.product {
        border-radius: 12px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__link {
        border-radius: 12px 12px 0 0;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 11px;
        padding: 8px 8px 0;
        min-height: 30px;
        line-height: 1.35;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 13px;
        padding: 0 8px;
        margin: 0 0 6px 0;
    }
    
    .woocommerce ul.products li.product .price del {
        font-size: 9px;
    }
    
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button {
        margin: 0 8px 8px;
        padding: 7px 10px;
        font-size: 10px;
        width: calc(100% - 16px);
        border-radius: 8px;
    }
    
    .woocommerce ul.products li.product .onsale {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 10px;
    }
    
    .woocommerce ul.products li.product .star-rating {
        display: none;
    }
    
    .woocommerce ul.products li.product .onsale {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 9px;
        border-radius: var(--kowsh-radius-sm);
    }
    
    .woocommerce ul.products li.product .star-rating {
        margin: 0 var(--kowsh-spacing-xs) var(--kowsh-spacing-xs);
        font-size: 10px;
    }
}

/* Extra Small Mobile (<400px) - Ultra Compact Design */
@media screen and (max-width: 399px) {
    .kowsh-shop-page {
        padding-top: 130px !important;
    }
    
    .kowsh-shop-page__container {
        padding: 0 8px;
    }
    
    .kowsh-shop-page__header {
        padding: 16px 12px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .kowsh-shop-page__title {
        font-size: 22px;
    }
    
    .kowsh-shop-page__description {
        font-size: 12px;
    }
    
    .kowsh-shop-page__mobile-filter-toggle-wrapper {
        padding: 0 8px;
        margin-bottom: 12px;
    }
    
    .kowsh-shop-page__filters-toggle {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .kowsh-shop-page__toolbar {
        padding: 8px;
        gap: 6px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-result-count {
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 8px;
    }
    
    .kowsh-shop-page__toolbar-left .woocommerce-ordering select {
        padding: 8px 28px 8px 10px;
        font-size: 11px;
        border-radius: 8px;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    /* kowsh-products-card Extra Small (<400px) */
    .kowsh-products-card {
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    
    .kowsh-products-card__image {
        border-radius: 10px 10px 0 0;
    }
    
    .kowsh-products-card__content {
        padding: 8px;
    }
    
    .kowsh-products-card__title {
        font-size: 9px;
        margin-bottom: 4px;
        min-height: 26px;
        max-height: 26px;
        line-height: 1.4;
    }
    
    .kowsh-products-card__sizes {
        display: none; /* Hide sizes on very small screens */
    }
    
    .kowsh-products-card__price-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 6px;
    }
    
    .kowsh-products-card__price {
        width: 100%;
    }
    
    .kowsh-products-card__price-label {
        font-size: 7px;
    }
    
    .kowsh-products-card__price-new {
        font-size: 11px;
    }
    
    .kowsh-products-card__price-old {
        font-size: 8px;
    }
    
    .kowsh-products-card__add-to-cart {
        width: 100%;
        height: 28px;
        border-radius: 6px;
    }
    
    .kowsh-products-card__add-to-cart svg {
        width: 13px;
        height: 13px;
    }
    
    .kowsh-products-card__badge {
        top: 4px;
        right: 4px;
        padding: 2px 4px;
        font-size: 8px;
        border-radius: 4px;
    }
    
    .kowsh-products-card__badge--outofstock {
        bottom: 4px;
        top: auto;
    }
    
    .kowsh-products-card__wishlist {
        top: 4px;
        left: 4px;
        width: 22px;
        height: 22px;
        border-radius: 5px;
    }
    
    .kowsh-products-card__wishlist svg {
        width: 10px;
        height: 10px;
    }
    
    /* Old product card styles */
    .kowsh-product-card {
        border-radius: 10px;
    }
    
    .kowsh-product-card__image-wrapper {
        border-radius: 10px 10px 0 0;
    }
    
    .kowsh-product-card__content {
        padding: 8px;
    }
    
    .kowsh-product-card__title {
        font-size: 9px !important;
        min-height: 26px;
        max-height: 26px;
    }
    
    .kowsh-product-card__price ins,
    .kowsh-product-card__price .amount {
        font-size: 12px !important;
    }
    
    .kowsh-product-card__badge {
        top: 4px;
        right: 4px;
        padding: 2px 4px;
        font-size: 7px;
    }
}

/* Tiny Screens (<350px) - Maximum Compact */
@media screen and (max-width: 349px) {
    .kowsh-shop-page__container {
        padding: 0 6px;
    }
    
    .kowsh-shop-page__header {
        padding: 14px 10px;
    }
    
    .kowsh-shop-page__title {
        font-size: 20px;
    }
    
    .woocommerce ul.products {
        gap: 6px !important;
    }
    
    .kowsh-products-card {
        border-radius: 8px;
    }
    
    .kowsh-products-card__image {
        border-radius: 8px 8px 0 0;
    }
    
    .kowsh-products-card__content {
        padding: 6px;
    }
    
    .kowsh-products-card__title {
        font-size: 8px;
        min-height: 24px;
        max-height: 24px;
        margin-bottom: 3px;
    }
    
    .kowsh-products-card__price-wrapper {
        gap: 4px;
        padding-top: 4px;
    }
    
    .kowsh-products-card__price-label {
        display: none; /* Hide label on tiny screens */
    }
    
    .kowsh-products-card__price-new {
        font-size: 10px;
    }
    
    .kowsh-products-card__price-old {
        font-size: 7px;
    }
    
    .kowsh-products-card__add-to-cart {
        height: 26px;
        border-radius: 5px;
    }
    
    .kowsh-products-card__add-to-cart svg {
        width: 12px;
        height: 12px;
    }
    
    .kowsh-products-card__badge {
        top: 3px;
        right: 3px;
        padding: 1px 3px;
        font-size: 7px;
        border-radius: 3px;
    }
    
    .kowsh-products-card__wishlist {
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 4px;
    }
    
    .kowsh-products-card__wishlist svg {
        width: 9px;
        height: 9px;
    }
}

/* Filter Overlay for Mobile */
.kowsh-shop-page__filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity var(--kowsh-transition-slow);
}

.kowsh-shop-page__filters-overlay.active {
    display: block;
    opacity: 1;
}

/* Filter Overlay - Mobile & Tablet */
@media screen and (max-width: 991px) {
    .kowsh-shop-page__filters-overlay {
        display: block;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .kowsh-product-card:hover {
        transform: none;
    }
    
    .kowsh-product-card:active {
        transform: scale(0.98);
    }
    
    .kowsh-shop-page__filter-checkbox:active {
        transform: scale(0.95);
    }
    
    .kowsh-shop-page__filter-submit:active,
    .kowsh-shop-page__filter-reset:active {
        transform: scale(0.98);
    }
    
}

/* Landscape Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .kowsh-shop-page {
        padding-top: 120px !important;
    }
    
    .kowsh-shop-page__header {
        padding: var(--kowsh-spacing-xl) var(--kowsh-spacing-md);
        margin-bottom: var(--kowsh-spacing-xl);
    }
    
    .kowsh-shop-page__title {
        font-size: 28px;
    }
    
    .kowsh-shop-page__filters {
        max-height: 90vh;
    }
}

/* Filter Count Badge */
.kowsh-shop-page__filters-toggle .filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--kowsh-color-barberry);
    color: var(--kowsh-color-white);
    border-radius: var(--kowsh-radius-full);
    font-size: var(--kowsh-font-size-xs);
    font-weight: var(--kowsh-font-weight-bold);
    margin-right: var(--kowsh-spacing-xs);
}

/* Show More Button */
.kowsh-shop-page__show-more {
    width: 100%;
    padding: var(--kowsh-spacing-sm) var(--kowsh-spacing-md);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--kowsh-radius-base);
    font-size: var(--kowsh-font-size-sm);
    font-weight: var(--kowsh-font-weight-medium);
    color: var(--kowsh-color-text-secondary);
    cursor: pointer;
    transition: all var(--kowsh-transition-base);
    margin-top: var(--kowsh-spacing-sm);
}

.kowsh-shop-page__show-more:hover {
    background: var(--kowsh-color-gray-50);
    border-color: var(--kowsh-color-barberry);
    color: var(--kowsh-color-barberry);
}

