.product-detail {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-gallery {
    display: flex;
    gap: 1rem;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thumb {
    width: 70px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb.active {
    border-color: #2563eb;
}

.main-image {
    position: relative;
    flex: 1;
    border: 1px solid #e5e7eb;
    padding: 1rem;
}

.main-image img {
    width: 100%;
    object-fit: contain;
}

.product-content h1 {
    margin-bottom: 1rem;
}

.specs {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

/* Arrow buttons */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 24, 39, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 5;
}

.nav-arrow.left {
    left: 10px;
}

.nav-arrow.right {
    right: 10px;
}

.nav-arrow:hover {
    background: rgba(17, 24, 39, 0.9);
}

/* Image modal */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    background-color: white;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.modal-close:hover {
    opacity: 0.8;
}

.main-image img {
    cursor: zoom-in;
}

/* Modal arrows */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 24, 39, 0);
    color: white;
    border: none;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 2100;
}

.modal-arrow.left {
    left: 30px;
}

.modal-arrow.right {
    right: 30px;
}

.modal-arrow:hover {
    background: rgba(17, 24, 39, 0);
}

/* Form modal */
.form-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.form-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    position: relative;
}

.form-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.form-modal input {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px 0;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-submit {
    width: 100%;
    background-color: #28a745;
    color: white;
    padding: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #1e7e34;
}

#formMessage {
    margin-top: 10px;
    font-weight: bold;
}




@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        flex-direction: column-reverse;
    }

    .thumbnail-list {
        flex-direction: row;
    }

    .modal-arrow {
        width: 42px;
        height: 55px;
        font-size: 2.4rem;
        background: rgba(17, 24, 39, 0.75);
    }

    .modal-arrow:hover {
        background: rgba(17, 24, 39, 0.9);
    }

}