/* Product Detail Page Styles */

/* Breadcrumb Section */
.breadcrumb-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    align-items: center;
    justify-content: center;
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.breadcrumb span {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Product Detail Section */
.product-detail-section {
    padding: 60px 0;
    background: white;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--accent-gold);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Product Details */
.product-details {
    padding-top: 20px;
}

.product-details h1 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Product Rating Detail */
.product-rating-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

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

.stars i {
    color: var(--accent-gold);
    font-size: 16px;
}

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

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

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

.stock {
    padding: 8px 16px;
    background: #27ae60;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* Product Description */
.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding: 24px;
    background: var(--light-bg);
    border-radius: 8px;
}

/* Product Options */
.product-options {
    margin-bottom: 32px;
}

.option-group {
    margin-bottom: 24px;
}

.option-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 14px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 12px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 10px 18px;
    border: 2px solid var(--border-light);
    background: white;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: white;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    width: fit-content;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--light-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--accent-gold);
    color: white;
}

.quantity-selector input {
    width: 60px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.quantity-selector input:focus {
    outline: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.add-to-cart-btn-large {
    flex: 1;
    padding: 16px 24px;
    background: var(--accent-gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn-large:hover {
    background: #066b7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 138, 155, 0.3);
}

.wishlist-btn-large {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.wishlist-btn-large:hover {
    background: var(--accent-gold);
    color: white;
}

/* Product Meta */
.product-meta {
    background: var(--light-bg);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.meta-item {
    font-size: 14px;
}

.meta-item strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
}

.meta-item span {
    color: var(--text-secondary);
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-dark);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--accent-gold);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--accent-gold);
    color: white;
}

/* Product Tabs Section */
.product-tabs-section {
    padding: 60px 0;
    background: white;
}

.tabs-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: 'Poppins', sans-serif;
}

.tab-btn:hover {
    color: var(--accent-gold);
}

.tab-btn.active {
    color: white;
    border-bottom-color: var(--accent-gold);
    background: var(--accent-gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-content h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.tab-content h4 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-top: 24px;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.tab-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    margin-bottom: 24px;
}

.features-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.specs-table td {
    padding: 16px 0;
    font-size: 15px;
}

.specs-table tr:last-child {
    border-bottom: none;
}

/* Reviews Container */
.reviews-container {
    margin-bottom: 40px;
}

.review-item {
    padding: 24px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.reviewer-info h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

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

.review-rating {
    display: flex;
    gap: 4px;
}

.review-rating i {
    color: var(--accent-gold);
    font-size: 14px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Review Form */
.review-form-section {
    background: var(--light-bg);
    padding: 32px;
    border-radius: 8px;
}

.review-form-section h4 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.rating-input {
    display: flex;
    gap: 16px;
}

.rating-input input {
    width: auto;
}

.submit-review-btn {
    padding: 12px 32px;
    background: var(--accent-gold);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.submit-review-btn:hover {
    background: #066b7a;
    transform: translateY(-2px);
}

/* Product Image Wrapper for Related Products */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.shop-product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Overlay for Related Products */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.shop-product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    padding: 10px 24px;
    background: var(--accent-gold);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.quick-view-btn:hover {
    background: #066b7a;
    transform: translateY(-2px);
}

/* Related Products Section */
.related-products-section {
    padding: 60px 0;
    background: white;
}

.related-products-section h2 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-details h1 {
        font-size: 28px;
    }

    .price {
        font-size: 28px;
    }

    .main-image {
        height: 350px;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .wishlist-btn-large {
        width: 100%;
    }

    .tabs-navigation {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-detail-wrapper {
        gap: 24px;
    }

    .product-details h1 {
        font-size: 24px;
    }

    .main-image {
        height: 280px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .action-buttons {
        gap: 8px;
    }

    .product-options {
        margin-bottom: 20px;
    }

    .color-options,
    .size-options {
        gap: 8px;
    }
}
