/* ============================================
   Dima Shop Pro - Complete Redesign
   Modern, Beautiful, RTL
   ============================================ */

/* CSS Variables */
:root {
    --dima-primary: #667eea;
    --dima-primary-dark: #5568d3;
    --dima-secondary: #764ba2;
    --dima-accent: #f093fb;
    --dima-success: #10b981;
    --dima-warning: #f59e0b;
    --dima-danger: #ef4444;
    --dima-info: #3b82f6;
    --dima-dark: #1e1b4b;
    --dima-text: #374151;
    --dima-text-light: #6b7280;
    --dima-bg: #f8fafc;
    --dima-white: #ffffff;
    --dima-border: #e5e7eb;
    --dima-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --dima-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --dima-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --dima-shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
    --dima-radius: 16px;
    --dima-radius-sm: 10px;
    --dima-radius-xs: 6px;
    --dima-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dima-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dima-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dima-gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --dima-gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --dima-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --dima-font: 'Vazir', 'IRANSans', Tahoma, sans-serif;
    --dima-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
.dima-shop-wrapper,
.dima-single-product,
.dima-cart,
.dima-checkout,
.dima-compare-page {
    font-family: var(--dima-font);
    direction: rtl;
    color: var(--dima-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.dima-shop-wrapper *,
.dima-single-product *,
.dima-cart *,
.dima-checkout *,
.dima-compare-page * {
    box-sizing: border-box;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.dima-breadcrumbs {
    background: var(--dima-white);
    border-radius: var(--dima-radius-sm);
    padding: 14px 20px;
    margin-bottom: 25px;
    box-shadow: var(--dima-shadow);
    border: 1px solid var(--dima-border);
}

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

.dima-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dima-breadcrumbs a {
    color: var(--dima-text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--dima-transition);
    padding: 4px 8px;
    border-radius: var(--dima-radius-xs);
}

.dima-breadcrumbs a:hover {
    color: var(--dima-primary);
    background: rgba(102, 126, 234, 0.08);
}

.dima-breadcrumbs [aria-current="page"] {
    color: var(--dima-primary);
    font-weight: 700;
    font-size: 13px;
}

.dima-breadcrumbs .separator {
    color: var(--dima-border);
    font-size: 12px;
}

/* ============================================
   SEARCH BAR (TOP)
   ============================================ */
.dima-search-section {
    margin-bottom: 30px;
}

.dima-live-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#dima-live-search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid var(--dima-border);
    border-radius: 50px;
    font-size: 15px;
    font-family: var(--dima-font);
    background: var(--dima-white);
    box-shadow: var(--dima-shadow);
    transition: var(--dima-transition);
}

#dima-live-search-input:focus {
    outline: none;
    border-color: var(--dima-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.dima-live-search::before {
    content: '🔍';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

#dima-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: var(--dima-white);
    border-radius: var(--dima-radius);
    box-shadow: var(--dima-shadow-xl);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid var(--dima-border);
    display: none;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.search-results-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--dima-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--dima-transition);
}

.search-results-list li a:hover {
    background: var(--dima-bg);
}

.search-results-list li a img {
    width: 55px;
    height: 55px;
    border-radius: var(--dima-radius-xs);
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.search-result-info span {
    color: var(--dima-primary);
    font-weight: 700;
    font-size: 13px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--dima-text-light);
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.dima-categories-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dima-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--dima-gradient);
    border-radius: 2px;
}

.dima-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.dima-category-card {
    background: var(--dima-white);
    border-radius: var(--dima-radius);
    overflow: hidden;
    box-shadow: var(--dima-shadow);
    transition: var(--dima-transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--dima-border);
}

.dima-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dima-shadow-lg);
    border-color: transparent;
}

.dima-category-card .category-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

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

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

.dima-category-card .category-content {
    padding: 18px;
    text-align: center;
}

.dima-category-card .category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 10px;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: var(--dima-transition);
}

.dima-category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.dima-category-card .category-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--dima-dark);
}

.dima-category-card .category-count {
    font-size: 12px;
    color: var(--dima-text-light);
    margin: 0;
}

/* ============================================
   PRODUCTS HEADER (Sort + Filter)
   ============================================ */
.dima-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 16px 20px;
    background: var(--dima-white);
    border-radius: var(--dima-radius-sm);
    box-shadow: var(--dima-shadow);
    border: 1px solid var(--dima-border);
}

.dima-products-header .section-title {
    margin: 0;
    padding: 0;
}

.dima-products-header .section-title::after {
    display: none;
}

.dima-sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dima-sort-options label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dima-text-light);
}

.dima-sort-options select {
    padding: 8px 14px;
    border: 2px solid var(--dima-border);
    border-radius: var(--dima-radius-xs);
    font-family: var(--dima-font);
    font-size: 13px;
    background: var(--dima-white);
    cursor: pointer;
    transition: var(--dima-transition);
}

.dima-sort-options select:focus {
    border-color: var(--dima-primary);
    outline: none;
}

/* ============================================
   PRODUCT CARD - COMPLETE REDESIGN
   ============================================ */
.dima-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.dima-product-card {
    background: var(--dima-white);
    border-radius: var(--dima-radius);
    overflow: hidden;
    box-shadow: var(--dima-shadow);
    transition: var(--dima-transition);
    position: relative;
    border: 1px solid var(--dima-border);
    display: flex;
    flex-direction: column;
}

.dima-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--dima-shadow-xl);
    border-color: transparent;
}

/* Product Image Container */
.dima-product-card .product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}

.dima-product-card .product-image {
    width: 100%;
    height: 100%;
}

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

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

/* Floating Action Buttons (Hover) */
.product-floating-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--dima-transition);
}

.dima-product-card:hover .product-floating-actions {
    opacity: 1;
    transform: translateX(0);
}

.floating-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--dima-white);
    color: var(--dima-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--dima-shadow-md);
    transition: var(--dima-transition);
    font-size: 16px;
    position: relative;
}

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

.floating-action-btn.wishlist-btn:hover,
.floating-action-btn.wishlist-btn.active {
    background: var(--dima-danger);
    color: white;
}

.floating-action-btn.wishlist-btn.active .heart-icon {
    animation: heartBeat 0.6s ease-in-out;
}

.floating-action-btn .tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dima-dark);
    color: white;
    padding: 4px 10px;
    border-radius: var(--dima-radius-xs);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--dima-transition);
}

.floating-action-btn:hover .tooltip {
    opacity: 1;
}

/* Badges */
.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(10px);
}

.badge-sale {
    background: var(--dima-gradient-danger);
}

.badge-new {
    background: var(--dima-gradient-success);
}

.badge-hot {
    background: var(--dima-gradient-warm);
}

.out-of-stock-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    z-index: 3;
    backdrop-filter: blur(2px);
}

/* Product Info */
.dima-product-card .product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dima-product-card .product-category-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--dima-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dima-product-card .product-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.dima-product-card .product-title a {
    color: var(--dima-dark);
    text-decoration: none;
    transition: var(--dima-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dima-product-card .product-title a:hover {
    color: var(--dima-primary);
}

/* Rating Stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #e5e7eb;
    font-size: 14px;
}

.star.filled {
    color: #fbbf24;
}

.star.half {
    position: relative;
    color: #e5e7eb;
}

.star.half::before {
    content: '★';
    position: absolute;
    color: #fbbf24;
    overflow: hidden;
    width: 50%;
}

.rating-count {
    font-size: 12px;
    color: var(--dima-text-light);
}

/* Price */
.dima-product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    margin-top: auto;
}

.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--dima-primary);
}

.price-original {
    font-size: 14px;
    color: var(--dima-text-light);
    text-decoration: line-through;
}

.price-discount {
    font-size: 11px;
    font-weight: 700;
    color: var(--dima-danger);
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.currency {
    font-size: 12px;
    font-weight: 500;
    color: var(--dima-text-light);
}

/* Add to Cart Button */
.dima-product-card .product-bottom-actions {
    display: flex;
    gap: 8px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 12px 16px;
    background: var(--dima-gradient);
    color: white;
    border: none;
    border-radius: var(--dima-radius-sm);
    font-family: var(--dima-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--dima-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.add-to-cart-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Ripple Effect */
.add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Quick Add Button (icon only) */
.quick-action-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--dima-border);
    background: var(--dima-white);
    border-radius: var(--dima-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dima-transition);
    color: var(--dima-text-light);
}

.quick-action-btn:hover {
    border-color: var(--dima-primary);
    color: var(--dima-primary);
    background: rgba(102, 126, 234, 0.05);
}

/* ============================================
   PAGINATION
   ============================================ */
.dima-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.dima-pagination ul {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.dima-pagination li a,
.dima-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--dima-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--dima-transition);
    border: 1px solid var(--dima-border);
    color: var(--dima-text);
    background: var(--dima-white);
}

.dima-pagination li a:hover {
    background: var(--dima-primary);
    color: white;
    border-color: var(--dima-primary);
    transform: translateY(-2px);
}

.dima-pagination li .current {
    background: var(--dima-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.dima-single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--dima-white);
    border-radius: var(--dima-radius);
    box-shadow: var(--dima-shadow);
    border: 1px solid var(--dima-border);
}

.dima-product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.dima-product-main-image {
    border-radius: var(--dima-radius);
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1/1;
}

.dima-product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Product Details */
.dima-product-details {
    padding: 10px 0;
}

.dima-product-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dima-category-tag {
    padding: 4px 14px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--dima-transition);
}

.dima-category-tag:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.dima-product-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dima-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.dima-product-sku {
    font-size: 13px;
    color: var(--dima-text-light);
    margin-bottom: 16px;
}

.dima-product-sku strong {
    color: var(--dima-text);
}

/* Single Product Price */
.dima-product-price {
    background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
    padding: 20px 24px;
    border-radius: var(--dima-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-label {
    font-size: 14px;
    color: var(--dima-text-light);
}

.price-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--dima-primary);
}

.price-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--dima-text-light);
}

/* Stock Status */
.dima-product-stock {
    margin-bottom: 20px;
}

.in-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dima-success);
    font-weight: 600;
    font-size: 14px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.out-of-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dima-danger);
    font-weight: 600;
    font-size: 14px;
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

/* Short Description */
.dima-product-short-description {
    color: var(--dima-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dima-border);
}

/* Attributes */
.dima-product-attributes {
    margin-bottom: 24px;
}

.dima-product-attributes h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.dima-product-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dima-product-attributes li {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dima-bg);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--dima-border);
}

/* Single Product Actions */
.dima-product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.dima-product-actions .add-to-cart-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: var(--dima-radius-sm);
}

.dima-product-actions .wishlist-btn,
.dima-product-actions .compare-btn {
    width: 52px;
    height: 52px;
    border: 2px solid var(--dima-border);
    background: var(--dima-white);
    border-radius: var(--dima-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dima-transition);
    font-size: 20px;
}

.dima-product-actions .wishlist-btn {
    color: #d1d5db;
}

.dima-product-actions .wishlist-btn:hover,
.dima-product-actions .wishlist-btn.active {
    border-color: var(--dima-danger);
    color: var(--dima-danger);
    background: rgba(239, 68, 68, 0.05);
}

.dima-product-actions .compare-btn {
    color: var(--dima-text-light);
}

.dima-product-actions .compare-btn:hover {
    border-color: var(--dima-primary);
    color: var(--dima-primary);
    background: rgba(102, 126, 234, 0.05);
}

/* Share */
.dima-product-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dima-text-light);
    padding-top: 20px;
    border-top: 1px solid var(--dima-border);
}

.dima-product-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dima-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dima-text-light);
    text-decoration: none;
    transition: var(--dima-transition);
}

.dima-product-share a:hover {
    background: var(--dima-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.dima-reviews-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: var(--dima-white);
    border-radius: var(--dima-radius);
    box-shadow: var(--dima-shadow);
    border: 1px solid var(--dima-border);
}

.dima-reviews-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: var(--dima-dark);
}

/* Review Summary */
.review-summary {
    display: flex;
    gap: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
    border-radius: var(--dima-radius-sm);
    margin-bottom: 30px;
    align-items: center;
}

.review-avg {
    text-align: center;
    min-width: 120px;
}

.review-avg .big-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--dima-primary);
    line-height: 1;
}

.review-avg .stars {
    margin: 8px 0 4px;
    justify-content: center;
}

.review-avg .total-reviews {
    font-size: 13px;
    color: var(--dima-text-light);
}

.review-bars {
    flex: 1;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.review-bar-row .label {
    font-size: 13px;
    font-weight: 600;
    min-width: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--dima-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.review-bar-row .count {
    font-size: 12px;
    color: var(--dima-text-light);
    min-width: 30px;
    text-align: left;
}

/* Review Items */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    border: 1px solid var(--dima-border);
    border-radius: var(--dima-radius-sm);
    transition: var(--dima-transition);
}

.review-item:hover {
    box-shadow: var(--dima-shadow-md);
}

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

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

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--dima-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.review-author-info .name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dima-dark);
}

.review-author-info .verified {
    font-size: 11px;
    color: var(--dima-success);
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-date {
    font-size: 12px;
    color: var(--dima-text-light);
}

.review-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 8px 0;
}

.review-content {
    color: var(--dima-text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* Review Form */
.review-form-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--dima-border);
}

.review-form-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    direction: ltr;
}

.rating-input .rate-star {
    font-size: 32px;
    color: #e5e7eb;
    cursor: pointer;
    transition: var(--dima-transition);
}

.rating-input .rate-star:hover,
.rating-input .rate-star.active {
    color: #fbbf24;
    transform: scale(1.15);
}

.review-form .form-group {
    margin-bottom: 15px;
}

.review-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--dima-dark);
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--dima-border);
    border-radius: var(--dima-radius-xs);
    font-family: var(--dima-font);
    font-size: 14px;
    transition: var(--dima-transition);
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--dima-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.submit-review-btn {
    padding: 14px 32px;
    background: var(--dima-gradient);
    color: white;
    border: none;
    border-radius: var(--dima-radius-sm);
    font-family: var(--dima-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--dima-transition);
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

/* ============================================
   COMPARE PAGE
   ============================================ */
.dima-compare-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dima-compare-page h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dima-dark);
    margin-bottom: 25px;
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--dima-radius);
    box-shadow: var(--dima-shadow);
    border: 1px solid var(--dima-border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--dima-border);
    vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: right;
    font-weight: 600;
    background: var(--dima-bg);
    color: var(--dima-dark);
    min-width: 140px;
}

.compare-table thead th {
    background: var(--dima-white);
    position: relative;
}

.compare-table thead th:not(:first-child) {
    min-width: 200px;
}

.compare-product-image {
    width: 150px;
    height: 150px;
    border-radius: var(--dima-radius-sm);
    object-fit: cover;
    margin-bottom: 10px;
}

.compare-product-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.compare-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--dima-primary);
}

.compare-remove-btn {
    background: none;
    border: 1px solid var(--dima-danger);
    color: var(--dima-danger);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--dima-transition);
    margin-top: 8px;
}

.compare-remove-btn:hover {
    background: var(--dima-danger);
    color: white;
}

.compare-highlight {
    background: rgba(102, 126, 234, 0.05);
}

.compare-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.dima-notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 28px;
    border-radius: var(--dima-radius-sm);
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    transition: var(--dima-transition);
    box-shadow: var(--dima-shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    font-family: var(--dima-font);
}

.dima-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dima-notification.success {
    background: var(--dima-gradient-success);
}

.dima-notification.error {
    background: var(--dima-gradient-danger);
}

.dima-notification.info {
    background: var(--dima-gradient);
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
.dima-quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dima-quick-view-overlay.active {
    display: flex;
}

.dima-quick-view-modal {
    background: var(--dima-white);
    border-radius: var(--dima-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-view-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--dima-bg);
    color: var(--dima-text);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--dima-transition);
}

.quick-view-close:hover {
    background: var(--dima-danger);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .dima-single-product {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dima-product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .dima-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .dima-product-card .product-info {
        padding: 12px;
    }
    
    .dima-product-card .product-title {
        font-size: 13px;
    }
    
    .price-current {
        font-size: 16px;
    }
    
    .dima-product-card .product-bottom-actions {
        flex-direction: column;
    }
    
    .dima-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .dima-products-header {
        flex-direction: column;
        text-align: center;
    }
    
    .review-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .dima-product-actions {
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .floating-action-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    /* Always show actions on mobile */
    .product-floating-actions {
        opacity: 1;
        transform: none;
    }
}

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