/* ===================================
   Product Detail Page
   =================================== */
.product-detail {
    padding: 80px 20px;
    background: #F5F7FA;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

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

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--gray);
    transition: all 0.3s ease;
}

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

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

.product-info h1 {
    margin-bottom: 1rem;
}

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

.product-meta .model {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.spec-table tr {
    border-bottom: 1px solid var(--gray);
}

.spec-table td {
    padding: 12px 0;
}

.spec-table td:first-child {
    font-weight: 600;
    width: 30%;
    color: var(--primary-color);
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.customization-options {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.customization-options h3 {
    margin-bottom: 1rem;
}

.customization-options ul {
    margin-left: 1.5rem;
}

.customization-options li {
    margin-bottom: 0.5rem;
}

/* Modal for inquiry */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===================================
   Responsive Design - Product Detail
   =================================== */
@media (max-width: 968px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
}