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

.product-page .navbar {
    background-color: var(--color-bg);
}

.product-main {
    padding-top: 100px;
}

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

.breadcrumb a {
    transition: color var(--transition-fast);
}

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

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    background-color: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.thumbnail-list {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.product-details {
    display: flex;
    flex-direction: column;
}

.product-details .product-category {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-details .product-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-details .product-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.product-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-options {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-selector input {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem;
    width: 80px;
    font-size: 1.1rem;
    border-radius: 4px;
    text-align: center;
}

.product-actions {
    margin-bottom: 2rem;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
}

.meta-item svg {
    color: var(--color-primary);
}

/* Tabs */
.product-tabs {
    margin-top: 2rem;
}

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

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

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

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

.tab-btn.active::after {
    width: 100%;
}

.tab-pane {
    display: none;
    color: var(--color-text-muted);
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-pane ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.tab-pane li {
    margin-bottom: 0.8rem;
}

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

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-image {
        height: 350px;
    }
    
    .product-details .product-title {
        font-size: 2rem;
    }
}
