﻿/* ============================================
   PRODUCT DETAILS PAGE - THEME-AWARE STYLES
   ============================================ */

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, "/");
    color: var(--text-muted);
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "\\";
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .breadcrumb-item a:hover {
        color: var(--primary-gold);
    }

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ============================================
   PRODUCT DETAILS SECTION
   ============================================ */
.product-details-section {
    background: var(--bg-primary);
}

/* ============================================
   PRODUCT IMAGES
   ============================================ */
.product-images-container {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.main-product-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 10px;
}

    .image-placeholder i {
        font-size: 5rem;
        color: var(--bg-dark);
    }

/* Image Badges */
.image-badges {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

[dir="rtl"] .image-badges {
    left: auto;
    right: 2rem;
}

.category-badge {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Zoom Button */
.zoom-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

[dir="rtl"] .zoom-btn {
    right: auto;
    left: 2rem;
}

.zoom-btn:hover {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    transform: scale(1.1);
}

/* Thumbnails Gallery */
.thumbnails-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

    .thumbnails-gallery::-webkit-scrollbar {
        height: 6px;
    }

    .thumbnails-gallery::-webkit-scrollbar-track {
        background: var(--bg-tertiary);
        border-radius: 10px;
    }

    .thumbnails-gallery::-webkit-scrollbar-thumb {
        background: var(--primary-gold);
        border-radius: 10px;
    }

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .thumbnail:hover,
    .thumbnail.active {
        border-color: var(--primary-gold);
        transform: scale(1.05);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ============================================
   PRODUCT INFO
   ============================================ */
.product-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.product-detail-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-sku {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Price Container */
.product-price-container {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-gold);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Product Description */
.product-description,
.product-features {
    margin-top: 1.5rem;
}

    .product-description h5,
    .product-features h5 {
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
    }

    .product-description p {
        color: var(--text-secondary);
        line-height: 1.8;
    }

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .features-list li {
        color: var(--text-secondary);
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        gap: 1rem;
    }

        .features-list li:last-child {
            border-bottom: none;
        }

    .features-list i {
        font-size: 1.2rem;
        color: var(--primary-gold);
    }

/* Product Actions */
.product-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

    .product-actions .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .product-actions .btn-outline-primary {
        padding: 0.75rem 1.5rem;
    }

/* Additional Info */
.additional-info {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

    .info-item i {
        font-size: 1.5rem;
        color: var(--primary-gold);
    }

/* ============================================
   PRODUCT TABS
   ============================================ */
.product-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

    .product-tabs .nav-tabs {
        background: var(--bg-secondary);
        border-bottom: 2px solid var(--primary-gold);
        padding: 1rem;
    }

    .product-tabs .nav-link {
        color: var(--text-secondary);
        background: transparent;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin: 0 0.25rem;
    }

        .product-tabs .nav-link:hover {
            background: var(--bg-tertiary);
            color: var(--primary-gold);
        }

        .product-tabs .nav-link.active {
            background: var(--gradient-gold);
            color: var(--bg-dark);
        }

    .product-tabs .tab-content {
        padding: 2rem;
    }

.tab-content-inner {
    color: var(--text-secondary);
}

    .tab-content-inner h4 {
        color: var(--text-primary);
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .tab-content-inner p {
        line-height: 1.8;
        margin-bottom: 1rem;
    }

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

    .specs-table tr {
        border-bottom: 1px solid var(--border-color);
    }

        .specs-table tr:last-child {
            border-bottom: none;
        }

    .specs-table td {
        padding: 1rem;
        color: var(--text-secondary);
    }

        .specs-table td:first-child {
            width: 30%;
            color: var(--text-primary);
        }

/* Applications List */
.applications-list {
    list-style: none;
    padding: 0;
}

    .applications-list li {
        padding: 0.75rem 0;
        padding-left: 2rem;
        position: relative;
        color: var(--text-secondary);
    }

[dir="rtl"] .applications-list li {
    padding-left: 0;
    padding-right: 2rem;
}

.applications-list li::before {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

[dir="rtl"] .applications-list li::before {
    left: auto;
    right: 0;
    content: "\f053";
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-products-container {
    margin-top: 2rem;
}

.related-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

    .related-product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-gold);
    }

    .related-product-card a {
        text-decoration: none;
        display: block;
    }

    .related-product-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .related-product-card h6 {
        color: var(--text-primary);
        padding: 1rem;
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .related-product-card .price {
        color: var(--primary-gold);
        padding: 0 1rem 1rem;
        margin: 0;
        font-weight: 700;
    }

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Quote Form */
#quoteForm .form-label {
    color: var(--text-primary);
    font-weight: 500;
}

#quoteForm .alert-info {
    background: var(--bg-secondary);
    border-color: var(--primary-gold);
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .product-images-container {
        position: static;
        margin-bottom: 2rem;
    }

    .product-detail-title {
        font-size: 1.75rem;
    }

    .product-detail-price {
        font-size: 1.75rem;
    }

    .main-image-wrapper {
        padding: 1.5rem;
    }

    .main-product-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-tabs .nav-tabs {
        padding: 0.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .product-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .product-tabs .tab-content {
        padding: 1.5rem;
    }

    .image-badges {
        top: 1.5rem;
        left: 1.5rem;
    }

    [dir="rtl"] .image-badges {
        left: auto;
        right: 1.5rem;
    }

    .zoom-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    [dir="rtl"] .zoom-btn {
        right: auto;
        left: 1.5rem;
    }

    .specs-table td {
        padding: 0.75rem;
        display: block;
        width: 100% !important;
    }

        .specs-table td:first-child {
            padding-bottom: 0.25rem;
        }
}

@media (max-width: 576px) {
    .breadcrumb-section {
        font-size: 0.85rem;
    }

    .product-detail-title {
        font-size: 1.3rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-price-container {
        padding: 1rem;
    }

    .product-actions .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .main-image-wrapper {
        padding: 1rem;
    }

    .image-placeholder {
        height: 300px;
    }

        .image-placeholder i {
            font-size: 3rem;
        }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .breadcrumb-section,
    .product-actions,
    .zoom-btn,
    .thumbnails-gallery,
    .product-tabs .nav-tabs,
    .related-products-container,
    .additional-info {
        display: none !important;
    }

    .product-info {
        box-shadow: none;
        border: 1px solid #000;
    }

    .main-image-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }

    .product-tabs .tab-content {
        border: 1px solid #000;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }
}
/* ============================================
   PDF DOWNLOADS SECTION - THEME-AWARE STYLES
   Add to product-details.css
   ============================================ */

/* ============================================
   PDF Downloads Section
   ============================================ */
.pdf-downloads-section {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.downloads-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

    .downloads-title i {
        color: var(--primary-gold);
        font-size: 1.3rem;
    }

/* ============================================
   Downloads Grid
   ============================================ */
.downloads-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

/* ============================================
   Download Card
   ============================================ */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

    .download-card:hover {
        border-color: var(--primary-gold);
        box-shadow: var(--shadow-md);
        transform: translateX(5px);
    }

[dir="rtl"] .download-card:hover {
    transform: translateX(-5px);
}

/* Download Icon */
.download-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.8rem;
}

/* Download Info */
.download-info {
    flex: 1;
    min-width: 0;
}

.download-name {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

    .download-meta span {
        display: flex;
        align-items: center;
    }

    .download-meta i {
        font-size: 0.8rem;
    }

.file-type {
    color: var(--danger-color);
    font-weight: 600;
}

.file-size {
    color: var(--text-secondary);
}

.download-count {
    color: var(--primary-gold);
}

/* Download Actions */
.download-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

.download-btn,
.view-btn {
    min-width: 100px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn {
    background: var(--gradient-gold);
    border: none;
    color: var(--bg-dark);
}

    .download-btn:hover {
        background: var(--secondary-gold);
        color: var(--bg-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-gold);
    }

.view-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    min-width: auto;
    width: 40px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .view-btn:hover {
        border-color: var(--primary-gold);
        color: var(--primary-gold);
        background: var(--bg-secondary);
    }

/* Downloads Notice */
.downloads-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
}

[dir="rtl"] .downloads-notice {
    border-left: none;
    border-right: 3px solid var(--primary-gold);
}

.downloads-notice i {
    color: var(--primary-gold);
    margin-top: 0.2rem;
}

.downloads-notice small {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .download-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .download-info {
        width: 100%;
    }

    .download-name {
        white-space: normal;
        overflow: visible;
    }

    .download-meta {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .download-actions {
        width: 100%;
        justify-content: space-between;
    }

    .download-btn {
        flex: 1;
        min-width: auto;
    }

    .view-btn {
        width: 50px;
    }

    .downloads-notice {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .pdf-downloads-section {
        padding: 1rem;
    }

    .downloads-title {
        font-size: 1rem;
    }

    .download-card {
        padding: 0.75rem;
    }

    .download-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .pdf-downloads-section {
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .download-actions {
        display: none;
    }

    .download-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}