@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background: #f5f5f7;
    color: #1a1a2e;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

:root {
        --primary: #ef4056;
    --primary-dark: #d63649;
    --primary-light: #ff6b7a;
    
        --secondary: #00bfd8;
    --secondary-dark: #00a5bb;
    --secondary-light: #1de0fa;
    
        --white: #ffffff;
    --black: #0c0c0c;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-300: #bdbdbd;
    --gray-400: #9e9e9e;
    --gray-500: #757575;
    --gray-600: #616161;
    --gray-700: #424242;
    --gray-800: #212121;
    --gray-900: #1a1a1a;
    
        --success: #00a049;
    --success-light: #e8f5e9;
    --warning: #f9a825;
    --warning-light: #fff8e1;
    --danger: #d32f2f;
    --danger-light: #ffebee;
    --info: #1976d2;
    --info-light: #e3f2fd;
    
        --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #1a1a2e;
    
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
        --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
        --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    
        --container-max: 1320px;
    --header-height: 140px;
    --header-height-mobile: 60px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--gray-900);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

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

a:hover {
    color: var(--primary);
}

ul, ol { list-style: none; }

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 64, 86, 0.4);
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(239, 64, 86, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(239, 64, 86, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23757575'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.25rem;
    padding-left: 2.5rem;
}

.error-message {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--danger);
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.alert svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-light);
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: var(--danger-light);
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.alert-warning {
    background: var(--warning-light);
    color: #e65100;
    border: 1px solid #ffcc80;
}

.alert-info {
    background: var(--info-light);
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    box-shadow: var(--shadow-sm);
}

.header-main {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: auto;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.logo svg {
    width: 2.25rem;
    height: 2.25rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.search-form {
    flex: 1;
    max-width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.search-btn {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    max-height: 24rem;
    overflow-y: auto;
    z-index: 100;
    border: 1px solid var(--gray-200);
}

.search-results.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-item img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-info h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.search-result-info span {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-700);
    position: relative;
}

.header-action-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.header-action-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.header-action-btn span {
    font-size: 0.6875rem;
    font-weight: 500;
}

.header-action-btn .badge-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
}

.cart-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 64, 86, 0.4);
}

.cart-btn svg {
    width: 1.375rem;
    height: 1.375rem;
}

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

.user-dropdown,
.notification-dropdown {
    position: relative;
}

@media (min-width: 769px) {
    .user-dropdown > .dropdown-menu,
    .notification-dropdown > .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        background: var(--white);
        min-width: 14rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-5px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        z-index: 1000;
        padding: 0.5rem;
        margin-top: 0.5rem;
        border: 1px solid var(--gray-200);
        pointer-events: none;
    }

    .user-dropdown:hover > .dropdown-menu,
    .notification-dropdown:hover > .dropdown-menu,
    .user-dropdown > .dropdown-menu.active,
    .notification-dropdown > .dropdown-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        max-height: none !important;
    }

    .notification-dropdown > .dropdown-menu.notification-menu {
        min-width: 18rem;
    }
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 0.9375rem;
}

.dropdown-header .view-all {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
}

.notification-list {
    max-height: 18rem;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: rgba(239, 64, 86, 0.05);
}

.notification-item-content h4 {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-content p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 0;
}

.notification-badge {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 1rem;
    height: 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: none;
    text-align: right;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dropdown-menu svg {
    width: 1.125rem;
    height: 1.125rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem;
}

.categories-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.categories-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    position: relative;
    flex-shrink: 0;
}

.category-item > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.category-item > a:hover {
    color: var(--primary);
    background: var(--gray-50);
    border-bottom-color: var(--primary);
}

.category-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.category-nav-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--gray-600);
}

.category-item:hover .category-nav-icon {
    background: rgba(239, 64, 86, 0.1);
}

.category-item:hover .category-nav-icon svg {
    color: var(--primary);
}

.category-dropdown-arrow {
    width: 0.75rem !important;
    height: 0.75rem !important;
    opacity: 0.5;
    transition: transform var(--transition-fast);
}

.category-item:hover .category-dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.subcategories-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 16rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-top: none;
}

.category-item:hover .subcategories-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subcategories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.subcategories-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.subcategories-view-all {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

.subcategories-view-all svg {
    width: 0.75rem;
    height: 0.75rem;
}

.subcategories {
    padding: 0.5rem 0;
    max-height: 18rem;
    overflow-y: auto;
}

.subcategories li a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    color: var(--gray-600);
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.subcategories li a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-right: 1.25rem;
}

.subcategory-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.subcategory-icon svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--gray-500);
}

.subcategories li a:hover .subcategory-icon {
    background: rgba(239, 64, 86, 0.1);
}

.subcategories li a:hover .subcategory-icon svg {
    color: var(--primary);
}

.subcategory-name {
    flex: 1;
}

.subcategory-arrow {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--gray-400);
    opacity: 0;
    transition: all var(--transition-fast);
}

.subcategories li a:hover .subcategory-arrow {
    opacity: 1;
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.main-content {
    flex: 1;
    padding: 1.5rem 0;
}

.hero-section {
    margin-bottom: 2rem;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide-text {
    max-width: 500px;
    padding: 2rem;
}

.slide-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.slide-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

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

.slider-nav.prev { right: 1rem; }
.slider-nav.next { left: 1rem; }

.slider-nav svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-700);
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

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

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--white);
}

.slide-products {
    display: flex;
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5rem;
    z-index: 5;
}

.slide-product-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    min-width: 180px;
}

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

.slide-product-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.slide-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-product-info {
    flex: 1;
}

.slide-product-info h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-product-info .price {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 700;
}

.banners-section {
    margin-bottom: 2rem;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.banner-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.banner-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.banner-content h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.banner-tagged-products {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.banner-product-mini {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.banner-product-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.banner-product-mini img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.mini-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mini-name {
    font-size: 0.6875rem;
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.3;
}

.mini-price {
    font-size: 0.6875rem;
    color: var(--primary);
    font-weight: 600;
}

.products-section {
    padding: 2rem 0;
}

.products-section.alt-bg {
    background: var(--white);
}

.products-panel-section {
    padding: 2rem 0;
    background: var(--bg-body);
}

.products-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.panel-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.panel-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.panel-tab svg {
    width: 18px;
    height: 18px;
}

.panel-tab:hover {
    background: var(--white);
    color: var(--primary);
}

.panel-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.panel-mobile-select {
    display: none;
    flex: 1;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.dropdown-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 64, 86, 0.1);
}

.dropdown-trigger[aria-expanded="true"] {
    border-color: var(--primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0 0 3px rgba(239, 64, 86, 0.1);
}

.dropdown-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.dropdown-icon svg {
    width: 20px;
    height: 20px;
}

.dropdown-text {
    flex: 1;
    text-align: right;
    padding-right: 0.25rem;
}

.dropdown-arrow {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform var(--transition);
}

.dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}

.custom-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 400px;
    pointer-events: auto;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    color: var(--gray-700);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: right;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.dropdown-item.active {
    background: rgba(239, 64, 86, 0.08);
    color: var(--primary);
}

.dropdown-item.active .item-icon {
    color: var(--primary);
}

.item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    flex-shrink: 0;
}

.item-icon svg {
    width: 20px;
    height: 20px;
}

.item-icon.featured {
    color: var(--warning);
}

.item-icon.latest {
    color: var(--info);
}

.item-icon.bestselling {
    color: var(--success);
}

.item-text {
    flex: 1;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 1rem;
}

.dropdown-item.see-all {
    color: var(--primary);
    border-radius: 0 0 8px 8px;
}

.dropdown-item.see-all:hover {
    background: rgba(239, 64, 86, 0.08);
}

.dropdown-item.see-all .item-icon {
    color: var(--primary);
}

.panel-see-all {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.panel-see-all:hover {
    color: var(--primary-dark);
}

.panel-see-all svg {
    width: 16px;
    height: 16px;
}

.panel-content {
    display: none;
    padding: 1.5rem;
}

.panel-content.active {
    display: block;
}

.products-grid.compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.products-grid.compact .product-card {
    border-radius: var(--radius);
}

.products-grid.compact .product-info {
    padding: 0.75rem;
}

.products-grid.compact .product-name {
    font-size: 0.8125rem;
    height: 2.25rem;
}

.products-grid.compact .current-price {
    font-size: 0.875rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.title-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-icon svg {
    width: 24px;
    height: 24px;
}

.title-icon.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.title-icon.latest {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.title-icon.bestseller {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-title p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-filter {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 4px;
}

.quick-filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.quick-filter-btn:hover {
    color: var(--gray-700);
}

.quick-filter-btn.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.see-all-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.see-all-btn svg {
    width: 1rem;
    height: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.products-container {
    position: relative;
}

.section-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 10;
    border-radius: var(--radius-lg);
}

.section-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--gray-200);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.product-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 2;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

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

.badge.used {
    background: var(--warning);
    color: var(--white);
}

.badge.out {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
}

.wishlist-btn {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.wishlist-btn svg {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
}

.wishlist-btn:hover svg {
    color: var(--white);
}

.wishlist-btn.active {
    background: var(--primary);
}

.wishlist-btn.active svg {
    color: var(--white);
    fill: currentColor;
}

.product-info {
    padding: 1rem;
}

.product-category {
    display: block;
    font-size: 0.6875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name a {
    color: var(--gray-800);
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-rating .stars {
    display: flex;
    gap: 0.125rem;
    color: var(--warning);
}

.product-rating .stars svg {
    width: 0.875rem;
    height: 0.875rem;
}

.product-rating .stars svg.empty {
    color: var(--gray-300);
}

.product-rating span {
    font-size: 0.6875rem;
    color: var(--gray-500);
    margin-right: 0.25rem;
}

.product-price {
    margin-bottom: 0.75rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 0.75rem;
    display: block;
}

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

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
}

.mobile-content-wrapper {
    display: block;
}

@media (max-width: 768px) {
    .mobile-reorder-container {
        display: flex;
        flex-direction: column;
    }
    
    .products-panel-section {
        order: 1;
    }
    
    .features-section {
        order: 2;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 1rem 0;
        background: var(--bg-body);
    }
    
    .features-section .container {
        padding: 0 1rem;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .feature-card {
        padding: 1rem;
        background: var(--white);
        border-radius: var(--radius);
        border: 1px solid var(--gray-100);
        box-shadow: var(--shadow-sm);
        text-align: center;
    }
    
    .feature-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.5rem;
        border-radius: var(--radius);
    }
    
    .feature-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .feature-card h3 {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-card p {
        font-size: 0.6875rem;
        color: var(--gray-500);
        display: block;
    }
}

.features-section {
    padding: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.375rem;
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

.footer {
    background: var(--white);
    color: var(--gray-600);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--gray-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.25rem;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
}

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

.footer-section ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-right: 0.5rem;
}

.footer-section ul li a svg {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-section ul li a:hover svg {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.enamad-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.enamad-badge:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.enamad-logo {
    width: 48px;
    height: 48px;
}

.enamad-logo svg {
    width: 100%;
    height: 100%;
}

.enamad-title {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

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

.footer .social-links a {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer .social-links svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transition: all var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
    right: 0;
}

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

.mobile-nav-close {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all var(--transition);
}

.mobile-nav-close:hover {
    background: var(--gray-200);
}

.mobile-nav-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-nav-links {
    padding: 0.5rem;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.mobile-nav-links a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-nav-links a svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-500);
}

.mobile-categories {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-categories h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--gray-700);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-category-item:last-child {
    border-bottom: none;
}

.mobile-category-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--gray-400);
}

#notification-container {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: calc(100% - 3rem);
}

.modern-notification {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.modern-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.modern-notification.paused .notification-progress-bar {
    animation-play-state: paused;
}

.notification-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.notification-close svg {
    width: 14px;
    height: 14px;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.notification-progress-bar {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

.notification-success {
    border-right: 4px solid var(--success);
}

.notification-success .notification-icon {
    background: var(--success-light);
    color: var(--success);
}

.notification-success .notification-title {
    color: #047857;
}

.notification-success .notification-progress-bar {
    background: var(--success);
}

.notification-error {
    border-right: 4px solid var(--danger);
}

.notification-error .notification-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.notification-error .notification-title {
    color: #b91c1c;
}

.notification-error .notification-progress-bar {
    background: var(--danger);
}

.notification-info {
    border-right: 4px solid var(--info);
}

.notification-info .notification-icon {
    background: var(--info-light);
    color: var(--info);
}

.notification-info .notification-title {
    color: #1d4ed8;
}

.notification-info .notification-progress-bar {
    background: var(--info);
}

.notification-warning {
    border-right: 4px solid var(--warning);
}

.notification-warning .notification-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.notification-warning .notification-title {
    color: #b45309;
}

.notification-warning .notification-progress-bar {
    background: var(--warning);
}

.cart-count.bounce, #cart-count.bounce {
    animation: cartBounce 0.3s ease;
}

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

@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .search-form {
        display: none;
    }
    
    .header-action-btn span {
        display: none;
    }
    
    .categories-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-products {
        display: none;
    }
    
    .banners-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .quick-filter {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
        .panel-tabs {
        display: none;
    }
    
    .panel-mobile-select {
        display: block;
    }
    
    .panel-header {
        flex-wrap: wrap;
    }
    
    .panel-see-all {
        display: none;
    }
    
    .products-grid.compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo span {
        display: block;
        font-size: 0.875rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .header-action-btn {
        padding: 0.5rem;
    }
    
    .cart-btn {
        padding: 0.5rem;
    }
    
        .notification-dropdown,
    .user-dropdown {
        position: static !important;
    }
    
    .notification-dropdown .dropdown-menu,
    .user-dropdown .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
        max-height: 0 !important;
        overflow-y: auto !important;
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        z-index: 1001 !important;
        border: none !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: var(--white) !important;
    }
    
    .notification-dropdown:hover .dropdown-menu,
    .user-dropdown:hover .dropdown-menu,
    .notification-dropdown .dropdown-menu.active,
    .user-dropdown .dropdown-menu.active {
        max-height: 60vh !important;
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .notification-menu {
        min-width: 100% !important;
        right: 0 !important;
        left: 0 !important;
    }
    
        .dropdown-handle {
        position: absolute;
        top: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--gray-300);
        border-radius: var(--radius-full);
        cursor: pointer;
        z-index: 10;
        transition: background 0.2s ease;
    }
    
    .dropdown-handle:hover {
        background: var(--gray-400);
    }
    
    .dropdown-header {
        padding-top: 1.5rem;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .notification-dropdown .dropdown-menu a,
    .notification-dropdown .dropdown-menu button,
    .user-dropdown .dropdown-menu a,
    .user-dropdown .dropdown-menu button {
        padding: 1rem 1.25rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .hero-slider {
        border-radius: var(--radius);
    }
    
    .slider-container {
        height: 280px;
    }
    
    .slide-title {
        font-size: 1.25rem;
    }
    
    .slide-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .slide-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .slider-nav {
        width: 36px;
        height: 36px;
    }
    
    .slider-nav.prev { right: 0.5rem; }
    .slider-nav.next { left: 0.5rem; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.8125rem;
        height: 2.25rem;
    }
    
    .current-price {
        font-size: 0.9375rem;
    }
    
    .product-actions .btn {
        font-size: 0.6875rem;
        padding: 0.5rem;
    }
    
    .products-grid.compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid.compact .product-card {
        border-radius: var(--radius-lg);
    }
    
    .products-grid.compact .product-image {
        aspect-ratio: 16/10;
    }
    
    .products-grid.compact .product-info {
        padding: 1rem;
    }
    
    .products-grid.compact .product-name {
        font-size: 1rem;
        height: auto;
        margin-bottom: 0.5rem;
    }
    
    .products-grid.compact .current-price {
        font-size: 1.125rem;
    }
    
    .products-grid.compact .product-actions {
        margin-top: 0.75rem;
    }
    
    .products-grid.compact .product-actions .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    .panel-content {
        padding: 1rem;
    }
    
    .panel-header {
        padding: 0.75rem 1rem;
    }
    
        .panel-mobile-select {
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
    }
    
    .custom-dropdown {
        position: relative !important;
    }
    
    .custom-dropdown .dropdown-trigger {
        padding: 0.875rem 1rem !important;
        border-radius: var(--radius) !important;
        border: 2px solid var(--gray-200) !important;
        background: var(--white) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .custom-dropdown .dropdown-trigger:hover,
    .custom-dropdown .dropdown-trigger[aria-expanded="true"] {
        box-shadow: var(--shadow-md) !important;
        border-color: var(--primary) !important;
        background: var(--white) !important;
    }
    
    .custom-dropdown .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 1px solid var(--gray-200) !important;
        border-radius: var(--radius) !important;
        box-shadow: var(--shadow-lg) !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        background: var(--white) !important;
        z-index: 1000 !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        padding: 0.5rem !important;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    transform 0.25s ease,
                    visibility 0.25s ease;
    }
    
    .custom-dropdown .dropdown-menu::before {
        display: none !important;
    }
    
    .custom-dropdown.open .dropdown-menu {
        max-height: 320px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .custom-dropdown .dropdown-item {
        padding: 0.75rem 1rem !important;
        border-bottom: none !important;
        border-radius: 6px !important;
        margin-bottom: 4px !important;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }
    
    .custom-dropdown .dropdown-item:last-child {
        margin-bottom: 0 !important;
    }
    
    .custom-dropdown.open .dropdown-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .custom-dropdown.open .dropdown-item:nth-child(1) { transition-delay: 0.05s; }
    .custom-dropdown.open .dropdown-item:nth-child(2) { transition-delay: 0.1s; }
    .custom-dropdown.open .dropdown-item:nth-child(3) { transition-delay: 0.15s; }
    .custom-dropdown.open .dropdown-item:nth-child(4) { transition-delay: 0.2s; }
    .custom-dropdown.open .dropdown-item:nth-child(5) { transition-delay: 0.25s; }
    
    .custom-dropdown .dropdown-divider {
        display: none !important;
    }
    
    .custom-dropdown .dropdown-item.see-all {
        background: rgba(239, 64, 86, 0.05);
        margin-top: 4px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .product-card {
        border-radius: var(--radius);
    }
    
    .product-info {
        padding: 0.625rem;
    }
    
    .product-name {
        font-size: 0.75rem;
    }
    
    .current-price {
        font-size: 0.875rem;
    }
    
    .wishlist-btn {
        width: 1.75rem;
        height: 1.75rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .wishlist-btn svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .product-badges {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .badge {
        font-size: 0.5625rem;
        padding: 0.125rem 0.375rem;
    }
    
    #notification-container {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        width: auto;
    }
    
    .modern-notification {
        padding: 0.75rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .wishlist-btn {
        opacity: 1;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .banner-card:hover {
        transform: none;
    }
    
    .banner-card:hover img {
        transform: none;
    }
}

@media print {
    .header,
    .footer,
    .mobile-nav,
    .mobile-nav-overlay,
    #notification-container {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
}

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 50%, #f8fafc 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-100);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.auth-logo svg {
    width: 32px;
    height: 32px;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.input-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.input-group .form-control {
    padding-right: 3rem;
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--primary);
}

.otp-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    direction: ltr;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    transition: all var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(239, 64, 86, 0.1);
}

.resend-section {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

#resend-timer {
    color: var(--gray-500);
}

#timer {
    color: var(--primary);
    font-weight: 600;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.auth-form .btn-primary {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.auth-form .btn-primary svg {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.auth-footer p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    transition: right var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-header .logo span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.mobile-nav-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-nav-links {
    padding: 0.5rem;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-nav-links a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.mobile-nav-links a svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-categories {
    padding: 1rem;
    border-top: 1px solid var(--gray-100);
    margin-top: 0.5rem;
}

.mobile-categories h4 {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-category-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.mobile-category-item svg {
    width: 1rem;
    height: 1rem;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.enamad-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.enamad-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.enamad-logo {
    width: 48px;
    height: 48px;
}

.enamad-title {
    font-size: 0.6875rem;
    color: var(--gray-400);
}

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

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
}

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

.social-links svg {
    width: 1.125rem;
    height: 1.125rem;
}

.category-page {
    min-height: 60vh;
}

.category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.category-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.category-content {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.category-sidebar {
    position: relative;
}

.category-main {
    min-width: 0;
}

.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.toolbar-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.products-count svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
}

.view-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.view-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.view-btn:hover:not(.active) {
    color: var(--gray-700);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-300);
}

.breadcrumb span:last-child {
    color: var(--gray-700);
    font-weight: 500;
}

.products-container {
    min-height: 400px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.products-grid.list-view .product-image {
    aspect-ratio: 1;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.empty-state svg {
    width: 4rem;
    height: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

@media (max-width: 992px) {
    .category-content {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: block;
    }

    .category-toolbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .category-header h1 {
        font-size: 1.25rem;
    }

    .category-content {
        gap: 1rem;
        display: block;
    }

        .category-sidebar {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: visible;
        // clip removed - was hiding filter
        white-space: nowrap;
        border: 0;
    }

    .category-toolbar {
        padding: 0.75rem 1rem;
    }

    .products-count {
        font-size: 0.875rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-image {
        aspect-ratio: 16/10;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .category-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-info {
        justify-content: center;
    }
    
    .toolbar-actions {
        justify-content: center;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
}

.mobile-filter-bar {
    display: none;
}

@media (max-width: 992px) {
    .mobile-filter-bar {
        display: block;
        background: var(--white);
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-sm);
    }

    .mobile-filter-scroll {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        overflow-x: auto;
        padding: 0 0.75rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: center;
    }

    .mobile-filter-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-item {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 1rem;
        background: var(--gray-100);
        border-radius: var(--radius-full);
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--gray-600);
        cursor: pointer;
        transition: all var(--transition);
    }

    .mobile-filter-item input {
        display: none;
    }

    .mobile-filter-item:hover {
        background: var(--gray-200);
    }

    .mobile-filter-item.active {
        background: var(--primary);
        color: var(--white);
    }

    .mobile-filter-more {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 1rem;
        background: var(--white);
        border: 2px solid var(--primary);
        border-radius: var(--radius-full);
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--primary);
        cursor: pointer;
        transition: all var(--transition);
    }

    .mobile-filter-more svg {
        width: 1rem;
        height: 1rem;
    }

    .mobile-filter-more:hover {
        background: rgba(239, 64, 86, 0.05);
    }

    .mobile-filter-more .filter-badge {
        background: var(--primary);
        color: var(--white);
        font-size: 0.625rem;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.product-filter {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    position: relative;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.filter-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.filter-header h3 svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.filter-toggle-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all var(--transition);
}

.filter-toggle-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.filter-toggle-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.filter-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.25rem;
    scrollbar-gutter: stable;
}

.filter-scroll-content::-webkit-scrollbar {
    width: 6px;
}

.filter-scroll-content::-webkit-scrollbar-track {
    background: transparent;
}

.filter-scroll-content::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.filter-form {
    padding: 0.5rem 0;
}

.filter-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.875rem;
}

.filter-section-title svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--primary);
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.sort-option:hover {
    background: var(--gray-50);
}

.sort-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.sort-label {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.sort-option input:checked + .sort-label {
    color: var(--primary);
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-checkbox:hover {
    background: var(--gray-50);
}

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.badge-new {
    background: var(--success-light);
    color: var(--success);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
}

.badge-used {
    background: var(--warning-light);
    color: #e65100;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
}

.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.price-input-wrapper {
    position: relative;
}

.price-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    padding-left: 3rem;
    font-family: inherit;
    font-size: 0.8125rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: right;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.price-unit {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6875rem;
    color: var(--gray-400);
}

.price-separator {
    font-size: 0.8125rem;
    color: var(--gray-400);
    padding-top: 1.25rem;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-shrink: 0;
}

.filter-reset-btn {
    flex: 1;
}

.filter-reset-btn svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 992px) {
        .category-sidebar {
        visibility: hidden;
        width: 0;
        min-width: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
    }

    .category-content {
        display: block;
    }

        .product-filter {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        transform: translateX(100%);
        visibility: visible;
        opacity: 1;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .product-filter.active {
        transform: translateX(0);
    }

    .filter-toggle-btn {
        display: flex;
    }

    .filter-scroll-content {
        max-height: calc(100vh - 140px);
    }

    .filter-actions {
        position: sticky;
        bottom: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-100);
        display: flex;
        padding: 1rem;
    }

    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-grid.list-view {
        gap: 0.75rem;
    }

    .products-grid.list-view .product-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
        align-items: start;
    }

    .products-grid.list-view .product-image {
        aspect-ratio: 1;
        max-height: none;
        border-radius: var(--radius);
    }

    .products-grid.list-view .product-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0;
        min-height: auto;
    }

    .products-grid.list-view .product-name {
        font-size: 0.8125rem;
        line-height: 1.4;
        height: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .products-grid.list-view .current-price {
        font-size: 0.9375rem;
    }

    .products-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .products-grid.grid-view .product-card {
        padding: 0.5rem;
    }

    .products-grid.grid-view .product-name {
        font-size: 0.75rem;
        height: 2rem;
    }

    .products-grid.grid-view .current-price {
        font-size: 0.8125rem;
    }
}
