 /* Font Face Declarations */
@font-face {
    font-family: 'IRANYekanXFaNum';
    src: url('font/IRANYekanXFaNum-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanXFaNum';
    src: url('font/IRANYekanXFaNum-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanXFaNum';
    src: url('font/IRANYekanXFaNum-ExtraBlack.ttf') format('truetype');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanXFaNum';
    src: url('font/IRANYekanXFaNum-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANYekanXFaNum', 'Vazir', 'Tahoma', 'Arial', sans-serif;
    background-color: #faf7f0;
    color: #5d4037;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* CSS Variables */
:root {
    /* جهان فود طلایی و قرمز */
    --jahan-primary: #CC2936;
    --jahan-primary-light: #E74C3C;
    --jahan-golden: #F4D03F;
    --jahan-golden-light: #F7DC6F;
    --jahan-orange: #FF6B35;
    --jahan-cream: #FAF7F0;
    --jahan-brown: #5D4037;
    --jahan-wood: #E8E2D5;
    
    /* سیستم رنگی اصلی */
    --background: #faf7f0;
    --foreground: #5d4037;
    --card: #ffffff;
    --card-foreground: #5d4037;
    --muted: #e8e2d5;
    --muted-foreground: #8d6e63;
    --border: #e8e2d5;
    
    /* گرادینت‌های خاص */
    --gradient-primary: linear-gradient(135deg, #CC2936, #FF6B35);
    --gradient-golden: linear-gradient(135deg, #F4D03F, #F7DC6F);
    --gradient-hero: linear-gradient(135deg, #CC2936, #F4D03F);
    --gradient-wood: linear-gradient(45deg, #E8E2D5, #FAF7F0);
    
    /* سایه‌ها */
    --shadow-primary: 0 10px 30px -5px rgba(204, 41, 54, 0.3);
    --shadow-golden: 0 8px 25px -5px rgba(244, 208, 63, 0.4);
    --shadow-card: 0 4px 20px -2px rgba(93, 64, 55, 0.1);
    
    /* انیمیشن‌ها */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Utility Classes */
.gradient-text {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.wood-texture {
    background: var(--gradient-wood);
    background-size: 20px 20px;
    background-image: 
        linear-gradient(45deg, transparent 35%, rgba(255,255,255,.2) 35%, rgba(255,255,255,.2) 65%, transparent 65%),
        linear-gradient(-45deg, transparent 35%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.05) 65%, transparent 65%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-primary);
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-golden);
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--gradient-golden);
    color: var(--foreground);
    box-shadow: var(--shadow-golden);
}

.btn-secondary:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--muted);
    color: var(--foreground);
}

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

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

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

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

.header-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.header-logo:hover {
    transform: scale(1.1);
}

.logo {
    font-size: 2.25rem;
    font-weight: 900;
    font-family: 'IRANYekanXFaNum', sans-serif;
    color: var(--jahan-golden);
    text-shadow: 
        0 0 10px rgba(244, 208, 63, 0.5),
        0 0 20px rgba(244, 208, 63, 0.3),
        0 0 30px rgba(244, 208, 63, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.logo:hover::before {
    left: 100%;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 
        0 0 15px rgba(244, 208, 63, 0.7),
        0 0 25px rgba(244, 208, 63, 0.5),
        0 0 35px rgba(244, 208, 63, 0.3);
}

.logo-subtitle {
    display: none;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

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

.contact-details {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
}

.phone-link {
    text-decoration: none;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--jahan-primary);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: var(--jahan-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.social-btn:hover {
    background: var(--jahan-cream);
}

.eitaa-btn {
    padding: 0.5rem 1rem;
    background: var(--jahan-orange);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
}

.eitaa-btn:hover {
    background: var(--jahan-primary);
    transform: scale(1.05);
}

.mobile-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.icon {
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('src/assets/hero-jahan-food.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    color: white;
}

.hero-text {
    max-width: 64rem;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.brand-icon {
    font-size: 4rem;
    animation: pulse-gold 2s infinite;
}

.hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    animation: pulse-gold 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 950;
    font-family: 'IRANYekanXFaNum', sans-serif;
    color: var(--background);
    text-shadow: none !important;
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 20px rgba(244, 208, 63, 0.8),
            0 0 40px rgba(244, 208, 63, 0.6),
            0 0 60px rgba(244, 208, 63, 0.4),
            2px 2px 4px rgba(0,0,0,0.7);
    }
    100% {
        text-shadow: 
            0 0 25px rgba(244, 208, 63, 1),
            0 0 50px rgba(244, 208, 63, 0.8),
            0 0 75px rgba(244, 208, 63, 0.6),
            2px 2px 4px rgba(0,0,0,0.7);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--jahan-cream);
    font-weight: 500;
}

.features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 208, 63, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: var(--jahan-cream);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-info {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    color: var(--jahan-cream);
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.875rem;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: var(--gradient-wood);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    font-family: 'IRANYekanXFaNum', sans-serif;
    margin-bottom: 1rem;
    color: var(--jahan-golden);
    text-shadow: 
        0 0 15px rgba(244, 208, 63, 0.6),
        0 0 25px rgba(244, 208, 63, 0.4);
}

.section-subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* فیلد جستجو */
.search-section {
    margin: 2rem 0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.2);
    transform: translateY(-1px);
}

.search-input-wrapper:hover {
    border-color: var(--jahan-golden);
    box-shadow: 0 2px 12px rgba(244, 208, 63, 0.2);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--muted-foreground);
    margin-left: 0.5rem;
    user-select: none;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'IRANYekanXFaNum', sans-serif;
    background: transparent;
    color: var(--foreground);
}

.search-input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

.clear-search-btn {
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.clear-search-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.search-results-info {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--jahan-cream);
    border-radius: 8px;
    color: var(--jahan-golden);
    font-weight: 500;
    font-size: 0.9rem;
    animation: fadeInUp 0.3s ease;
}

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

/* پیام عدم یافتن نتیجه */
.no-results-message {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--muted-foreground);
    animation: fadeInUp 0.4s ease;
}

.no-results-message .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-results-message p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--foreground);
}

.no-results-message small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* برجسته کردن کلمات جستجو شده */
.search-highlight {
    background: linear-gradient(120deg, var(--jahan-golden) 0%, #fbbf24 100%);
    color: var(--foreground);
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: highlightPulse 0.6s ease;
}

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

/* نوار دسته‌بندی‌ها */
.categories-nav {
    margin: 2rem 0;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.categories-nav-container {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    padding: 0 1rem;
}

.category-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.category-nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.category-nav-btn .icon {
    font-size: 1.5rem;
}

.category-nav-btn span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    background: var(--card);
    animation: scaleUp 0.4s ease-out;
    transition: var(--transition-smooth);
}

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

.category-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

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

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

.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--jahan-golden);
    color: var(--foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.category-card:hover .category-title {
    color: var(--jahan-golden);
}

.category-description {
    font-size: 0.875rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.category-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    color: var(--foreground);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-btn:hover {
    background: var(--jahan-golden);
    color: var(--foreground);
    transform: scale(1.05);
    box-shadow: var(--shadow-golden);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: var(--background);
}

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

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

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.back-btn:hover {
    background: var(--jahan-cream);
}

.products-title {
    font-size: 2.25rem;
    font-weight: 900;
    font-family: 'IRANYekanXFaNum', sans-serif;
    color: var(--jahan-golden);
    text-shadow: 
        0 0 10px rgba(244, 208, 63, 0.5),
        0 0 20px rgba(244, 208, 63, 0.3);
}

.products-count {
    color: var(--muted-foreground);
}



.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--card);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: scaleUp 0.4s ease-out;
    transition: var(--transition-smooth);
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: var(--jahan-golden);
    color: var(--foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    
}

.product-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

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

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

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.quick-add-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    opacity: 0;
    transition: all 0.3s;
    transform: translateY(8px);
}

.product-card:hover .quick-add-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-content {
    padding: 1.5rem;
}

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--jahan-golden);
}

.product-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jahan-primary);
}

.price-amount.discounted {
    color: var(--jahan-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.price-currency {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* استایل برای قیمت اصلی (خط خورده) در کارت محصول */
.product-price .original-price {
    color: var(--muted-foreground);
    text-decoration: line-through;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.add-to-cart-btn {
    background: var(--jahan-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: none; /* مخفی کردن دکمه افزودن به سبد خرید */
}

.add-to-cart-btn:hover:not(:disabled) {
    background: var(--jahan-primary-light);
    transform: scale(1.05);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    border-radius: 1rem;
    border: 2px solid rgba(204, 41, 54, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quantity-label {
    font-size: 1rem;
    color: var(--jahan-brown);
    font-weight: 700;
    margin-left: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--jahan-primary);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: var(--jahan-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    line-height: 1;
    box-shadow: 0 4px 12px rgba(204, 41, 54, 0.2);
    position: relative;
    z-index: 10;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(204, 41, 54, 0.4);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
    border-color: #ccc;
    color: #999;
}

.quantity-btn:disabled:hover {
    transform: none;
    background: #f0f0f0;
    color: #999;
}

.quantity-display {
    min-width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--jahan-golden), #f7dc6f);
    color: var(--jahan-brown);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 0 0.5rem;
    transition: var(--transition-smooth);
    user-select: none;
    cursor: default;
}

.quantity-display:hover {
    background: var(--jahan-golden-light);
    transform: scale(1.05);
}

/* انیمیشن تغییر تعداد */
.quantity-display {
    animation: quantityChange 0.15s ease-in-out;
}

@keyframes quantityChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Footer */
.footer {
    background: var(--jahan-brown);
    color: var(--jahan-cream);
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: 'IRANYekanXFaNum', sans-serif;
    color: var(--jahan-golden);
    }

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social .social-btn {
    color: var(--jahan-cream);
}

.footer-social .social-btn:hover {
    color: var(--jahan-golden);
    background: rgba(244, 208, 63, 0.2);
}

.working-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.footer-contact a {
    color: var(--jahan-cream);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--jahan-golden);
}

.services-list {
    list-style: none;
    font-size: 0.875rem;
}

.services-list li {
    margin-bottom: 0.5rem;
}

.footer-divider {
    border-top: 1px solid rgba(244, 208, 63, 0.2);
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
}

.made-with {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--jahan-golden);
}

.heart {
    animation: pulse-gold 2s infinite;
}

/* Cart */
.cart-button {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--jahan-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 8px 25px -5px rgba(244, 208, 63, 0.4);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: pulse-gold 2s infinite;
}

.cart-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -5px rgba(244, 208, 63, 0.6);
}

.cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: linear-gradient(135deg, var(--jahan-orange), #ea580c);
    color: white;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(234, 88, 12, 0.6);
    }
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 28rem;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* جلوگیری از سرریز */
    box-sizing: border-box; /* مهم برای محاسبه اندازه */
}

.cart-sidebar.open {
    right: 0;
}

/* بهبود نمایش در موبایل */
@media (max-width: 768px) {
    .cart-sidebar {
        right: -100vw; /* استفاده از vw به جای درصد */
    }
    
    .cart-sidebar.open {
        right: 0;
    }
    
    /* کنترل‌های تعداد در موبایل */
    .quantity-controls {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .quantity-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.3rem;
        /* بهبود برای دستگاه‌های لمسی */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .quantity-display {
        min-width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }
    
    .quantity-label {
        font-size: 0.75rem;
        margin-left: 0.25rem;
    }
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'IRANYekanXFaNum', sans-serif;
    text-align: center;
    color: var(--jahan-golden);
    text-shadow: 
        0 0 6px rgba(244, 208, 63, 0.5),
        0 0 12px rgba(244, 208, 63, 0.3);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--foreground);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--jahan-primary) transparent;
    min-height: 0; /* مهم برای flexbox */
}

/* استایل‌های اسکرول برای Webkit browsers */
.cart-content::-webkit-scrollbar {
    width: 6px;
}

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

.cart-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.cart-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b4513, var(--jahan-primary));
}

/* افکت سایه برای نشان دادن قابلیت اسکرول */
.cart-sidebar.scrollable .cart-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

.cart-sidebar.scrollable .cart-footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

.cart-empty {
    text-align: center;
    padding: 4rem 0;
}

.cart-empty .icon {
    font-size: 4rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.cart-empty p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--foreground);
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--jahan-primary);
    font-weight: 700;
}

/* استایل برای نمایش قیمت‌های تخفیف‌خورده */
.cart-item-price .discounted-price {
    color: var(--jahan-primary);
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-price .original-price {
    color: var(--muted-foreground);
    text-decoration: line-through;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* استایل برای خلاصه سفارش */
.order-summary-item .discounted-price {
    color: var(--jahan-primary);
    font-weight: 700;
}

.order-summary-item .original-price {
    color: var(--muted-foreground);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* استایل برای خلاصه تخفیف محصولات در سبد خرید */
.product-discount-summary {
    animation: slideInFromRight 0.3s ease;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quantity-btn:hover {
    background: var(--muted);
}

.quantity-display {
    width: 2rem;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: #ef4444;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.remove-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    background: white;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.total-price {
    color: var(--jahan-primary);
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cart-actions .btn {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    min-height: 44px; /* حداقل ارتفاع برای موبایل */
    white-space: nowrap; /* جلوگیری از شکستن متن */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Order Form */
.order-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 32rem;
    max-height: 90vh; /* حداکثر ارتفاع */
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden; /* جلوگیری از سرریز */
    display: flex;
    flex-direction: column;
}

.order-form.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0; /* جلوگیری از کوچک شدن */
}

.form-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.form-content {
    padding: 1.5rem;
    overflow-y: auto; /* فعال کردن اسکرول عمودی */
    flex: 1; /* پر کردن فضای باقی‌مانده */
    max-height: calc(90vh - 120px); /* حداکثر ارتفاع برای محتوا */
}

/* استایل اسکرول بار */
.form-content::-webkit-scrollbar {
    width: 6px;
}

.form-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-content::-webkit-scrollbar-thumb {
    background: var(--jahan-primary);
    border-radius: 3px;
}

.form-content::-webkit-scrollbar-thumb:hover {
    background: var(--jahan-primary-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--jahan-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 4rem;
}

/* استایل اطلاعات تحویل */
.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--jahan-cream);
    border: 2px solid var(--jahan-golden);
    border-radius: 10px;
    color: var(--jahan-golden);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.delivery-info:hover {
    background: var(--jahan-golden);
    color: var(--foreground);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

.delivery-info .icon {
    font-size: 1.2rem;
}

.order-summary {
    background: var(--jahan-cream);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.order-summary h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.order-summary-total {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 208, 63, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 208, 63, 0);
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .logo-subtitle {
        display: block;
    }
    
    .contact-details {
        display: flex;
    }
    
    .mobile-contact {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 7rem;
    }
}
/* Button Styles - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b4513, var(--jahan-primary));
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--jahan-golden), #f59e0b);
    color: var(--foreground);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.3);
    border: 2px solid transparent;
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b, var(--jahan-golden));
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--jahan-primary);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.btn-outline:hover:not(:disabled) {
    background: var(--jahan-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 1.25rem;
}

.btn-xl {
    padding: 1.375rem 3rem;
    font-size: 1.25rem;
    border-radius: 1.5rem;
}

/* Enhanced Category Navigation Buttons */
.category-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.category-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 1.25rem;
}

.category-nav-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--jahan-primary);
}

.category-nav-btn.active {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    border-color: var(--jahan-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.category-nav-btn.active::before {
    opacity: 1;
}

.category-nav-btn .icon {
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.category-nav-btn:hover .icon {
    transform: scale(1.1);
}

.category-nav-btn span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Enhanced Category Buttons */
.category-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(8px);
    color: var(--foreground);
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-btn:hover {
    background: linear-gradient(135deg, var(--jahan-golden), #f59e0b);
    color: var(--foreground);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.4);
    border-color: var(--jahan-golden);
}



/* Enhanced Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b4513, var(--jahan-primary));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Quick Add Button */
.quick-add-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(12px);
    background: linear-gradient(135deg, var(--jahan-golden), #f59e0b);
    color: var(--foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

.product-card:hover .quick-add-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn:hover {
    background: linear-gradient(135deg, #f59e0b, var(--jahan-golden));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
}

/* Enhanced Back Button */
.back-to-categories-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.back-to-categories-btn:hover {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    border-color: var(--jahan-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Enhanced Social Buttons */
.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    color: var(--jahan-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--jahan-cream, #fef3c7), #fde68a);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

.eitaa-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--jahan-orange, #f97316), #ea580c);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.eitaa-btn:hover {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Enhanced Cart Button */
.cart-button {
    position: fixed !important;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-gold 2s infinite;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    min-width: 140px;
    justify-content: center;
}

.cart-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cart-button:hover::before {
    left: 100%;
}

.cart-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.6);
}

.cart-button:active {
    transform: scale(0.98) translateY(0);
    transition: all 0.1s ease;
}

.cart-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.3), 0 12px 35px rgba(139, 69, 19, 0.6);
}

/* Enhanced Quantity and Remove Buttons */
.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quantity-btn:hover {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.remove-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* پیام موفقیت افزودن به سبد خرید */
.add-to-cart-success {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.add-to-cart-success.show {
    transform: translateX(0);
    opacity: 1;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.success-icon {
    font-size: 1.25rem;
    animation: bounce 0.6s ease-in-out;
}

.success-text {
    font-size: 0.95rem;
    white-space: nowrap;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Close Button */
.close-btn {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.close-btn:hover {
    background: linear-gradient(135deg, var(--jahan-primary), #8b4513);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Enhanced Form Action Buttons */
.form-actions .btn {
    margin: 0;
}

/* Enhanced Cart Actions */
.cart-actions .btn {
    margin: 0;
}

/* Enhanced Button Focus States */
.btn:focus,
.category-nav-btn:focus,
.add-to-cart-btn:focus,
.quick-add-btn:focus,
.social-btn:focus,
.cart-button:focus,
.quantity-btn:focus,
.remove-btn:focus,
.close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.3);
}

/* Enhanced Button Loading States */
.btn.loading,
.add-to-cart-btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after,
.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Button Group Styles */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-group .btn {
    border-radius: 0.75rem;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Enhanced Button Sizes for Mobile */
@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .btn-xl {
        padding: 1.125rem 2.5rem;
        font-size: 1.125rem;
    }
    
    .category-nav-btn {
        padding: 1rem 1.5rem;
        min-width: 100px;
    }
    
    .cart-button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        left: 1rem;
        bottom: 1rem;
        min-width: 120px;
        gap: 0.5rem;
    }
    
    .cart-badge {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.7rem;
        top: -0.4rem;
        right: -0.4rem;
    }
    
    .add-to-cart-success {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .success-text {
        font-size: 0.875rem;
    }
    
    /* بهبود اسکرول سایدبار در موبایل */
    .cart-sidebar {
        max-width: 100vw;
        width: 100vw;
    }
    
    .cart-content {
        padding: 1rem;
        -webkit-overflow-scrolling: touch; /* اسکرول نرم در iOS */
        flex: 1;
        min-height: 0; /* مهم برای flexbox */
    }
    
    .cart-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .cart-footer {
        padding: 1rem;
        flex-shrink: 0;
        background: white;
        border-top: 1px solid var(--border);
    }
    
    .cart-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .cart-actions .btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
    
    /* کنترل‌های تعداد در موبایل کوچک */
    .quantity-controls {
        gap: 0.2rem;
        margin-bottom: 0.5rem;
    }
    
    .quantity-btn {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.875rem;
    }
    
    .quantity-display {
        min-width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .quantity-label {
        font-size: 0.7rem;
        margin-left: 0.2rem;
    }
    
    .cart-total {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* فیلد جستجو در موبایل */
    .search-section {
        margin: 1.5rem 0;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .search-input-wrapper {
        padding: 0.6rem 0.8rem;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .search-results-info {
        margin-top: 0.75rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .no-results-message {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
    
    .no-results-message .icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .no-results-message p {
        font-size: 1rem;
    }
    
    .no-results-message small {
        font-size: 0.8rem;
    }
    
    /* اطلاعات تحویل در موبایل */
    .delivery-info {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .delivery-info .icon {
        font-size: 1.1rem;
    }
}

/* بهبود بیشتر برای صفحات خیلی کوچک */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100vw;
    }
    
    .cart-header {
        padding: 1rem;
    }
    
    .cart-header h3 {
        font-size: 1.25rem;
    }
    
    .cart-content {
        padding: 0.75rem;
    }
    
    .cart-footer {
        padding: 0.75rem;
    }
    
    .cart-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 60px;
    }
    
    .cart-actions .btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .cart-total {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}

/* Mobile horizontal product layout */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .product-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: stretch;
  }
  .product-image {
    height: 110px;
  }
  .product-image img {
    height: 100%;
    object-fit: cover;
  }
  .quick-add-btn {
    bottom: 0.5rem;
    left: 0.5rem;
  }
  .product-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .product-header {
    margin-bottom: 0.25rem;
  }
  .product-name {
    font-size: 1rem;
  }
  .product-description {
    -webkit-line-clamp: 2;
    font-size: 0.8rem;
  }
  .product-footer {
    margin-top: auto;
    gap: 0.5rem;
  }
  .add-to-cart-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  .price-amount {
    font-size: 1.1rem;
  }
}

/* لوگوی Menuka */
.main-logo, .hero-logo, .menu-logo {
    width: 80px;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.main-logo:hover, .hero-logo:hover, .menu-logo:hover {
    transform: scale(1.05);
}

.hero-logo {
    width: 120px;
    margin-bottom: 1rem;
}

.menu-logo {
    width: 60px;
    margin-bottom: 0.25rem;
}

/* Mobile responsive logo styles */
@media (max-width: 768px) {
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .hero-logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-section {
        gap: 0.75rem;
    }
}

/* ===== بهبود نمایش موبایل منو ===== */

@media (max-width: 768px) {
    /* بهبود کارت‌های محصول در موبایل */
    .product-card {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
        min-height: auto;
    }
    
    .product-image {
        flex: 0 0 120px;
        height: 120px;
        position: relative;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .product-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }
    
    .product-header {
        margin-bottom: 0.5rem;
    }
    
    .product-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .product-footer {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* بهبود دکمه‌ها در موبایل */
    .add-to-cart-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 8px;
        order: 3; /* آخرین عنصر */
    }
    
    /* بهبود کنترل‌های تعداد */
    .quantity-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 0.75rem;
        order: 1; /* اولین عنصر */
    }
    
    .quantity-label {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-secondary, #6b7280);
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 1.2rem;
        font-weight: bold;
        border: 2px solid var(--border-color, #e5e7eb);
        background: white;
        color: var(--text-primary, #111827);
        transition: all 0.2s ease;
    }
    
    .quantity-btn:hover:not(:disabled) {
        background: var(--jahan-primary, #3b82f6);
        color: white;
        border-color: var(--jahan-primary, #3b82f6);
    }
    
    .quantity-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .quantity-display {
        font-size: 1.1rem;
        font-weight: bold;
        min-width: 40px;
        text-align: center;
        color: var(--text-primary, #111827);
    }
    
    /* بهبود نمایش موجودی */
    .stock-info {
        order: 2; /* دومین عنصر */
        text-align: center;
        padding: 0.5rem;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--jahan-primary, #3b82f6);
        margin-bottom: 0.75rem;
    }
    
    /* بهبود قیمت */
    .product-price {
        order: 0; /* قبل از همه */
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .price-amount {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--jahan-primary, #3b82f6);
    }
    
    .price-currency {
        font-size: 0.9rem;
        color: var(--text-secondary, #6b7280);
        margin-right: 0.5rem;
    }
    
    .original-price {
        font-size: 0.85rem;
        color: var(--text-secondary, #6b7280);
        text-decoration: line-through;
        margin-right: 0.5rem;
    }
    
    /* بهبود نشانگرهای موجودی */
    .unavailable-badge,
    .stock-warning-badge {
        top: 8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .low-stock-indicator {
        bottom: 8px;
        left: 8px;
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    /* بهبود دکمه افزودن سریع */
    .quick-add-btn {
        position: absolute;
        bottom: 8px;
        left: 8px;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 6px;
        background: rgba(34, 197, 94, 0.9);
        color: white;
        border: none;
        cursor: pointer;
        font-weight: 500;
        z-index: 5;
    }
    
    /* بهبود نمایش تخفیف */
    .product-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background: var(--accent-red, #dc2626);
        color: white;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: bold;
        z-index: 5;
        right: 75%;
    }
}

/* بهبود بیشتر برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .product-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .product-image {
        flex: 0 0 100px;
        height: 100px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .stock-info {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 35px;
        height: 35px;
    }
    
    .hero-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-section {
        gap: 0.5rem;
    }
}

/* ===== استایل‌های موجودی و وضعیت آیتم‌ها ===== */

/* آیتم‌های ناموجود */
.product-card.unavailable {
    opacity: 0.6;
    filter: grayscale(30%);
    pointer-events: none;
}

/* بهبود نمایش موبایل برای آیتم‌های ناموجود */
@media (max-width: 768px) {
    .product-card.unavailable {
        opacity: 0.7;
        filter: grayscale(20%);
    }
    
    .product-card.unavailable .product-image img {
        filter: grayscale(15%);
    }
    
    .product-card.unavailable .product-name {
        color: var(--text-secondary, #6b7280);
    }
    
    .product-card.unavailable .product-description {
        color: var(--text-secondary, #6b7280);
    }
    
    .product-card.unavailable .product-price {
        opacity: 0.8;
    }
    
    .product-card.unavailable .quantity-controls {
        opacity: 0.4;
        pointer-events: none;
    }
    
    .product-card.unavailable .stock-info {
        opacity: 0.6;
        background: rgba(107, 114, 128, 0.1);
        border-color: rgba(107, 114, 128, 0.2);
        color: var(--text-secondary, #6b7280);
    }
}

.product-card.unavailable .add-to-cart-btn {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.product-card.unavailable .quick-add-btn {
    display: none !important;
}

.product-card.unavailable .quantity-controls {
    opacity: 0.5;
    pointer-events: none;
}

/* نشانگرهای موجودی */
.unavailable-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-red, #dc2626);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stock-warning-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9500;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* اطلاعات موجودی */
.stock-info {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-weight: 500;
}

/* بهبود نمایش موبایل برای اطلاعات موجودی */
@media (max-width: 768px) {
    .stock-info {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.75rem;
        background: rgba(59, 130, 246, 0.08);
        border: 1px solid rgba(59, 130, 246, 0.15);
        color: var(--jahan-primary, #3b82f6);
        font-weight: 600;
        border-radius: 6px;
    }
    
    .stock-info::before {
        content: "📦 ";
        margin-left: 0.25rem;
    }
}

/* دکمه‌های غیرفعال */
.add-to-cart-btn.unavailable {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.add-to-cart-btn.unavailable:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* بهبود نمایش موبایل برای دکمه‌های غیرفعال */
@media (max-width: 768px) {
    .add-to-cart-btn.unavailable {
        background: #e5e7eb !important;
        color: #9ca3af !important;
        border: 1px solid #d1d5db;
        font-weight: 500;
        opacity: 0.8;
    }
    
    .product-card.unavailable .add-to-cart-btn {
        background: #f3f4f6 !important;
        color: #6b7280 !important;
        border: 1px solid #e5e7eb;
        cursor: not-allowed;
        pointer-events: none;
    }
}

/* پیام انقضای سبد خرید */
.cart-expired-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  z-index: 10000;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cart-expired-notification.show {
  transform: translateX(0);
}

.cart-expired-notification .expired-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.cart-expired-notification .expired-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.cart-expired-notification .expired-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

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

/* پیام هشدار موجودی */
.stock-warning-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff9500;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    font-size: 0.9rem;
}

.stock-warning-message.show {
    transform: translateX(0);
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-icon {
    font-size: 1.2rem;
}

/* بهبود نمایش موبایل برای پیام‌های هشدار */
@media (max-width: 768px) {
    .stock-warning-message {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        font-size: 0.85rem;
        padding: 0.75rem;
        border-radius: 6px;
    }
    
    .warning-content {
        gap: 0.4rem;
    }
    
    .warning-icon {
        font-size: 1.1rem;
    }
}

/* انیمیشن برای تغییر تعداد */
.quantity-display {
    transition: transform 0.15s ease;
}

/* بهبود انیمیشن‌ها در موبایل */
@media (max-width: 768px) {
    .quantity-display {
        transition: transform 0.2s ease;
    }
    
    .product-card {
        transition: all 0.3s ease;
    }
    
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .add-to-cart-btn {
        transition: all 0.2s ease;
    }
    
    .add-to-cart-btn:active:not(.unavailable) {
        transform: scale(0.95);
    }
}

/* بهبود نمایش برای آیتم‌های ناموجود */
.product-card.unavailable .product-image img {
    filter: grayscale(20%);
}

.product-card.unavailable .product-name {
    color: var(--text-secondary, #6b7280);
}

.product-card.unavailable .product-description {
    color: var(--text-secondary, #6b7280);
}

/* بهبود بیشتر برای موبایل */
@media (max-width: 768px) {
    .product-card.unavailable .product-image img {
        filter: grayscale(15%);
    }
    
    .product-card.unavailable .product-name {
        color: var(--text-secondary, #6b7280);
        opacity: 0.8;
    }
    
    .product-card.unavailable .product-description {
        color: var(--text-secondary, #6b7280);
        opacity: 0.7;
    }
    
    .product-card.unavailable .product-price {
        opacity: 0.6;
    }
    
    .product-card.unavailable .stock-info {
        opacity: 0.5;
        background: rgba(107, 114, 128, 0.1);
        border-color: rgba(107, 114, 128, 0.2);
        color: var(--text-secondary, #6b7280);
    }
}

/* نشانگر موجودی کم */
.low-stock-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 149, 0, 0.9);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}

/* بهبود نمایش موبایل برای نشانگر موجودی کم */
@media (max-width: 768px) {
    .low-stock-indicator {
        bottom: 8px;
        left: 8px;
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
        background: rgba(255, 149, 0, 0.95);
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
}

/* بهبود نمایش موبایل برای نشانگرها */
@media (max-width: 768px) {
    .unavailable-badge,
    .stock-warning-badge,
    .low-stock-indicator {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    
    .unavailable-badge {
        background: var(--accent-red, #dc2626);
    }
    
    .stock-warning-badge {
        background: #ff9500;
    }
    
    .low-stock-indicator {
        background: rgba(255, 149, 0, 0.95);
    }
}