/* WW Dealer Catalog — Single Product Page */

.ww-product-single {
    --ww-ps-border:     #e8e8e8;
    --ww-ps-bg-alt:     #f6f6f6;
    --ww-ps-text:       #1a1a1a;
    --ww-ps-text-muted: #666;
    --ww-ps-radius:     6px;
}

/* ── Page layout: left content + sticky right form ──────────── */
.ww-ps-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.ww-ps-layout.ww-ps-has-form {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.ww-ps-left { min-width: 0; }

/* ── Sticky right form column ───────────────────────────────── */
.ww-ps-right {
    position: sticky;
    top: 24px;
}
.ww-ps-form-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ww-color-a);
    margin: 0 0 12px;
}
.ww-ps-form-sticky .ww-woodland-activity {
    border-radius: 6px;
    overflow: hidden;
}

/* ── Hero inner (image + details side by side) ──────────────── */
.ww-ps-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
    padding: 36px 0 32px;
}

/* ── Gallery ────────────────────────────────────────────────── */
.ww-ps-primary-image {
    background: #f8f8f8; border: 1px solid var(--ww-ps-border);
    border-radius: var(--ww-ps-radius); padding: 20px;
    aspect-ratio: 1; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}
.ww-ps-primary-image img { width: 100%; height: 100%; object-fit: contain; }
.ww-ps-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ww-ps-thumb {
    width: 60px; height: 60px; border: 2px solid var(--ww-ps-border);
    border-radius: 4px; background: #f8f8f8; padding: 3px;
    cursor: pointer; transition: border-color 0.15s; overflow: hidden;
}
.ww-ps-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ww-ps-thumb:hover, .ww-ps-thumb.active { border-color: var(--ww-color-a); }
.ww-ps-no-image {
    background: #f8f8f8; border: 1px solid var(--ww-ps-border);
    border-radius: var(--ww-ps-radius); aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: var(--ww-ps-text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── Product details ────────────────────────────────────────── */
.ww-ps-brand-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ww-color-c); margin-bottom: 8px;
}
.ww-ps-title {
    font-size: clamp(20px, 2.5vw, 28px); font-weight: 800;
    line-height: 1.2; margin: 0 0 8px;
    color: var(--ww-color-a);
}
.ww-ps-model { font-size: 13px; color: var(--ww-ps-text-muted); margin: 0 0 18px; }

/* ── Highlights ─────────────────────────────────────────────── */
.ww-ps-highlights {
    display: flex; gap: 0; border: 1px solid var(--ww-ps-border);
    border-radius: var(--ww-ps-radius); overflow: hidden; margin-bottom: 20px;
}
.ww-ps-highlight {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 12px 6px; background: var(--ww-ps-bg-alt);
    border-right: 1px solid var(--ww-ps-border); text-align: center;
}
.ww-ps-highlight:last-child { border-right: none; }
.ww-ps-hl-value { font-size: 17px; font-weight: 800; color: var(--ww-color-a); line-height: 1.1; }
.ww-ps-hl-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ww-ps-text-muted); margin-top: 3px; }

/* ── Pricing ────────────────────────────────────────────────── */
.ww-ps-pricing { margin-bottom: 18px; }
.ww-ps-price-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ww-ps-text-muted); display: block; }
.ww-ps-price-amount { font-size: 30px; font-weight: 800; color: var(--ww-ps-text); line-height: 1; }

/* ── Variants ───────────────────────────────────────────────── */
.ww-ps-variants { margin-bottom: 18px; }
.ww-ps-variants-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ww-color-c); margin: 0 0 8px; }
.ww-ps-variant-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ww-ps-variant-btn {
    display: flex; flex-direction: column; align-items: center;
    padding: 7px 14px; border: 2px solid var(--ww-ps-border);
    border-radius: var(--ww-ps-radius); font-size: 13px; font-weight: 600;
    color: var(--ww-ps-text); background: #fff;
}
.ww-ps-variant-btn.active { border-color: var(--ww-color-a); background: var(--ww-ps-bg-alt); }
.ww-ps-variant-price { font-size: 11px; color: var(--ww-ps-text-muted); font-weight: 400; margin-top: 2px; }

/* ── CTAs ───────────────────────────────────────────────────── */
.ww-ps-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ww-ps-btn {
    display: inline-flex; align-items: center; padding: 11px 22px;
    border-radius: var(--ww-ps-radius); font-size: 14px; font-weight: 700;
    text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.ww-ps-btn-call { background: var(--ww-color-a); color: #fff; }
.ww-ps-btn-call:hover { background: var(--ww-color-c); color: #fff; text-decoration: none; }
.ww-ps-btn-secondary { background: var(--ww-color-b); color: #fff; }
.ww-ps-btn-secondary:hover { background: var(--ww-color-d); color: #fff; text-decoration: none; }

/* ── Warranty + dealer notes ────────────────────────────────── */
.ww-ps-warranty {
    font-size: 13px; color: var(--ww-ps-text-muted);
    display: flex; align-items: center; gap: 6px;
    padding: 9px 12px; background: var(--ww-ps-bg-alt);
    border-radius: var(--ww-ps-radius); border: 1px solid var(--ww-ps-border);
    margin-bottom: 10px;
}
.ww-ps-dealer-notes {
    font-size: 13px; padding: 12px 14px;
    background: #fffbea; border: 1px solid #f0d060;
    border-radius: var(--ww-ps-radius); line-height: 1.5;
}

/* ── Content sections (below hero) ─────────────────────────── */
.ww-ps-content-section { margin-bottom: 28px; }

.ww-ps-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ww-color-a);
    margin: 0 0 10px;
}

.ww-ps-content-section .ww-woodland-card {
    border-radius: 6px;
    overflow: hidden;
}

/* ── Features grid ──────────────────────────────────────────── */
.ww-ps-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 4px; }
.ww-ps-feature { padding: 14px; border-left: 3px solid var(--ww-color-a); }
.ww-ps-feature-title { font-size: 14px; font-weight: 700; margin: 0 0 5px; color: var(--ww-color-a); }
.ww-ps-feature-desc { font-size: 13px; color: var(--ww-ps-text-muted); line-height: 1.5; margin: 0; }

/* ── Specs table ────────────────────────────────────────────── */
.ww-ps-specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ww-ps-specs-table tr { border-bottom: 1px solid var(--ww-ps-border); }
.ww-ps-specs-table tr:last-child { border-bottom: none; }
.ww-ps-specs-table tr:nth-child(even) { background: var(--ww-ps-bg-alt); }
.ww-ps-specs-table th { width: 40%; padding: 9px 14px; text-align: left; font-weight: 600; vertical-align: top; color: var(--ww-color-c); }
.ww-ps-specs-table td { padding: 9px 14px; color: #444; vertical-align: top; }

/* ── Back link ──────────────────────────────────────────────── */
.ww-ps-back {
    padding: 20px 0 8px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.ww-ps-back .ww-ps-back-link,
.ww-ps-back .ww-ps-back-bp {
    font-size: 1em;
    font-weight: normal;
    color: var(--ww-color-c);
    text-decoration: none;
}
.ww-ps-back .ww-ps-back-link:hover,
.ww-ps-back .ww-ps-back-bp:hover { color: var(--ww-color-a); text-decoration: none; }
.ww-ps-back .ww-ps-back-sep {
    font-size: 1em;
    font-weight: normal;
    color: #bbb;
    padding: 0 6px;
    user-select: none;
}

/* ── Content prose ──────────────────────────────────────────── */
.ww-ps-content { font-size: 15px; line-height: 1.7; color: #444; padding: 4px; }
.ww-ps-content p { margin-bottom: 1em; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ww-ps-layout.ww-ps-has-form { grid-template-columns: 1fr 300px; }
}
@media (max-width: 860px) {
    .ww-ps-layout.ww-ps-has-form { grid-template-columns: 1fr; }
    .ww-ps-right { position: static; }
    .ww-ps-hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .ww-ps-highlights { flex-wrap: wrap; }
    .ww-ps-highlight { flex: 1 0 40%; }
    .ww-ps-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ww-ps-thumbs { display: none; }
    .ww-ps-price-amount { font-size: 24px; }
}

/* ── Top nav back link ───────────────────────────────────────── */
.ww-ps-topnav {
    padding: 14px 0 0;
}
.ww-ps-topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
/* Override the bottom back-link style for top position */
.ww-ps-topnav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.ww-ps-topnav .ww-ps-back-link,
.ww-ps-topnav .ww-ps-back-bp {
    font-size: 1em;
    font-weight: normal;
    color: var(--ww-color-c);
    text-decoration: none;
}
.ww-ps-topnav .ww-ps-back-link:hover,
.ww-ps-topnav .ww-ps-back-bp:hover { color: var(--ww-color-a); text-decoration: none; }
.ww-ps-topnav .ww-ps-back-sep {
    font-size: 1em;
    font-weight: normal;
    color: #bbb;
    padding: 0 6px;
    user-select: none;
}

/* ── Phone button icon + financing link ──────────────────────── */
.ww-btn-icon {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
    color: #fff;
    stroke: currentColor;
}
.ww-ps-btn-call,
.ww-ps-btn-call:hover {
    color: #fff !important;
}
.ww-ps-financing-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ww-color-a);
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 11px 4px;
    white-space: nowrap;
    transition: color 0.15s;
}
.ww-ps-financing-link:hover {
    color: var(--ww-color-c);
    text-decoration: underline;
}

/* ── Image zoom — handled by JS cursor tracking ─────────────── */
.ww-ps-primary-image {
    overflow: hidden;
    cursor: crosshair;
}
.ww-ps-primary-image img {
    will-change: transform;
}

/* ── Interest form card — explicit white box ─────────────────── */
.ww-ps-form-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
}
.ww-ps-form-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ww-color-a);
    margin: 0 0 14px;
}


/* ── Back link with BP context ───────────────────────────────── */
.ww-ps-back-link { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; text-decoration: none; color: var(--ww-color-a); font-weight: 600; }
.ww-ps-back-link:hover { text-decoration: none; }
.ww-ps-back-all { color: var(--ww-color-a); font-weight: 600; }
.ww-ps-back-sep  { color: #ccc; font-weight: 300; }
.ww-ps-back-bp   { color: var(--ww-color-a); font-weight: 600; text-decoration: none; }
.ww-ps-back-bp:hover { text-decoration: underline; }

/* ── Price tag badge ─────────────────────────────────────────── */
.ww-ps-price-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.ww-price-call-badge {
    display: inline-flex; align-items: center;
    text-decoration: none; cursor: pointer;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.ww-price-call-badge:hover { opacity: 0.85; }
.ww-price-call-badge svg {
    height: 60px; width: auto;
    display: block;
}
@media ( max-width: 600px ) {
    .ww-price-call-badge svg { height: 40px; }
}
@media ( max-width: 380px ) {
    .ww-price-call-badge svg { height: 32px; }
}
.ww-price-disclaimer {
    font-size: 11px; color: #888; font-style: italic;
    margin: 4px 0 12px; line-height: 1.4;
}

/* ── Financing link vertical alignment ───────────────────────── */
.ww-ps-financing-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ww-color-a);
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0 4px;
    white-space: nowrap;
    transition: color 0.15s;
    line-height: 1;
}
.ww-ps-financing-link:hover { color: var(--ww-color-c); }
