/* =========================================================
   RV Affiliate — Individual Product / Review Page Styles
   Inherits: variables.css, style.css
   Design Direction: Crimson Depth + Obsidian Black + Soft Pearl
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────────────────────── */
.breadcrumb-nav {
    background-color: var(--page-bg);
    padding: 100px 0 14px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-list a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--text-primary);
}

.breadcrumb-sep {
    color: var(--text-muted);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* ─────────────────────────────────────────────────────────
   PRODUCT HERO — Theme Adaptive Hero
───────────────────────────────────────────────────────── */
.product-hero {
    position: relative;
    background: var(--hero-bg);
    color: var(--text-primary);
    padding: 28px 0 clamp(40px, 5vw, 68px);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 48px;
    align-items: center;
}

/* Left Image Wrap */
.product-hero-image-wrap {
    position: relative;
    background: var(--surface-soft);
    border-radius: var(--br-card);
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-hero-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    display: block;
    transition: transform var(--transition-fast);
}

.product-hero-image-wrap:hover .product-hero-img {
    transform: scale(1.02);
}

.product-hero-platform-tag {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--br-pill);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Right Info */
.product-hero-info {
    display: flex;
    flex-direction: column;
}

.product-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-hero-meta .category {
    font-size: var(--fs-small);
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-type-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: var(--br-pill);
}

.product-hero-title {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}

.product-hero-desc {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 20px;
}

/* Pricing Row */
.product-hero-pricing {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 22px;
    padding: 12px 20px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: fit-content;
    flex-wrap: wrap;
}

.product-hero-pricing .price-current {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-hero-pricing .price-regular {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-hero-pricing .price-discount {
    font-size: 11px;
    font-weight: 700;
    background: rgba(113, 0, 20, 0.12);
    color: var(--brand);
    border: 1px solid rgba(113, 0, 20, 0.25);
    padding: 4px 10px;
    border-radius: var(--br-pill);
    letter-spacing: 0.03em;
}

.product-hero-pricing .price-unavailable {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* Action Buttons */
.product-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 14px 32px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-arrow {
    transition: transform var(--transition-fast);
}

.btn-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────
   PRODUCT DETAILS SECTION — Adaptive Background
───────────────────────────────────────────────────────── */
.product-body-section {
    background-color: var(--page-bg);
    padding: clamp(40px, 5vw, 68px) 0;
}

.product-body-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* Content Cards */
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--br-card);
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.section-card-title {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.content-prose {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.content-prose p {
    margin-bottom: 14px;
}

.content-prose p:last-child {
    margin-bottom: 0;
}

.content-prose ul {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-prose li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--text-secondary);
}

.content-prose li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--brand, var(--clr-crimson));
    font-size: 20px;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────
   SECONDARY EDITORIAL NOTICE (Post-What to Know, Claim-Safety)
───────────────────────────────────────────────────────── */
.editorial-notice-card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--br-card);
    padding: 20px 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.editorial-notice-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.editorial-notice-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────
   SIDEBAR SPECS / OVERVIEW CARD
───────────────────────────────────────────────────────── */
.product-specs-sidebar {
    position: sticky;
    top: 100px;
}

.specs-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--br-card);
    padding: 24px;
    box-shadow: var(--shadow);
}

.specs-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    opacity: 0.85;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.spec-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.spec-tag-pill {
    font-size: 11px;
    font-weight: 600;
    background: var(--surface-soft);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--br-pill);
    padding: 3px 9px;
}

.specs-cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────
   RELATED PRODUCTS SECTION & MATCHING CARD LANGUAGE
───────────────────────────────────────────────────────── */
.related-products-section {
    background-color: var(--page-bg);
    padding: 0 0 clamp(54px, 7vw, 92px);
    border-top: 1px solid var(--border);
}

.related-products-section .section-header {
    padding-top: clamp(40px, 5vw, 68px);
    margin-bottom: 32px;
}

.related-products-section .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Related Cards matching Products Catalog language */
.related-products-section .product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--br-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.related-products-section .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(113, 0, 20, 0.35);
}

.related-products-section .product-image-wrap {
    height: 180px;
    background: var(--surface-soft, #EBE8E2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.related-products-section .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    display: block;
    transition: transform var(--transition-fast);
}

.related-products-section .product-card:hover .product-image {
    transform: scale(1.04);
}

.related-products-section .product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    color: rgba(113, 0, 20, 0.30);
}

.related-products-section .platform-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--br-pill);
    box-shadow: 0 2px 6px var(--shadow);
}

.related-products-section .product-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-products-section .product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.related-products-section .category {
    font-size: var(--fs-small);
    color: var(--brand, var(--clr-crimson));
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.related-products-section .product-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.related-products-section .product-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products-section .product-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.related-products-section .price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.related-products-section .price-regular {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.75;
}

.related-products-section .price-discount {
    font-size: 11px;
    font-weight: 700;
    background: rgba(113, 0, 20, 0.08);
    color: var(--brand, var(--clr-crimson));
    padding: 3px 8px;
    border-radius: var(--br-pill);
}

.related-products-section .price-unavailable {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.related-products-section .product-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.related-products-section .product-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
}

.related-products-section .product-actions .text-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.related-products-section .product-actions .text-link:hover {
    color: var(--brand, var(--clr-crimson));
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .product-hero-grid {
        grid-template-columns: 300px 1fr;
        gap: 32px;
    }

    .product-hero-image-wrap {
        height: 290px;
    }

    .product-body-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-specs-sidebar {
        position: static;
    }

    .related-products-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-hero-image-wrap {
        height: 240px;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .product-hero-title {
        font-size: 28px;
    }

    .product-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .content-card {
        padding: 24px;
    }

    .related-products-section .product-grid {
        grid-template-columns: 1fr;
    }
}
