/* Product Detail Widget Styles */
.product-detail {
    display: flex;
    gap: 40px;
}

.product-detail__left {
    flex: 1;
    min-width: 0;
}

.product-detail__right {
    flex: 1;
    min-width: 0;
}

/* Image Section */
.product-detail__image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-detail__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-detail__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.product-detail__info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30%;
    color: #fff;
}

.product-detail__title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-detail__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Back Button */
.product-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    margin-bottom: 20px;
}

.product-detail__back:hover {
    color: #f7941d;
}

/* Sections */
.product-detail__section {
    margin-bottom: 30px;
}

.product-detail__section-title {
    position: relative;
    margin: 0 0 15px 0;
    padding-left: 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-detail__section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #f7941d;
    border-radius: 2px;
}

/* Features */
.product-detail__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-detail__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.product-detail__feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    object-fit: contain;
}

.product-detail__feature-text {
    font-size: 13px;
    color: #666;
}

/* Specifications */
.product-detail__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #fffaf5;
    border-radius: 8px;
}

.product-detail__spec {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail__spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 8px;
    color: #f7941d;
}

.product-detail__spec-icon svg {
    width: 32px;
    height: 32px;
}

.product-detail__spec-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.product-detail__spec-content {
    display: flex;
    flex-direction: column;
}

.product-detail__spec-label {
    font-size: 12px;
    color: #999;
}

.product-detail__spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #f7941d;
}

/* Buttons */
.product-detail__buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.product-detail__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-detail__button--primary {
    padding: 12px 24px;
    background: #f7941d;
    color: #fff;
}

.product-detail__button--primary:hover {
    background: #e8850a;
    color: #fff;
}

.product-detail__button--secondary {
    padding: 12px 24px;
    background: #333;
    color: #fff;
}

.product-detail__button--secondary:hover {
    background: #222;
    color: #fff;
}

.product-detail__button--contact {
    padding: 12px 24px;
    background: #333;
    color: #fff;
}

.product-detail__button--contact:hover {
    background: #222;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .product-detail {
        flex-direction: column;
    }
    
    .product-detail__features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .product-detail__features {
        grid-template-columns: 1fr;
    }
    
    .product-detail__buttons {
        flex-direction: column;
    }
    
    .product-detail__info {
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
    
    .product-detail__title {
        font-size: 20px;
    }
}

/* ============================
   Inquiry Modal
   ============================ */
.inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.inquiry-modal.is-active {
    display: flex;
}

.inquiry-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: inquiryFadeIn 0.3s ease;
}

.inquiry-modal__container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: inquirySlideUp 0.35s ease;
    z-index: 1;
}

.inquiry-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.inquiry-modal__close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
}

.inquiry-modal__body {
    display: flex;
    max-height: 90vh;
}

/* Left: Product Info */
.inquiry-modal__left {
    flex: 0 0 340px;
    background: #f8f9fa;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.inquiry-modal__product-image {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.inquiry-modal__product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inquiry-modal__product-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.3;
}

.inquiry-modal__product-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right: Form */
.inquiry-modal__right {
    flex: 1;
    padding: 40px 36px;
    overflow-y: auto;
}

.inquiry-modal__title {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.inquiry-modal__subtitle {
    margin: 0 0 24px 0;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.inquiry-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inquiry-modal__row {
    display: flex;
    gap: 16px;
}

.inquiry-modal__row .inquiry-modal__field {
    flex: 1;
}

.inquiry-modal__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.inquiry-modal__field label span {
    color: #f7941d;
}

.inquiry-modal__field input,
.inquiry-modal__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.inquiry-modal__field input:focus,
.inquiry-modal__field textarea:focus {
    outline: none;
    border-color: #f7941d;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.1);
    background: #fff;
}

.inquiry-modal__field textarea {
    resize: vertical;
    min-height: 80px;
}

.inquiry-modal__actions {
    padding-top: 4px;
}

.inquiry-modal__submit {
    width: 100%;
    padding: 13px 24px;
    border: none;
    border-radius: 8px;
    background: #f7941d;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.inquiry-modal__submit:hover {
    background: #e8850a;
    transform: translateY(-1px);
}

.inquiry-modal__submit:active {
    transform: translateY(0);
}

.inquiry-modal__submit.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.inquiry-modal__feedback {
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}

.inquiry-modal__feedback.is-success {
    display: block;
    color: #27ae60;
}

.inquiry-modal__feedback.is-error {
    display: block;
    color: #e74c3c;
}

/* Animations */
@keyframes inquiryFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes inquirySlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .inquiry-modal__body {
        flex-direction: column;
    }

    .inquiry-modal__left {
        flex: none;
        padding: 24px 20px;
        flex-direction: row;
        gap: 16px;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
    }

    .inquiry-modal__product-image {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        aspect-ratio: 1 / 1;
        margin-bottom: 0;
    }

    .inquiry-modal__product-title {
        font-size: 15px;
    }

    .inquiry-modal__product-desc {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 12px;
    }

    .inquiry-modal__right {
        padding: 24px 20px;
    }

    .inquiry-modal__row {
        flex-direction: column;
    }

    .inquiry-modal__container {
        max-height: 95vh;
        border-radius: 12px;
    }
}
