/* ─── JDMHiace Deals — Product Page Layout ─── */

.hiace-product-page {
    max-width: 960px;
    margin: 0 auto;
}

/* Hero: Image + Buy Box */
.hiace-product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.hiace-product-hero-image {
    background: var(--jdm-card-bg, #fff);
    border: 1px solid var(--jdm-card-border, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiace-product-hero-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px;
}

.hiace-product-hero-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hiace-product-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--bs-emphasis-color, #111);
}

.hiace-product-hero-excerpt {
    color: var(--bs-body-color, #4b5563);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA Button */
.hiace-deal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #c41e3a;
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.25);
}

.hiace-deal-cta-btn:hover {
    background: #a01830;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35);
    color: #fff !important;
}

/* Trust Indicators */
.hiace-product-trust {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hiace-product-trust li {
    font-size: 0.88rem;
    color: #22c55e;
    font-weight: 500;
}

/* Description Section */
.hiace-product-description {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--jdm-card-bg, #f9fafb);
    border: 1px solid var(--jdm-card-border, #e5e7eb);
    border-radius: 12px;
}

.hiace-product-description h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--bs-emphasis-color, #111);
}

.hiace-product-description p {
    color: var(--bs-body-color, #374151);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.hiace-product-description p:last-child {
    margin-bottom: 0;
}

/* Bottom CTA */
.hiace-product-bottom-cta {
    text-align: center;
    padding: 2rem;
    background: var(--jdm-card-bg, #fef2f2);
    border: 1px solid var(--jdm-card-border, #fecaca);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hiace-deal-disclosure {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: var(--bs-body-color, #6b7280);
    opacity: 0.7;
}

/* ─── Shop Archive Masonry ─── */
.jdm-shop-query .wp-block-post-template {
    display: block !important;
    column-count: 3;
    column-gap: 1.25rem;
}

.jdm-shop-query .wp-block-post-template > li {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    list-style: none;
}

@media (max-width: 991px) {
    .jdm-shop-query .wp-block-post-template {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .jdm-shop-query .wp-block-post-template {
        column-count: 1;
    }
}

/* ─── Shop Archive Filters ─── */
.hiace-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hiace-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--jdm-card-bg, #f3f4f6);
    color: var(--bs-body-color, #374151);
    border: 1px solid var(--jdm-card-border, #e5e7eb);
    transition: background 0.2s, border-color 0.2s;
}

.hiace-filter-pill:hover {
    background: var(--bs-tertiary-bg, #e5e7eb);
    color: var(--bs-body-color, #111);
    text-decoration: none;
}

.hiace-filter-pill.active {
    background: #c41e3a;
    color: #fff;
    border-color: #c41e3a;
}

.hiace-filter-pill.active:hover {
    background: #a01830;
    border-color: #a01830;
    color: #fff;
}

.hiace-filter-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ─── Dark Mode ─── */
[data-bs-theme="dark"] .hiace-product-hero-image {
    background: var(--bs-secondary-bg, #1a1d24);
}

[data-bs-theme="dark"] .hiace-product-trust li {
    color: #4ade80;
}

[data-bs-theme="dark"] .hiace-product-bottom-cta {
    background: rgba(196, 30, 58, 0.1);
    border-color: rgba(196, 30, 58, 0.25);
}

[data-bs-theme="dark"] .hiace-deal-cta-btn {
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

[data-bs-theme="dark"] .hiace-deal-cta-btn:hover {
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.55);
}

/* ─── Light Mode overrides ─── */
[data-bs-theme="light"] .hiace-product-bottom-cta {
    background: #fef2f2;
    border-color: #fecaca;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hiace-product-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hiace-product-hero-image {
        padding: 1rem;
    }

    .hiace-product-hero-image img {
        max-height: 300px;
    }

    .hiace-product-hero-title {
        font-size: 1.25rem;
    }

    .hiace-deal-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .hiace-product-description {
        padding: 1.25rem;
    }

    .hiace-product-bottom-cta {
        padding: 1.25rem;
    }
}
