/* =========================================
   PRODUCT DETAILS - Clean & Professional
   ========================================= */

.product-details-container {
    padding: var(--spacing-lg) 0;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: var(--spacing-xl);
}

/* --- Gallery --- */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.03);
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--color-text-main);
}

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

/* --- Product Info --- */
.product-info-details {
    padding-top: 1rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.product-title-large {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.product-rating i {
    color: #FFB800;
}

.product-rating span {
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.product-price-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.product-description-short {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- Product Actions --- */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--color-border);
}

.qty-input {
    width: 50px;
    height: 44px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 2rem;
    background: var(--color-text-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.add-to-cart-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wishlist-action {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.wishlist-action:hover {
    border-color: #FF3B30;
    color: #FF3B30;
}

/* --- Meta Info --- */
.meta-info {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-light);
}

.meta-row {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.meta-label {
    width: 120px;
    color: var(--color-text-muted);
}

.meta-value {
    color: var(--color-text-main);
    font-weight: 500;
}

/* --- Maker Profile --- */
.maker-profile-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.maker-profile-small img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.maker-info h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.maker-info span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* --- Tabs --- */
.product-tabs-section {
    max-width: 800px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--color-text-main);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text-main);
}

.tab-content-panel {
    display: none;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Related Products --- */
.related-products {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border-light);
}

.related-products h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }

    .product-title-large {
        font-size: 1.75rem;
    }
}