/* K.B CRÉATEURS Product Page - Clean Design */

/* Breadcrumb styles moved to components/breadcrumb.css */

/* Product Page Layout */
.product-page {
    padding: 40px 0 80px;
    background: var(--white);
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

/* Artwork Gallery */
.artwork-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    /* Default aspect ratio - will be overridden by orientation class */
    aspect-ratio: 1/1;
    transition: aspect-ratio 0.3s ease;
}

/* Orientation-specific aspect ratios */
.main-image-container.portrait {
    aspect-ratio: 2/3;
}

.main-image-container.landscape {
    aspect-ratio: 3/2;
}

.main-image-container.square {
    aspect-ratio: 1/1;
}

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

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


/* Product page - badges on left side */
.product-page .product-badge {
    left: 12px;
    right: auto;
}

.thumbnail-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--gold-primary);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

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

/* Artwork Information */
.artwork-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Push only the additional info card to bottom, keep other content compact */
.artwork-info > .artwork-additional {
    margin-top: auto;
}

/* Artwork Gallery */
.artwork-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.artwork-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.artwork-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.collection-tag {
    display: inline-block;
    background: var(--gold-pale);
    color: var(--gold-dark);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    border: 1px solid var(--gold-cream);
}

.artist-credit {
    color: var(--gray-600);
    font-size: 15px;
    font-style: italic;
}

.artwork-description {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 16px;
}

/* Specifications */
.artwork-specs h3,
.artwork-formats h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 16px 0;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--gray-50);
    border-radius: 8px;
    padding: 20px;
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 15px;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: var(--black);
}

/* Format Options */
.format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-option:hover {
    border-color: var(--gold-primary);
    background: var(--gold-pale);
}

.format-option.featured,
.format-option.selected {
    border-color: var(--gold-primary);
    background: var(--gold-pale);
}

.format-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.format-size {
    font-weight: 600;
    color: var(--black);
    font-size: 16px;
}

.format-type {
    color: var(--gray-600);
    font-size: 14px;
}

.format-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

/* Action Buttons */
.artwork-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    min-width: 160px;
}

.contact-btn.primary {
    background: var(--gold-primary);
    color: white;
}

.contact-btn.primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.contact-btn.secondary {
    background: var(--white);
    color: var(--gold-dark);
    border: 2px solid var(--gold-primary);
}

.contact-btn.secondary:hover {
    background: var(--gold-primary);
    color: white;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
}

/* Additional Information */
.artwork-additional {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--gold-primary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--gold-pale);
    border: 1px solid var(--gold-cream);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Creation Icon - Palette emoji */
.creation-icon::before {
    content: '🎨';
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Delivery Icon - Package emoji */
.delivery-icon::before {
    content: '📦';
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Custom Icon - Ruler/Tools emoji */
.custom-icon::before {
    content: '📐';
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Button Icons */
.btn-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

/* Chat Icon - Message emoji */
.chat-icon::before {
    content: '💬';
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Artist Icon - Camera emoji */
.artist-icon::before {
    content: '📷';
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-content strong {
    display: block;
    color: var(--black);
    font-weight: 600;
    margin-bottom: 4px;
}

.info-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
        margin: 16px;
    }

    .artwork-header h1 {
        font-size: 1.75rem;
    }

    .artwork-actions {
        flex-direction: column;
    }

    .contact-btn {
        min-width: unset;
    }

    .thumbnail-container {
        justify-content: center;
    }

    .format-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .format-price {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding: 20px 0 40px;
    }

    .breadcrumb-list {
        font-size: 13px;
    }

    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 8px;
    }
}

/* Fullscreen Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Zoom cursor on main image */
.main-image-container {
    cursor: zoom-in;
}

.main-image-container:hover .main-image {
    transform: scale(1.02);
}