/* ========================================
   Product Detail Page Styles
   ======================================== */

/* === BREADCRUMB === */
.breadcrumb {
    padding: 100px 0 1.5rem;
    background-color: var(--warm-cream);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--medium-grey);
}

.breadcrumb a {
    color: var(--soft-charcoal);
    transition: var(--transition-normal);
}

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

.breadcrumb span:not(#breadcrumbProduct) {
    color: var(--medium-grey);
}

/* === PRODUCT DETAIL === */
.product-detail {
    background-color: var(--pure-white);
    padding: var(--spacing-xl) 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }
}

/* === PRODUCT IMAGE === */
.product-image-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-main-image {
    aspect-ratio: 1;
    background-color: var(--warm-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.product-main-image svg {
    width: 100%;
    height: 100%;
    max-width: 500px;
}

/* === PRODUCT INFO === */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--luxury-black);
    margin-bottom: var(--spacing-xs);
}

.product-price-display {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--elegant-gold);
    margin-bottom: var(--spacing-md);
}

.product-description-long {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--soft-charcoal);
    margin-bottom: var(--spacing-lg);
}

/* === PRODUCT OPTIONS === */
.product-options {
    border-top: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.option-group {
    margin-bottom: var(--spacing-md);
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    color: var(--luxury-black);
}

.size-options,
.quantity-selector {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.size-option {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--light-grey);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}

.size-option:hover {
    border-color: var(--elegant-gold);
}

.size-option.active {
    border-color: var(--luxury-black);
    background-color: var(--luxury-black);
    color: var(--pure-white);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-grey);
    background-color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}

.quantity-btn:hover {
    border-color: var(--elegant-gold);
}

.quantity-display {
    min-width: 60px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
}

/* === PRODUCT ACTIONS === */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
    width: 100%;
    padding: 1.25rem;
    font-size: 1rem;
}

/* === PRODUCT DETAILS TABS === */
.product-details-tabs {
    margin-top: var(--spacing-lg);
}

.tabs-nav {
    display: flex;
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: var(--spacing-md);
}

.tab-btn {
    padding: var(--spacing-sm) 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--medium-grey);
    cursor: pointer;
    transition: var(--transition-normal);
}

.tab-btn:hover {
    color: var(--luxury-black);
}

.tab-btn.active {
    color: var(--luxury-black);
    border-bottom-color: var(--elegant-gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-content p {
    line-height: 1.8;
    color: var(--soft-charcoal);
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--soft-charcoal);
}

.tab-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--elegant-gold);
    font-size: 1.25rem;
}

/* === GEMSTONE INFO === */
.gemstone-info {
    background-color: var(--warm-cream);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gemstone-info h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--luxury-black);
}

.gemstone-info p {
    font-size: 0.95rem;
    color: var(--soft-charcoal);
}

/* === RELATED PRODUCTS === */
.related-products {
    background-color: var(--warm-cream);
    padding: var(--spacing-xxl) 0;
}

.related-products .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .related-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .related-products .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .breadcrumb {
        padding-top: 80px;
    }

    .product-image-section {
        position: relative;
        top: 0;
    }

    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
    }
}
/* === PRODUCT THUMBNAILS === */
.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-thumbnails .thumbnail:hover {
    border-color: var(--elegant-gold);
}

.product-thumbnails .thumbnail.active {
    border-color: var(--elegant-gold);
    box-shadow: 0 2px 8px rgba(184, 156, 89, 0.3);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === PRODUCT RATING === */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-rating .stars {
    color: #F59E0B;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.product-rating .review-count {
    color: var(--medium-grey);
    font-size: 0.9rem;
}

/* === PRODUCT VARIATIONS (Amazon-style) === */
.product-variations {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.variation-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--luxury-black);
    margin-bottom: 1rem;
}

.variation-current {
    color: var(--elegant-gold);
    font-weight: 500;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.variation-option {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.variation-option:hover {
    border-color: var(--elegant-gold);
    box-shadow: 0 2px 8px rgba(184, 156, 89, 0.2);
}

.variation-option.active {
    border-color: var(--elegant-gold);
    background: #FFFBF5;
    box-shadow: 0 2px 8px rgba(184, 156, 89, 0.3);
}

.variation-option img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.variation-info {
    text-align: center;
}

.variation-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--soft-charcoal);
    margin-bottom: 0.25rem;
}

.variation-price {
    font-size: 0.9rem;
    color: var(--elegant-gold);
    font-weight: 600;
}

@media (max-width: 767px) {
    .variations-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .product-thumbnails .thumbnail {
        width: 60px;
        height: 60px;
    }
}
