/* ═══════════════════════════════════════════════════════════════
   JRR Product Page v1.6 — Full redesign based on JRR Design System
   Inter Tight · max 600 weight · Apple/Stripe + JRR palette
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens (from design-preview.html) ─────────────────── */
.jrr-product {
    /* Gray scale */
    --g50:  #F9FAFB; --g100: #F3F4F6; --g150: #ECEEF1;
    --g200: #E5E7EB; --g300: #D1D5DB; --g400: #9CA3AF;
    --g500: #6B7280; --g600: #4B5563; --g700: #374151;
    --g800: #1F2937; --g900: #111827;
    /* Gold */
    --au50:  #FFFBEB; --au100: #FEF3C7; --au200: #FDE68A;
    --au400: #FBBF24; --au500: #F59E0B; --au600: #D97706;
    --au700: #B45309; --au800: #92400E;
    /* Navy */
    --nv800: #243B53; --nv900: #102A43; --nv950: #0A1929;
    /* Semantic */
    --success-bg: #F0FDF4; --success-bd: #BBF7D0; --success-tx: #15803D;
    --error-bg:   #FEF2F2; --error-bd:   #FECACA; --error-tx:   #DC2626;
    /* Shadows */
    --sh-card: 0 2px 8px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
    --sh-hover: 0 8px 28px rgba(0,0,0,.12), 0 0 0 1px rgba(245,158,11,.2);
    --sh-gold:  0 2px 10px rgba(245,158,11,.35);
    /* Radii */
    --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-2xl: 24px;
    /* Gold gradient */
    --grad-gold: linear-gradient(135deg, #EA580C 0%, #F59E0B 60%, #FBBF24 100%);

    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif !important;
    color: var(--g900); width: 100%;
    -webkit-font-smoothing: antialiased;
}
.jrr-product * {
    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif !important;
    box-sizing: border-box;
}

/* ── Page background ─────────────────────────────────────────── */
body.single-product,
body.single-product #page,
body.single-product .site,
body.single-product main,
body.single-product #main,
body.single-product .site-main { background: var(--g50) !important; }

/* ── Wrap ────────────────────────────────────────────────────── */
.jrr-wrap { max-width: 1160px; margin: 0 auto; padding: 24px 20px 80px; }
@media (max-width: 600px) { .jrr-wrap { padding: 14px 12px 60px; } }

/* ── Card ────────────────────────────────────────────────────── */
.jrr-card {
    background: #fff;
    border: 1px solid var(--g200);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-card);
    margin-bottom: 16px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════ */
.jrr-bc { margin-bottom: 16px; }
.jrr-bc ol { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.jrr-bc li { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--g400); font-weight: 400 !important; }
.jrr-bc li a { color: var(--g500) !important; text-decoration: none !important; font-weight: 500 !important; transition: color .15s; }
.jrr-bc li a:hover { color: var(--g800) !important; }
.jrr-bc-arrow { color: var(--g300); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   HERO — two-column grid
   ═══════════════════════════════════════════════════════════════ */
.jrr-hero { display: grid; grid-template-columns: 42% 1fr; }
@media (max-width: 860px) { .jrr-hero { grid-template-columns: 1fr; } }

/* ─── Gallery column ──────────────────────────────────────────── */
.jrr-gallery-col {
    background: var(--g50);
    border-right: 1px solid var(--g150);
    /* Padding on the COLUMN = breathing room (not on img) */
    padding: 28px;
    /* Stretch to full card height — no sticky, no align-self start */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 860px) {
    .jrr-gallery-col { border-right: none; border-bottom: 1px solid var(--g150); padding: 20px; }
}

/* WooCommerce gallery — all overrides */
.jrr-gallery-col .woocommerce-product-gallery { margin: 0 !important; float: none !important; width: 100% !important; padding: 0 !important; background: transparent !important; position: relative !important; }
.jrr-gallery-col .woocommerce-product-gallery__wrapper,
.jrr-gallery-col figure.woocommerce-product-gallery__wrapper { margin: 0 !important; padding: 0 !important; }
.jrr-gallery-col .flex-viewport { margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
.jrr-gallery-col .woocommerce-product-gallery__image { padding: 0 !important; margin: 0 !important; background: transparent !important; display: block !important; }
.jrr-gallery-col .woocommerce-product-gallery__image a { display: block !important; }
/* The image itself — no extra padding, no border */
.jrr-gallery-col .woocommerce-product-gallery__image img,
.jrr-gallery-col .wp-post-image {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
@media (max-width: 860px) {
    .jrr-gallery-col .woocommerce-product-gallery__image img { max-height: 220px !important; }
}

/* Thumbnails */
.jrr-gallery-col ol.flex-control-nav,
.jrr-gallery-col .flex-control-nav {
    display: flex !important; gap: 8px !important;
    padding: 12px 0 0 !important; margin: 0 !important;
    justify-content: center !important; background: transparent !important;
    list-style: none !important; flex-wrap: wrap !important;
    border: none !important;
}
.jrr-gallery-col .flex-control-nav li {
    width: 54px !important; height: 54px !important;
    border-radius: var(--r-md) !important; overflow: hidden !important;
    border: 2px solid var(--g200) !important; cursor: pointer !important;
    background: #fff !important; transition: border-color .2s !important;
}
.jrr-gallery-col .flex-control-nav li img { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 4px !important; display: block !important; }
.jrr-gallery-col .flex-control-nav li.flex-active { border-color: var(--au500) !important; }

/* Zoom trigger */
.jrr-gallery-col .woocommerce-product-gallery__trigger {
    position: absolute !important; top: 8px !important; right: 8px !important;
    width: 32px !important; height: 32px !important; z-index: 10 !important;
    background: rgba(255,255,255,.9) !important; backdrop-filter: blur(4px) !important;
    border-radius: 50% !important; box-shadow: 0 1px 6px rgba(0,0,0,.12) !important;
    border: none !important; display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; transition: background .15s !important;
}
.jrr-gallery-col .woocommerce-product-gallery__trigger:hover { background: #fff !important; }

/* ─── Summary column ──────────────────────────────────────────── */
.jrr-summary { padding: 30px 32px 28px; display: flex; flex-direction: column; }
@media (max-width: 860px) { .jrr-summary { padding: 20px 18px 24px; } }

/* Category overline */
.jrr-cat { font-size: 11px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .1em !important; color: var(--g400) !important; margin: 0 0 6px !important; }
.jrr-cat a { color: inherit !important; text-decoration: none !important; }

/* Sale badge */
.jrr-sale-badge { display: inline-flex; align-items: center; gap: 4px; background: #EF4444; color: #fff !important; font-size: 10px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 99px; margin-bottom: 6px; width: fit-content; }

/* Product title */
.jrr-title,
.jrr-product h1.product_title,
.jrr-product .product_title {
    font-size: clamp(19px, 2.6vw, 26px) !important;
    font-weight: 600 !important;
    letter-spacing: -.3px !important;
    color: var(--nv950) !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
}

/* Rating */
.jrr-product .woocommerce-product-rating { display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 0 10px !important; }
.jrr-product .star-rating { font-size: 12px !important; width: auto !important; }
.jrr-product .star-rating::before, .jrr-product .star-rating span::before { color: var(--au500) !important; }
.jrr-product .woocommerce-review-link { font-size: 12px !important; color: var(--g400) !important; text-decoration: none !important; font-weight: 400 !important; }

/* Price */
.jrr-price-block { margin-bottom: 10px; }
.jrr-product .price { display: flex !important; align-items: baseline !important; gap: 10px !important; flex-wrap: wrap !important; margin: 0 !important; }
.jrr-product .price .woocommerce-Price-amount.amount { font-size: 28px !important; font-weight: 600 !important; color: var(--nv950) !important; letter-spacing: -.5px !important; line-height: 1 !important; }
.jrr-product .price del .woocommerce-Price-amount.amount { font-size: 16px !important; font-weight: 400 !important; color: var(--g400) !important; }
.jrr-product .price ins { text-decoration: none !important; }
.jrr-installation-note {
    display: block;
    margin-top: 4px;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: var(--g500) !important;
    letter-spacing: 0 !important;
}
.jrr-finance-note { font-size: 12px !important; color: var(--g500) !important; margin: 4px 0 0 !important; display: flex !important; align-items: center !important; flex-wrap: wrap; gap: 4px !important; font-weight: 400 !important; }
.jrr-finance-note strong { color: var(--g700) !important; font-weight: 600 !important; }

/* Stock pill — align-self + fit-content prevent full-width stretch in flex column */
.jrr-stock { display: inline-flex !important; align-items: center !important; gap: 6px !important; font-size: 12px !important; font-weight: 500 !important; padding: 5px 11px !important; border-radius: 99px !important; margin-bottom: 12px !important; align-self: flex-start !important; width: fit-content !important; max-width: fit-content !important; }
.jrr-stock-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.jrr-in-stock  { background: var(--success-bg) !important; color: var(--success-tx) !important; border: 1px solid var(--success-bd) !important; }
.jrr-in-stock .jrr-stock-dot  { background: var(--success-tx); box-shadow: 0 0 5px rgba(22,163,74,.5); }
.jrr-out-stock { background: var(--error-bg) !important; color: var(--error-tx) !important; border: 1px solid var(--error-bd) !important; }
.jrr-out-stock .jrr-stock-dot { background: var(--error-tx); }

/* Short description */
.jrr-short-desc { font-size: 13.5px !important; line-height: 1.7 !important; color: var(--g600) !important; margin-bottom: 12px !important; font-weight: 400 !important; }
.jrr-short-desc p { margin: 0 0 5px !important; font-weight: 400 !important; }
.jrr-short-desc ul { padding-left: 16px !important; margin: 6px 0 !important; }
.jrr-short-desc li { margin-bottom: 3px !important; font-size: 13px !important; font-weight: 400 !important; }

/* Divider */
.jrr-divider { height: 1px; background: var(--g100); margin: 12px 0; }

/* ── Hero specs grid ─────────────────────────────────────────── */
.jrr-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 6px; }
.jrr-spec {
    background: #F9FAFB; border: 1px solid #E5E7EB;
    border-radius: 10px; padding: 9px 12px;
    display: flex; flex-direction: column; gap: 2px;
}
.jrr-spec-k { font-size: 9px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .09em !important; color: #9CA3AF !important; }
.jrr-spec-v { font-size: 13px !important; font-weight: 600 !important; color: #111827 !important; line-height: 1.3 !important; }
a.jrr-specs-more { font-size: 12.5px !important; color: #D97706 !important; font-weight: 600 !important; text-decoration: none !important; display: block !important; margin-bottom: 4px !important; cursor: pointer !important; }
a.jrr-specs-more:hover { text-decoration: underline !important; color: #B45309 !important; }

/* ── Quantity controls ───────────────────────────────────────── */
.jrr-atc-wrap { margin-bottom: 8px; }
.jrr-qty-row { display: flex; align-items: stretch; gap: 10px; }
@media (max-width: 440px) { .jrr-qty-row { flex-wrap: wrap; } }

.jrr-qty-ctrl {
    display: flex; align-items: center; height: 50px;
    background: #fff !important; border: 1.5px solid var(--g200) !important;
    border-radius: var(--r-md) !important; overflow: hidden !important;
    flex-shrink: 0;
}
.jrr-qty-btn {
    width: 38px !important; height: 100% !important;
    background: transparent !important; background-color: transparent !important;
    background-image: none !important;
    border: none !important; outline: none !important; box-shadow: none !important;
    font-size: 18px !important; font-weight: 300 !important; color: #9CA3AF !important;
    cursor: pointer !important; display: flex !important; align-items: center !important;
    justify-content: center !important; line-height: 1 !important;
    transition: background-color .15s, color .15s !important;
    -webkit-appearance: none !important; appearance: none !important;
    border-radius: 0 !important; padding: 0 !important; margin: 0 !important;
}
.jrr-qty-btn:hover,
.jrr-qty-btn:focus {
    background-color: var(--g100) !important;
    background: var(--g100) !important;
    background-image: none !important;
    color: var(--g900) !important;
    box-shadow: none !important; border: none !important; outline: none !important;
}
.jrr-qty-btn:active {
    background-color: var(--g200) !important;
    background: var(--g200) !important;
    color: var(--g900) !important;
}
.jrr-qty-ctrl .qty {
    width: 44px !important; height: 100% !important; text-align: center !important;
    font-size: 15px !important; font-weight: 600 !important; border: none !important;
    border-left: 1.5px solid var(--g200) !important; border-right: 1.5px solid var(--g200) !important;
    outline: none !important; background: transparent !important; color: var(--g900) !important;
    box-shadow: none !important; padding: 0 !important; -moz-appearance: textfield !important;
}
.jrr-qty-ctrl .qty::-webkit-outer-spin-button,
.jrr-qty-ctrl .qty::-webkit-inner-spin-button { -webkit-appearance: none !important; }

/* Gold ATC button */
.jrr-product .single_add_to_cart_button,
.jrr-product button[name="add-to-cart"],
.jrr-product .jrr-qty-row button[type="submit"],
.jrr-product .button.alt {
    flex: 1 !important; height: 50px !important; min-height: 50px !important;
    padding: 0 22px !important;
    background: var(--grad-gold) !important; background-image: var(--grad-gold) !important;
    background-color: var(--au500) !important;
    color: #fff !important; font-size: 14px !important; font-weight: 600 !important;
    letter-spacing: .01em !important; border: none !important; border-radius: var(--r-md) !important;
    cursor: pointer !important; box-shadow: var(--sh-gold) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 8px !important; text-decoration: none !important; line-height: 1 !important;
    white-space: nowrap !important; -webkit-appearance: none !important; appearance: none !important;
    transition: filter .2s, transform .15s, box-shadow .2s !important;
}
.jrr-product .single_add_to_cart_button:hover,
.jrr-product button[name="add-to-cart"]:hover,
.jrr-product .jrr-qty-row button[type="submit"]:hover {
    filter: brightness(1.06) !important; transform: translateY(-1px) !important;
    box-shadow: 0 5px 18px rgba(245,158,11,.5) !important; color: #fff !important;
}
.jrr-product form.cart { display: flex !important; align-items: stretch !important; gap: 10px !important; margin: 0 !important; }
.jrr-product form.cart .quantity { display: none !important; }
.jrr-installation-quote-button {
    width: 100% !important;
}
.jrr-installation-copy {
    margin: 8px 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: var(--g500) !important;
    font-weight: 400 !important;
}

/* Outline/quote button */
.jrr-btn-outline {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 8px !important; width: 100% !important; height: 44px !important;
    background: #fff !important; border: 1.5px solid var(--g200) !important;
    border-radius: var(--r-md) !important; font-size: 13.5px !important;
    font-weight: 500 !important; color: var(--g600) !important;
    text-decoration: none !important; cursor: pointer !important; margin-bottom: 12px !important;
    transition: border-color .2s, color .2s !important;
}
.jrr-btn-outline:hover { border-color: var(--g400) !important; color: var(--g800) !important; }

/* Product meta */
.jrr-meta { margin-bottom: 12px; }
.jrr-product .product_meta { font-size: 12px !important; color: var(--g400) !important; display: flex !important; flex-direction: column !important; gap: 3px !important; font-weight: 400 !important; }
.jrr-product .product_meta a { color: var(--g500) !important; text-decoration: none !important; font-weight: 400 !important; }
.jrr-product .product_meta a:hover { color: var(--g800) !important; }

/* Trust strip */
.jrr-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; border-top: 1px solid var(--g100); margin-top: auto; }
.jrr-trust-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px !important; font-weight: 500 !important; color: var(--g500) !important; }
.jrr-trust-item svg { color: var(--g300); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════ */
.jrr-tabs-card .woocommerce-tabs { margin: 0 !important; padding: 0 !important; }
.jrr-tabs-card ul.wc-tabs,
.jrr-tabs-card ul.tabs {
    display: flex !important; padding: 0 24px !important; margin: 0 !important;
    border: none !important; border-bottom: 1.5px solid var(--g100) !important;
    background: var(--g50) !important; list-style: none !important;
    overflow-x: auto !important; scrollbar-width: none !important; gap: 0 !important;
}
.jrr-tabs-card ul.wc-tabs::-webkit-scrollbar,
.jrr-tabs-card ul.tabs::-webkit-scrollbar { display: none; }
.jrr-tabs-card ul.wc-tabs li,
.jrr-tabs-card ul.tabs li { margin: 0 !important; padding: 0 !important; border: none !important; border-radius: 0 !important; background: transparent !important; }
.jrr-tabs-card ul.wc-tabs li::before, .jrr-tabs-card ul.wc-tabs li::after,
.jrr-tabs-card ul.tabs li::before,  .jrr-tabs-card ul.tabs li::after { display: none !important; }
.jrr-tabs-card ul.wc-tabs li a,
.jrr-tabs-card ul.tabs li a {
    display: flex !important; align-items: center !important;
    padding: 13px 16px !important; font-size: 13.5px !important; font-weight: 500 !important;
    color: var(--g400) !important; text-decoration: none !important;
    border-bottom: 2px solid transparent !important; margin-bottom: -1.5px !important;
    white-space: nowrap !important; background: transparent !important;
    border-radius: 0 !important; transition: color .2s !important;
}
.jrr-tabs-card ul.wc-tabs li a:hover,
.jrr-tabs-card ul.tabs li a:hover { color: var(--g800) !important; }
.jrr-tabs-card ul.wc-tabs li.active a,
.jrr-tabs-card ul.tabs li.active a {
    color: var(--nv950) !important; font-weight: 600 !important;
    border-bottom-color: var(--au500) !important; background: transparent !important;
}

/* Tab panel */
.jrr-tabs-card .woocommerce-tabs .panel,
.jrr-tabs-card .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 24px 28px 32px !important; margin: 0 !important; border: none !important;
    background: #fff !important;
}
@media (max-width: 600px) { .jrr-tabs-card .woocommerce-tabs .panel { padding: 18px 16px 26px !important; } }
/* Hide only WooCommerce auto-generated tab headings */
#tab-description > h2:first-child,
#tab-additional_information > h2:first-child { display: none !important; }
.jrr-tabs-card .woocommerce-tabs .panel p,
.jrr-tabs-card .woocommerce-tabs .panel li { font-size: 14px !important; line-height: 1.7 !important; color: var(--g600) !important; font-weight: 400 !important; }
.jrr-tabs-card .woocommerce-tabs .panel strong { font-weight: 600 !important; }
.jrr-tabs-card .woocommerce-tabs .panel ul:not(.jrr-docs-list) { padding-left: 18px !important; }
.jrr-tabs-card .woocommerce-tabs .panel li:not(.jrr-docs-list li) { margin-bottom: 4px !important; }
/* Ensure docs list itself is never indented regardless of cascading panel rules */
.jrr-tabs-card .woocommerce-tabs .panel .jrr-docs-list { padding-left: 0 !important; margin-left: 0 !important; }

/* ── Custom specs grid (rendered via PHP) ─────────────────────── */
.jrr-specs-tab-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 8px !important;
}
.jrr-spec-card {
    background: var(--g50) !important;
    border: 1px solid var(--g200) !important;
    border-radius: var(--r-md) !important;
    padding: 11px 14px !important;
    display: flex !important; flex-direction: column !important; gap: 3px !important;
}
.jrr-spec-card-k {
    font-size: 9.5px !important; font-weight: 600 !important;
    text-transform: uppercase !important; letter-spacing: .09em !important;
    color: var(--g400) !important;
}
.jrr-spec-card-v {
    font-size: 13.5px !important; font-weight: 500 !important;
    color: var(--g900) !important; line-height: 1.35 !important;
}

/* Fallback: if WooCommerce table renders, style it gracefully */
.jrr-tabs-card table.shop_attributes { width: 100% !important; border-collapse: collapse !important; }
.jrr-tabs-card table.shop_attributes tr { border-bottom: 1px solid var(--g100) !important; }
.jrr-tabs-card table.shop_attributes tr:last-child { border-bottom: none !important; }
.jrr-tabs-card table.shop_attributes th,
.jrr-tabs-card table.shop_attributes td { padding: 10px 6px !important; font-size: 13.5px !important; background: transparent !important; border: none !important; text-align: left !important; }
.jrr-tabs-card table.shop_attributes th { width: 40% !important; font-weight: 600 !important; color: var(--g600) !important; font-size: 12px !important; text-transform: uppercase !important; letter-spacing: .06em !important; }
.jrr-tabs-card table.shop_attributes td { font-weight: 400 !important; color: var(--g800) !important; }
.jrr-tabs-card table.shop_attributes td p { margin: 0 !important; }

/* ── Documents tab ───────────────────────────────────────────── */
.jrr-docs-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.jrr-doc-link {
    display: flex !important; align-items: center !important; gap: 12px !important;
    background: #F9FAFB; border: 1.5px solid #E5E7EB;
    border-radius: 10px; padding: 13px 16px;
    text-decoration: none !important; color: #374151 !important;
    font-size: 14px !important; font-weight: 500 !important; line-height: 1.4 !important;
    transition: border-color .2s, box-shadow .2s; width: 100%;
}
.jrr-doc-link:hover { border-color: #FBBF24 !important; box-shadow: 0 2px 10px rgba(245,158,11,.12) !important; }
.jrr-doc-link svg { display: block !important; flex-shrink: 0 !important; }
.jrr-doc-link span { flex: 1 !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.jrr-docs-empty {
    display: flex; flex-direction: column; align-items: center; padding: 32px 20px;
    color: var(--g400); gap: 10px; text-align: center;
}
.jrr-docs-empty p { font-size: 13.5px !important; margin: 0 !important; font-weight: 400 !important; }

/* ═══════════════════════════════════════════════════════════════
   RELATED PRODUCTS
   — Uses div.jrr-rel-card (reliable flex, no <a> flex hack)
   ═══════════════════════════════════════════════════════════════ */
.jrr-related { margin-top: 4px; }
.jrr-section-title { font-size: 17px !important; font-weight: 600 !important; color: var(--nv950) !important; margin: 0 0 12px !important; }
.jrr-related-list { display: flex; flex-direction: column; gap: 10px; }

/* Card — reliable block-level container */
div.jrr-rel-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    background: #fff !important;
    border: 1px solid var(--g200) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-card) !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    transition: box-shadow .2s, transform .2s, border-color .2s !important;
    text-decoration: none !important;
    color: var(--g900) !important;
}
div.jrr-rel-card:hover {
    box-shadow: var(--sh-hover) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(245,158,11,.3) !important;
}

/* Image — fixed size, never stretches */
div.jrr-rel-card .jrr-rel-img {
    flex: 0 0 76px !important;
    width: 76px !important; height: 76px !important;
    min-width: 76px !important; max-width: 76px !important;
    border-radius: var(--r-md) !important;
    overflow: hidden !important;
    background: var(--g50) !important;
    border: 1px solid var(--g100) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}
div.jrr-rel-card .jrr-rel-img img {
    width: 100% !important; height: 100% !important;
    object-fit: contain !important; padding: 8px !important;
    display: block !important; border: none !important;
}

/* Info block */
div.jrr-rel-card .jrr-rel-info { flex: 1 1 auto !important; min-width: 0 !important; }
div.jrr-rel-card .jrr-rel-cat { font-size: 10px !important; font-weight: 500 !important; text-transform: uppercase !important; letter-spacing: .08em !important; color: var(--g400) !important; margin: 0 0 3px !important; }
div.jrr-rel-card .jrr-rel-cat a { color: inherit !important; text-decoration: none !important; }
div.jrr-rel-card .jrr-rel-name { font-size: 13.5px !important; font-weight: 600 !important; color: var(--nv950) !important; margin: 0 0 4px !important; line-height: 1.3 !important; }
div.jrr-rel-card .jrr-rel-price { font-size: 14.5px !important; font-weight: 600 !important; color: var(--nv950) !important; margin: 0 !important; }
div.jrr-rel-card .jrr-rel-price .woocommerce-Price-amount { font-size: 14.5px !important; font-weight: 600 !important; color: var(--nv950) !important; }

/* CTA */
div.jrr-rel-card .jrr-rel-cta { flex: 0 0 auto !important; }
div.jrr-rel-card .jrr-rel-btn {
    display: inline-flex !important; align-items: center !important;
    padding: 8px 14px !important;
    background: var(--grad-gold) !important; background-image: var(--grad-gold) !important;
    color: #fff !important; font-size: 12.5px !important; font-weight: 600 !important;
    border-radius: var(--r-md) !important; white-space: nowrap !important;
    text-decoration: none !important; transition: filter .2s !important;
    border: none !important;
}
div.jrr-rel-card:hover .jrr-rel-btn { filter: brightness(1.07) !important; }
@media (max-width: 500px) { div.jrr-rel-card .jrr-rel-cta { display: none !important; } }

/* ── Variable products ───────────────────────────────────────── */
.jrr-product .variations { width: 100% !important; border-collapse: collapse !important; margin-bottom: 12px !important; }
.jrr-product .variations td, .jrr-product .variations th { border: none !important; padding: 4px 0 !important; }
.jrr-product .variations .label label { font-size: 13px !important; font-weight: 500 !important; color: var(--g700) !important; }
.jrr-product .variations select { width: 100% !important; height: 46px !important; padding: 0 14px !important; border: 1.5px solid var(--g200) !important; border-radius: var(--r-md) !important; font-size: 14px !important; color: var(--g900) !important; background: #fff !important; outline: none !important; cursor: pointer !important; font-weight: 400 !important; }
.jrr-product .variations select:focus { border-color: var(--au500) !important; box-shadow: 0 0 0 3px rgba(245,158,11,.1) !important; }
.jrr-product .reset_variations { font-size: 12px !important; color: var(--g400) !important; text-decoration: none !important; display: block !important; margin-top: 4px !important; font-weight: 400 !important; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE PRODUCT PAGE — polished phone layout
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    html,
    body.single-product {
        overflow-x: hidden !important;
    }

    .jrr-wrap {
        padding: 12px 12px 44px !important;
        max-width: 100%;
    }

    .jrr-bc {
        display: none !important;
    }

    .jrr-card {
        border-radius: 18px !important;
        margin-bottom: 14px !important;
        box-shadow: 0 4px 16px rgba(15,23,42,0.07) !important;
    }

    .jrr-hero {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .jrr-gallery-col {
        padding: 16px 16px 12px !important;
        min-height: 0 !important;
        background:
            radial-gradient(circle at 50% 38%, rgba(245,158,11,0.08), transparent 42%),
            linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
    }

    .jrr-gallery-col .woocommerce-product-gallery__image img,
    .jrr-gallery-col .wp-post-image {
        max-height: 250px !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    .jrr-gallery-col ol.flex-control-nav,
    .jrr-gallery-col .flex-control-nav {
        padding-top: 10px !important;
        gap: 7px !important;
    }

    .jrr-gallery-col .flex-control-nav li {
        width: 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
    }

    .jrr-gallery-col .woocommerce-product-gallery__trigger {
        top: 12px !important;
        right: 12px !important;
        width: 34px !important;
        height: 34px !important;
    }

    .jrr-summary {
        padding: 20px 18px 20px !important;
    }

    .jrr-cat {
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }

    .jrr-title,
    .jrr-product h1.product_title,
    .jrr-product .product_title {
        font-size: 25px !important;
        line-height: 1.13 !important;
        letter-spacing: -0.7px !important;
        margin-bottom: 12px !important;
    }

    .jrr-price-block {
        margin-bottom: 12px !important;
    }

    .jrr-product .price .woocommerce-Price-amount.amount {
        font-size: 30px !important;
    }

    .jrr-finance-note {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin-top: 7px !important;
    }

    .jrr-finance-note strong {
        display: inline !important;
    }

    .jrr-stock {
        margin-bottom: 14px !important;
    }

    .jrr-short-desc {
        font-size: 14px !important;
        line-height: 1.65 !important;
        margin-bottom: 14px !important;
    }

    .jrr-specs {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .jrr-spec {
        display: grid !important;
        grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }

    .jrr-spec-k {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .jrr-spec-v {
        font-size: 14px !important;
        text-align: right !important;
    }

    a.jrr-specs-more {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        margin: 4px 0 0 !important;
        border-radius: 10px !important;
        background: #FFF9ED !important;
        color: #C2410C !important;
        text-decoration: none !important;
    }

    .jrr-qty-row,
    .jrr-product form.cart {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .jrr-qty-ctrl {
        width: 100% !important;
        height: 48px !important;
        justify-content: space-between !important;
    }

    .jrr-qty-btn {
        width: 48px !important;
    }

    .jrr-qty-ctrl .qty {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
    }

    .jrr-product .single_add_to_cart_button,
    .jrr-product button[name="add-to-cart"],
    .jrr-product .jrr-qty-row button[type="submit"],
    .jrr-product .button.alt {
        width: 100% !important;
        min-height: 52px !important;
        height: 52px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
    }

    .jrr-btn-outline {
        height: 48px !important;
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }

    .jrr-trust {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }

    .jrr-trust-item {
        align-items: flex-start !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .jrr-tabs-card ul.wc-tabs,
    .jrr-tabs-card ul.tabs {
        padding: 0 10px !important;
        gap: 6px !important;
        background: #FFFFFF !important;
    }

    .jrr-tabs-card ul.wc-tabs li a,
    .jrr-tabs-card ul.tabs li a {
        padding: 14px 10px !important;
        font-size: 13px !important;
    }

    .jrr-tabs-card .woocommerce-tabs .panel,
    .jrr-tabs-card .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 20px 18px 24px !important;
    }

    .jrr-tabs-card .woocommerce-tabs .panel h2,
    .jrr-tabs-card .woocommerce-tabs .panel h3 {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .jrr-tabs-card .woocommerce-tabs .panel p,
    .jrr-tabs-card .woocommerce-tabs .panel li {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    .jrr-specs-tab-grid {
        grid-template-columns: 1fr !important;
    }

    .jrr-section-title {
        font-size: 20px !important;
        margin: 2px 0 12px !important;
    }

    div.jrr-rel-card {
        gap: 12px !important;
        padding: 12px !important;
        border-radius: 14px !important;
    }

    div.jrr-rel-card .jrr-rel-img {
        flex-basis: 64px !important;
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
    }
}

@media (max-width: 380px) {
    .jrr-title,
    .jrr-product h1.product_title,
    .jrr-product .product_title {
        font-size: 23px !important;
    }

    .jrr-trust {
        grid-template-columns: 1fr !important;
    }

    .jrr-spec {
        grid-template-columns: 1fr !important;
    }

    .jrr-spec-v {
        text-align: left !important;
    }
}
