/**
 * Wholesale Shapewear — page-wholesale-shapewear.php
 *
 * Scoped under .ws-page. All classes prefixed ws- to avoid conflicts
 * with bridge CSS and other page stylesheets.
 */

/* ====== Design Tokens ====== */
.ws-page {
    --ws-ink: #161414;
    --ws-ink-soft: #5c5652;
    --ws-line: #e7e2de;
    --ws-paper: #ffffff;
    --ws-paper-alt: #f7f4f1;
    --ws-pink: #e91e8c;
    --ws-pink-dark: #b8156d;
    --ws-pink-wash: #fdeaf4;
    --ws-radius: 2px;
    --ws-maxw: 1280px;
}

/* ====== Reset within page ====== */
.ws-page,
.ws-page *,
.ws-page *::before,
.ws-page *::after {
    box-sizing: border-box;
}

.ws-page {
    scroll-behavior: smooth;
    color: var(--ws-ink);
}

@media (prefers-reduced-motion: reduce) {
    .ws-page {
        scroll-behavior: auto;
    }
    .ws-page *,
    .ws-page *::before,
    .ws-page *::after {
        animation: none !important;
        transition: none !important;
    }
}

.ws-page a {
    color: inherit;
}

.ws-page img {
    max-width: 100%;
    display: block;
}

/* ── Force design ink color against theme base h1/h2/h3/p rules ── */
.ws-page h1,
.ws-page h2,
.ws-page h3,
.ws-page p {
    color: var(--ws-ink) !important;
}

/* Restore pink where the design calls for it */
.ws-page .ws-eyebrow,
.ws-page .ws-panel__kicker,
.ws-page .ws-panel--wholesale .ws-panel__kicker,
.ws-page .ws-panel__moq,
.ws-page .ws-panel--wholesale .ws-panel__moq,
.ws-page .pc-card__extra-badge,
.ws-page .ws-hero__title em {
    color: var(--ws-pink-dark) !important;
}

.ws-page .ws-stat__num {
    color: var(--ws-pink) !important;
}

.ws-page .ws-stats,
.ws-page .ws-stats h1,
.ws-page .ws-stats h2,
.ws-page .ws-stats h3,
.ws-page .ws-stats p {
    color: #fff !important;
}

/* ====== Layout ====== */
.ws-wrap {
    max-width: var(--ws-maxw);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 720px) {
    .ws-wrap {
        padding: 0 20px;
    }
}

/* ====== Typography ====== */
.ws-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ws-pink-dark);
    margin: 0 0 14px;
}

.ws-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.ws-section-head h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.ws-section-head p {
    color: var(--ws-ink-soft);
    font-size: 15.5px;
    margin: 0;
}

/* ====== Buttons ====== */
.ws-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--ws-radius);
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ws-btn:focus-visible {
    outline: 2.5px solid var(--ws-pink);
    outline-offset: 2px;
}

.ws-btn--wa {
    background: #25D366;
    color: #fff;
}

.ws-btn--wa:hover {
    background: #1ebe5a;
    transform: translateY(-1px);
}

.ws-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--ws-ink-soft);
    border: 1px solid var(--ws-line);
    border-radius: 100px;
    padding: 6px 14px;
    background: #fff;
}

/* ====== Hero ====== */
.ws-hero {
    padding: 140px 0 72px; /* 96px sticky header + 44px breathing room */
    background: linear-gradient(180deg, var(--ws-paper) 0%, var(--ws-paper-alt) 100%);
    text-align: center;
}

/* Force center alignment — theme base styles may override inherited text-align */
.ws-page .ws-hero,
.ws-page .ws-hero__title,
.ws-page .ws-hero__desc,
.ws-page .ws-eyebrow {
    text-align: center !important;
}

.ws-hero__title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.08;
    max-width: 820px;
    margin: 0 auto 20px;
}

.ws-hero__title em {
    font-style: normal;
    color: var(--ws-pink);
}

.ws-hero__desc {
    font-size: 17px;
    color: var(--ws-ink-soft);
    max-width: 560px;
    margin: 0 auto 36px;
}

.ws-hero__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.ws-hero__tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}

/* ====== Compare ====== */
.ws-compare {
    padding: 88px 0;
}

.ws-compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--ws-line);
    position: relative;
}

.ws-compare__grid::after {
    content: "OR";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ws-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

@media (max-width: 820px) {
    .ws-compare__grid {
        grid-template-columns: 1fr;
    }
    .ws-compare__grid::after {
        top: 0;
    }
}

.ws-panel {
    padding: 44px 40px;
}

.ws-panel--oem {
    background: var(--ws-paper);
    border-right: 1px solid var(--ws-line);
}

.ws-panel--wholesale {
    background: var(--ws-pink-wash);
}

@media (max-width: 820px) {
    .ws-panel--oem {
        border-right: none;
        border-bottom: 1px solid var(--ws-line);
    }
}

.ws-panel__kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ws-ink-soft);
    margin: 0 0 10px;
}

.ws-panel--wholesale .ws-panel__kicker {
    color: var(--ws-pink-dark);
}

.ws-panel h3 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}

.ws-panel__moq {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.ws-panel--wholesale .ws-panel__moq {
    color: var(--ws-pink-dark);
}

.ws-panel__moq-label {
    font-size: 13px;
    color: var(--ws-ink-soft);
    margin-bottom: 26px;
}

.ws-panel__list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.ws-panel__list li {
    font-size: 14.5px;
    padding: 10px 0 10px 24px;
    position: relative;
    border-top: 1px solid var(--ws-line);
}

.ws-panel__list li:first-child {
    border-top: none;
}

.ws-panel__list li::before {
    content: "\2014"; /* em dash */
    position: absolute;
    left: 0;
    color: var(--ws-ink-soft);
}

.ws-panel--wholesale .ws-panel__list li::before {
    color: var(--ws-pink-dark);
}

.ws-panel__foot {
    font-size: 13px;
    color: var(--ws-ink-soft);
    margin: 0;
}

/* ====== Product Grid ====== */
.ws-stock {
    padding: 88px 0;
    background: var(--ws-paper-alt);
}

.ws-stock__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.ws-stock__head h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.ws-stock__note {
    font-size: 13.5px;
    color: var(--ws-ink-soft);
    max-width: 360px;
    margin: 0;
}

.ws-stock__empty {
    text-align: center;
    font-size: 15px;
    color: var(--ws-ink-soft);
    padding: 48px 0;
}

.ws-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 900px) {
    .ws-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ws-grid {
        grid-template-columns: 1fr;
    }
}

/* Card wrapper — hosts the unified pc-card + clearance badge */
.ws-card-wrapper {
    position: relative;
}

.ws-page .pc-card__body {
    padding-left: 10px;
    padding-right: 10px;
}

/* Extra badge rendered inside pc-card__body (optional param sf_card_extra_badge) */
.ws-page .pc-card__extra-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b8156d;
    background: #fdeaf4;
    padding: 4px 9px;
    border-radius: 100px;
    margin-bottom: 8px;
}

/* ── pc-card image positioning (self-contained, does not rely on theme scope chain) ── */
.ws-card-wrapper .pc-card {
    display: block;
    background: #fff;
    border: 1px solid var(--ws-line);
    overflow: hidden;
}

.ws-card-wrapper .pc-card__img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f1ee;
}

.ws-card-wrapper .pc-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ws-card-wrapper .pc-card__img-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-card-wrapper .pc-card__gallery-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.ws-card-wrapper .pc-card__gallery-arrow {
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.ws-card-wrapper .pc-card__gallery-counter {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
}

/* ====== Customization ====== */
.ws-custom {
    padding: 88px 0;
}

.ws-custom__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 820px) {
    .ws-custom__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.ws-custom__visual {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ws-custom__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-custom h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.ws-custom p {
    color: var(--ws-ink-soft);
    font-size: 15px;
    margin: 0 0 22px;
    max-width: 460px;
}

.ws-check-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.ws-check-list li {
    font-size: 14.5px;
    padding: 9px 0 9px 26px;
    position: relative;
    border-top: 1px solid var(--ws-line);
}

.ws-check-list li:first-child {
    border-top: none;
}

.ws-check-list li::before {
    content: "\2713"; /* check mark */
    position: absolute;
    left: 0;
    color: var(--ws-pink-dark);
    font-weight: 800;
}

.ws-custom__note {
    font-size: 13px;
    color: var(--ws-ink-soft);
    border-left: 2px solid var(--ws-line);
    padding-left: 14px;
    max-width: 460px;
    margin: 0;
}

/* ====== Stats ====== */
.ws-stats {
    padding: 56px 0;
    background: var(--ws-ink);
    color: #fff;
}

.ws-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

@media (max-width: 700px) {
    .ws-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ws-stat__num {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    color: var(--ws-pink);
}

.ws-stat__label {
    font-size: 12.5px;
    color: #c9c4c1;
    margin-top: 4px;
}

/* ====== FAQ ====== */
.ws-faq {
    padding: 88px 0;
    max-width: 760px;
    margin: 0 auto;
}

.ws-faq__item {
    border-top: 1px solid var(--ws-line);
}

.ws-faq__item:last-child {
    border-bottom: 1px solid var(--ws-line);
}

.ws-faq__q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ws-ink);
    font-family: inherit;
}

.ws-faq__q:focus-visible {
    outline: 2.5px solid var(--ws-pink);
    outline-offset: 2px;
}

.ws-faq__icon {
    flex: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--ws-ink);
    border-radius: 50%;
    position: relative;
}

.ws-faq__icon::before,
.ws-faq__icon::after {
    content: "";
    position: absolute;
    background: var(--ws-ink);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ws-faq__icon::before {
    width: 9px;
    height: 1.5px;
}

.ws-faq__icon::after {
    width: 1.5px;
    height: 9px;
    transition: transform 0.2s ease;
}

.ws-faq__item--open .ws-faq__icon {
    border-color: var(--ws-pink);
}

.ws-faq__item--open .ws-faq__icon::before,
.ws-faq__item--open .ws-faq__icon::after {
    background: var(--ws-pink);
}

.ws-faq__item--open .ws-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.ws-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.ws-faq__a p {
    margin: 0 4px 22px;
    font-size: 14.5px;
    color: var(--ws-ink-soft);
    max-width: 640px;
}

/* ====== CTA ====== */
.ws-cta {
    padding: 80px 0 96px;
    text-align: center;
    background: var(--ws-paper-alt);
}

.ws-cta h2 {
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.ws-cta p {
    color: var(--ws-ink-soft);
    font-size: 15px;
    margin: 0 0 34px;
    text-align: center;
}

.ws-cta__row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.ws-cta__card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ws-line);
    padding: 12px 18px;
    text-decoration: none;
    border-radius: var(--ws-radius);
}

.ws-cta__card:hover {
    border-color: #25D366;
}

.ws-cta__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ws-pink-wash);
    color: var(--ws-pink-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex: none;
    position: relative;
}

.ws-cta__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ws-cta__avatar-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #25D366;
    border: 2px solid #fff;
}

.ws-cta__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ws-cta__name {
    font-size: 13.5px;
    font-weight: 700;
}

.ws-cta__role {
    font-size: 11.5px;
    color: var(--ws-ink-soft);
}
