/**
 * Product Details Page - Unified CSS
 * Merged from product-detail-enhanced-new.css and product-detail-page.css
 * Flat, modern design with clean styling
 * Last Updated: October 16, 2025
 *
 * All responsive and RTL support included
 */

/* ========================================
   1. CSS VARIABLES & GLOBAL STYLES
   ======================================== */

:root {
    --primary-color: #000000;
    --primary-hover: #333333;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
}

* {
    border-radius: 0 !important;
    box-shadow: none !important;
}

body {
    background-color: var(--bg-white) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   2. LAYOUT & CONTAINERS
   ======================================== */

.container {
    max-width: 1500px !important;
    padding: 0 15px;
}

.product-main-container {
    background: var(--bg-white);
    border-radius: 0 !important;
    padding: 40px;
    box-shadow: none !important;
    margin: 30px auto;
}

/* ========================================
   3. BREADCRUMB
   ======================================== */

.breadcrumb-wrapper {
    margin-bottom: 30px;
    background: #FAFAFA;
    padding: 15px 20px;
    margin-left: -40px;
    margin-right: -40px;
    margin-top: -40px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: #dee2e6;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

/* ========================================
   4. PRODUCT GALLERY
   ======================================== */

.main-image-container {
    position: relative;
    border-radius: 0 !important;
    border: 1px solid var(--border-color);
    height: 350px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.main-image-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f8f9fa;
    transition: transform 0.3s ease;
    display: block;
}

.main-image-container:hover .main-image {
    transform: scale(1.02);
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--error-color);
    color: white;
    padding: 8px 20px;
    border-radius: 0 !important;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
}

/* Thumbnails */
.thumbnail-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80px;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    margin-top: 15px;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 0 !important;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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


/* Hide scrollbar but keep scrolling functionality */
.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.thumbnail-gallery {
    -ms-overflow-style: none;
}

/* ========================================
   5. PRODUCT INFO
   ======================================== */

.product-info {
    padding-left: 40px;
}

/* Category Badge */
.category-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

/* Product Title */
.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

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

.stars i {
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0.3;
    line-height: 1;
}

.stars .filled {
    opacity: 1;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Write Review Button */
.write-review-btn,
.btn-write-review-header {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.write-review-btn:hover,
.btn-write-review-header:hover {
    background: transparent;
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: none;
}

/* ========================================
   6. PRICE & ACTIONS
   ======================================== */

/* Price Section */
.price-section {
    background: white !important;
    border-radius: 0 !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 700;
}

.original-price {
    font-size: 24px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.savings {
    background: var(--success-color);
    color: white;
    padding: 5px 12px;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
}

/* Quantity Controls */
.quantity-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: white !important;
    border-radius: 0 !important;
    padding: 8px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 10px !important;
}

.quantity-controls {
    display: inline-flex !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: white;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

#quantity {
    width: 60px;
    height: 45px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    background: white;
    outline: none;
}

/* Stock Info */
.stock-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--success-color);
    white-space: nowrap;
    padding-right: 8px;
    flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary,
.btn-add-to-cart-black {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 !important;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    height: 56px !important;
}

.btn-primary:hover,
.btn-add-to-cart-black:hover {
    background: var(--primary-hover);
    transform: none;
    box-shadow: none !important;
}

/* Wishlist Button */
.btn-wishlist {
    width: 100%;
    height: 50px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

/* ========================================
   7. FEATURES SECTION
   ======================================== */

.product-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #FAFAFA;
    border-radius: 0 !important;
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.product-features .feature i {
    font-size: 20px;
    color: var(--primary-color);
}

.product-features .feature span {
    font-size: 16px;
    font-weight: 500;
}

.features-separator {
    color: #dee2e6;
    font-size: 24px;
    font-weight: 300;
    padding: 0 12px;
}

/* ========================================
   8. PRODUCT SECTIONS (Description, FAQs)
   ======================================== */

.product-description-section {
    margin-top: 40px;
    padding: 0;
}

.description-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: left;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
    direction: ltr;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.product-sections {
    margin-top: 40px;
    padding: 0;
}

.product-section {
    background: transparent;
    border-radius: 0 !important;
    padding: 0;
    margin-bottom: 30px;
}

.section-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 25px;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    order: 1 !important;
    margin-right: 15px !important;
}

.section-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.section-title-wrapper {
    order: 2 !important;
    text-align: left !important;
    flex: 1 !important;
}

.section-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
}

.section-subtitle {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    text-align: left !important;
}

.section-header .btn-write-review-header {
    order: 3 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ========================================
   9. REVIEWS SECTION
   ======================================== */

/* Rating Overview - Flex Row Layout */
.rating-overview {
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: var(--bg-light) !important;
    border-radius: 0 !important;
    border: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left Side - Overall Score */
.overall-score {
    text-align: center !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    min-width: 150px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 0 !important;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.score-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.score-max {
    font-size: 14px;
    color: var(--text-secondary);
}

.score-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.review-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Right Side - Rating Breakdown */
.rating-breakdown {
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.rating-bar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    cursor: pointer;
}

.star-label {
    min-width: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.progress-bar {
    flex: 1 !important;
    height: 12px !important;
    background: #e9ecef !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}

.progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #ffc107 0%, #ff8c00 100%) !important;
    transition: width 0.3s ease !important;
    border-radius: 0 !important;
}

.count {
    min-width: 40px !important;
    text-align: right !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

/* Modern Reviews Summary */
.modern-reviews-summary {
    width: 100% !important;
    display: block !important;
}

/* Review Cards */
.modern-review-card {
    background: white;
    border-radius: 0 !important;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: none !important;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.review-rating {
    margin-bottom: 8px;
}

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

.review-content {
    margin-bottom: 15px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

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

.helpful-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 0 !important;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.helpful-btn.helpful-marked {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Reviews State */
.no-reviews-modern {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
}

.no-reviews-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.btn-first-review {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 0 !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-first-review:hover {
    background: transparent;
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: none;
}

/* ========================================
   10. RELATED PRODUCTS
   ======================================== */

.related-products-container {
    background: white;
    border-radius: 0 !important;
    padding: 40px;
    box-shadow: none !important;
    margin: 30px auto 10px auto;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    display: block;
    visibility: visible;
}

/* Related Products Grid - 3 columns desktop, centered */
.related-products-container .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(calc(33.333% - 14px), 1fr)) !important;
    grid-auto-rows: 1fr !important;
    gap: 20px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    place-items: center !important;
}

.related-products-container .product-card-ultimate {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
    width: 100% !important;
}

.related-products-container .product-card-ultimate:hover {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    transform: none !important;
}

[dir="rtl"] .related-products-container .product-card-ultimate {
    direction: rtl !important;
}

[dir="rtl"] .related-products-container .product-card-ultimate .card-content {
    direction: rtl !important;
    text-align: right !important;
}

.related-products-container .product-card-ultimate form {
    width: 100% !important;
}

.related-products-container .product-card-ultimate .card-action form {
    width: 100% !important;
}

.product-card-ultimate .card-description {
    display: none !important;
}

/* Add-to-cart buttons in related products - Black */
.related-products-container .add-to-cart-btn,
.related-products-container .btn-add-to-cart-btn {
    background: #000000 !important;
    color: white !important;
    border: none !important;
}

.related-products-container .add-to-cart-btn:hover,
.related-products-container .btn-add-to-cart-btn:hover {
    background: #333333 !important;
}

/* ========================================
   11. MODALS & FORMS
   ======================================== */

.modal-content {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.modal-header {
    background: transparent !important;
    color: var(--primary-color) !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer .btn-primary {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 0 !important;
}

.modal-footer .btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: none !important;
}

#reviewModal .form-control {
    border: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

#reviewModal .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

/* ========================================
   12. ALERT MESSAGES
   ======================================== */

.alert {
    border-radius: 0 !important;
    margin-bottom: 20px;
    padding: 15px 20px;
    border: 1px solid;
}

.alert-success {
    background: var(--bg-light);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-danger {
    background: #fff5f5;
    color: var(--error-color);
    border-color: var(--error-color);
}

/* ========================================
   13. RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 992px) {
    .product-main-container {
        padding: 40px;
    }

    .main-image-container {
        height: 480px;
    }

    .thumbnail-gallery {
        grid-auto-columns: 90px;
        gap: 18px;
    }

    .thumbnail {
        width: 90px;
        height: 90px;
    }
}

@media (min-width: 1200px) {
    .main-image-container {
        height: 560px;
    }

    .thumbnail-gallery {
        grid-auto-columns: 100px;
        gap: 20px;
    }

    .thumbnail {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 1400px) {
    .main-image-container {
        height: 610px;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 100% !important;
        width: 100%;
    }

    .product-main-container {
        padding: 20px;
        margin: 15px auto;
    }

    .product-info {
        padding-left: 0;
    }

    .related-products-container {
        padding: 0 !important;
        margin: 15px auto 10px auto;
    }
}

@media (max-width: 768px) {
    .breadcrumb-wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        margin-top: -20px !important;
    }

    .product-main-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-info {
        padding: 0 !important;
    }

    .product-title {
        font-size: 24px !important;
    }

    .price-section {
        padding: 12px 8px !important;
        margin-bottom: 5px !important;
        background: white !important;
        display: block !important;
    }

    .price-row {
        margin-bottom: 5px !important;
        gap: 8px !important;
    }

    .current-price {
        font-size: 24px !important;
    }

    .original-price {
        font-size: 16px !important;
    }

    .savings {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    .quantity-section {
        margin: 0 0 15px 0 !important;
        padding: 8px !important;
        background: white !important;
        flex-direction: row !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .quantity-section::before {
        content: 'Quantity: ' !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .qty-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    #quantity {
        width: 50px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    .stock-info {
        font-size: 12px !important;
        padding-right: 0 !important;
        margin-left: auto !important;
    }

    .action-buttons {
        margin: 8px 0 !important;
        padding: 0 8px !important;
    }

    .product-features {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0 !important;
        margin: 12px 0 !important;
    }

    .product-features .feature {
        font-size: 14px !important;
        gap: 8px !important;
    }

    .product-features .feature i {
        font-size: 16px !important;
    }

    .product-features .feature span {
        font-size: 14px !important;
    }

    .features-separator {
        display: none;
    }

    .rating-overview {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .overall-score {
        flex-shrink: unset !important;
        min-width: unset !important;
    }

    .modern-reviews-summary {
        padding: 0 !important;
        margin: 15px 0 !important;
    }

    .modern-reviews-list {
        padding: 0 !important;
    }

    /* Related Products Mobile - 2 columns (following shop page styles) */
    .related-products-container .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .related-products-container .product-card-ultimate {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .related-products-container .product-image-wrapper {
        height: 140px !important;
        flex-shrink: 0 !important;
    }

    .related-products-container .card-content {
        padding: 0 !important;
        padding-top: 5px !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        min-height: 140px !important;
    }

    .related-products-container .card-category {
        font-size: 0.75rem !important;
        margin-bottom: 3px !important;
        text-align: left;
    }
    
    [dir="rtl"] .related-products-container .card-category {
        text-align: right !important;
        direction: rtl !important;
    }

    .related-products-container .card-title {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        height: auto !important;
    }

    .related-products-container .card-rating {
        margin-bottom: 6px !important;
        font-size: 0.8rem !important;
    }

    .related-products-container .card-price-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        margin: 5px 0 !important;
        min-height: 32px !important;
        justify-content: flex-start !important;
    }

    .related-products-container .price-current,
    .related-products-container .price-original {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .related-products-container .price-discount {
        display: none !important;
    }

    .related-products-container {
        padding: 0 !important;
        margin: 10px auto;
    }
}

@media (max-width: 576px) {
    .product-main-container {
        padding: 15px;
        margin: 10px auto;
    }

    .breadcrumb-wrapper {
        margin-left: -15px !important;
        margin-right: -15px !important;
        margin-top: -15px !important;
        padding: 12px 15px !important;
    }

    .breadcrumb {
        margin-top: 25px !important;
    }

    .product-title {
        font-size: 20px !important;
    }

    .current-price {
        font-size: 28px !important;
    }

    .btn-primary,
    .btn-add-to-cart-black {
        height: 40px !important;
        padding: 0 !important;
        font-size: 14px !important;
    }

    .product-features {
        gap: 10px;
        padding: 10px 0 !important;
        margin: 10px 0 !important;
    }

    .related-products-container {
        padding: 0 !important;
        margin: 10px auto;
    }
}

/* ========================================
   14. CUSTOM PRODUCT CARD STYLES (Moved from product-card-custom.css)
   ======================================== */

/* Card Description for Ultimate Card */
.card-description {
    margin: 0.75rem 0;
    padding: 0 0.5rem;
}

.card-description .description-text {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Read More Link */
.product-card .read-more-link,
.product-card-ultimate .read-more-link {
    font-size: 0.875rem;
    color: #666 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-left: 5px;
}

.product-card .read-more-link:hover,
.product-card-ultimate .read-more-link:hover {
    color: #333 !important;
    text-decoration: underline;
}

/* Product Name Truncation */
.product-card .product-name {
    min-height: 3rem;
    display: flex;
    align-items: center;
}

.product-card .product-name a {
    display: block;
    width: 100%;
}

/* Product Description */
.product-card .product-description {
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
    min-height: 4rem;
}

/* ========================================
   15. RTL SUPPORT (Arabic)
   ======================================== */

[dir="rtl"] .section-header {
    display: flex !important;
    flex-direction: row-reverse !important;
}

[dir="rtl"] .section-icon {
    order: 2 !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
}

[dir="rtl"] .section-title-wrapper {
    order: 1 !important;
    text-align: right !important;
}

[dir="rtl"] .section-title {
    text-align: right !important;
}

[dir="rtl"] .section-subtitle {
    text-align: right !important;
}

[dir="rtl"] .section-header .btn-write-review-header {
    order: 3 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .breadcrumb-wrapper {
    direction: rtl;
}

[dir="rtl"] .breadcrumb {
    direction: rtl;
}

[dir="rtl"] .breadcrumb a,
[dir="rtl"] .breadcrumb .current {
    direction: rtl;
}

[dir="rtl"] .product-info {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .rating-overview {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .review-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .breadcrumb i.fa-home {
    margin-left: 0;
    margin-right: 5px;
}

/* Product Description Section RTL */
[dir="rtl"] .product-description-section {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .description-title {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .description-content {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .description-content p {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .description-content * {
    text-align: right !important;
    direction: rtl;
}

/* Product Features RTL */
[dir="rtl"] .product-features-wrapper {
    direction: rtl !important;
}

[dir="rtl"] .product-features {
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="rtl"] .product-features .feature {
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="rtl"] .product-features .feature i {
    order: 2;
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .product-features .feature span {
    text-align: right;
    order: 1;
}

/* Product Info RTL */
[dir="rtl"] .product-info {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .product-title {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .category-tag {
    text-align: right;
}

[dir="rtl"] .price-section {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .price-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .quantity-section {
    direction: rtl;
}

[dir="rtl"] .quantity-controls {
    flex-direction: row-reverse;
}

[dir="rtl"] .stock-info {
    text-align: right;
}

[dir="rtl"] .action-buttons {
    direction: rtl;
}

[dir="rtl"] .rating-section {
    direction: rtl;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .rating-text {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .write-review-btn {
    direction: rtl;
    flex-direction: row-reverse;
}

/* Section Content RTL */
[dir="rtl"] .section-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .section-content * {
    text-align: right !important;
    direction: rtl;
}

/* No Reviews Section RTL */
[dir="rtl"] .no-reviews-modern {
    direction: rtl;
    text-align: center !important;
}

[dir="rtl"] .no-reviews-modern h3,
[dir="rtl"] .no-reviews-modern p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

[dir="rtl"] .no-reviews-icon {
    text-align: center !important;
}

[dir="rtl"] .btn-first-review {
    direction: rtl;
    flex-direction: row-reverse;
}

/* Reviews List RTL */
[dir="rtl"] .modern-reviews-list {
    direction: rtl;
}

[dir="rtl"] .modern-review-card {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .review-content {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .review-title,
[dir="rtl"] .review-text {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .review-actions {
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="rtl"] .helpful-btn {
    direction: rtl;
    flex-direction: row-reverse;
}

/* Product Card Ultimate RTL - Titles and Categories */
[dir="rtl"] .product-card-ultimate .card-category {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .product-card-ultimate .card-title {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .product-card-ultimate .card-title a {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .related-products-container .card-category {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .related-products-container .card-category a {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .related-products-container .card-title {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .related-products-container .card-title a {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .related-products-container .card-title a span {
    text-align: right !important;
    direction: rtl !important;
}

/* ========================================
   SECTION 15: FAQ ACCORDION STYLES
   ======================================== */

.faq-accordion-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.faq-accordion-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-header {
    background: #ffffff;
    padding: 20px 24px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.faq-accordion-header:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.faq-accordion-item.active .faq-accordion-header {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question-badge {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    color: #999;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
}

.faq-toggle-icon::before {
    content: '+';
    display: block;
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-toggle-icon::before {
    content: '-';
    transform: rotate(0deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-top: none;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 500px;
    transition: max-height 0.5s ease;
}

.faq-answer-wrapper {
    padding: 24px 24px 24px 80px;
}

.faq-answer-label {
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-answer-text {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.faq-accordion-header:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.faq-accordion-header:hover .faq-question-text {
    color: #000000;
}

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

.faq-accordion-item.active .faq-answer-wrapper {
    animation: fadeIn 0.3s ease;
}

@supports (-webkit-touch-callout: none) {
    .faq-accordion-header {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }

    .faq-accordion-content {
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .faq-accordion-header * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .faq-accordion-item.active .faq-accordion-content {
        max-height: 1000px;
    }
}

@media (pointer: coarse) {
    .faq-accordion-header {
        min-height: 44px;
        padding: 16px 20px;
    }

    .faq-toggle-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .faq-accordion-container {
        padding: 0;
    }

    .faq-accordion-item {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .faq-accordion-header {
        padding: 16px 20px;
        gap: 12px;
    }

    .faq-question-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .faq-question-text {
        font-size: 15px;
    }

    .faq-answer-wrapper {
        padding: 20px 20px 20px 60px;
    }

    .faq-answer-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq-accordion-header {
        padding: 12px;
        gap: 8px;
    }

    .faq-question-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .faq-question-text {
        font-size: 13px;
    }

    .faq-toggle-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .faq-answer-wrapper {
        padding: 12px;
        padding-left: 40px;
    }
}

[dir="rtl"] .faq-accordion-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .faq-answer-wrapper {
    padding: 24px 80px 24px 24px;
}

[dir="rtl"] .faq-toggle-icon {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 768px) {
    [dir="rtl"] .faq-answer-wrapper {
        padding: 14px 48px 14px 14px;
    }

    [dir="rtl"] .faq-toggle-icon {
        margin-right: 8px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .faq-answer-wrapper {
        padding: 12px 40px 12px 12px;
    }
}

/* ========================================
   SECTION 16: PRODUCT CARD ULTIMATE STYLES
   ======================================== */

.product-card-ultimate {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eee;
    height: auto;
    min-height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.product-card-ultimate:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border-color: #eee;
}

.card-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-ultimate:hover .card-image {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.product-card-ultimate:hover .image-overlay {
    opacity: 0;
}

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-ultimate:hover .overlay-content {
    transform: translateY(0);
}

.overlay-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.overlay-description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.card-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 10;
}

.badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-sale {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.badge-new {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.badge-featured {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.quick-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(10px);
}

.product-card-ultimate:hover .quick-action-btn {
    opacity: 0;
    transform: translateX(10px);
}

.product-card-ultimate:hover .quick-action-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.product-card-ultimate:hover .quick-action-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.product-card-ultimate:hover .quick-action-btn:nth-child(3) {
    transition-delay: 0.3s;
}

.quick-action-btn:hover {
    background: #2ec5d9;
    color: white;
    transform: scale(1.1);
}

.quick-action-btn.active {
    background: #2ec5d9;
    color: white;
}

.card-content {
    padding: 24px;
}

.card-category {
    font-size: 12px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
    text-decoration: none !important;
}

.card-category:hover,
.card-category:active,
.card-category:focus {
    color: #000000 !important;
    text-decoration: none !important;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: #000000;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

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

.rating-stars i {
    font-size: 14px;
    color: #d1d5db;
}

.rating-count {
    font-size: 12px;
    color: #6b7280;
}

.card-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-original {
    font-size: 18px;
    color: #6b7280;
    text-decoration: line-through;
}

.price-discount {
    font-size: 14px;
    color: #ef4444;
    font-weight: 600;
}

.card-action {
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px 24px;
    background: #2ec5d9;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    background: #1ea7b5;
    transform: translateY(0);
    box-shadow: none;
}

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

.add-to-cart-btn.loading {
    color: transparent;
}

.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.out-of-stock-btn {
    width: 100%;
    padding: 14px 24px;
    background: #e5e7eb;
    color: #9ca3af;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
}

.notify-me-btn {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: #2ec5d9;
    border: 2px solid #2ec5d9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notify-me-btn:hover {
    background: #2ec5d9;
    color: white;
}

.product-card-ultimate.list-view {
    display: flex;
    height: auto;
    margin-bottom: 24px;
}

.list-view .card-image-container {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.list-view .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-view .card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.list-view .card-features {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.feature-item i {
    color: #10b981;
    font-size: 12px;
}

.list-view .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.list-view .card-price-section {
    margin-bottom: 0;
}

.list-view .card-actions {
    display: flex;
    gap: 12px;
}

.list-view .add-to-cart-btn {
    width: auto;
    padding: 12px 32px;
}

.view-details-btn {
    padding: 12px 24px;
    background: transparent;
    color: #2ec5d9;
    border: 2px solid #2ec5d9;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-details-btn:hover {
    background: #2ec5d9;
    color: white;
    transform: translateY(0);
}

.card-skeleton {
    background: #f3f4f6;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
}

.skeleton-image {
    height: 300px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 24px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-button {
    height: 48px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
    margin-top: 20px;
}

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

@media (max-width: 768px) {
    .card-image-container {
        height: 250px;
    }

    .card-image {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
    }

    .list-view {
        flex-direction: column;
    }

    .list-view .card-image-container {
        width: 100%;
        height: 250px;
    }

    .list-view .card-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .list-view .card-actions {
        flex-direction: column;
        width: 100%;
    }

    .list-view .add-to-cart-btn,
    .view-details-btn {
        width: 100%;
        justify-content: center;
    }
}
