@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', Tahoma, sans-serif;
}

body {
    background: linear-gradient(135deg, #fef9f0, #f5ebe0);
    padding: 0 12px 12px 12px;
}

.support-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.2s ease;
    text-decoration: none;
}

.support-float:hover {
    transform: scale(1.1);
    background: #075e54;
}

.header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 0 0 32px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    flex: 1;
    text-align: center;
}

.logo h1 {
    background: linear-gradient(135deg, #c62828, #e07a2c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.3rem;
}

.hamburger-menu {
    order: -1;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
}

.cart-icon {
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hamburger-icon {
    font-size: 24px;
    color: #c62828;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: white;
    z-index: 200;
    transition: 0.3s ease;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.slide-menu.open {
    right: 0;
}

.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.slide-menu-header h3 {
    color: #c62828;
}

.close-menu {
    font-size: 28px;
    cursor: pointer;
}

.menu-item {
    margin-bottom: 20px;
}

.menu-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.menu-item select,
.menu-item input {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 14px;
}

.menu-item button {
    width: 100%;
    padding: 12px;
    background: #c62828;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-weight: bold;
}

.track-result {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media(min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.price-on-image {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c62828;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.old-price-onimage {
    text-decoration: line-through;
    font-size: 0.7rem;
    color: #ffd6d6;
    margin-bottom: 2px;
}

.discount-badge-onimage {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff9800;
    color: #5d2e00;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.badge-stack {
    position: absolute;
    top: 15px;
    left: -120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge-item {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    color: white;
    font-size: 18px;
}

.badge-item.sales {
    background: #4c6a3b;
}

.badge-item.stock-circle {
    background: #607d8b;
    font-size: 14px;
}

.tooltip-text {
    visibility: hidden;
    background: #222;
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    position: absolute;
    top: 50%;
    right: 115%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    opacity: 0;
}

.badge-item:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.carousel {
    position: relative;
    aspect-ratio: 1/1;
    cursor: pointer;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: 0.3s ease;
}

.carousel-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #2c1810;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
}

.rating-stars {
    color: #f5b642;
    font-size: 0.85rem;
}

.action-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    color: #555;
}

.cart-add-btn {
    background: linear-gradient(135deg, #c62828, #e0522e);
    border: none;
    border-radius: 60px;
    padding: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.cart-add-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 60px;
    border: 2px solid #c62828;
    pointer-events: none;
}

.icon-circle:hover {
    background: #c62828;
    color: white;
    transform: scale(1.05);
}

.delivery-status {
    background: #fef3e8;
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.delivery-status label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #8b5a3a;
}

.delivery-status select {
    background: white;
    border: none;
    padding: 5px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.options-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.option-group {
    flex: 1;
    background: #fef3e8;
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-group label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #8b5a3a;
}

.option-group select {
    background: white;
    border: none;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.qty-add {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.qty-selector {
    background: #f0e6de;
    border-radius: 60px;
    display: flex;
    align-items: center;
    padding: 4px;
    flex: 1;
}

.qty-btn {
    background: none;
    border: none;
    width: 44px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #c62828;
    cursor: pointer;
}

.qty-num {
    width: 44px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.out-of-stock {
    background: #999;
    cursor: not-allowed;
}

.footer {
    background: #2c2c2c;
    color: #e0c8b0;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    border-radius: 32px 32px 0 0;
}

.cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 32px 32px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    transform: translateY(100%);
    transition: 0.3s;
    padding: 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
}

.cart-sidebar.open {
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-item-actions button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.cart-item-remove {
    background: #ffebee;
    color: #c62828;
    border: none;
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    text-align: left;
    font-weight: bold;
}

.close-cart-btn {
    background: #999;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 15px;
}

.checkout-btn {
    background: #c62828;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(4px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 32px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    z-index: 2001;
    display: none;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal.active {
    display: flex;
}

.modal input,
.modal textarea,
.modal select {
    padding: 10px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.modal button {
    padding: 12px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2c2c2c;
    color: white;
    padding: 12px 25px;
    border-radius: 60px;
    z-index: 3000;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.notification.show {
    opacity: 1;
}

.status-pending {
    background: #fff3e0;
    color: #e67e22;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
}

.status-shipped {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
}

.payment-info-card {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 20px;
    margin: 10px 0;
    text-align: center;
}

.payment-info-blue {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 16px;
    margin-top: 10px;
}

.pagination a {
    transition: all 0.2s ease;
}

.pagination a:hover {
    transform: scale(1.05);
}

/* استایل صفحه محصول */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 32px;
}

.thumbnail-list img {
    transition: transform 0.2s, border-color 0.2s;
}

.thumbnail-list img:hover {
    transform: scale(1.05);
    border-color: #c62828 !important;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    color: #2c1810;
}

.price-box {
    background: #fef3e8;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .product-detail-container > div {
        grid-template-columns: 1fr !important;
    }
    
    .product-detail-info h1 {
        font-size: 1.4rem;
    }
}   
    
    /* استایل‌های پاپ‌آپ جستجو */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}
.search-overlay.active {
    display: flex;
}
.search-results-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.search-results-header {
    padding: 15px;
    background: #c62828;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-results-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.search-results-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
.search-results-list {
    overflow-y: auto;
    padding: 10px;
}
.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.2s;
}
.search-result-item:hover {
    background: #f9f9f9;
}
.search-result-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}
.search-result-info {
    flex: 1;
}
.search-result-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.search-result-price {
    color: #c62828;
    font-weight: bold;
    font-size: 0.85rem;
}
.search-loading {
    text-align: center;
    padding: 30px;
    color: #999;
}
.search-empty {
    text-align: center;
    padding: 30px;
    color: #999;
}
    
 
 /* ==============================================
   Toast Notification - پیغام‌های غیر مزاحم
   ============================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2c2c2c;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
    max-width: 90%;
    white-space: normal;
    text-align: center;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.error {
    background: #c62828;
}

@media (max-width: 768px) {
    .toast-notification {
        font-size: 12px;
        padding: 10px 20px;
        bottom: 20px;
    }
}   
    
    
