/* product.css */

.product-page-section {
    background: var(--surface-primary);
    min-height: 100vh;
}

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

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

.main-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.thumbnails-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}
.thumbnails-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.thumbnail-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f8fafc;
    opacity: 0.6;
}

.thumbnail-wrapper.active {
    border-color: var(--color-mint-dark);
    opacity: 1;
}

.thumbnail-wrapper:hover {
    opacity: 1;
}

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

/* Product Info */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: var(--color-mint-dark);
}

.pd-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pd-price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.pd-price-final {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-mint-dark);
}

.pd-price-original {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pd-discount-badge {
    background: rgba(142, 207, 173, 0.15);
    color: var(--color-mint-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pd-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.pd-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

.pd-option-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Skeleton Loading States */
.skeleton-bg {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 400% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 400% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 100%;
}

.skeleton-title {
    height: 48px;
    width: 80%;
}

.skeleton-price {
    height: 36px;
    width: 150px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 900px) {
    .product-page-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .pd-title {
        font-size: 2rem;
    }
}
