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

body {
    font-family: 'IRANSans', 'IranSans', Tahoma, Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    direction: rtl;
}

/* Vue Router Progress Bar */
.vue-router-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    min-width: 2px;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    z-index: 9999;
    transition: width 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
    animation: progress-shimmer 1.5s infinite;
}

@keyframes progress-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 9998;
    display: none;
}

/* Header Styles */
.header {
    background: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.site-title {
    font-size: 36px;
    font-weight: 600;
    color: #EF3F40;
    white-space: nowrap;
    font-family: 'Lalezar', 'Vazir', 'IRANSans', 'IranSans', sans-serif;
    letter-spacing: -0.5px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.site-title-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.site-title-link:hover {
    transform: scale(1.05);
    color: #d63637;
    text-shadow: 0 2px 8px rgba(239, 63, 64, 0.3);
}

.site-title-link:active,
.site-title-link:visited,
.site-title-link:focus {
    color: inherit;
    text-decoration: none;
}

.search-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.search-input:focus {
    outline: none;
    border-color: #EF3F40;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #EF3F40;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #d0d0d0;
}

.btn-primary:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-btn, .favorite-btn {
    position: relative;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.cart-btn:hover, .favorite-btn:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-btn .material-icons, .favorite-btn .material-icons {
    color: #000000;
    font-size: 24px;
}

.cart-text {
    font-size: 16px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    color: #000000;
    font-weight: 500;
}

.favorite-btn {
    padding: 14px;
}

.favorite-btn .material-icons {
    color: #666;
}

.favorite-btn:hover .material-icons {
    color: #EF3F40;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -8px;
    background-color: #EF3F40;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Menu Navbar */
.navbar {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 40px;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    position: relative;
}

.categories-btn {
    background-color: #EF3F40;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.categories-btn:hover {
    background-color: #d63637;
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    min-width: 250px;
    z-index: 100;
    margin-top: 10px;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.categories-list li:hover {
    background: #f5f5f5;
}

.menu-items {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    cursor: pointer;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.menu-item:hover {
    color: #EF3F40;
}

.menu-item .material-icons {
    font-size: 20px;
    color: #666;
}

/* Stories Section */
.stories-section {
    padding: 30px 40px;
    background: #ffffff;
}

.stories-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    justify-content: center;
}

.stories-container::-webkit-scrollbar {
    height: 6px;
}

.stories-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.stories-container::-webkit-scrollbar-thumb {
    background: #EF3F40;
    border-radius: 10px;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    cursor: pointer;
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
    padding: 3px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar .material-icons {
    font-size: 40px;
    color: #EF3F40;
}

.story-title {
    font-size: 14px;
    color: #333;
    text-align: center;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

/* Slider Section */
.slider-section {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    padding: 40px;
    max-width: 500px;
}

.slide-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Vazir', 'IRANSans', 'IranSans', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.slide-subtitle {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 25px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.slide-button {
    background: #EF3F40;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-button:hover {
    background: #d63637;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .slide-content {
        max-width: 100%;
        right: 20px;
        padding: 30px 20px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-subtitle {
        font-size: 16px;
    }
    
    .slide-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-nav:hover {
    background: #EF3F40;
    color: white;
}

.slider-nav.prev {
    right: 20px;
}

.slider-nav.next {
    left: 20px;
}

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

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

.dot.active {
    background: #EF3F40;
    width: 30px;
    border-radius: 6px;
}

/* Action Buttons Section */
.action-buttons-section {
    padding: 30px 40px;
    background: #ffffff;
}

.action-buttons-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.action-btn {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #EF3F40;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(239, 63, 64, 0.15);
}

.action-btn .material-icons {
    font-size: 32px;
    color: #EF3F40;
    transition: all 0.3s ease;
}

.action-btn:hover .material-icons {
    transform: scale(1.1);
}

/* Responsive for Action Buttons */
@media (max-width: 1024px) {
    .action-buttons-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .action-buttons-section {
        padding: 20px;
    }
    
    .action-buttons-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-btn {
        padding: 16px;
    }
}

/* Off-Price Products Section */
.off-price-section {
    margin: 40px 0;
}

.off-price-products {
    padding: 30px 40px;
    background: #ffffff;
}

.off-price-box {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.off-price-header {
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px),
        linear-gradient(135deg, #EF3F40 0%, #d63637 100%);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: white;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Vazir', 'IRANSans', 'IranSans', sans-serif;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.products-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 25px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    touch-action: pan-x;
}

.products-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.products-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-scroll-btn:hover {
    background: #EF3F40;
    border-color: #EF3F40;
    box-shadow: 0 4px 12px rgba(239, 63, 64, 0.3);
}

.products-scroll-btn:hover .material-icons {
    color: white;
}

.products-scroll-btn .material-icons {
    font-size: 24px;
    color: #333;
    transition: color 0.3s ease;
}

.products-scroll-btn.scroll-left {
    right: 10px;
}

.products-scroll-btn.scroll-right {
    left: 10px;
}

@media (max-width: 768px) {
    .products-scroll-btn {
        width: 35px;
        height: 35px;
    }
    
    .products-scroll-btn .material-icons {
        font-size: 20px;
    }
    
    .products-scroll-btn.scroll-left {
        right: 5px;
    }
    
    .products-scroll-btn.scroll-right {
        left: 5px;
    }
    
    .product-card {
        min-width: 240px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-image .material-icons {
        font-size: 70px;
    }
    
    .product-title {
        padding: 16px 16px 0;
        font-size: 15px;
    }
    
    .product-price {
        padding: 0 16px 16px;
    }
}

.product-card-wrapper {
    position: relative;
    min-width: 280px;
}

.product-card {
    min-width: 280px;
    background: white;
    border: none;
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.product-card-add-cart {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
}

.product-card-wrapper:hover .product-card-add-cart {
    opacity: 1;
    transform: scale(1);
}

.product-card-add-cart:hover {
    background: #EF3F40;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 63, 64, 0.4);
}

.product-card-add-cart:active {
    transform: scale(0.95);
}

.product-card-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card-add-cart .material-icons {
    font-size: 20px;
    color: #EF3F40;
    transition: color 0.3s ease;
}

.product-card-add-cart:hover .material-icons {
    color: white;
}

.product-card-add-cart:disabled .material-icons {
    color: #999;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(239, 63, 64, 0.1), rgba(239, 63, 64, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover {
    box-shadow: 
        inset 0 0 0 1px rgba(239, 63, 64, 0.2),
        0 12px 32px rgba(239, 63, 64, 0.2),
        inset 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-12px) scale(1.02);
    border-color: #EF3F40;
}

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

.product-image {
    width: 100%;
    height: 280px;
    border-radius: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.92) 5%,
        rgba(0, 0, 0, 0.85) 10%,
        rgba(0, 0, 0, 0.75) 15%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.12) 70%,
        rgba(0, 0, 0, 0.05) 85%,
        rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 63, 64, 0.05) 0%, rgba(239, 63, 64, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

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

.product-image .material-icons {
    font-size: 90px;
    color: #EF3F40;
    opacity: 0.6;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image .material-icons {
    opacity: 0.8;
    transform: scale(1.1);
}

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

.product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1a1a1a;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    line-height: 1.5;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 20px 20px 0;
    position: relative;
    z-index: 2;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px 20px;
    position: relative;
    z-index: 2;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.price-discount {
    color: #EF3F40;
    font-size: 18px;
    font-weight: 700;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.off-badge {
    background: #EF3F40;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

/* Shop by Categories Section */
.shop-categories-section {
    padding: 50px 40px;
    background: #f9f9f9;
}

.shop-categories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.shop-categories-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Vazir', 'IRANSans', 'IranSans', sans-serif;
}

.shop-categories-title .material-icons {
    color: #EF3F40;
    font-size: 32px;
}

.shop-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.shop-category-card {
    background: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 160px;
    text-decoration: none;
    color: inherit;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    transition: all 0.3s ease;
    z-index: 0;
}

.shop-category-card:hover .category-overlay {
    background: linear-gradient(135deg, rgba(239, 63, 64, 0.7) 0%, rgba(239, 63, 64, 0.5) 100%);
}

.shop-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 63, 64, 0.05) 0%, rgba(239, 63, 64, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.shop-category-card:hover::before {
    opacity: 0;
}

.shop-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(239, 63, 64, 0.15);
    border-color: #EF3F40;
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shop-category-card:hover .category-icon-wrapper {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.category-icon-wrapper .material-icons {
    font-size: 36px;
    color: #EF3F40;
    transition: all 0.3s ease;
}

.shop-category-card:hover .category-icon-wrapper .material-icons {
    color: #EF3F40;
    transform: scale(1.1);
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-category-card:hover .category-name {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Responsive for Shop Categories */
@media (max-width: 1024px) {
    .shop-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .category-icon-wrapper {
        width: 65px;
        height: 65px;
    }
    
    .category-icon-wrapper .material-icons {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .shop-categories-section {
        padding: 30px 20px;
    }
    
    .shop-categories-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .shop-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .shop-category-card {
        padding: 20px 15px;
    }
    
    .category-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .category-icon-wrapper .material-icons {
        font-size: 36px;
    }
    
    .category-name {
        font-size: 13px;
    }
}

/* Category Products Section */
.category-products-section {
    padding: 40px;
    background: #ffffff;
}

.category-products-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-box {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-box.full-width {
    width: 100%;
}

.category-boxes-row {
    display: flex;
    gap: 30px;
    width: 100%;
}

.category-box.half-width {
    flex: 1;
    min-width: 0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.view-all-link {
    color: #EF3F40;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: auto;
}

.view-all-link:hover {
    color: #d63637;
    transform: translateX(-5px);
}

.off-price-header .view-all-link {
    color: white;
    opacity: 0.9;
}

.off-price-header .view-all-link:hover {
    color: white;
    opacity: 1;
    transform: translateX(-5px);
}

.category-icon {
    font-size: 32px;
    color: #EF3F40;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    font-family: 'Vazir', 'IRANSans', 'IranSans', sans-serif;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-product-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.06),
        inset 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.category-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(239, 63, 64, 0.1), rgba(239, 63, 64, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.category-product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        inset 0 0 0 1px rgba(239, 63, 64, 0.2),
        0 10px 28px rgba(239, 63, 64, 0.18),
        inset 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #EF3F40;
}

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

.category-product-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.category-product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.92) 5%,
        rgba(0, 0, 0, 0.85) 10%,
        rgba(0, 0, 0, 0.75) 15%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.12) 70%,
        rgba(0, 0, 0, 0.05) 85%,
        rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.category-product-image .material-icons {
    font-size: 60px;
    color: #EF3F40;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-product-card:hover .category-product-image .material-icons {
    transform: scale(1.1);
    opacity: 0.9;
}

.category-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 0;
    position: relative;
    z-index: 2;
}

.category-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #EF3F40;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    padding: 0 12px 12px;
    position: relative;
    z-index: 2;
}

/* Category Banners */
.category-banner {
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.category-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-banner.full-width {
    width: 100%;
}

.category-banner.half-width {
    flex: 1;
    min-width: 0;
}

.banner-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.banner-title {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'IRANSans', 'IranSans', sans-serif;
    text-align: center;
}

/* Responsive for Category Products */
@media (max-width: 768px) {
    .category-boxes-row {
        flex-direction: column;
    }
    
    .category-box.half-width {
        width: 100%;
    }
    
    .category-banner.half-width {
        width: 100%;
    }
    
    .category-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .category-products-section {
        padding: 20px;
    }
}

/* Most Selling Products Section */
.most-selling-section {
    padding: 50px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.most-selling-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.most-selling-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.most-selling-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.most-selling-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.most-selling-icon {
    font-size: 40px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.most-selling-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Lalezar', 'Vazir', 'IRANSans', 'IranSans', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.most-selling-view-all {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.most-selling-view-all:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.most-selling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.most-selling-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.most-selling-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.most-selling-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.most-selling-card:hover::before {
    opacity: 1;
}

.most-selling-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.most-selling-badge .material-icons {
    font-size: 18px;
    color: #ff6b00;
}

.most-selling-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.most-selling-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.most-selling-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.most-selling-image .material-icons {
    font-size: 80px;
    color: #667eea;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.most-selling-card:hover .most-selling-image .material-icons {
    transform: scale(1.15);
    opacity: 0.8;
}

.most-selling-sales-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sales-icon {
    font-size: 16px;
}

.most-selling-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.most-selling-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    line-height: 1.5;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-selling-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-icon {
    font-size: 16px;
    color: #ffd700;
}

.rating-text {
    font-size: 13px;
    color: #666;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    margin-right: 5px;
}

.most-selling-price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.most-selling-price {
    font-size: 20px;
    font-weight: 800;
    color: #667eea;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.most-selling-discount {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.most-selling-footer {
    margin-top: 8px;
}

.most-selling-add-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.most-selling-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.most-selling-add-cart .material-icons {
    font-size: 20px;
}

/* Responsive for Most Selling Products */
@media (max-width: 1024px) {
    .most-selling-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .most-selling-section {
        padding: 30px 20px;
    }
    
    .most-selling-title {
        font-size: 24px;
    }
    
    .most-selling-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }
    
    .most-selling-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .most-selling-image-wrapper {
        height: 180px;
    }
    
    .most-selling-icon {
        font-size: 32px;
        padding: 10px;
    }
}

/* Blog Posts Section */
.blog-section {
    padding: 40px;
    background: #f9f9f9;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Vazir', 'IRANSans', 'IranSans', sans-serif;
}

.section-title .material-icons {
    color: #EF3F40;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.blog-image .material-icons {
    font-size: 80px;
    color: #EF3F40;
    opacity: 0.5;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Vazir', 'IRANSans', 'IranSans', sans-serif;
}

.blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.blog-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.read-more {
    color: #EF3F40;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #333;
    padding: 50px 40px 20px;
    border-top: 1px solid #f0f0f0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Accreditation Badges */
.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
    order: 3;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon.enamad {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
}

.badge-icon.samandehi {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
}

.badge-icon.union {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    color: white;
}

.badge-icon .material-icons {
    font-size: 32px;
}

.badge-text {
    flex: 1;
}

.badge-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.badge-stars {
    color: #ffa726;
    font-size: 12px;
    margin-bottom: 5px;
}

.badge-subtitle {
    font-size: 12px;
    color: #666;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

/* Navigation Links */
.footer-nav {
    display: flex;
    gap: 40px;
    flex: 1;
    flex-wrap: wrap;
    order: 2;
}

.nav-column {
    min-width: 180px;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Vazir', 'IRANSans', 'IranSans', sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.footer-links a:hover {
    color: #EF3F40;
}

/* Company Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-width: 200px;
    order: 1;
}

.company-logo {
    text-align: right;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #EF3F40;
    margin-bottom: 5px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.logo-domain {
    font-size: 14px;
    color: #666;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.social-link-square {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link-square:hover {
    background: #EF3F40;
    color: white;
    transform: translateY(-3px);
}

.back-to-top {
    width: 100%;
    padding: 12px;
    background: #EF3F40;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-to-top:hover {
    background: #d63637;
    transform: translateY(-2px);
}

/* Contact Information */
.footer-contact {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.contact-item.address {
    flex: 1;
    min-width: 100%;
    margin-top: 10px;
}

.contact-icon {
    color: #EF3F40;
    font-size: 20px;
}

.contact-label {
    color: #666;
    font-weight: 500;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.contact-value {
    color: #333;
    font-weight: 500;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

/* Legal Section */
.footer-legal {
    text-align: center;
    padding-top: 20px;
}

.legal-links {
    margin-bottom: 15px;
}

.legal-links a {
    color: #EF3F40;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.legal-links a:hover {
    text-decoration: underline;
}

.legal-links span {
    color: #EF3F40;
    margin: 0 5px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.copyright {
    color: #666;
    font-size: 13px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

/* Shop Page Styles */
.shop-container {
    min-height: calc(100vh - 200px);
    background: #f9f9f9;
    padding: 30px 0;
}

.shop-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Shop Sidebar */
.shop-sidebar {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Vazir', 'IRANSans', sans-serif;
    margin: 0;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background: #f0f0f0;
    color: #EF3F40;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Filter Sections */
.filter-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

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

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.filter-header:hover {
    color: #EF3F40;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filter-title .material-icons {
    font-size: 20px;
    color: #EF3F40;
}

.filter-toggle-icon {
    font-size: 20px;
    color: #999;
    transition: transform 0.3s ease;
}

.filter-content {
    padding-top: 15px;
    animation: slideDown 0.3s ease;
}

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

/* Checkbox Styles */
.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    transition: color 0.3s ease;
}

.filter-checkbox-label:hover {
    color: #EF3F40;
}

.filter-checkbox {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox:checked + .checkbox-custom {
    background: #EF3F40;
    border-color: #EF3F40;
}

.filter-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    flex: 1;
}

/* Price Range Filter */
.price-range-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input-group label {
    font-size: 14px;
    color: #666;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    min-width: 30px;
}

.price-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #EF3F40;
    box-shadow: 0 0 0 3px rgba(239, 63, 64, 0.1);
}

.price-input-group span {
    font-size: 14px;
    color: #666;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    min-width: 50px;
}

.apply-price-btn {
    margin-top: 10px;
    padding: 12px 20px;
    background: #EF3F40;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.apply-price-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 63, 64, 0.3);
}

/* Rating Selector */
.rating-selector {
    width: 100%;
}

.rating-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-select:focus {
    outline: none;
    border-color: #EF3F40;
    box-shadow: 0 0 0 3px rgba(239, 63, 64, 0.1);
}

/* Sort Options */
.sort-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sort-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    transition: color 0.3s ease;
}

.sort-option-label:hover {
    color: #EF3F40;
}

.sort-radio {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sort-radio:checked + .radio-custom {
    border-color: #EF3F40;
}

.sort-radio:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #EF3F40;
    border-radius: 50%;
}

.radio-text {
    flex: 1;
}

/* Filter Actions */
.filter-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.clear-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background: #e0e0e0;
    color: #EF3F40;
    border-color: #EF3F40;
}

/* Shop Main Content */
.shop-main {
    flex: 1;
    min-width: 0;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.shop-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Vazir', 'IRANSans', sans-serif;
    margin: 0;
}

.shop-results-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.results-count {
    font-size: 16px;
    color: #666;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.filter-toggle-btn {
    display: none;
    padding: 10px 20px;
    background: #EF3F40;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.filter-toggle-btn:hover {
    background: #d32f2f;
}

.filter-toggle-btn .material-icons {
    font-size: 20px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-products .material-icons {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products p {
    font-size: 18px;
    margin-bottom: 20px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

/* Related Products Section */
.related-products-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Vazir', 'IRANSans', sans-serif;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    .menu-items {
        gap: 15px;
        font-size: 14px;
    }
    
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        flex-direction: column;
    }
    
    .footer-badges {
        width: 100%;
    }
    
    .footer-nav {
        width: 100%;
    }
    
    .footer-brand {
        width: 100%;
        align-items: center;
    }
    
    .footer-contact {
        flex-direction: column;
    }
    
    .contact-item.address {
        min-width: auto;
    }

    /* Shop Page Responsive */
    .shop-container {
        padding: 20px 0;
    }

    .shop-wrapper {
        padding: 0 20px;
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        max-height: 100vh;
        z-index: 2000;
        border-radius: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

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

    .sidebar-close-btn {
        display: block;
    }

    .shop-main {
        padding: 20px;
        width: 100%;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

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

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        min-width: auto;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-wrapper {
        padding: 0 20px;
        gap: 20px;
    }

    .shop-sidebar {
        width: 280px;
        min-width: 280px;
    }

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

@media (min-width: 1025px) and (max-width: 1200px) {
    .shop-wrapper {
        padding: 0 30px;
        gap: 25px;
    }

    .shop-sidebar {
        width: 280px;
        min-width: 280px;
    }
}

/* ============================================
   Cart Page Styles
   ============================================ */

.cart-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.cart-page-header {
    margin-bottom: 30px;
}

.cart-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Vazir', 'IRANSans', sans-serif;
    margin: 0;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Section Styles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Vazir', 'IRANSans', sans-serif;
    margin: 0;
}

.items-count {
    font-size: 14px;
    color: #666;
}

/* Cart Items Section */
.cart-items-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-cart .material-icons {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .material-icons {
    font-size: 40px;
    color: #ccc;
}

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

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 16px;
    font-weight: 600;
    color: #EF3F40;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #e0e0e0;
}

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

.quantity-btn .material-icons {
    font-size: 18px;
    color: #333;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.quantity-input:focus {
    outline: none;
}

.cart-item-total {
    min-width: 120px;
    text-align: left;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Vazir', 'IRANSans', sans-serif;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: #ffebee;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: #ffcdd2;
}

.cart-item-remove .material-icons {
    font-size: 20px;
    color: #EF3F40;
}

/* Profile Section */
.profile-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-tabs,
.cart-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    position: relative;
}

.tab-btn:hover {
    border-color: #EF3F40;
    color: #EF3F40;
}

.tab-btn.active {
    border-color: #EF3F40;
    background: #EF3F40;
    color: #fff;
}

.tab-btn .material-icons {
    font-size: 20px;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
}

.tab-content {
    min-height: 400px;
}

.tab-panel {
    animation: fadeIn 0.3s ease;
}

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

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #EF3F40;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 14px;
}

.profile-status .material-icons {
    color: #4caf50;
}

/* OTP Form */
.otp-form {
    padding: 20px 0;
}

.otp-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-family: 'Vazir', 'IRANSans', sans-serif;
}

.otp-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.otp-input {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    font-family: 'Vazir', 'IRANSans', sans-serif;
}

.otp-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.otp-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.otp-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.otp-message.error {
    background: #ffebee;
    color: #c62828;
}

.otp-message.info {
    background: #e3f2fd;
    color: #1976d2;
}

/* Purchase History */
.history-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.history-search {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.history-filter {
    padding: 10px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    cursor: pointer;
}

.empty-history,
.empty-favorites {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-history .material-icons,
.empty-favorites .material-icons {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: #EF3F40;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-id {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.order-date {
    font-size: 12px;
    color: #999;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-delivered {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.history-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.history-item-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.item-name {
    flex: 1;
    color: #333;
}

.item-quantity {
    color: #666;
    margin: 0 15px;
}

.item-price {
    font-weight: 600;
    color: #1a1a1a;
}

.history-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: #EF3F40;
    font-family: 'Vazir', 'IRANSans', sans-serif;
}

/* Favorites */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    transition: all 0.2s ease;
}

.favorite-item:hover {
    border-color: #EF3F40;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.favorite-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.favorite-image .material-icons {
    font-size: 40px;
    color: #ccc;
}

.favorite-details {
    flex: 1;
}

.favorite-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.favorite-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorite-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-danger {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ffcdd2;
}

.btn-danger:hover {
    background: #ffcdd2;
}

/* Payment Section */
.payment-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.payment-summary {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #1a1a1a;
}

.free-shipping {
    color: #4caf50;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.total-row {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    font-family: 'Vazir', 'IRANSans', sans-serif;
}

.total-amount {
    font-size: 24px;
    color: #EF3F40;
}

.payment-methods {
    margin-bottom: 25px;
}

.payment-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-family: 'Vazir', 'IRANSans', sans-serif;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: #EF3F40;
    background: #fff5f5;
}

.payment-option input[type="radio"] {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    color: #EF3F40;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: #EF3F40;
    background: #fff5f5;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    font-family: 'IRANSans', 'IranSans', sans-serif;
}

.payment-option-content .material-icons {
    font-size: 24px;
    color: #666;
}

.payment-option:has(input[type="radio"]:checked) .payment-option-content .material-icons {
    color: #EF3F40;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

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

.checkout-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.checkout-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.checkout-message.error {
    background: #ffebee;
    color: #c62828;
}

/* Responsive Cart Page */
@media (max-width: 1024px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-section {
        position: static;
    }

    .profile-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .cart-page-container {
        padding: 20px 15px;
    }

    .cart-page-title {
        font-size: 24px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
    }

    .cart-item-quantity {
        justify-self: start;
    }

    .cart-item-total {
        justify-self: end;
    }

    .cart-item-remove {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    .cart-item {
        position: relative;
        padding: 15px;
    }

    .profile-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .tab-btn .material-icons {
        font-size: 18px;
    }

    .history-controls {
        flex-direction: column;
    }

    .favorite-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .favorite-actions {
        grid-column: 2;
        flex-direction: row;
        margin-top: 10px;
    }

    .payment-option-content {
        font-size: 12px;
    }
}

/* Toast Notifications */
.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'IRANSans', 'IranSans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    max-width: 400px;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-toast-success {
    border-right: 4px solid #4caf50;
    color: #2e7d32;
}

.cart-toast-error {
    border-right: 4px solid #f44336;
    color: #c62828;
}

.cart-toast .material-icons {
    font-size: 24px;
}

.cart-toast-success .material-icons {
    color: #4caf50;
}

.cart-toast-error .material-icons {
    color: #f44336;
}

@media (max-width: 768px) {
    .cart-toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
    }
    
    .product-card-add-cart {
        opacity: 1;
        transform: scale(1);
    }
}

