/* Detail Page Styles */

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

.back-button {
    background: none;
    border: none;
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    color: var(--clay-dark);
    cursor: pointer;
    margin-bottom: 30px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--terracotta);
}

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

.detail-main-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 8px 30px rgba(107, 68, 35, 0.15);
}

.detail-info {
    padding: 20px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--clay-dark);
    margin-bottom: 20px;
}

.detail-story {
    font-size: 18px;
    color: var(--earth-brown);
    margin-bottom: 40px;
}

/* Contact Prompt */
.detail-contact-prompt {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--warm-sand);
}

.contact-prompt-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--clay-dark);
    margin-bottom: 10px;
}

.contact-prompt-link {
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-prompt-link:hover {
    color: var(--clay-dark);
}

.detail-process {
    border-top: 1px solid var(--warm-sand);
    padding-top: 40px;
}

.process-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--clay-dark);
    margin-bottom: 25px;
}

.process-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
    gap: 15px;
}

.process-image {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.1);
}

.process-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Make process images clickable */
.process-image {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.2);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 2px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--terracotta);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    line-height: 1;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--terracotta);
}

/* Responsive Detail Page */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-title {
        font-size: 32px;
    }

    .detail-price {
        font-size: 24px;
    }


    .process-title {
        font-size: 24px;
    }

    .process-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-button {
        font-size: 16px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
