/* ---- Product Single Page Styles ---- */

/* Hero */
.xhp-product-hero {
    background: #fff;
    padding: 30px 0 50px;
}
.xhp-product-hero__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: stretch;
    padding: 0;
}
.xhp-product-hero__image-wrap {
    flex: 1 1 45%;
    max-width: 50%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.xhp-product-hero__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}
.xhp-product-hero__image-wrap:hover .xhp-product-hero__image {
    transform: scale(1.03);
}
.xhp-product-hero__image--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    gap: 12px;
    width: 100%;
    height: 100%;
}
.xhp-product-hero__placeholder-icon {
    width: 80px;
    height: 80px;
    opacity: 0.4;
}
.xhp-product-hero__placeholder-text {
    font-size: 14px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.xhp-product-hero__info {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.xhp-product-hero__category-tag {
    display: inline-block;
    background-color: var(--xhp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 3px;
    width: fit-content;
}
.xhp-product-hero__title {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    letter-spacing: 0.3px;
    margin: 0;
}
.xhp-product-hero__description {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    max-width: 600px;
}
.xhp-product-hero__applications {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}
.xhp-product-hero__applications-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--xhp-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    padding-top: 1px;
}
.xhp-product-hero__app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.xhp-product-hero__app-tag {
    background-color: #f0f0f0;
    color: #444;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
.xhp-product-hero__app-tag:hover {
    background-color: var(--xhp-accent-light);
    color: var(--xhp-accent);
}
.xhp-product-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.xhp-btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Carousel */
.xhp-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.xhp-carousel-main {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}
.xhp-carousel__active {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    height: 100%;
}
.xhp-carousel-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}
.xhp-carousel-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}
.xhp-carousel-thumb:hover {
    border-color: var(--xhp-accent);
}

/* Product Body */
.xhp-product-body {
    background-color: #fff;
    padding: 40px 0 60px;
    width: 100%;
}
.xhp-product-body__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 0;
}
.xhp-product-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Tabs */
.xhp-tabs-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--xhp-gray-border);
    overflow: hidden;
}
.xhp-tabs-card__header {
    background-color: #f8f9fa;
    display: flex;
    border-bottom: 1px solid var(--xhp-gray-border);
    padding: 0;
}
.xhp-tabs-card__tab {
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    font-family: inherit;
    outline: none;
}
.xhp-tabs-card__tab:hover {
    color: var(--xhp-primary);
    background-color: #fff;
}
.xhp-tabs-card__tab--active {
    color: var(--xhp-primary);
    border-bottom-color: var(--xhp-accent);
    background-color: #fff;
}
.xhp-tabs-card__body {
    padding: 24px;
}
.xhp-tabs-card__panel {
    display: none;
    animation: xhpFadeIn 0.3s ease;
}
.xhp-tabs-card__panel--active {
    display: block;
}
@keyframes xhpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Product Details */
.xhp-product-content {
    margin-bottom: 24px;
}
.xhp-product-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}
.xhp-product-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--xhp-primary);
    margin: 1.4em 0 0.6em;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}
.xhp-product-content h3::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background-color: var(--xhp-accent);
    margin-right: 0;
    transform: rotate(45deg);
}
.xhp-product-content h3:first-of-type {
    margin-top: 0;
}

/* Key Parameters */
.xhp-params-grid-wrap {
    background-color: var(--xhp-gray-light);
    padding: 20px 24px;
    border-radius: 6px;
    margin-bottom: 24px;
}
.xhp-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
}
.xhp-params-grid-item {
    display: flex;
    flex-direction: column;
}
.xhp-params-grid-label {
    font-weight: 600;
    color: var(--xhp-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.xhp-params-grid-value {
    font-size: 14px;
    color: #555;
    word-break: break-word;
}

/* Parameter Table */
.xhp-parameter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.xhp-parameter-table tr {
    border-bottom: 1px solid var(--xhp-gray-border);
}
.xhp-parameter-table tr:last-child {
    border-bottom: none;
}
.xhp-parameter-table td {
    padding: 12px 8px;
    color: #444;
    vertical-align: top;
}
.xhp-parameter-table tr:nth-child(even) {
    background-color: var(--xhp-gray-light);
}

/* FAQs */
.xhp-faqs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.xhp-faq-item {
    border-bottom: 1px solid var(--xhp-gray-border);
    padding: 16px 0;
}
.xhp-faq-item:last-child {
    border-bottom: none;
}
.xhp-faq-item__question {
    font-size: 16px;
    font-weight: 600;
    color: var(--xhp-primary);
    margin-bottom: 6px;
}
.xhp-faq-item__answer {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* Resources */
.xhp-resources-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--xhp-gray-border);
}
.xhp-resources-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--xhp-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.xhp-resources-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.xhp-resources-table th,
.xhp-resources-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--xhp-gray-border);
    text-align: left;
    vertical-align: middle;
}
.xhp-resources-table thead th {
    font-weight: 600;
    color: var(--xhp-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.xhp-resources-table tbody tr:last-child td {
    border-bottom: 1px solid var(--xhp-gray-border);
}
.xhp-resources-table tbody td:first-child {
    width: 70%;
}
.xhp-resources-table tbody td:last-child {
    width: 30%;
    color: #888;
    font-size: 13px;
}
.xhp-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--xhp-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.xhp-resource-link:hover {
    color: var(--xhp-primary);
    text-decoration: underline;
}
.xhp-resource-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* Contact Block (inside product) */
.xhp-contact-block {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--xhp-gray-border);
    padding: 30px 35px;
    margin-top: 30px;
}
.xhp-contact-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--xhp-primary);
    margin-bottom: 24px;
}
.xhp-btn--submit {
    padding: 12px 40px;
    font-size: 14px;
    background-color: var(--xhp-accent);
    border-color: var(--xhp-accent);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.xhp-btn--submit:hover {
    background-color: transparent;
    color: var(--xhp-accent);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .xhp-product-hero__inner {
        gap: 35px;
        padding: 30px 24px 40px;
    }
    .xhp-product-hero__image-wrap {
        flex: 1 1 40%;
        max-width: 45%;
    }
    .xhp-product-hero__title {
        font-size: 28px;
    }
    .xhp-product-body__inner {
        gap: 30px;
        padding: 0 24px;
    }
}
@media (max-width: 1024px) {
    .xhp-product-hero__inner {
        flex-direction: column;
        gap: 25px;
        padding: 24px 20px 32px;
    }
    .xhp-product-hero__image-wrap {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    .xhp-product-hero__info {
        flex: 1 1 auto;
    }
    .xhp-product-hero__title {
        font-size: 26px;
    }
    .xhp-product-body__inner {
        flex-direction: column;
        padding: 0 20px;
        gap: 24px;
    }
    .xhp-product-main {
        order: -1; 
    }
}
@media (max-width: 768px) {
    .xhp-product-hero__inner {
        padding: 20px 16px 28px;
        gap: 18px;
    }
    .xhp-product-hero__image-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 6px;
    }
    .xhp-product-hero__title {
        font-size: 22px;
    }
    .xhp-product-hero__description {
        font-size: 13px;
    }
    .xhp-product-hero__app-tag {
        font-size: 10px;
        padding: 3px 9px;
    }
    .xhp-btn {
        padding: 10px 18px;
        font-size: 12px;
        letter-spacing: 0.4px;
        border-radius: 4px;
    }
    .xhp-product-body {
        padding: 24px 0 40px;
    }
    .xhp-product-body__inner {
        padding: 0 16px;
        gap: 20px;
    }
    .xhp-tabs-card__header {
        flex-wrap: wrap;
    }
    .xhp-tabs-card__tab {
        padding: 12px 16px;
        font-size: 13px;
        flex: 1 0 auto;
        text-align: center;
    }
    .xhp-tabs-card__body {
        padding: 16px;
    }
    .xhp-faq-item__question {
        font-size: 14px;
    }
    .xhp-faq-item__answer {
        font-size: 13px;
    }
    .xhp-contact-block {
        padding: 20px;
    }
    .xhp-form-row--two .xhp-form-field {
        flex: 1 1 100%;
        min-width: 0;
    }
    .xhp-form-row {
        flex-direction: column;
        gap: 14px;
    }
    .xhp-form-row--submit {
        align-items: stretch;
    }
    .xhp-btn--submit {
        width: 100%;
        justify-content: center;
    }
    .xhp-params-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
    }
    .xhp-params-grid-wrap {
        padding: 16px;
    }
    .xhp-parameter-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .xhp-product-hero__image-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 4px;
    }
    .xhp-product-hero__title {
        font-size: 19px;
    }
    .xhp-product-hero__actions {
        flex-direction: column;
        gap: 8px;
    }
    .xhp-btn {
        width: 100%;
        justify-content: center;
    }
    .xhp-tabs-card__tab {
        font-size: 11px;
        padding: 10px 12px;
    }
    .xhp-faq-item__question {
        font-size: 13px;
    }
    .xhp-faq-item__answer {
        font-size: 12px;
    }
    .xhp-params-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .xhp-params-grid-wrap {
        padding: 12px;
    }
}