/*
Theme Name: Dima Market - Leona Edition
Theme URI: https://dimashop.ir
Author: Dima Team & Resaneq
Author URI: https://dimashop.ir
Description: قالب فروشگاهی حرفه‌ای Dima Market - نسخه اختصاصی لئونا مارکت (تم طلایی و صورتی)
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dima-market
Tags: e-commerce, rtl, custom-menu, featured-images, theme-options, translation-ready, woocommerce, luxury, beauty
*/

/* ═══════════════════════════════════════════════════════════
   متغیرهای CSS - تم لئونا (Leona Theme Variables)
   ═══════════════════════════════════════════════════════════ */
:root {
    --leona-gold: #C5A059;       /* طلایی اصلی */
    --leona-gold-dark: #b08d4a;  /* طلایی تیره */
    --leona-pink: #e91e63;       /* صورتیaccent */
    --leona-pink-light: #FADADD; /* صورتی ملایم */
    --leona-cream: #FFF8E7;      /* کرم پس‌زمینه */
    --leona-dark: #2D2418;       /* قهوه‌ای تیره برای فوتر */
    --leona-text: #4A3B32;       /* رنگ متن اصلی */
    --leona-gray: #78909c;
    --leona-border: #f0e6d2;     /* رنگ حاشیه‌ها */
    
    /* نگاشت متغیرهای قدیمی به جدید برای سازگاری */
    --dima-primary: var(--leona-gold);
    --dima-primary-dark: var(--leona-gold-dark);
    --dima-secondary: var(--leona-pink);
    --dima-accent: #ffd93d;
    --dima-dark: var(--leona-dark);
    --dima-gray: var(--leona-gray);
    --dima-light: var(--leona-cream);
    --dima-white: #ffffff;
    --dima-border: var(--leona-border);
}

/* ═══════════════════════════════════════════════════════════
   Reset و Base
   ═══════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'IRANSans', Tahoma, sans-serif;
    background: #faf9f6; /* پس‌زمینه کرم بسیار روشن */
    color: var(--leona-text);
    line-height: 1.6;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════
   Utility Classes - گرادینت‌های لئونا
   ═══════════════════════════════════════════════════════════ */
.gradient-primary {
    background: linear-gradient(135deg, var(--leona-gold) 0%, var(--leona-gold-dark) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--leona-pink) 0%, #c2185b 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.gradient-red {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

/* ═══════════════════════════════════════════════════════════
   Mobile Menu - RTL
   ═══════════════════════════════════════════════════════════ */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    right: 0;
    left: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════
   Product Card
   ═══════════════════════════════════════════════════════════ */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid var(--leona-border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.15); /* سایه طلایی */
    border-color: var(--leona-gold);
}

/* ═══════════════════════════════════════════════════════════
   Promo Banners
   ═══════════════════════════════════════════════════════════ */
.promo-banner {
    min-height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.promo-banner:hover {
    transform: translateY(-5px);
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-banner-image {
    position: absolute;
    left: 15px;
    bottom: 15px;
    max-width: 45%;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   Flash Sale Side
   ═══════════════════════════════════════════════════════════ */
.flash-sale-side {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px 10px;
    z-index: 10;
}

.flash-sale-products-wrapper {
    margin-left: 80px;
}

/* ═══════════════════════════════════════════════════════════
   Modal
   ═══════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 36, 24, 0.6); /* پس‌زمینه تیره گرم */
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   Owl Carousel RTL
   ═══════════════════════════════════════════════════════════ */
.owl-carousel .owl-item {
    float: right;
}

.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.2);
    color: var(--leona-gold) !important;
    border: 1px solid var(--leona-border);
}

.owl-nav button:hover {
    background: var(--leona-gold) !important;
    color: white !important;
}

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

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

/* ═══════════════════════════════════════════════════════════
   Custom Scrollbar - تم طلایی
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: var(--leona-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--leona-gold-dark);
}

/* ═══════════════════════════════════════════════════════════
   Line Clamp
   ═══════════════════════════════════════════════════════════ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .flash-sale-side {
        display: none !important;
    }
    
    .flash-sale-products-wrapper {
        margin-left: 0;
    }
    
    .promo-banner {
        min-height: 180px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   🎨 Premium Mobile Bottom Navigation - Leona Theme
   ═══════════════════════════════════════════════════════════════ */

/* Base Container */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
}

/* Main Navigation Container */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 248, 231, 0.98) 100%); /* ته رنگ کرم */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: 
        0 -4px 20px rgba(197, 160, 89, 0.08),
        0 -1px 3px rgba(0, 0, 0, 0.04);
}

/* Navigation Items */
.bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Active Indicator (Top Line) - طلایی */
.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--leona-gold), var(--leona-gold-dark));
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow Effect - طلایی */
.bottom-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Icon Container */
.bottom-nav-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.bottom-nav-icon i {
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Label Text */
.bottom-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Badge Counter - صورتی */
.bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, var(--leona-pink), #c2185b);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(233, 30, 99, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.9);
    animation: badge-pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 2px 8px rgba(233, 30, 99, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.9);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 4px 12px rgba(233, 30, 99, 0.6),
            0 0 0 2px rgba(255, 255, 255, 0.9);
    }
}

/* Hover States - طلایی */
.bottom-nav-item:hover {
    color: var(--leona-gold);
}

.bottom-nav-item:hover .bottom-nav-icon {
    background: rgba(197, 160, 89, 0.08);
}

.bottom-nav-item:hover .bottom-nav-icon i {
    transform: translateY(-2px) scale(1.1);
}

/* Active State - طلایی */
.bottom-nav-item.active {
    color: var(--leona-gold);
}

.bottom-nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.bottom-nav-item.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(176, 141, 74, 0.1));
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.bottom-nav-item.active .bottom-nav-icon i {
    color: var(--leona-gold);
    transform: translateY(-2px) scale(1.15);
}

.bottom-nav-item.active .bottom-nav-label {
    color: var(--leona-gold);
    font-weight: 700;
    transform: translateY(-1px);
}

/* Tap Animation */
.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item:active .bottom-nav-icon {
    background: rgba(197, 160, 89, 0.2);
}

/* Cart Special - صورتی */
.bottom-nav-item-cart .bottom-nav-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(194, 24, 91, 0.05));
}

.bottom-nav-item-cart.active .bottom-nav-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(194, 24, 91, 0.15));
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.bottom-nav-item-cart.active .bottom-nav-icon i {
    color: var(--leona-pink);
}

.bottom-nav-item-cart.active::before {
    background: linear-gradient(90deg, var(--leona-pink), #c2185b);
}

.bottom-nav-item-cart.active .bottom-nav-label {
    color: var(--leona-pink);
}

.bottom-nav-item-cart:hover .bottom-nav-icon i {
    animation: cart-bounce 0.6s ease-in-out;
}

@keyframes cart-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-4px) rotate(-5deg); }
    75% { transform: translateY(-2px) rotate(5deg); }
}

/* Wishlist Special - صورتی */
.bottom-nav-item-wishlist .bottom-nav-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(194, 24, 91, 0.05));
}

.bottom-nav-item-wishlist.active .bottom-nav-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(194, 24, 91, 0.15));
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.bottom-nav-item-wishlist.active .bottom-nav-icon i {
    color: var(--leona-pink);
}

.bottom-nav-item-wishlist.active::before {
    background: linear-gradient(90deg, var(--leona-pink), #c2185b);
}

.bottom-nav-item-wishlist.active .bottom-nav-label {
    color: var(--leona-pink);
}

.bottom-nav-item-wishlist:hover .bottom-nav-icon i {
    animation: heart-beat 0.8s ease-in-out;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(0.9) rotate(10deg); }
    75% { transform: scale(1.2); }
}

/* Home Special - طلایی */
.bottom-nav-item-home.active .bottom-nav-icon {
    background: linear-gradient(135deg, var(--leona-gold), var(--leona-gold-dark));
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
}

.bottom-nav-item-home.active .bottom-nav-icon i {
    color: white;
    transform: translateY(-2px) scale(1.15);
}

.bottom-nav-item-home.active .bottom-nav-label {
    color: var(--leona-gold);
    font-weight: 800;
}

/* Safe Area Support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    @media (max-width: 768px) {
        body {
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
        }
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .bottom-nav-item,
    .bottom-nav-icon,
    .bottom-nav-icon i,
    .bottom-nav-label,
    .bottom-nav-badge {
        animation: none !important;
        transition: none !important;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .bottom-nav {
        height: 56px;
    }
    
    .bottom-nav-item {
        flex-direction: row;
        gap: 8px;
        padding: 8px 16px;
    }
    
    .bottom-nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .bottom-nav-icon i {
        font-size: 16px;
    }
    
    .bottom-nav-label {
        font-size: 12px;
    }
}

/* Print */
@media print {
    .bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   Modal Styles - تم لئونا
   ═══════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 36, 24, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(197, 160, 89, 0.25);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--leona-border);
    background: var(--leona-cream);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--leona-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.cart-count-badge,
.wishlist-count-badge,
.compare-count-badge {
    background: var(--leona-pink);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.modal-close {
    background: white;
    border: 1px solid #e5e7eb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #6b7280;
}

.modal-close:hover {
    background: var(--leona-pink);
    color: white;
    border-color: var(--leona-pink);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--leona-gold);
    margin-bottom: 10px;
}

/* Modal Empty State */
.modal-empty {
    text-align: center;
    padding: 40px 20px;
}

.modal-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--leona-gold);
}

.modal-empty h3 {
    font-size: 18px;
    color: #374151;
    margin-bottom: 10px;
}

/* Modal Items */
.modal-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}

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

.modal-item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--leona-border);
}

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

.modal-item-details {
    flex: 1;
    min-width: 0;
}

.modal-item-details h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-item-price {
    font-size: 13px;
    color: var(--leona-gold);
    font-weight: 700;
}

.modal-item-actions {
    display: flex;
    gap: 8px;
}

.btn-add-from-modal,
.btn-remove-from-modal {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-add-from-modal {
    background: #fff8e7;
    color: var(--leona-gold);
}

.btn-add-from-modal:hover {
    background: var(--leona-gold);
    color: white;
}

.btn-remove-from-modal {
    background: #fce4ec;
    color: var(--leona-pink);
}

.btn-remove-from-modal:hover {
    background: var(--leona-pink);
    color: white;
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 100%;
        margin: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Breadcrumbs
   ═══════════════════════════════════════════════════════════ */
.dima-breadcrumbs {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item a:hover {
    color: var(--leona-gold);
}

.breadcrumb-item.active {
    color: var(--leona-text);
    font-weight: 600;
}

.breadcrumb-separator {
    color: #d1d5db;
    font-size: 12px;
}

@media (max-width: 768px) {
    .breadcrumbs-list {
        font-size: 12px;
    }
    
    .breadcrumb-item a {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ═══════════════════════════════════════════════════════════
   Footer Styles
   ═══════════════════════════════════════════════════════════ */
footer h4{
    color: var(--leona-gold);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 2rem;
    margin-bottom: 1rem;
}

footer .product-info{
    padding:3px!important;
}

footer .product-info .product-title{
    color:#FFF!important;
}

/* ═══════════════════════════════════════════════════════════
   Reviews Section - تم لئونا
   ═══════════════════════════════════════════════════════════ */
.dima-reviews-section {
    max-width: 100%;
    margin: 40px auto;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}

.reviews-header {
    margin-bottom: 30px;
}

.reviews-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--leona-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-count {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
}

/* Summary */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fff8e7 0%, #fce4ec 100%); /* گرادینت کرم-صورتی */
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--leona-border);
}

@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
    }
}

.summary-avg {
    text-align: center;
}

.avg-number {
    font-size: 56px;
    font-weight: 900;
    color: var(--leona-gold);
    line-height: 1;
    margin-bottom: 10px;
}

.avg-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--leona-gold);
}

.avg-text {
    font-size: 14px;
    color: #6b7280;
}

.summary-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    color: #374151;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--leona-gold), var(--leona-pink));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.bar-count {
    font-size: 13px;
    color: #6b7280;
    min-width: 30px;
    text-align: left;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.review-item {
    padding: 25px;
    background: white;
    border: 1px solid var(--leona-border);
    border-radius: 12px;
    transition: all 0.3s;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.1);
    border-color: var(--leona-gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--leona-gold), var(--leona-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.author-name {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
}

.verified-badge {
    font-size: 12px;
    color: var(--leona-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-meta {
    text-align: left;
}

.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--leona-gold);
}

.review-date {
    font-size: 12px;
    color: #6b7280;
}

.review-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #1f2937;
}

.review-content {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Empty State */
.reviews-empty {
    text-align: center;
    padding: 50px 20px;
    background: #faf9f6;
    border-radius: 12px;
    border: 2px dashed var(--leona-border);
    margin-bottom: 30px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--leona-gold);
}

.reviews-empty h3 {
    margin: 10px 0;
    color: #374151;
    font-size: 20px;
}

.reviews-empty p {
    color: #6b7280;
}

/* Form */
.review-form-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--leona-border);
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--leona-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
    background: #faf9f6;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--leona-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
    background: white;
}

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

/* Rating Input */
.rating-input {
    display: flex;
    gap: 8px;
    direction: ltr;
}

.rate-star {
    font-size: 32px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.rate-star:hover,
.rate-star.active {
    color: var(--leona-gold);
    transform: scale(1.15);
}

.rate-star i {
    transition: all 0.2s;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--leona-gold), var(--leona-pink));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

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

/* Message */
.review-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
}

.review-message.success {
    background: #fff8e7;
    color: var(--leona-gold-dark);
    border: 1px solid var(--leona-gold);
}

.review-message.error {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid var(--leona-pink);
}

/* Responsive */
@media (max-width: 768px) {
    .dima-reviews-section {
        margin: 20px 10px;
    }
    
    .reviews-summary {
        padding: 20px;
    }
    
    .review-item {
        padding: 20px;
    }
    
    .review-form-section {
        padding: 20px;
    }
    
    .rate-star {
        font-size: 28px;
    }
}
/* ═══════════════════════════════════════════════════════════
   بخش ویژگی‌ها و مشخصات محصول - تم لئونا
   ═══════════════════════════════════════════════════════════ */
.leona-specs-section {
    margin: 30px 0;
}

.leona-specs-section h3 {
    font-size: 17px;
    font-weight: 800;
    color: #4A3B32;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e6d2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leona-specs-section h3 i {
    color: #C5A059;
}

/* لیست ویژگی‌ها (حالت برچسبی) */
.leona-specs-section .attribute-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leona-specs-section .attribute-list li {
    background: #FFF8E7;
    border: 1px solid #f0e6d2;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 13px;
    color: #4A3B32;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.leona-specs-section .attribute-list li:hover {
    border-color: #C5A059;
    transform: translateY(-2px);
}

.leona-specs-section .attribute-list li strong {
    color: #C5A059;
    font-weight: 700;
}

/* جدول زمینه‌های دلخواه */
.leona-specs-section .product-custom-fields {
    background: white;
    border: 1px solid #f0e6d2;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
}

.leona-specs-section .specs-table {
    width: 100%;
    border-collapse: collapse;
}

.leona-specs-section .specs-table th,
.leona-specs-section .specs-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.leona-specs-section .specs-table th {
    background: #FFF8E7;
    color: #8d6e36;
    font-weight: 700;
    width: 40%;
}

.leona-specs-section .specs-table td {
    color: #4b5563;
}

.leona-specs-section .specs-table tr:last-child th,
.leona-specs-section .specs-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .leona-specs-section .specs-table th {
        width: 45%;
        font-size: 12px;
    }
    .leona-specs-section .specs-table td {
        font-size: 12px;
    }
}