/**
 * Enhanced Desktop Product Page Styles
 * طراحی پیشرفته صفحه محصول برای دسکتاپ
 */

/* ========================================
   NEW ENHANCED FEATURES STYLES
   استایل‌های قابلیت‌های جدید اضافه شده
   ======================================== */

/* Brand Information Styles */
.product-brand-info {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4552C1;
}

.product-brand-info .brand-label {
    font-weight: 600;
    color: #666;
    margin-left: 8px;
}

.product-brand-info .brand-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4552C1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-brand-info .brand-name:hover {
    color: #2c3e95;
}

.product-brand-info .brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.product-brand-info .brand-description {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

/* Product Variants Styles */
.product-variants {
    margin: 20px 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.variant-group {
    margin-bottom: 16px;
}

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.variant-option:hover {
    border-color: #4552C1;
}

.variant-option.selected {
    border-color: #4552C1;
    background: #4552C1;
    color: white;
}

.variant-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.variant-option.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc3545;
    transform: translateY(-50%);
}

/* Color Variants */
.color-option .color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.color-option.selected .color-swatch {
    box-shadow: 0 0 0 2px #4552C1;
}

/* Size Guide Button */
.size-guide-btn {
    margin-top: 8px;
    background: none;
    border: 1px solid #4552C1;
    color: #4552C1;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-guide-btn:hover {
    background: #4552C1;
    color: white;
}

/* Available Coupons Styles */
.available-coupons {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.coupons-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.coupon-discount {
    background: #fff;
    color: #4552C1;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    min-width: 60px;
    text-align: center;
}

.coupon-details {
    flex: 1;
}

.coupon-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.coupon-code {
    font-size: 0.9rem;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
}

.coupon-condition {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

.copy-coupon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-coupon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Questions & Answers Styles */
.questions-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4552C1;
}

.questions-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.average-question {
    text-align: center;
    margin-bottom: 20px;
}

.question-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4552C1;
}

.question-count {
    color: #666;
    font-size: 1rem;
}

.user-questions {
    margin-bottom: 30px;
}

.question {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.question:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.questioner-name {
    font-weight: 600;
    color: #333;
}

.question-date {
    color: #888;
    font-size: 0.9rem;
}

.question-content {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.add-question {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
}

.add-question h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.submit-question {
    background: #4552C1;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-question:hover {
    background: #2c3e95;
}

/* Size Chart Modal Styles */
.size-chart-table {
    margin-bottom: 20px;
}

.size-chart-table table {
    width: 100%;
    margin-bottom: 0;
}

.size-chart-table th {
    background: #4552C1;
    color: white;
    text-align: center;
    padding: 12px 8px;
    font-weight: 600;
}

.size-chart-table td {
    text-align: center;
    padding: 10px 8px;
    border: 1px solid #dee2e6;
}

.size-guide-tips {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.size-guide-tips h6 {
    color: #28a745;
    margin-bottom: 10px;
    font-weight: 600;
}

.size-guide-tips ul {
    margin: 0;
    padding-right: 20px;
}

.size-guide-tips li {
    font-size: 13px;
    margin-bottom: 5px;
}

/* Override mobile-hide for important sections */
.mobile-hide.product-tabs {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-hide .tabs,
.mobile-hide .tab-header,
.mobile-hide .tab-content {
    display: block !important;
    visibility: visible !important;
}

/* Wishlist Count Style */
.wishlist-count {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-right: 4px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .product-variants {
        padding: 12px;
    }
    
    .variant-options {
        gap: 6px;
    }
    
    .variant-option {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .available-coupons {
        padding: 12px;
    }
    
    .coupon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    
    .coupon-discount {
        align-self: center;
    }
    
    .copy-coupon-btn {
        align-self: stretch;
        text-align: center;
    }
    
    .question {
        padding: 15px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ========================================
   ORIGINAL DESKTOP LAYOUT STYLES
   استایل‌های اصلی طراحی دسکتاپ
   ======================================== */

/* Desktop Layout - Grid System */
@media screen and (min-width: 1200px) {
    .product-detail {
        background-color: #f8f9fa;
        padding: 60px 0;
    }
    
    .product-detail .container {
        max-width: 1400px;
    }
    
    .product-content {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 40px;
        padding: 0;
        background: none;
        box-shadow: none;
        position: relative;
        align-items: start;
    }
    
    /* Main Content Area */
    .product-main-content {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        overflow: hidden;
        grid-column: 1;
        width: 100%;
        min-height: 600px;
    }
    
    /* Natural Scrolling Sidebar */
    .product-sidebar {
        grid-column: 2;
        position: static;
        width: 420px;
        height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* Remove any scrollbar styles for sidebar */
    .product-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    /* Ensure proper alignment */
    .product-content::before {
        content: '';
        display: block;
        grid-column: 1 / -1;
        height: 0;
        width: 100%;
    }
    
    /* Ensure proper containment */
    .product-content::after {
        content: '';
        display: block;
        clear: both;
        grid-column: 1 / -1;
    }
}

/* Enhanced Gallery */
@media screen and (min-width: 1200px) {
    .enhanced-gallery {
        position: relative;
        background: #fff;
        border-radius: 16px 16px 0 0;
        padding: 30px;
    }
    
    .gallery-container {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 20px;
        align-items: start;
    }
    
    .gallery-sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 400px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #ddd transparent;
    }
    
    .gallery-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    
    .gallery-sidebar::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 4px;
    }
    
    .gallery-sidebar::-webkit-scrollbar-thumb {
        background-color: #ddd;
        border-radius: 4px;
    }
    
    .gallery-thumb {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .gallery-thumb.active {
        border-color: #007bff;
        transform: scale(1.05);
    }
    
    .gallery-thumb:hover {
        border-color: #6c757d;
        transform: scale(1.02);
    }
    
    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .main-gallery {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        background: #f8f9fa;
        aspect-ratio: 1;
    }
    
    .main-gallery img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
        cursor: zoom-in;
    }
    
    .gallery-controls {
        position: absolute;
        top: 20px;
        left: 20px;
        display: flex;
        gap: 12px;
        z-index: 10;
    }
    
    .gallery-control-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .gallery-control-btn:hover {
        background: #fff;
        transform: scale(1.1);
    }
    
    .zoom-btn {
        color: #007bff;
    }
    
    .fullscreen-btn {
        color: #28a745;
    }
    
    .share-btn {
        color: #6f42c1;
    }
}

/* Enhanced Product Info */
@media screen and (min-width: 1200px) {
    .enhanced-product-info {
        background: #fff;
        padding: 40px;
        border-radius: 0 0 16px 16px;
        border-top: 1px solid #e9ecef;
    }
    
    .product-breadcrumb {
        font-size: 14px;
        color: #6c757d;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .product-breadcrumb a {
        color: #007bff;
        text-decoration: none;
    }
    
    .product-breadcrumb a:hover {
        text-decoration: underline;
    }
    
    .product-title {
        font-size: 32px;
        font-weight: 700;
        color: #212529;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .product-subtitle {
        font-size: 18px;
        color: #6c757d;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .product-badges {
        display: flex;
        gap: 12px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }
    
    .product-badge {
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .badge-bestseller {
        background: linear-gradient(135deg, #ff6b6b, #ff5252);
        color: white;
    }
    
    .badge-new {
        background: linear-gradient(135deg, #4ecdc4, #26a69a);
        color: white;
    }
    
    .badge-discount {
        background: linear-gradient(135deg, #ffa726, #ff9800);
        color: white;
    }
    
    .badge-verified {
        background: linear-gradient(135deg, #66bb6a, #4caf50);
        color: white;
    }
}

/* Enhanced Pricing Widget */
@media screen and (min-width: 1200px) {
    .enhanced-pricing-widget {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        padding: 24px;
        margin-bottom: 0;
        border: 1px solid #e9ecef;
    }
    
    .pricing-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .seller-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .seller-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #007bff, #0056b3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 14px;
    }
    
    .seller-details {
        display: flex;
        flex-direction: column;
    }
    
    .seller-name {
        font-weight: 600;
        color: #212529;
        font-size: 14px;
    }
    
    .seller-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #6c757d;
    }
    
    .seller-rating .stars {
        color: #ffc107;
    }
    
    .trust-badge {
        background: #e8f5e9;
        color: #2e7d32;
        padding: 4px 8px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .price-section {
        margin-bottom: 24px;
    }
    
    .price-original {
        font-size: 16px;
        color: #6c757d;
        text-decoration: line-through;
        margin-bottom: 4px;
    }
    
    .price-current {
        font-size: 28px;
        font-weight: 700;
        color: #dc3545;
        margin-bottom: 8px;
    }
    
    .price-currency {
        font-size: 16px;
        font-weight: 400;
        color: #6c757d;
        margin-right: 8px;
    }
    
    .discount-badge {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: white;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        display: inline-block;
    }
    
    .stock-status {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
        padding: 12px;
        border-radius: 12px;
        background: #e8f5e9;
        border: 1px solid #c3e6cb;
    }
    
    .stock-status.in-stock {
        background: #e8f5e9;
        border-color: #c3e6cb;
        color: #155724;
    }
    
    .stock-status.low-stock {
        background: #fff3cd;
        border-color: #ffeeba;
        color: #856404;
    }
    
    .stock-status.out-of-stock {
        background: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }
    
    .stock-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
    }
}

/* Enhanced Action Buttons */
@media screen and (min-width: 1200px) {
    .enhanced-actions {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .quantity-selector {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .quantity-label {
        font-weight: 600;
        color: #495057;
        min-width: 60px;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }
    
    .quantity-btn {
        width: 44px;
        height: 44px;
        border: none;
        background: #f8f9fa;
        color: #495057;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        font-weight: 600;
    }
    
    .quantity-btn:hover {
        background: #e9ecef;
        color: #007bff;
    }
    
    .quantity-input {
        width: 60px;
        height: 44px;
        border: none;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
        background: #fff;
    }
    
    .quantity-input:focus {
        outline: none;
    }
    
    .action-button {
        padding: 16px 24px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 16px;
        border: 2px solid transparent;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }
    
    .action-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .action-button:hover::before {
        left: 100%;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
        border-color: #007bff;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    }
    
    .btn-secondary {
        background: transparent;
        color: #6c757d;
        border-color: #dee2e6;
    }
    
    .btn-secondary:hover {
        background: #f8f9fa;
        color: #495057;
        border-color: #adb5bd;
    }
    
    .btn-outline {
        background: transparent;
        color: #007bff;
        border-color: #007bff;
    }
    
    .btn-outline:hover {
        background: #007bff;
        color: white;
    }
}

/* Enhanced Features Panel - مخفی در دسکتاپ */
@media screen and (min-width: 1200px) {
    .enhanced-features {
        display: none !important;
    }
    
    .features-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .features-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .features-title {
        font-weight: 700;
        color: #212529;
        font-size: 18px;
    }
    
    .features-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        border-radius: 16px;
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
        border: 1px solid #e3f2fd;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
    }
    
    .feature-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(135deg, #4CAF50, #2E7D32);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .feature-item:hover {
        background: linear-gradient(135deg, #e8f5e9 0%, #e1f5fe 100%);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
        border-color: #4CAF50;
    }
    
    .feature-item:hover::before {
        transform: scaleX(1);
    }
    
    /* آیکون‌های مخصوص هر ویژگی */
    .feature-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
    
    /* آیکون ضد آب */
    .feature-item[data-feature="waterproof"] .feature-icon {
        background: linear-gradient(135deg, #2196F3, #1976D2);
    }
    .feature-item[data-feature="waterproof"] .feature-icon::before {
        content: '💧';
        font-size: 20px;
    }
    
    /* آیکون ضد باکتری */
    .feature-item[data-feature="anti_bacterial"] .feature-icon {
        background: linear-gradient(135deg, #4CAF50, #2E7D32);
    }
    .feature-item[data-feature="anti_bacterial"] .feature-icon::before {
        content: '🛡️';
        font-size: 20px;
    }
    
    /* آیکون ضد حساسیت */
    .feature-item[data-feature="anti_allergy"] .feature-icon {
        background: linear-gradient(135deg, #FF5722, #E64A19);
    }
    .feature-item[data-feature="anti_allergy"] .feature-icon::before {
        content: '🌿';
        font-size: 20px;
    }
    
    /* آیکون سبک */
    .feature-item[data-feature="lightweight"] .feature-icon {
        background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    }
    .feature-item[data-feature="lightweight"] .feature-icon::before {
        content: '🪶';
        font-size: 20px;
    }
    
    /* آیکون انعطاف‌پذیر */
    .feature-item[data-feature="flexible"] .feature-icon {
        background: linear-gradient(135deg, #FF9800, #F57C00);
    }
    .feature-item[data-feature="flexible"] .feature-icon::before {
        content: '🤸';
        font-size: 20px;
    }
    
    /* آیکون پیش‌فرض */
    .feature-item:not([data-feature]) .feature-icon {
        background: linear-gradient(135deg, #17a2b8, #138496);
    }
    .feature-item:not([data-feature]) .feature-icon::before {
        content: '✨';
        font-size: 18px;
    }
    
    .feature-text {
        font-size: 15px;
        color: #2c3e50;
        font-weight: 600;
        line-height: 1.4;
        position: relative;
    }
    
    .feature-text::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #4CAF50, #2E7D32);
        transition: width 0.3s ease;
    }
    
    .feature-item:hover .feature-text::after {
        width: 100%;
    }
    
    /* Enhanced Specifications Table */
    .enhanced-specs-table {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        overflow: hidden;
        margin: 20px 0;
    }
    
    .enhanced-specs-table table {
        width: 100%;
        border-collapse: collapse;
        margin: 0;
    }
    
    .enhanced-specs-table thead {
        background: linear-gradient(135deg, #4CAF50, #2E7D32);
        color: white;
    }
    
    .enhanced-specs-table th {
        padding: 20px 24px;
        text-align: right;
        font-weight: 700;
        font-size: 16px;
        letter-spacing: 0.5px;
        border: none;
    }
    
    .enhanced-specs-table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .enhanced-specs-table tbody tr:nth-child(odd) {
        background: linear-gradient(135deg, #f8f9ff 0%, #f5f7fa 100%);
    }
    
    .enhanced-specs-table tbody tr:nth-child(even) {
        background: #fff;
    }
    
    .enhanced-specs-table tbody tr:hover {
        background: linear-gradient(135deg, #e8f5e9 0%, #e1f5fe 100%);
        transform: scale(1.01);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
    }
    
    .enhanced-specs-table td {
        padding: 16px 24px;
        border: none;
        vertical-align: middle;
    }
    
    .spec-name {
        font-weight: 600;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 12px;
        width: 50%;
    }
    
    .spec-icon {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .spec-value {
        font-weight: 500;
        color: #34495e;
        width: 50%;
        position: relative;
    }
    
    .spec-value::before {
        content: '';
        position: absolute;
        right: -12px;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 60%;
        background: linear-gradient(135deg, #4CAF50, #2E7D32);
        border-radius: 1px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .enhanced-specs-table tbody tr:hover .spec-value::before {
        opacity: 1;
    }
    
    /* Feature Rows در مشخصات فنی */
    .feature-row {
        background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e9 100%) !important;
    }
    
    .feature-row:hover {
        background: linear-gradient(135deg, #e1f5fe 0%, #c8e6c9 100%) !important;
    }
    
    .feature-spec-icon {
        background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
    }
    
    /* No Specs Message */
    .no-specs-message {
        text-align: center;
        padding: 60px 20px;
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
        border-radius: 16px;
        margin: 20px 0;
        border: 1px solid #e3f2fd;
    }
    
    .no-specs-icon {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px auto;
        font-size: 24px;
    }
    
    .no-specs-message h4 {
        color: #2c3e50;
        font-weight: 700;
        margin: 16px 0 12px 0;
        font-size: 20px;
    }
    
    .no-specs-message p {
        color: #6c757d;
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }
}

/* Enhanced Reviews Summary */
@media screen and (min-width: 1200px) {
    .enhanced-reviews {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        padding: 24px;
        margin-bottom: 0;
    }
    
    .reviews-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .reviews-title {
        font-weight: 700;
        color: #212529;
        font-size: 18px;
    }
    
    .reviews-count {
        font-size: 14px;
        color: #6c757d;
    }
    
    .rating-overview {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .rating-score {
        text-align: center;
    }
    
    .rating-number {
        font-size: 48px;
        font-weight: 700;
        color: #ffc107;
        line-height: 1;
    }
    
    .rating-stars {
        color: #ffc107;
        margin: 8px 0;
        font-size: 16px;
    }
    
    .rating-text {
        font-size: 12px;
        color: #6c757d;
    }
    
    .rating-breakdown {
        flex: 1;
    }
    
    .rating-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }
    
    .rating-label {
        font-size: 12px;
        color: #6c757d;
        width: 20px;
    }
    
    .rating-bar {
        flex: 1;
        height: 6px;
        background: #e9ecef;
        border-radius: 3px;
        overflow: hidden;
    }
    
    .rating-fill {
        height: 100%;
        background: linear-gradient(90deg, #ffc107, #ff8f00);
        border-radius: 3px;
        transition: width 0.3s ease;
    }
    
    .rating-count {
        font-size: 12px;
        color: #6c757d;
        width: 30px;
        text-align: left;
    }
}

/* Related Products Enhanced */
@media screen and (min-width: 1200px) {
    .enhanced-related {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        padding: 24px;
        margin-bottom: 0;
    }
    
    .related-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .related-title {
        font-weight: 700;
        color: #212529;
        font-size: 18px;
    }
    
    .view-all-link {
        color: #007bff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }
    
    .view-all-link:hover {
        text-decoration: underline;
    }
    
    .related-products-grid {
        display: grid;
        gap: 16px;
    }
    
    .related-product {
        display: flex;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
        text-decoration: none;
        color: inherit;
    }
    
    .related-product:hover {
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,123,255,0.15);
        text-decoration: none;
        color: inherit;
    }
    
    .related-image {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .related-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .related-name {
        font-size: 14px;
        font-weight: 600;
        color: #212529;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .related-price {
        font-size: 14px;
        font-weight: 700;
        color: #dc3545;
    }
    
    .related-rating {
        font-size: 12px;
        color: #ffc107;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.enhanced-pricing-widget,
.enhanced-features,
.enhanced-reviews,
.enhanced-related {
    animation: slideInUp 0.6s ease-out;
}

.enhanced-gallery {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive adjustments */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .product-content {
        grid-template-columns: 1fr 380px;
        gap: 30px;
    }
    
    .product-sidebar {
        width: 380px;
    }
}

@media screen and (min-width: 1400px) {
    .product-content {
        grid-template-columns: 1fr 450px;
        gap: 50px;
    }
    
    .product-sidebar {
        width: 450px;
    }
}

/* Mobile and Tablet fallback - disable enhanced layout */
@media screen and (max-width: 1199px) {
    .product-content {
        display: block !important;
        grid-template-columns: none !important;
        gap: 20px !important;
    }
    
    .product-main-content,
    .product-sidebar {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .product-sidebar {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 10px !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
   طراحی ریسپانسیو موبایل - حفظ دیزاین اصلی
   ======================================== */

/* Mobile Layout Adjustments - حفظ همان استایل */
@media screen and (max-width: 768px) {
    /* Container and Layout */
    .container {
        padding: 0 10px;
    }
    
    .product-detail {
        padding: 0;
        background: #f8f9fa;
    }
    
    .product-content {
        display: block !important;
        gap: 0 !important;
    }
    
    .product-main-content,
    .product-sidebar {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .product-sidebar {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 10px !important;
    }
    
    /* Mobile Gallery - حفظ استایل اصلی و اطمینان از نمایش */
    .enhanced-gallery,
    .product-gallery {
        margin: 0 0 15px 0;
        border-radius: 0 0 12px 12px;
        padding: 15px;
        display: block !important;
        visibility: visible !important;
        background: #fff;
        width: 100% !important;
        max-width: none !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Ensure main image is visible */
    .main-gallery,
    .main-image {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }
    
    .main-gallery img,
    .main-image img {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        object-fit: contain !important;
    }
    
    .gallery-container {
        display: block;
    }
    
    .gallery-sidebar {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 0 15px 0;
        margin-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .gallery-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .main-gallery {
        aspect-ratio: 1;
        max-height: 350px;
    }
    
    /* Hide gallery controls on mobile for cleaner look */
    .gallery-controls {
        display: none !important;
    }
    
    /* Mobile Product Info - حفظ استایل */
    .enhanced-product-info {
        margin: 0 0 15px 0;
        padding: 20px 15px;
        border-radius: 12px;
        background: #fff;
    }
    
    .product-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .product-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .product-badges {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .product-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Mobile Brand Info */
    .product-brand-info {
        padding: 12px 15px;
        margin: 15px 0;
    }
    
    .brand-logo {
        width: 24px;
        height: 24px;
    }
    
    .brand-description {
        font-size: 13px;
        margin-top: 6px;
    }
    
    /* Mobile Sidebar Components */
    .enhanced-pricing-widget,
    .product-variants,
    .available-coupons,
    .enhanced-features,
    .enhanced-reviews,
    .enhanced-related {
        margin: 0 0 15px 0 !important;
        padding: 20px 15px !important;
        border-radius: 12px !important;
        background: #fff !important;
    }
    
    /* Mobile Pricing */
    .pricing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .seller-info {
        order: -1;
    }
    
    .seller-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .seller-name {
        font-size: 14px;
    }
    
    .seller-rating {
        font-size: 12px;
    }
    
    .price-current {
        font-size: 28px;
    }
    
    .price-original {
        font-size: 16px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .stock-status {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Mobile Product Variants */
    .variant-group {
        margin-bottom: 20px;
    }
    
    .variant-label {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .variant-options {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .variant-option {
        padding: 10px 15px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly */
        border-radius: 8px;
    }
    
    .color-option .color-swatch {
        width: 28px;
        height: 28px;
    }
    
    .size-guide-btn {
        margin-top: 10px;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* Mobile Coupons */
    .coupons-header {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .coupon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .coupon-discount {
        align-self: flex-end;
        order: 3;
    }
    
    .coupon-details {
        order: 1;
        width: 100%;
    }
    
    .copy-coupon-btn {
        order: 2;
        align-self: stretch;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Mobile Actions */
    .enhanced-actions {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .quantity-selector {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .quantity-label {
        font-size: 14px;
        min-width: auto;
    }
    
    .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .quantity-input {
        width: 60px;
        height: 44px;
        font-size: 16px;
    }
    
    .action-button {
        padding: 15px 25px;
        font-size: 16px;
        font-weight: 600;
        min-height: 50px; /* Touch-friendly */
        border-radius: 12px;
    }
    
    /* Mobile Features */
    .features-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .features-title {
        font-size: 18px;
    }
    
    .features-icon {
        width: 32px;
        height: 32px;
    }
    
    .feature-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .feature-text {
        font-size: 14px;
    }
    
    /* Mobile Reviews */
    .reviews-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .reviews-title {
        font-size: 18px;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .rating-score {
        text-align: center;
    }
    
    .rating-number {
        font-size: 42px;
    }
    
    .rating-stars {
        font-size: 18px;
        margin: 8px 0;
    }
    
    .rating-text {
        font-size: 12px;
    }
    
    .rating-breakdown {
        width: 100%;
    }
    
    .rating-row {
        margin-bottom: 8px;
    }
    
    .rating-label {
        font-size: 12px;
        width: 20px;
    }
    
    .rating-bar {
        height: 6px;
    }
    
    .rating-count {
        font-size: 12px;
        width: 30px;
    }
    
    /* Mobile Related Products */
    .related-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .related-title {
        font-size: 18px;
    }
    
    .view-all-link {
        font-size: 13px;
    }
    
    .related-products-grid {
        gap: 10px;
    }
    
    .related-product {
        padding: 12px;
        gap: 12px;
    }
    
    .related-image {
        width: 60px;
        height: 60px;
    }
    
    .related-name {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .related-price {
        font-size: 13px;
    }
    
    .related-rating {
        font-size: 11px;
    }
    
    /* Mobile Questions */
    .questions-header {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .questions-summary {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .question-number {
        font-size: 36px;
    }
    
    .question-count {
        font-size: 16px;
    }
    
    .question {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .questioner-name {
        font-size: 14px;
    }
    
    .question-date {
        font-size: 12px;
    }
    
    .question-content {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .add-question {
        padding: 20px;
    }
    
    .add-question h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .submit-question {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Mobile Modals */
    .modal-dialog.modal-lg {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .size-chart-table {
        overflow-x: auto;
    }
    
    .size-chart-table table {
        min-width: 320px;
        font-size: 12px;
    }
    
    .size-chart-table th,
    .size-chart-table td {
        padding: 8px 6px;
        text-align: center;
    }
    
    .size-guide-tips {
        padding: 15px;
    }
    
    .size-guide-tips h6 {
        font-size: 16px;
    }
    
    .size-guide-tips li {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    /* Mobile Specifications Table */
    .enhanced-specs-table {
        margin: 15px -15px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: 1px solid #e9ecef !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .enhanced-specs-table table {
        font-size: 14px !important;
    }
    
    .enhanced-specs-table th {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    .enhanced-specs-table td {
        padding: 12px 15px !important;
    }
    
    .spec-name {
        font-size: 14px !important;
        gap: 8px !important;
    }
    
    .spec-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    
    .spec-value {
        font-size: 14px !important;
    }
    
    .no-specs-message {
        margin: 15px -15px !important;
        padding: 40px 20px !important;
        border-radius: 0 !important;
        border: none !important;
        border-top: 1px solid #e9ecef !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .no-specs-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    .no-specs-message h4 {
        font-size: 18px !important;
    }
    
    .no-specs-message p {
        font-size: 13px !important;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    
    .enhanced-gallery,
    .enhanced-product-info,
    .enhanced-pricing-widget,
    .product-variants,
    .available-coupons,
    .enhanced-features,
    .enhanced-reviews,
    .enhanced-related {
        padding: 15px 10px !important;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .price-current {
        font-size: 24px;
    }
    
    .variant-option {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .action-button {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 46px;
    }
}

/* Hide existing mobile nav on product page */
@media screen and (max-width: 768px) {
    /* Hide ALL variations of mobile bottom nav */
    .mobile-bottom-nav,
    .mobile-footer-nav,
    .app-bottom-nav,
    .mobile-nav,
    .mobile-payment-footer,
    body.shop-page .mobile-bottom-nav,
    body .mobile-bottom-nav,
    body .app-bottom-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        z-index: -1 !important;
        pointer-events: none !important;
        transform: translateY(200px) !important;
    }
    
    /* Also hide by ID if exists */
    #mobile-bottom-nav,
    #mobile-footer-nav,
    #app-bottom-nav {
        display: none !important;
    }
    
    /* Force hide navigation containers */
    [class*="mobile-nav"],
    [class*="bottom-nav"],
    [class*="app-nav"] {
        display: none !important;
    }
}

/* Mobile Sticky Bottom Bar - برگشت */
@media screen and (max-width: 768px) {
    .mobile-sticky-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e9ecef;
        padding: 12px 15px;
        z-index: 9999 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        display: flex !important;
        align-items: center;
        gap: 12px;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: all !important;
    }
    
    .mobile-price-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .mobile-current-price {
        font-size: 18px;
        font-weight: 700;
        color: #dc3545;
        line-height: 1;
    }
    
    .mobile-original-price {
        font-size: 12px;
        color: #666;
        text-decoration: line-through;
    }
    
    .mobile-stock-info {
        font-size: 11px;
        color: #28a745;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .mobile-actions-group {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    
    .mobile-wishlist-btn {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-wishlist-btn:hover {
        border-color: #dc3545;
        color: #dc3545;
    }
    
    .mobile-wishlist-btn.liked {
        color: #dc3545;
        border-color: #dc3545;
        background: #fff5f5;
    }
    
    .mobile-add-to-cart {
        background: linear-gradient(135deg, #4552C1 0%, #2c3e95 100%);
        color: white;
        border: none;
        padding: 0 20px;
        height: 44px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 140px;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-add-to-cart:hover {
        background: linear-gradient(135deg, #2c3e95 0%, #1a2570 100%);
        transform: translateY(-1px);
    }
    
    .mobile-add-to-cart:active {
        transform: scale(0.98);
    }
    
    /* Add bottom padding to content to account for sticky bar */
    .product-detail {
        padding-bottom: 80px;
    }
} 