/* ============================================================
   RecorderMax — product.css
   Single product page styles. Loaded on is_product() only.
   Mirrors the approved tr900 mockup design exactly.
   ============================================================ */

/* ── Breadcrumb bar ──────────────────────────────────────── */
.rm-product-breadcrumb-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 10px 5vw;
}
.rm-product-breadcrumb {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}
.rm-product-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.rm-product-breadcrumb a:hover { color: var(--amber-d); }
.rm-product-breadcrumb .sep { color: var(--border); font-size: 14px; }
.rm-product-breadcrumb .current { color: var(--dark); font-weight: 600; }

/* ── Product hero section ────────────────────────────────── */
.rm-product-section { padding: 40px 5vw 60px; background: var(--bg); }
.rm-product-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* ── Gallery ─────────────────────────────────────────────── */
.rm-gallery { display: flex; flex-direction: column; gap: 12px; }

.rm-gallery-main {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
    aspect-ratio: 1/1;
}
.rm-gallery-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .4s ease;
    padding: 20px;
}
.rm-gallery-slide.active { opacity: 1; }
.rm-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.rm-gallery-slide svg { width: 100%; height: 100%; max-width: 340px; }
.rm-gallery-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #ccc;
    white-space: nowrap;
    letter-spacing: .3px;
    pointer-events: none;
}

.rm-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.rm-gallery-btn--prev { left: 10px; }
.rm-gallery-btn--next { right: 10px; }
.rm-gallery-btn:hover { background: var(--amber); border-color: var(--amber); }
.rm-gallery-btn svg { width: 14px; height: 14px; fill: var(--mid); transition: fill .2s; }
.rm-gallery-btn:hover svg { fill: var(--black); }

.rm-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.rm-gallery-thumb {
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg2);
    border: 2px solid var(--border);
    aspect-ratio: 1/1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: border-color .2s;
}
.rm-gallery-thumb:hover { border-color: var(--amber); }
.rm-gallery-thumb.active { border-color: var(--amber-d); }
.rm-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rm-gallery-thumb svg { width: 100%; height: 100%; }

/* ── Product info panel ──────────────────────────────────── */
.rm-product-info {}

.rm-product-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.rm-badge-bestseller {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--amber);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
}
.rm-badge-instock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #edf7f1;
    color: #1a7a4a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid #a8dbca;
}
.rm-badge-instock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a7a4a;
    flex-shrink: 0;
}
.rm-badge-outofstock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff0f0;
    color: #a32020;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid #f0aaaa;
}

.rm-product-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber-d);
    margin-bottom: 6px;
}
.rm-product-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--black);
    line-height: 1.1;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}
.rm-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.rm-rating-stars { color: var(--amber); font-size: 16px; letter-spacing: 1px; }
.rm-rating-score { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; color: var(--black); }
.rm-rating-count { font-size: 13px; color: var(--muted); }
.rm-rating-count a { color: var(--amber-d); text-decoration: none; font-weight: 600; }
.rm-rating-count a:hover { text-decoration: underline; }

.rm-product-sku-ref {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}
.rm-product-sku-ref #rmSkuRef {
    font-family: monospace;
    font-weight: 700;
    color: var(--dark);
    background: var(--bg2);
    padding: 2px 7px;
    border-radius: 3px;
    border: 1px solid var(--border);
}
.rm-product-sku-ref .rm-badge-instock,
.rm-product-sku-ref .rm-badge-outofstock {
    margin-left: 10px;
    vertical-align: middle;
}
.rm-info-divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Channel selector ────────────────────────────────────── */
.rm-channel-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 10px;
}
.rm-channel-label em { font-style: normal; color: var(--amber-d); }

.rm-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.rm-ch-btn {
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all .16s;
    user-select: none;
}
.rm-ch-btn:hover { border-color: var(--amber); background: var(--amber-l); }
.rm-ch-btn.active { border-color: var(--amber-d); background: var(--amber-l); }
.rm-ch-btn.disabled { opacity: .4; cursor: not-allowed; }

.rm-ch-num {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--muted);
    transition: color .16s;
    line-height: 1;
}
.rm-ch-btn:hover .rm-ch-num,
.rm-ch-btn.active .rm-ch-num { color: var(--amber-d); }

.rm-ch-lbl {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-top: 3px;
}
.rm-ch-btn.active .rm-ch-lbl { color: var(--amber-d); }

.rm-channel-hint {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 18px;
}
.rm-channel-hint::before {
    content: 'ℹ';
    width: 16px;
    height: 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

/* ── Price block ─────────────────────────────────────────── */
.rm-price-block { margin-bottom: 18px; }

.rm-price-shipping {
    font-size: 12px;
    color: #1a7a4a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}
.rm-price-shipping::before { content: '🚚'; font-size: 13px; }

.rm-price-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.rm-price-main--select {
    align-items: center;
}
.rm-price-select-prompt {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mid, #888);
    font-style: italic;
}
.rm-price-currency {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
}
.rm-price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -1.5px;
    line-height: 1;
}
.rm-price-was {
    font-size: 18px;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 500;
}
.rm-price-save {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: .5px;
}
.rm-price-per-line {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.rm-price-per-line strong { color: var(--dark); font-weight: 700; }

/* ── Qty + CTA ───────────────────────────────────────────── */
.rm-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.rm-qty-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--mid);
}
.rm-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.rm-qty-btn {
    width: 36px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--bg2);
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--mid);
    transition: background .15s, color .15s;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}
.rm-qty-btn:hover { background: var(--amber-l); color: var(--amber-d); }
.rm-qty-val {
    width: 44px;
    height: 38px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--black);
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    outline: none;
}

/* Add to Cart button */
.rm-btn-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--amber);
    color: var(--black);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
}
.rm-btn-cart:hover { background: var(--amber-d); color: var(--white); transform: translateY(-1px); }
.rm-btn-cart:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.rm-btn-cart svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* WhatsApp button */
.rm-btn-wa {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
    text-decoration: none;
    margin-top: 8px;
}
.rm-btn-wa:hover { background: #1ebe5b; transform: translateY(-1px); }
.rm-btn-wa svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Variation error message */
.rm-variation-error {
    font-size: 12px;
    color: #a32020;
    background: #fff0f0;
    border: 1px solid #f0aaaa;
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-bottom: 12px;
    display: none;
}
.rm-variation-error.visible { display: block; }

/* ── Trust grid ──────────────────────────────────────────── */
.rm-product-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.rm-product-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.rm-product-trust-icon {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.rm-product-trust-icon svg { width: 18px !important; height: 18px !important; }
.rm-trust-strong { display: block; font-size: 12px; font-weight: 700; color: var(--black); }
.rm-trust-sub    { font-size: 11px; color: var(--muted); }

/* ── Payment row ─────────────────────────────────────────── */
.rm-payment-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.rm-pay-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-right: 2px;
}
.rm-pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mid);
}
.rm-pay-jz  { color: #6a1b9a; border-color: #d1a8e8; background: #f9f0ff; }
.rm-pay-ep  { color: #007c3d; border-color: #a0d8b3; background: #edf7f1; }
.rm-pay-bt  { color: #1457a8; border-color: #a5c0e8; background: #e8f0fa; }
.rm-pay-cod { color: #8a4e08; border-color: #edcb8a; background: #fbf0e0; }

/* ══ STICKY TABS ══════════════════════════════════════════ */
.rm-tabs-outer {
    position: sticky;
    top: 62px;
    z-index: 200;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.rm-tabs-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rm-tabs-nav::-webkit-scrollbar { display: none; }
.rm-tab-btn {
    padding: 16px 22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: -2px;
}
.rm-tab-btn:hover  { color: var(--amber-d); }
.rm-tab-btn.active { color: var(--amber-d); border-bottom-color: var(--amber-d); }
.rm-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--amber-l);
    color: var(--amber-d);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    margin-left: 5px;
}

/* ══ TAB PANELS ═══════════════════════════════════════════ */
.rm-tabs-content { background: var(--bg); }
.rm-tab-panel {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 5vw 64px;
}
.rm-tab-panel.active { display: block; }

/* ── Description tab ─────────────────────────────────────── */
.rm-desc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}
.rm-desc-lead {
    font-size: 16px;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 24px;
}
.rm-desc-section-h {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--black);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.rm-desc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.rm-desc-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--mid);
    line-height: 1.5;
}
.rm-desc-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--amber);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 2px;
}
.rm-compat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rm-compat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--amber-l);
    border: 1px solid rgba(244,173,61,.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--amber-d);
}
.rm-desc-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}
.rm-desc-box p { font-size: 14px; color: var(--mid); line-height: 1.75; }
.rm-inbox-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rm-inbox-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mid);
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.rm-inbox-list li::before { content: '✓'; color: #1a7a4a; font-weight: 800; flex-shrink: 0; }

/* ── Specifications tab ──────────────────────────────────── */
.rm-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.rm-specs-table-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.rm-specs-table-head {
    background: var(--black);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 18px;
    letter-spacing: .3px;
}
.rm-specs-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.rm-specs-tbl tr { border-bottom: 1px solid var(--border); }
.rm-specs-tbl tr:last-child { border-bottom: none; }
.rm-specs-tbl tr:nth-child(even) { background: var(--bg2); }
.rm-specs-tbl td {
    padding: 10px 16px;
    vertical-align: top;
    line-height: 1.45;
}
.rm-specs-tbl td:first-child { color: var(--mid); font-weight: 600; width: 45%; }
.rm-specs-tbl td:last-child  { color: var(--dark); font-weight: 500; }

/* Technical parameters section */
.rm-tech-params {
    margin-top: 32px;
}
.rm-tech-params .rm-specs-tbl td:first-child { width: 25%; }
.rm-tech-section-row td {
    background: var(--bg2) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .8px !important;
    color: var(--mid) !important;
    padding: 10px 16px !important;
}

/* ── Sample recording tab ────────────────────────────────── */
.rm-sample-wrap { max-width: 700px; }
.rm-sample-player {
    background: var(--black);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.rm-sample-track {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.rm-sample-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--amber);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .15s;
}
.rm-sample-play-btn:hover { background: var(--amber-d); transform: scale(1.05); }
.rm-sample-play-btn svg { width: 22px; height: 22px; fill: var(--black); }

.rm-sample-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 3px;
}
.rm-sample-desc { font-size: 11px; color: #555; }

.rm-sample-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 36px;
    margin-bottom: 10px;
    overflow: hidden;
}
.rm-sample-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #555;
    font-family: monospace;
}
.rm-sample-note {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--mid);
    line-height: 1.65;
}
.rm-native-audio {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    accent-color: var(--amber);
}

/* ── Downloads tab ───────────────────────────────────────── */
.rm-downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rm-dl-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, border-color .2s, transform .15s;
    cursor: pointer;
}
.rm-dl-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: var(--amber);
    transform: translateY(-1px);
}
.rm-dl-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.rm-dl-icon svg { width: 20px !important; height: 20px !important; }
.rm-dl-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 2px;
}
.rm-dl-meta { font-size: 11px; color: var(--muted); }
.rm-dl-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--amber-d);
    background: var(--amber-l);
    border: 1px solid rgba(244,173,61,.3);
    border-radius: 4px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* ── Reviews tab ─────────────────────────────────────────── */
.rm-reviews-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}
.rm-reviews-aside {
    position: sticky;
    top: 120px;
}
.rm-reviews-score-big {
    font-family: 'Poppins', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
}
.rm-reviews-stars-big { color: var(--amber); font-size: 22px; display: block; margin: 4px 0; }
.rm-reviews-total-ct  { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.rm-rbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 12px;
    color: var(--mid);
}
.rm-rbar-lbl { width: 24px; flex-shrink: 0; font-weight: 600; }
.rm-rbar-track {
    flex: 1;
    height: 8px;
    background: var(--bg2);
    border-radius: 4px;
    overflow: hidden;
}
.rm-rbar-fill {
    height: 100%;
    background: var(--amber);
    border-radius: 4px;
    transition: width .8s ease;
}
.rm-rbar-ct { width: 20px; text-align: right; flex-shrink: 0; }

.rm-reviews-write-btn {
    width: 100%;
    margin-top: 18px;
    background: var(--amber-l);
    border: 1.5px solid var(--amber);
    color: var(--amber-d);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 11px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s;
}
.rm-reviews-write-btn:hover { background: var(--amber); color: var(--black); }

.rm-reviews-list { display: flex; flex-direction: column; gap: 20px; }
.rm-review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
}
.rm-review-stars { color: var(--amber); font-size: 16px; margin-bottom: 10px; letter-spacing: 1px; }
.rm-review-text { font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 14px; }
.rm-reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.rm-reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--amber);
    display: grid;
    place-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: var(--black);
    flex-shrink: 0;
}
.rm-reviewer-name { font-weight: 700; font-size: 13px; color: var(--dark); }
.rm-reviewer-meta { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.rm-g-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--mid);
}

/* ── FAQs tab ────────────────────────────────────────────── */
.rm-faqs-wrap { max-width: 780px; }
.rm-faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s;
}
.rm-faq-item:hover { border-color: var(--amber); }
.rm-faq-q {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    background: var(--white);
    transition: background .15s;
}
.rm-faq-q:hover { background: var(--amber-l); }
.rm-faq-q.open  { background: var(--amber-l); color: var(--amber-d); }
.rm-faq-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    color: var(--amber-d);
    transition: transform .2s;
    font-weight: 300;
}
.rm-faq-q.open .rm-faq-icon { transform: rotate(45deg); }
.rm-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .2s;
    font-size: 14px;
    color: var(--mid);
    line-height: 1.7;
    background: var(--bg2);
    padding: 0 20px;
}
.rm-faq-a.open { max-height: 400px; padding: 14px 20px 18px; }

/* ══ RELATED PRODUCTS ════════════════════════════════════ */
.rm-related-section { background: var(--bg2); padding: 60px 5vw; border-top: 1px solid var(--border); }
.rm-related-inner { max-width: 1180px; margin: 0 auto; }
.rm-related-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--amber-d);
    margin-bottom: 6px;
}
.rm-related-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--black);
    margin-bottom: 28px;
}
.rm-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.rm-related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.rm-related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); border-color: var(--amber); }
.rm-related-img {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.rm-related-img img { width: 100%; height: 100%; object-fit: contain; }
.rm-related-img svg { width: 100%; height: 100%; }
.rm-related-body { padding: 16px; }
.rm-related-tier { font-size: 10px; font-weight: 700; color: var(--amber-d); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.rm-related-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 16px; color: var(--black); margin-bottom: 6px; }
.rm-related-desc { font-size: 12px; color: var(--mid); line-height: 1.55; margin-bottom: 12px; }
.rm-related-from { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.rm-related-from-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.rm-related-from-price { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 16px; color: var(--black); }
.rm-related-cta { font-size: 12px; font-weight: 700; color: var(--amber-d); }

/* ══ CTA BAND ════════════════════════════════════════════ */
.rm-product-cta-band { background: var(--amber); padding: 72px 5vw; text-align: center; }
.rm-product-cta-band h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--black);
    line-height: 1.05;
    margin-bottom: 14px;
}
.rm-product-cta-band p {
    font-size: 16px;
    color: rgba(0,0,0,.6);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.rm-cta-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 15px 36px;
    border-radius: var(--radius);
    transition: all .2s;
    border: none;
    cursor: pointer;
}
.rm-cta-btn-dark:hover { background: #222; transform: translateY(-2px); }
.rm-cta-perks { margin-top: 20px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.rm-cta-perk { font-size: 13px; color: rgba(0,0,0,.6); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.rm-cta-perk::before { content: '✓'; font-weight: 800; }

/* ══ STICKY BAR ══════════════════════════════════════════ */
.rm-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 250;
    background: var(--white);
    border-top: 2px solid var(--amber);
    box-shadow: 0 -4px 24px rgba(0,0,0,.1);
    padding: 12px 5vw;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.rm-sticky-bar.visible { transform: translateY(0); }
.rm-sticky-bar-info { flex: 1; }
.rm-sticky-bar-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 14px; color: var(--black); }
.rm-sticky-bar-price { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 18px; color: var(--amber-d); margin-top: 1px; }
.rm-sticky-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amber);
    color: var(--black);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.rm-sticky-bar-btn:hover { background: var(--amber-d); color: var(--white); }
.rm-sticky-bar-btn svg { width: 16px !important; height: 16px !important; fill: currentColor; flex-shrink: 0; }

/* ══ WOOCOMMERCE NOTICES ══════════════════════════════════ */
.woocommerce-message {
    background: #edf7f1 !important;
    border-top: 3px solid #1a7a4a !important;
    color: #1a7a4a !important;
    padding: 12px 18px !important;
    margin: 0 5vw 20px !important;
    border-radius: var(--radius) !important;
    max-width: 1180px;
}

/* ══ RESPONSIVE ══════════════════════════════════════════ */
@media(max-width:960px) {
    .rm-product-inner { grid-template-columns: 1fr; gap: 36px; }
    .rm-desc-grid     { grid-template-columns: 1fr; }
    .rm-specs-grid    { grid-template-columns: 1fr; }
    .rm-reviews-layout { grid-template-columns: 1fr; }
    .rm-reviews-aside { position: static; }
    .rm-related-grid  { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px) {
    .rm-related-grid  { grid-template-columns: 1fr; }
    .rm-product-trust-grid { grid-template-columns: 1fr; }
    .rm-channel-grid  { grid-template-columns: repeat(4, 1fr); }
    .rm-downloads-grid { grid-template-columns: 1fr; }
    .rm-sticky-bar    { padding: 10px 4vw; gap: 10px; }
    .rm-sticky-bar-name { font-size: 12px; }
    .rm-sticky-bar-btn { padding: 10px 16px; font-size: 13px; }
}
@keyframes rm-wave { 0%{ height: 6px } 100%{ height: 28px } }
@keyframes rm-spin  { to { transform: rotate(360deg); } }

/* ── Buy Now button ──────────────────────────────────────── */
.rm-btn-buynow {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--black);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
    margin-top: 8px;
}
.rm-btn-buynow:hover { background: #222; transform: translateY(-1px); }
.rm-btn-buynow:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ════════════════════════════════════════════════
   CRO ADDITIONS — product page enhancements
   Added: v18 theme
════════════════════════════════════════════════ */

/* Urgency ticker */
.rm-cro-ticker-wrap{background:#111;overflow:hidden;padding:9px 0;position:relative}
.rm-cro-ticker{display:flex;gap:48px;animation:rm-tick 30s linear infinite;white-space:nowrap;width:max-content}
.rm-cro-ticker-item{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:600;color:rgba(255,255,255,.85);letter-spacing:.15px}
.rm-cro-dot{width:5px;height:5px;border-radius:50%;background:var(--amber);flex-shrink:0}
@keyframes rm-tick{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* Social proof */
.rm-cro-proof{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.rm-cro-pill{background:#e6f5ee;border:1px solid #a8dbca;border-radius:20px;padding:3px 12px;font-size:12px;font-weight:700;color:#0c6e51}

/* Price anchor */
.rm-cro-anchor{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.7}
.rm-cro-anchor del{color:#ccc}
.rm-cro-anchor strong{color:#0c6e51}

/* ── Product section — warm cream background ── */
.woocommerce-product-page .rm-product-section,
.rm-product-section{background:#fdf8f0}

/* Gallery warm bg */
.rm-product-section .rm-gallery-main,
.rm-gallery-main{background:#fdf8f0 !important;border-color:#ede8de !important}
.rm-product-section .rm-gallery-thumb,
.rm-gallery-thumb{background:#fdf8f0 !important;border-color:#ede8de !important}

/* ── FREE GIFTS section ── */
.rm-gifts-outer{background:#fff;border:1px solid #ede8de;border-radius:12px;padding:18px 16px;margin-top:18px}
.rm-gifts-heading{text-align:center;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#333;margin-bottom:14px}
.rm-gifts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.rm-gift-card{position:relative;border:2px dashed var(--amber);border-radius:8px;background:#fff8ef;padding:18px 8px 12px;text-align:center}
.rm-gift-badge{position:absolute;top:-12px;right:8px;background:var(--amber);color:var(--black);font-size:10px;font-weight:800;padding:3px 10px;border-radius:20px;white-space:nowrap}
.rm-gift-icon{width:44px;height:44px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center}
.rm-gift-icon svg{width:36px;height:36px}
.rm-gift-name{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#333;line-height:1.4}

/* ── Alternating tab backgrounds ── */
.rm-tab-content > .rm-tab-panel:nth-child(odd)  {background:#fff}
.rm-tab-content > .rm-tab-panel:nth-child(even) {background:#f7f6f3}

