/* New Waves Premium Product Details - v2.2.0 */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    margin-top: clamp(2rem, 4vw, 4rem);
    border: 1px solid color-mix(in srgb, var(--color-primary-500, #b88927) 24%, #e9e2d7);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, #fffdfa 100%);
    box-shadow: 0 22px 70px rgba(52, 35, 12, .055);
    overflow: hidden;
}

.single-product .woocommerce-tabs.wc-tabs-wrapper,
.single-product .woocommerce-tabs.wc-tabs-wrapper *,
.newwaves-premium-product-details,
.newwaves-premium-product-details * {
    box-sizing: border-box;
    min-inline-size: 0;
}

.single-product .woocommerce-tabs.wc-tabs-wrapper > .tabs.wc-tabs {
    max-inline-size: 100%;
    margin: 0;
    padding: .85rem 1.25rem 0;
    gap: .5rem;
    border-bottom: 1px solid #eee5d8;
    background: rgba(252, 249, 243, .68);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}
.single-product .woocommerce-tabs.wc-tabs-wrapper > .tabs.wc-tabs::-webkit-scrollbar { display: none; }
.single-product .woocommerce-tabs.wc-tabs-wrapper > .tabs.wc-tabs:has(> li:only-child) { display: none; }
.single-product .woocommerce-tabs.wc-tabs-wrapper > .tabs.wc-tabs li { margin: 0 .25rem 0 0; white-space: nowrap; }
.single-product .woocommerce-tabs.wc-tabs-wrapper > .tabs.wc-tabs li a { padding: .85rem .8rem; }

.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    min-inline-size: 0;
    max-inline-size: 100%;
    margin: 0;
    padding: 0;
}
.single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { display: none; }
.single-product .woocommerce-tabs .woocommerce-Tabs-panel .prose { max-width: none; }

.newwaves-premium-product-details {
    --nw-detail-gold: var(--color-primary-600, #a87818);
    --nw-detail-gold-soft: color-mix(in srgb, var(--nw-detail-gold) 12%, white);
    --nw-detail-border: color-mix(in srgb, var(--nw-detail-gold) 20%, #e8e1d7);
    display: grid;
    grid-template-columns: minmax(205px, 250px) minmax(0, 1fr);
    inline-size: 100%;
    max-inline-size: 100%;
    min-height: 300px;
    overflow: clip;
}

.newwaves-premium-product-details__rail {
    position: relative;
    min-inline-size: 0;
    padding: 2rem 1.45rem;
    border-inline-end: 1px solid var(--nw-detail-border);
    background:
        radial-gradient(circle at 50% 0, rgba(184, 137, 39, .09), transparent 42%),
        linear-gradient(180deg, #fffdfa 0%, #fbf7f0 100%);
}
.newwaves-premium-product-details__rail-inner {
    position: sticky;
    top: 96px;
    max-block-size: calc(100vh - 116px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 120, 24, .25) transparent;
}

.newwaves-premium-product-details__mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    color: var(--nw-detail-gold);
    opacity: .88;
}
.newwaves-premium-product-details__mark svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.newwaves-premium-product-details__mark svg path:last-child { stroke-width: 1; opacity: .7; }

.newwaves-premium-product-details__eyebrow {
    display: block;
    margin-bottom: 1rem;
    text-align: center;
    color: #8e6a2c;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
[dir="rtl"] .newwaves-premium-product-details__eyebrow { letter-spacing: 0; }

.newwaves-premium-product-details__nav {
    display: flex;
    min-inline-size: 0;
    max-inline-size: 100%;
    flex-direction: column;
}
.newwaves-premium-product-details__nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: .78rem .85rem;
    border-bottom: 1px solid rgba(151, 123, 75, .14);
    color: #5f5a51;
    font-size: .92rem;
    line-height: 1.3;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: color .18s ease, background-color .18s ease, padding .18s ease;
}
.newwaves-premium-product-details__nav-link::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    width: 2px;
    height: 0;
    border-radius: 999px;
    background: var(--nw-detail-gold);
    transition: height .18s ease;
}
.newwaves-premium-product-details__nav-link:hover,
.newwaves-premium-product-details__nav-link.is-active {
    color: #2f2517;
    background: rgba(184, 137, 39, .055);
    padding-inline-start: 1rem;
}
.newwaves-premium-product-details__nav-link.is-active::before { height: 26px; }

.newwaves-premium-product-details__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-inline-size: 0;
    max-inline-size: 100%;
    align-content: start;
    padding: clamp(1.4rem, 3vw, 2.7rem);
}

.newwaves-premium-description__section {
    min-inline-size: 0;
    max-inline-size: 100%;
    padding: 1.35rem 1.35rem 1.45rem;
    scroll-margin-top: 110px;
    border-bottom: 1px solid rgba(150, 124, 82, .14);
}
.newwaves-premium-description__section:nth-child(odd):not(.newwaves-premium-description__section--wide) {
    border-inline-end: 1px solid rgba(150, 124, 82, .14);
}
.newwaves-premium-description__section--wide { grid-column: 1 / -1; }
.newwaves-premium-description__section:first-child { padding-top: .2rem; }

.newwaves-premium-description__heading {
    position: relative;
    max-inline-size: 100%;
    margin: 0 0 1rem !important;
    padding-bottom: .75rem;
    color: #272119 !important;
    font-size: clamp(1.15rem, 1.6vw, 1.48rem) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -.018em;
    overflow-wrap: anywhere;
}
.newwaves-premium-description__heading::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: var(--nw-detail-gold);
}
.newwaves-premium-description__section:first-child .newwaves-premium-description__heading {
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
}
.newwaves-premium-description__toggle { display: none; }

.newwaves-premium-description__body {
    min-inline-size: 0;
    max-inline-size: 100%;
    color: #4f4a43;
    font-size: clamp(.94rem, 1vw, 1.02rem);
    line-height: 1.82;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}
.newwaves-premium-description__body > :first-child { margin-top: 0 !important; }
.newwaves-premium-description__body > :last-child { margin-bottom: 0 !important; }
.newwaves-premium-description__body p { max-inline-size: 100%; margin: 0 0 .9rem; color: inherit; overflow-wrap: anywhere; }
.newwaves-premium-description__body strong { color: #28231d; font-weight: 700; }
.newwaves-premium-description__body a,
.newwaves-premium-description__body code,
.newwaves-premium-description__body kbd,
.newwaves-premium-description__body samp { overflow-wrap: anywhere; word-break: break-word; }
.newwaves-premium-description__body img,
.newwaves-premium-description__body video,
.newwaves-premium-description__body iframe,
.newwaves-premium-description__body svg { max-inline-size: 100%; height: auto; }
.newwaves-premium-description__body pre {
    max-inline-size: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
}
.newwaves-premium-description__body table {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.newwaves-premium-description__body ul,
.newwaves-premium-description__body ol {
    display: grid;
    min-inline-size: 0;
    max-inline-size: 100%;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.newwaves-premium-description__section--list .newwaves-premium-description__body ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.newwaves-premium-description__body li {
    position: relative;
    min-inline-size: 0;
    max-inline-size: 100%;
    margin: 0;
    padding-inline-start: 1.7rem;
    color: #504b44;
    overflow-wrap: anywhere;
}
.newwaves-premium-description__body li::before {
    content: "\2713";
    position: absolute;
    inset-inline-start: 0;
    top: .12em;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--nw-detail-gold) 60%, white);
    border-radius: 50%;
    color: var(--nw-detail-gold);
    font-size: .66rem;
    font-weight: 800;
    line-height: 1;
}


.newwaves-premium-description__section--metrics .newwaves-premium-description__body p {
    max-inline-size: 100%;
    padding: .9rem 1rem;
    border: 1px solid rgba(155, 126, 80, .14);
    border-radius: 12px;
    background: #fffdf9;
}

/* Small premium refinements to the existing single-product hero. */
.single-product .newwaves-ui-single-product-grid .woocommerce-product-gallery,
.single-product .newwaves-ui-single-product-grid .newwaves-ui-product-gallery {
    filter: drop-shadow(0 18px 34px rgba(61, 42, 16, .07));
}
.single-product .newwaves-ui-single-product-grid .summary form.cart {
    box-shadow: 0 10px 36px rgba(87, 59, 18, .035);
}
.single-product .woocommerce-product-details__short-description p { text-wrap: pretty; }

/* Tablet: keep all information visible with a compact scrollable section navigator. */
@media (max-width: 1023px) {
    .newwaves-premium-product-details { grid-template-columns: 1fr; }
    .newwaves-premium-product-details__rail {
        min-inline-size: 0;
        max-inline-size: 100%;
        padding: .95rem 1rem;
        border-inline-end: 0;
        border-bottom: 1px solid var(--nw-detail-border);
        overflow: hidden;
    }
    .newwaves-premium-product-details__rail-inner {
        position: static;
        max-block-size: none;
        overflow: visible;
    }
    .newwaves-premium-product-details__mark,
    .newwaves-premium-product-details__eyebrow { display: none; }
    .newwaves-premium-product-details__nav {
        flex-direction: row;
        max-inline-size: 100%;
        gap: .45rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding-bottom: .15rem;
    }
    .newwaves-premium-product-details__nav::-webkit-scrollbar { display: none; }
    .newwaves-premium-product-details__nav-link {
        min-height: 38px;
        flex: 0 0 auto;
        max-inline-size: min(78vw, 330px);
        padding: .6rem .85rem;
        border: 1px solid rgba(151, 123, 75, .16);
        border-radius: 999px;
        background: #fff;
        scroll-snap-align: start;
        font-size: .82rem;
        white-space: normal;
    }
    .newwaves-premium-product-details__nav-link::before { display: none; }
    .newwaves-premium-product-details__nav-link.is-active {
        padding-inline-start: .85rem;
        border-color: color-mix(in srgb, var(--nw-detail-gold) 45%, white);
        background: var(--nw-detail-gold-soft);
        color: #5b4013;
    }
    .newwaves-premium-product-details__content { padding: 1.35rem 1.2rem 1.6rem; }
}

/* Mobile: use an accessible progressive-disclosure pattern instead of seven tiny tabs. */
@media (max-width: 767px) {
    .single-product .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 2rem;
        border-radius: 16px;
        overflow-x: clip;
    }
    .newwaves-premium-product-details__rail { display: none; }
    .newwaves-premium-product-details__content {
        grid-template-columns: minmax(0, 1fr);
        gap: .72rem;
        inline-size: 100%;
        max-inline-size: 100%;
        padding: .72rem;
        background: #fbf8f2;
    }
    .newwaves-premium-description__section,
    .newwaves-premium-description__section--wide {
        grid-column: auto;
        inline-size: 100%;
        max-inline-size: 100%;
        padding: 0;
        border: 1px solid var(--nw-detail-border);
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(57, 40, 17, .035);
    }
    .newwaves-premium-description__section:nth-child(odd):not(.newwaves-premium-description__section--wide) {
        border-inline-end: 1px solid var(--nw-detail-border);
    }
    .newwaves-premium-description__section:first-child { padding-top: 0; }
    .newwaves-premium-description__heading,
    .newwaves-premium-description__section:first-child .newwaves-premium-description__heading {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1rem !important;
        line-height: 1.35 !important;
    }
    .newwaves-premium-description__heading::after { display: none; }
    .newwaves-premium-description__heading-text { display: none; }
    .newwaves-premium-description__toggle {
        display: flex;
        inline-size: 100%;
        max-inline-size: 100%;
        min-height: 52px;
        align-items: center;
        justify-content: space-between;
        gap: .8rem;
        padding: .88rem 1rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #282119;
        font: inherit;
        font-weight: 700;
        line-height: 1.35;
        text-align: start;
        cursor: pointer;
        overflow-wrap: anywhere;
    }
    .newwaves-premium-description__toggle:focus-visible {
        outline: 2px solid var(--nw-detail-gold);
        outline-offset: -3px;
    }
    .newwaves-premium-description__toggle-icon {
        position: relative;
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        border: 1px solid color-mix(in srgb, var(--nw-detail-gold) 28%, white);
        border-radius: 50%;
        background: var(--nw-detail-gold-soft);
    }
    .newwaves-premium-description__toggle-icon::before,
    .newwaves-premium-description__toggle-icon::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 1.5px;
        border-radius: 99px;
        background: var(--nw-detail-gold);
        transform: translate(-50%, -50%);
        transition: transform .18s ease, opacity .18s ease;
    }
    .newwaves-premium-description__toggle-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
    .newwaves-premium-description__toggle[aria-expanded="true"] .newwaves-premium-description__toggle-icon::after {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    .newwaves-premium-description__body {
        inline-size: 100%;
        max-inline-size: 100%;
        padding: .05rem 1rem 1.05rem;
        font-size: .94rem;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }
    .newwaves-premium-description__body[hidden] { display: none !important; }
    .newwaves-premium-description__section--list .newwaves-premium-description__body ul { grid-template-columns: minmax(0, 1fr); }
    .newwaves-premium-description__section--metrics .newwaves-premium-description__body p { padding: .78rem .82rem; }
}

[dir="rtl"] .newwaves-premium-product-details__content,
[dir="rtl"] .newwaves-premium-description__body { text-align: right; }

.dark .newwaves-premium-product-details,
.dark .single-product .woocommerce-tabs.wc-tabs-wrapper {
    background: linear-gradient(145deg, #171717 0%, #121212 100%);
    border-color: rgba(184, 137, 39, .24);
}
.dark .newwaves-premium-product-details__rail { background: #15130f; }
.dark .newwaves-premium-description__heading,
.dark .newwaves-premium-description__body strong { color: #f7f2e9 !important; }
.dark .newwaves-premium-description__body,
.dark .newwaves-premium-description__body li { color: #d4cec3; }
.dark .newwaves-premium-description__section--metrics .newwaves-premium-description__body p { background: #181612; border-color: rgba(184,137,39,.18); }
.dark .newwaves-premium-product-details__nav-link { color: #c8c0b2; }
.dark .newwaves-premium-product-details__nav-link.is-active { color: #f3dfb3; background: rgba(184,137,39,.11); }
@media (max-width: 767px) {
    .dark .newwaves-premium-product-details__content { background: #111; }
    .dark .newwaves-premium-description__section { background: #15130f; }
    .dark .newwaves-premium-description__toggle { color: #f7f2e9; }
}

@media (prefers-reduced-motion: reduce) {
    .newwaves-premium-product-details__nav-link,
    .newwaves-premium-description__toggle-icon::before,
    .newwaves-premium-description__toggle-icon::after { transition: none; }
}
