/* =========================================================
   BINOISE — Single Product Content Redesign
   Supplemental stylesheet.
   Load AFTER single-product-redesign.css
   Scope: tabs, introduction, specifications, video, reviews.
   ========================================================= */

body.single-product .sp-page {
    --sp-content-orange: var(--sp-orange, #fa7921);
    --sp-content-red: var(--sp-red, #f55157);
    --sp-content-navy: var(--sp-navy, #23254e);
    --sp-content-text: var(--sp-text, #3f4064);
    --sp-content-muted: var(--sp-muted, #81858b);
    --sp-content-line: var(--sp-line, #e8eaed);
    --sp-content-soft: #f7f8fa;
    --sp-content-white: #fff;
}

/* =========================================================
   Tabs shell / navigation
   ========================================================= */

.sp-page .sp-tabs-section {
    padding: 16px 0 36px !important;
}

.sp-page .sp-tabs-card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.sp-page .sp-tabs-card .custom-product-tabs {
    width: 100%;
    background: transparent !important;
}

.sp-page .sp-tabs-card .custom-tabs-nav {
    position: sticky;
    top: 76px;
    z-index: 30;
    width: 100%;
    max-width: none;
    min-height: 58px;
    margin: 0 0 28px !important;
    padding: 0 !important;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    border: 0 !important;
    border-bottom: 1px solid var(--sp-content-line) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
}

.sp-page .sp-tabs-card .custom-tabs-nav::-webkit-scrollbar {
    display: none;
}

.sp-page .sp-tabs-card .custom-tab-item {
    position: relative;
    width: auto !important;
    min-width: max-content !important;
    height: 58px !important;
    padding: 0 18px !important;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: var(--sp-content-muted) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.sp-page .sp-tabs-card .custom-tab-item:hover {
    color: var(--sp-content-navy) !important;
    background: #fafafa !important;
}

.sp-page .sp-tabs-card .custom-tab-item.active {
    color: #111 !important;
    background: transparent !important;
}

.sp-page .sp-tabs-card .custom-tab-item.active::after {
    content: "";
    position: absolute;
    right: 18px !important;
    left: 18px !important;
    bottom: 0 !important;
    height: 3px !important;
    border-radius: 999px 999px 0 0;
    background: #ff0000 !important;
}

.sp-page .sp-tabs-card .custom-tabs-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sp-page .sp-tabs-card .custom-tab-panel {
    display: none;
    width: 100%;
    animation: spContentFade .24s ease;
}

.sp-page .sp-tabs-card .custom-tab-panel.active {
    display: block;
}

@keyframes spContentFade {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Shared section heading */
.sp-page .sp-intro-heading,
.sp-page .sp-specifications-heading,
.sp-page .product-video > h3,
.sp-page .sp-review-card #reviews > h2 {
    position: relative;
    margin: 0 0 24px !important;
    padding: 0 0 14px !important;
    color: #111 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

.sp-page .sp-intro-heading::after,
.sp-page .sp-specifications-heading::after,
.sp-page .product-video > h3::after,
.sp-page .sp-review-card #reviews > h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 68px;
    height: 3px;
    border-radius: 999px;
    background: var(--sp-content-red);
}

.sp-page .sp-intro-heading > span,
.sp-page .sp-specifications-heading > span {
    display: block;
    margin-bottom: 4px;
    color: var(--sp-content-orange);
    font-size: 11px;
    font-weight: 800;
}

.sp-page .sp-intro-heading h2,
.sp-page .sp-specifications-heading h2 {
    margin: 0 !important;
    color: #111 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

/* =========================================================
   Introduction + sticky special offer
   ========================================================= */

.sp-page .sp-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
    align-items: start;
    direction: rtl;
}

.sp-page .sp-intro-content {
    min-width: 0;
}

.sp-page .sp-intro-prose {
    max-width: 100%;
    color: var(--sp-content-text);
    font-size: 15px;
    line-height: 2.35;
    text-align: justify;
}

.sp-page .sp-intro-prose > *:first-child {
    margin-top: 0 !important;
}

.sp-page .sp-intro-prose p {
    margin: 0 0 18px !important;
    color: var(--sp-content-text) !important;
    font-size: 15px !important;
    line-height: 2.35 !important;
}

.sp-page .sp-intro-prose h2,
.sp-page .sp-intro-prose h3,
.sp-page .sp-intro-prose h4 {
    margin: 32px 0 14px !important;
    color: var(--sp-content-navy) !important;
    font-weight: 900 !important;
    line-height: 1.9 !important;
    text-align: right !important;
}

.sp-page .sp-intro-prose h2 { font-size: 20px !important; }
.sp-page .sp-intro-prose h3 { font-size: 18px !important; }
.sp-page .sp-intro-prose h4 { font-size: 16px !important; }

.sp-page .sp-intro-prose ul,
.sp-page .sp-intro-prose ol {
    margin: 18px 0 !important;
    padding-right: 24px !important;
}

.sp-page .sp-intro-prose li {
    margin-bottom: 8px;
    line-height: 2.1;
}

.sp-page .sp-intro-prose a {
    color: #1677ff;
    font-weight: 700;
}

.sp-page .sp-intro-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 16px;
}

.sp-page .sp-intro-prose figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px auto !important;
}

.sp-page .sp-intro-prose blockquote {
    margin: 24px 0;
    padding: 16px 18px;
    border-right: 3px solid var(--sp-content-orange);
    border-radius: 12px 0 0 12px;
    background: #fff8f3;
    color: var(--sp-content-text);
}

.sp-page .sp-intro-offer {
    position: sticky;
    top: 145px;
    align-self: start;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e0e2;
    border-radius: 18px;
    background: #f7f7f8;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .045);
}

.sp-page .sp-intro-offer-badge {
    min-height: 55px;
    margin: -16px -16px 14px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 18px 18px 0 0;
    background: #ff78002b;
    color: #f16521;
    font-size: 15px;
    font-weight: 900;
}

.sp-page .sp-intro-offer-badge:not(.is-sale) {
    background: #fff7f1;
    color: var(--sp-content-orange);
}

.sp-page .sp-intro-offer-badge strong {
    min-width: 42px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4056;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.sp-page .sp-intro-offer-product {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4e5e7;
}

.sp-page .sp-intro-offer-thumb {
    width: 78px;
    height: 78px;
    display: block;
    overflow: hidden;
    border: 1px solid #eceef0;
    border-radius: 12px;
    background: #fff;
}

.sp-page .sp-intro-offer-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px;
    mix-blend-mode: multiply;
}

.sp-page .sp-intro-offer-product-info {
    min-width: 0;
}

.sp-page .sp-intro-offer-product-info > strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--sp-content-navy);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.9;
}

.sp-page .sp-intro-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #00a049;
    font-size: 10px;
    font-weight: 800;
}

.sp-page .sp-intro-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
}

.sp-page .sp-intro-stock.is-out-of-stock {
    color: #ef4056;
}

.sp-page .sp-intro-offer-meta {
    padding: 6px 0;
}

.sp-page .sp-intro-offer-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e7e8ea;
}

.sp-page .sp-intro-offer-row:last-child {
    border-bottom: 0;
}

.sp-page .sp-intro-offer-row .icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #62666d;
}

.sp-page .sp-intro-offer-row .icon svg {
    width: 100%;
    height: 100%;
}

.sp-page .sp-intro-offer-row small {
    display: block;
    margin-bottom: 2px;
    color: var(--sp-content-muted);
    font-size: 10px;
    font-weight: 700;
}

.sp-page .sp-intro-offer-row strong {
    display: block;
    color: var(--sp-content-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.8;
}

.sp-page .sp-intro-offer-price {
    min-height: 52px;
    padding: 10px 0 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--sp-content-text);
    font-weight: 900;
}

.sp-page .sp-intro-offer-price .price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.sp-page .sp-intro-offer-price ins {
    color: #ff0000;
    text-decoration: none;
    font-weight: 900;
}

.sp-page .sp-intro-offer-price del {
    color: #a1a3a8;
    font-size: 11px;
    font-weight: 600;
}

.sp-page .sp-intro-offer-price > .woocommerce-Price-amount,
.sp-page .sp-intro-offer-price .price > .woocommerce-Price-amount {
    font-size: 17px;
    font-weight: 900;
}

.sp-page .sp-intro-offer-price .woocommerce-Price-currencySymbol {
    font-size: .7em;
}

.sp-page .sp-intro-offer-cta {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #ff6b1a !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 900;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.sp-page .sp-intro-offer-cta:hover {
    background: #e9484f;
    box-shadow: 0 10px 20px rgba(245, 81, 87, .17);
}

.sp-page .sp-intro-offer-cta.is-disabled {
    background: #c7c9cc;
    box-shadow: none;
    cursor: default;
}

/* =========================================================
   Specifications
   ========================================================= */

.sp-page .sp-specifications-panel {
    width: 100%;
    max-width: 1120px;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes.shop_attributes {
    width: 100%;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes-item {
    width: 100%;
    min-height: 58px;
    display: grid !important;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #eceef0 !important;
    background: transparent !important;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes-item:last-child {
    border-bottom: 0 !important;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes-item__label,
.sp-page .sp-specifications-panel .woocommerce-product-attributes-item__value {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: right !important;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes-item__label {
    color: var(--sp-content-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    white-space: normal !important;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes-item__value {
    color: var(--sp-content-navy) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 2 !important;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes-item__value p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-align: right !important;
}

.sp-page .sp-specifications-panel .woocommerce-product-attributes-item__value a {
    color: #1677ff;
    font-weight: 800;
}

/* =========================================================
   Video
   ========================================================= */

.sp-page .custom-tab-panel#tab-video {
    width: 100%;
}

.sp-page .product-video {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    display: block !important;
}

.sp-page .product-video > h3 {
    width: 100% !important;
    text-align: right !important;
}

.sp-page .product-video-frame,
.sp-page .product-video-player {
    width: 100% !important;
    max-width: 920px !important;
    aspect-ratio: 16 / 9;
    margin: 0 auto !important;
    overflow: hidden;
    border: 1px solid #e4e6e9;
    border-radius: 18px !important;
    background: #111 !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .07);
}

.sp-page .product-video-frame iframe,
.sp-page .product-video-frame .wp-embedded-content,
.sp-page .product-video-player {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

.sp-page #tab-video .product-video > p {
    max-width: 680px;
    margin: 0 !important;
    padding: 22px;
    border: 1px dashed #dfe1e5;
    border-radius: 14px;
    background: #fafafa;
    color: var(--sp-content-muted) !important;
    font-size: 13px !important;
    line-height: 2 !important;
    text-align: center !important;
}

/* =========================================================
   Reviews section
   ========================================================= */

.sp-page .sp-review-section {
    padding: 6px 0 64px !important;
}

.sp-page .sp-review-card {
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sp-page .sp-review-card #reviews {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.sp-page .sp-review-card #reviews > h2 {
    margin-bottom: 26px !important;
}

.sp-page .sp-review-card #reviews > .grid {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 34px !important;
    align-items: start;
}

/* Rating summary */
.sp-page .sp-review-card #reviews > .grid > div:first-child {
    position: sticky;
    top: 145px;
    width: 100% !important;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid #e0e0e2 !important;
    border-radius: 16px !important;
    background: #f7f7f8 !important;
    box-shadow: none !important;
}

.sp-page .sp-review-card #reviews > .grid > div:first-child > div:first-child {
    width: 100%;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.sp-page .sp-review-card #reviews > .grid > div:first-child > div:first-child > div:first-child {
    color: var(--sp-content-navy);
    font-size: 22px !important;
    font-weight: 900;
}

.sp-page .sp-review-card #reviews .text-yellow-400 {
    color: #f9a825 !important;
    letter-spacing: 1px;
}

.sp-page .sp-review-card #reviews > .grid > div:first-child > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
}

.sp-page .sp-review-card #reviews #open-review-modal {
    width: 100% !important;
    min-height: 46px;
    padding: 0 16px !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.sp-page .sp-review-card #reviews #open-review-modal:hover {
    background: #e9484f !important;
    box-shadow: 0 10px 20px rgba(245, 81, 87, .16) !important;
}

/* Reviews list */
.sp-page .sp-review-card #reviews > .grid > div:last-child {
    min-width: 0;
}

.sp-page .sp-review-card #reviews ol {
    display: flex;
    flex-direction: column;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sp-page .sp-review-card #reviews ol > li {
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid #e7e8eb !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.sp-page .sp-review-card #reviews ol > li #comment-\31,
.sp-page .sp-review-card #reviews ol > li > div {
    min-width: 0;
}

.sp-page .sp-review-card #reviews ol > li header {
    margin-bottom: 2px;
    padding-bottom: 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f1f2 !important;
    color: var(--sp-content-muted) !important;
    font-size: 11px !important;
}

.sp-page .sp-review-card #reviews ol > li header > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px !important;
    flex-wrap: wrap;
}

.sp-page .sp-review-card #reviews ol > li header time {
    color: #a1a3a8;
    font-size: 10px;
}

.sp-page .sp-review-card #reviews ol > li header time + div {
    color: var(--sp-content-navy);
    font-size: 12px;
    font-weight: 900;
}

.sp-page .sp-review-card #reviews ol > li header .text-yellow-400 {
    font-size: 15px !important;
    white-space: nowrap;
}

.sp-page .sp-review-card #reviews ol > li .font-semibold {
    margin: 8px 0 2px !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.sp-page .sp-review-card #reviews ol > li .text-gray-700 {
    color: var(--sp-content-text) !important;
    font-size: 13px !important;
    line-height: 2.1 !important;
    text-align: right !important;
}

.sp-page .sp-review-card #reviews ol > li .text-gray-700 p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Pros / cons */
.sp-page .sp-review-card #reviews ol > li .grid.grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 8px;
}

.sp-page .sp-review-card #reviews ol > li .grid.grid-cols-2 > div {
    padding: 12px !important;
    border-radius: 11px !important;
    background: #fafafa;
    border: 1px solid #f0f1f2;
}

.sp-page .sp-review-card #reviews ol > li .grid.grid-cols-2 li {
    display: flex;
    align-items: flex-start !important;
    gap: 7px !important;
    margin-bottom: 7px;
    color: var(--sp-content-text);
    font-size: 11px;
    line-height: 1.9;
}

.sp-page .sp-review-card #reviews ol > li .grid.grid-cols-2 li:last-child {
    margin-bottom: 0;
}

.sp-page .sp-review-card #reviews ol > li .grid.grid-cols-2 li svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
}

/* Helpful actions */
.sp-page .sp-review-card #reviews ol > li .items-start.justify-end {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid #f0f1f2;
    color: #a1a3a8 !important;
    font-size: 10px !important;
}

.sp-page .sp-review-card #reviews ol > li .items-start.justify-end button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid #e7e8eb;
    border-radius: 9px;
    background: #fff;
}

.sp-page .sp-review-card #reviews ol > li .items-start.justify-end button img {
    width: 16px;
    height: 16px;
}

.sp-page .sp-review-card .woocommerce-noreviews {
    margin: 0;
    padding: 28px;
    border: 1px dashed #dfe1e5;
    border-radius: 14px;
    background: #fafafa;
    color: var(--sp-content-muted) !important;
    text-align: center;
}

/* Pagination */
.sp-page .sp-review-card .woocommerce-pagination {
    margin-top: 18px;
}

.sp-page .sp-review-card .woocommerce-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0 !important;
}

.sp-page .sp-review-card .woocommerce-pagination li {
    border: 0 !important;
}

.sp-page .sp-review-card .woocommerce-pagination a,
.sp-page .sp-review-card .woocommerce-pagination span {
    width: 36px;
    height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e5e8 !important;
    border-radius: 9px;
    background: #fff !important;
    color: var(--sp-content-text) !important;
    font-size: 11px;
    font-weight: 800;
}

.sp-page .sp-review-card .woocommerce-pagination .current {
    border-color: var(--sp-content-red) !important;
    background: var(--sp-content-red) !important;
    color: #fff !important;
}

/* =========================================================
   Review modal
   ========================================================= */

body.single-product .review-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(17, 24, 39, .5);
    backdrop-filter: blur(5px);
}

body.single-product .review-modal.hidden {
    display: none !important;
}

body.single-product .review-modal-dialog {
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
}

body.single-product .review-modal-box {
    position: relative;
    width: 100%;
    padding: 26px;
    border: 1px solid #e4e6e9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
}

body.single-product .review-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #62666d;
}

body.single-product .review-modal-close svg {
    width: 20px;
    height: 20px;
}

body.single-product .review-modal-header {
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eceef0;
}

body.single-product .review-modal-header h3 {
    margin: 0 0 5px !important;
    padding-left: 46px;
    color: #111;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.8;
}

body.single-product .review-modal-header p {
    margin: 0 !important;
    color: #81858b !important;
    font-size: 11px !important;
    line-height: 1.9 !important;
}

body.single-product .review-form #commentform {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.single-product .review-form #commentform > p,
body.single-product .review-form #commentform > div {
    margin: 0 !important;
}

body.single-product .review-form .comment-form-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
}

body.single-product .review-form .comment-form-rating > label {
    color: #3f4064 !important;
    font-size: 12px !important;
    font-weight: 900;
}

body.single-product .review-form .rating {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    gap: 4px !important;
}

body.single-product .review-form .rating input {
    display: none !important;
}

body.single-product .review-form .rating label {
    color: #d8dade;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

body.single-product .review-form .rating label:hover,
body.single-product .review-form .rating label:hover ~ label,
body.single-product .review-form .rating input:checked ~ label {
    color: #f9a825;
}

body.single-product .review-form .rating label:hover {
    transform: translateY(-1px);
}

body.single-product .review-form input[type="text"],
body.single-product .review-form input[type="email"],
body.single-product .review-form textarea {
    width: 100% !important;
    min-width: 0;
    border: 1px solid #dfe2e6 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #23254e !important;
    padding: 11px 13px !important;
    outline: none !important;
    font-size: 12px !important;
    line-height: 1.9 !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.single-product .review-form input[type="text"]:focus,
body.single-product .review-form input[type="email"]:focus,
body.single-product .review-form textarea:focus {
    border-color: rgba(250, 121, 33, .55) !important;
    box-shadow: 0 0 0 3px rgba(250, 121, 33, .08) !important;
}

body.single-product .review-form .comment-form-positive textarea,
body.single-product .review-form .comment-form-negative textarea {
    min-height: 82px !important;
    height: 82px !important;
}

body.single-product .review-form .comment-form-comment textarea {
    min-height: 120px !important;
    height: 120px !important;
}

body.single-product .review-upload-field {
    padding: 14px;
    border: 1px dashed #d9dce1;
    border-radius: 12px;
    background: #fafafa;
}

body.single-product .review-upload-btn {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e4e8;
    border-radius: 10px;
    background: #fff;
    color: var(--sp-content-text, #3f4064);
    cursor: pointer;
}

body.single-product .review-upload-label {
    font-size: 11px;
    font-weight: 900;
}

body.single-product .review-upload-file-name {
    margin-top: 8px;
    color: #a1a3a8;
    font-size: 10px;
    text-align: center;
}

body.single-product .review-form .form-submit {
    margin-top: 2px !important;
}

body.single-product .review-form .form-submit input[type="submit"] {
    width: 100%;
    min-height: 48px;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--sp-content-red, #f55157) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease;
}

body.single-product .review-form .form-submit input[type="submit"]:hover {
    background: #e9484f !important;
    box-shadow: 0 10px 20px rgba(245, 81, 87, .17);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
    .sp-page .sp-intro-layout {
        grid-template-columns: minmax(0, 1fr) 285px;
        gap: 28px;
    }

    .sp-page .sp-review-card #reviews > .grid {
        grid-template-columns: 240px minmax(0, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 900px) {
    .sp-page .sp-tabs-card .custom-tabs-nav {
        top: 64px;
    }

    .sp-page .sp-intro-layout {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .sp-page .sp-intro-offer {
        position: static;
        order: -1;
        top: auto;
        width: 100%;
    }

    .sp-page .sp-review-card #reviews > .grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .sp-page .sp-review-card #reviews > .grid > div:first-child {
        position: static;
        top: auto;
    }
}

@media (max-width: 767px) {
    .sp-page .sp-tabs-section {
        padding: 4px 0 24px !important;
    }

    .sp-page .sp-tabs-card .custom-tabs-nav {
        top: 58px;
        min-height: 50px;
        margin-bottom: 20px !important;
    }

    .sp-page .sp-tabs-card .custom-tab-item {
        height: 50px !important;
        padding: 0 13px !important;
        font-size: 11px !important;
    }

    .sp-page .sp-tabs-card .custom-tab-item.active::after {
        right: 13px !important;
        left: 13px !important;
    }

    .sp-page .sp-intro-heading,
    .sp-page .sp-specifications-heading,
    .sp-page .product-video > h3,
    .sp-page .sp-review-card #reviews > h2 {
        margin-bottom: 18px !important;
        padding-bottom: 12px !important;
        font-size: 17px !important;
    }

    .sp-page .sp-intro-heading h2,
    .sp-page .sp-specifications-heading h2 {
        font-size: 17px !important;
    }

    .sp-page .sp-intro-prose,
    .sp-page .sp-intro-prose p {
        font-size: 13px !important;
        line-height: 2.2 !important;
        text-align: right !important;
    }

    .sp-page .sp-intro-prose p {
        margin-bottom: 14px !important;
    }

    .sp-page .sp-intro-prose h2 { font-size: 17px !important; }
    .sp-page .sp-intro-prose h3 { font-size: 16px !important; }
    .sp-page .sp-intro-prose h4 { font-size: 15px !important; }

    .sp-page .sp-intro-prose img,
    .sp-page .sp-intro-prose figure {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        border-radius: 12px;
    }

    .sp-page .sp-intro-offer {
        padding: 14px;
        border-radius: 15px;
    }

    .sp-page .sp-intro-offer-badge {
        min-height: 44px;
        margin: -14px -14px 12px;
        padding: 0 14px;
        border-radius: 15px 15px 0 0;
    }

    .sp-page .sp-intro-offer-product {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .sp-page .sp-intro-offer-thumb {
        width: 68px;
        height: 68px;
    }

    .sp-page .sp-intro-offer-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    .sp-page .sp-intro-offer-row {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 8px;
    }

    .sp-page .sp-intro-offer-row:nth-child(3) {
        grid-column: 1 / -1;
    }

    .sp-page .sp-intro-offer-cta {
        min-height: 46px;
    }

    .sp-page .sp-specifications-panel .woocommerce-product-attributes-item {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
        min-height: 0;
        padding: 12px 0 !important;
    }

    .sp-page .sp-specifications-panel .woocommerce-product-attributes-item__label {
        font-size: 11px !important;
    }

    .sp-page .sp-specifications-panel .woocommerce-product-attributes-item__value {
        font-size: 12px !important;
    }

    .sp-page .product-video {
        max-width: none;
    }

    .sp-page .product-video-frame,
    .sp-page .product-video-player {
        width: 100% !important;
        max-width: none !important;
        border-radius: 13px !important;
        box-shadow: none;
    }

    .sp-page .sp-review-section {
        padding-bottom: 40px !important;
    }

    .sp-page .sp-review-card #reviews > .grid > div:first-child {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .sp-page .sp-review-card #reviews ol > li {
        padding: 15px !important;
        border-radius: 13px !important;
    }

    .sp-page .sp-review-card #reviews ol > li header {
        align-items: flex-start !important;
        gap: 8px;
    }

    .sp-page .sp-review-card #reviews ol > li .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .sp-page .sp-review-card #reviews ol > li .items-start.justify-end {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }

    body.single-product .review-modal {
        align-items: flex-end;
        padding: 12px;
    }

    body.single-product .review-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    body.single-product .review-modal-box {
        padding: 20px 15px 16px;
        border-radius: 18px;
    }

    body.single-product .review-modal-header h3 {
        font-size: 16px;
    }

    body.single-product .review-form .comment-form-rating {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    body.single-product .review-form .rating label {
        font-size: 23px;
    }
}

@media (max-width: 480px) {
    .sp-page .sp-intro-offer-meta {
        grid-template-columns: 1fr;
    }

    .sp-page .sp-intro-offer-row:nth-child(3) {
        grid-column: auto;
    }

    .sp-page .sp-review-card #reviews ol > li {
        padding: 13px !important;
    }
}

/* =========================================================
   V40 — Product tabs sticky navigation: full-width familiar bar
   Replaces the detached floating pill from V39.
   Scope: sticky state only; tab behavior/content untouched.
   ========================================================= */
.sp-page .sp-tabs-card .custom-tabs-nav {
    transition:
            min-height .2s ease,
            padding .2s ease,
            border-color .2s ease,
            background-color .2s ease,
            box-shadow .2s ease;
}

/* Sticky state: stay visually attached to the content, like a normal tab bar. */
.sp-page .sp-tabs-card .custom-tabs-nav.is-stuck {
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    margin: 0 0 24px !important;
    padding: 0 12px !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(225, 227, 231, .98) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 8px 20px rgba(35, 37, 78, .055) !important;
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item {
    height: 54px !important;
    padding: 0 18px !important;
    border-radius: 0 !important;
    color: #71757d !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color .18s ease, background-color .18s ease;
}

.sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item:hover {
    color: #23254e !important;
    background: #f8f9fa !important;
}

.sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item.active {
    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Familiar active-tab underline instead of the floating dot/pill. */
.sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item.active::after {
    right: 18px !important;
    left: 18px !important;
    bottom: 0 !important;
    width: auto !important;
    height: 3px !important;
    border-radius: 3px 3px 0 0 !important;
    background: var(--sp-content-red, #f55157) !important;
    transform: none !important;
}

@media (max-width: 900px) {
    .sp-page .sp-tabs-card .custom-tabs-nav.is-stuck {
        min-height: 50px !important;
        margin-bottom: 20px !important;
        padding: 0 8px !important;
        box-shadow: 0 6px 16px rgba(35, 37, 78, .05) !important;
    }

    .sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item {
        height: 50px !important;
        padding: 0 14px !important;
    }

    .sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item.active::after {
        right: 14px !important;
        left: 14px !important;
    }
}

@media (max-width: 767px) {
    .sp-page .sp-tabs-card .custom-tabs-nav.is-stuck {
        width: 100% !important;
        max-width: none !important;
        min-height: 48px !important;
        margin-bottom: 18px !important;
        padding: 0 4px !important;
        overflow-x: auto !important;
        border-radius: 0 !important;
        box-shadow: 0 5px 14px rgba(35, 37, 78, .05) !important;
    }

    .sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item {
        height: 48px !important;
        padding: 0 12px !important;
        font-size: 11px !important;
    }

    .sp-page .sp-tabs-card .custom-tabs-nav.is-stuck .custom-tab-item.active::after {
        right: 12px !important;
        left: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-page .sp-tabs-card .custom-tabs-nav,
    .sp-page .sp-tabs-card .custom-tab-item {
        transition: none !important;
    }
}

/* =========================================================
   Mobile compact purchase summary inside product intro
   Desktop/tablet keep the full offer card untouched.
   ========================================================= */
@media (max-width: 767px) {
    .sp-page .sp-intro-offer {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "badge badge"
            "stock shipping"
            "price price"
            "cta cta";
        gap: 10px !important;
        width: 100% !important;
        padding: 14px !important;
        overflow: visible !important;
        border: 1px solid #e7e8eb !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .sp-page .sp-intro-offer-badge {
        grid-area: badge;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 0 2px !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--sp-content-orange, #fe5e22) !important;
        font-size: 11px !important;
        line-height: 1.7 !important;
    }

    .sp-page .sp-intro-offer-badge strong {
        min-width: auto !important;
        height: 24px !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        background: #fff1eb !important;
        color: var(--sp-content-orange, #fe5e22) !important;
        font-size: 10px !important;
        box-shadow: none !important;
    }

    .sp-page .sp-intro-offer-product {
        grid-area: stock;
        display: flex !important;
        align-items: center !important;
        min-width: 0;
        min-height: 48px;
        padding: 9px 10px !important;
        border: 1px solid #edf0f2 !important;
        border-radius: 12px !important;
        background: #f8f9fa !important;
    }

    .sp-page .sp-intro-offer-thumb,
    .sp-page .sp-intro-offer-product-info > strong {
        display: none !important;
    }

    .sp-page .sp-intro-offer-product-info {
        width: 100%;
    }

    .sp-page .sp-intro-stock {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1.6 !important;
        white-space: nowrap;
    }

    .sp-page .sp-intro-offer-meta {
        grid-area: shipping;
        display: block !important;
        padding: 0 !important;
    }

    .sp-page .sp-intro-offer-row {
        display: none !important;
    }

    .sp-page .sp-intro-offer-row:nth-child(3) {
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) !important;
        gap: 7px !important;
        align-items: center !important;
        min-height: 48px;
        padding: 8px 10px !important;
        border: 1px solid #edf0f2 !important;
        border-radius: 12px !important;
        background: #f8f9fa !important;
    }

    .sp-page .sp-intro-offer-row:nth-child(3) .icon {
        width: 20px !important;
        height: 20px !important;
        color: #6f7580 !important;
    }

    .sp-page .sp-intro-offer-row:nth-child(3) small {
        display: none !important;
    }

    .sp-page .sp-intro-offer-row:nth-child(3) strong {
        color: #2f3148 !important;
        font-size: 9.5px !important;
        line-height: 1.65 !important;
        font-weight: 800 !important;
    }

    .sp-page .sp-intro-offer-price {
        grid-area: price;
        min-height: 0 !important;
        margin-top: 0 !important;
        padding: 10px 2px 2px !important;
        border-top: 1px dashed #e5e7ea;
    }

    .sp-page .sp-intro-offer-price .price {
        gap: 7px !important;
        justify-content: flex-start !important;
    }

    .sp-page .sp-intro-offer-price ins,
    .sp-page .sp-intro-offer-price > .woocommerce-Price-amount,
    .sp-page .sp-intro-offer-price .price > .woocommerce-Price-amount {
        font-size: 18px !important;
        font-weight: 900 !important;
    }

    .sp-page .sp-intro-offer-price del {
        font-size: 10px !important;
    }

    .sp-page .sp-intro-offer-cta {
        grid-area: cta;
        min-height: 46px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        background: #fe5e22 !important;
        color: #fff !important;
        box-shadow: none !important;
        font-size: 12px !important;
        font-weight: 900 !important;
    }

    .sp-page .sp-intro-offer-cta:hover,
    .sp-page .sp-intro-offer-cta:focus-visible {
        background: #ed4f17 !important;
        color: #fff !important;
    }
}

@media (max-width: 380px) {
    .sp-page .sp-intro-offer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "badge"
            "stock"
            "shipping"
            "price"
            "cta";
    }
}
@media (max-width: 820px) {
    .sp-page .sp-intro-offer {
        display: none !important;
    }
}