/* --- General Product Page Styles --- */
.product-page-main {
    background-color: #0a0a0a;
    color: #ddd;
    padding-bottom: 50px;
}

.container { /* Assuming you have a .container class from Bootstrap or similar */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Breadcrumbs --- */
.product-breadcrumbs {
    margin-bottom: 30px;
    padding-top: 15px;
}
.product-breadcrumbs .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}
.product-breadcrumbs .breadcrumb-item a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}
.product-breadcrumbs .breadcrumb-item a:hover {
    color: #D4AF37;
}
.product-breadcrumbs .breadcrumb-item.active {
    color: #fff;
}
.product-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: #777;
    content: ">"; /* Or any RTL-friendly separator */
    padding: 0 0.5rem;
}

/* --- Product Layout --- */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px; /* Increased gap for luxury feel */
}

/* --- Product Gallery --- */
.product-gallery {
    display: flex;
    flex-direction: column;
}
.main-image-container {
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px;
    margin-bottom: 20px;
    background-color: #000; /* Pure black for image backdrop */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.main-product-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}
/* Optional: Zoom effect on hover
.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}
*/
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow thumbnails to wrap */
}
.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.thumbnail:hover img {
    transform: scale(1.1);
}
.thumbnail.active-thumbnail {
    border-color: #D4AF37;
}

/* --- Product Details Column --- */
.product-details-column {
    padding-top: 10px; /* Align with image padding */
}
.product-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}
.product-sku {
    font-size: 0.85rem;
    color: #aaa;
    display: block;
    margin-bottom: 20px;
}
.product-price-section {
    margin-bottom: 25px;
}
.current-price {
    font-size: 1.8rem;
    color: #D4AF37;
    font-weight: bold;
    margin-left: 15px;
}
.original-price {
    font-size: 1.2rem;
    color: #777;
    text-decoration: line-through;
}
.product-short-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
}

/* Product Options (Example) */
.product-options {
    margin-bottom: 25px;
}
.product-options label {
    display: block;
    margin-bottom: 8px;
    color: #bbb;
}
.form-select-luxury { /* Style this like your newsletter input */
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    border-radius: 4px; /* Softer edges */
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}
.quantity-selector label {
    margin-left: 10px; /* For RTL */
    color: #bbb;
}
.quantity-btn {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #D4AF37;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.quantity-btn:hover {
    background-color: #333;
}
.quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0 5px;
    -moz-appearance: textfield; /* Firefox */
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button { /* Chrome, Safari, Edge, Opera */
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons */
.btn-luxury { /* Base for your buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 1px solid #D4AF37;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    gap: 8px; /* Space between icon and text */
}
.btn-add-to-cart {
    background-color: #D4AF37;
    color: #0a0a0a; /* Dark text on gold */
    width: 100%;
    margin-bottom: 15px;
    font-weight: 500;
}
.btn-add-to-cart:hover {
    background-color: #c09b30; /* Darker gold */
    border-color: #c09b30;
}
.btn-wishlist {
    background-color: transparent;
    color: #D4AF37;
    width: 100%;
}
.btn-wishlist:hover {
    background-color: rgba(212, 175, 55, 0.1);
}
.btn-luxury.btn-outline { /* For review button or similar */
    background-color: transparent;
    color: #D4AF37;
}
.btn-luxury.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: #e8c252;
}


.product-availability {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}
.availability-status.in-stock { color: #4CAF50; } /* Green for in stock */
.availability-status.out-of-stock { color: #F44336; } /* Red for out of stock */
.availability-status.pre-order { color: #FF9800; } /* Orange for pre-order */


/* --- Product Info Tabs --- */
.product-info-tabs-section {
    background-color: #0a0a0a; /* Consistent background */
    padding: 50px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.luxury-tabs {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
}
.luxury-tabs .nav-item .nav-link {
    color: #aaa;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    font-size: 1rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.luxury-tabs .nav-item .nav-link:hover {
    color: #fff;
}
.luxury-tabs .nav-item .nav-link.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
    background-color: transparent; /* Ensure no Bootstrap default bg */
}
.review-count-badge {
    font-size: 0.8em;
    color: #bbb;
    margin-right: 5px; /* For RTL */
}

.luxury-tab-content {
    padding-top: 20px;
    color: #ccc;
    line-height: 1.8;
}
.luxury-tab-content .prose { /* For description with HTML */
    font-size: 0.95rem;
}
.luxury-tab-content .prose p {
    margin-bottom: 1.5em;
}
.luxury-tab-content .prose h2, .luxury-tab-content .prose h3 {
    color: #fff;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}
.specifications-table th, .specifications-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #222; /* Darker border for specs */
    text-align: right;
}
.specifications-table th {
    color: #fff;
    font-weight: 500;
    width: 30%;
    background-color: rgba(212, 175, 55, 0.05);
}
.specifications-table td {
    color: #bbb;
}

/* Reviews */
.reviews-summary {
    margin-bottom: 20px;
}
.reviews-summary h4 {
    color: #fff;
}
.review-item {
    border-bottom: 1px solid #222;
    padding: 20px 0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}
.review-author {
    color: #fff;
    font-weight: 500;
    margin-left: 15px; /* For RTL */
}
.review-date {
    font-size: 0.85rem;
    color: #888;
    margin-left: auto; /* Push to the right */
}
.review-rating {
    margin-left: 10px; /* For RTL */
    display: flex;
}
.star-icon {
    color: #555; /* Empty star color */
    margin: 0 1px;
}
.star-icon.filled {
    color: #D4AF37; /* Filled star color */
}
.review-comment {
    font-size: 0.95rem;
    color: #ccc;
}
#reviews-panel .btn-luxury {
    margin-top: 30px;
}

/* --- Related Products --- */
.related-products-section {
    padding: 60px 0;
    background-color: #0f0f0f; /* Slightly different shade */
}
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 500;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after { /* Similar to footer title underline */
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #D4AF37;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.product-card-related {
    background-color: #000;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    overflow: hidden; /* For image hover effect */
    border-radius: 4px;
}
.product-card-related:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}
.product-card-related-image-container {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card-related:hover .product-card-related-image {
    transform: scale(1.05);
}
.product-card-related-info {
    padding: 20px;
    text-align: center;
}
.product-card-related-name {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}
.product-card-related-price {
    font-size: 1rem;
    color: #D4AF37;
    font-weight: bold;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    .main-image-container {
        min-height: 300px;
    }
    .main-product-image {
        max-height: 400px;
    }
    .product-title {
        font-size: 1.8rem;
    }
    .current-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    .luxury-tabs .nav-item .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-layout {
        gap: 20px;
    }
    .main-image-container {
        min-height: 250px;
    }
    .btn-add-to-cart, .btn-wishlist {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    .luxury-tabs {
        /* Allow tabs to scroll horizontally if they don't fit */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }
    .luxury-tabs::-webkit-scrollbar { /* Hide scrollbar for Chrome, Safari, Edge */
        display: none;
    }
    .luxury-tabs .nav-item {
        flex-shrink: 0; /* Prevent items from shrinking */
    }
}