.wdbb-invp {
    --wdbb-page: #1e1e1e;
    --wdbb-card: #34363d;
    --wdbb-text: #fff;
    --wdbb-muted: #ccc;
    --wdbb-blue: #3fc2ff;
    --wdbb-orange: #ff9727;
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1760px;
    margin: 24px auto 64px;
    color: var(--wdbb-text);
    font-family: Lexend, sans-serif;
    font-size: 15px;
}

.wdbb-invp *,
.wdbb-invp *::before,
.wdbb-invp *::after {
    box-sizing: border-box;
}

.wdbb-invp-back {
    margin: 0 0 14px;
}

.wdbb-invp-back a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    margin-left: -8px;
    padding: 0 12px 0 6px;
    border-radius: 999px;
    color: var(--wdbb-blue);
    text-decoration: none;
    font-weight: 600;
}

.wdbb-invp-back svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform 0.15s ease;
}

.wdbb-invp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
    gap: 32px;
    align-items: start;
}

.wdbb-invp-panel,
.wdbb-invp-gallery,
.wdbb-invp-buy {
    min-width: 0;
    max-width: 100%;
}

.wdbb-invp-panel {
    position: relative;
    margin-bottom: 42px;
}

.wdbb-invp-stage {
    position: relative;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
}

.wdbb-invp-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wdbb-invp-track::-webkit-scrollbar {
    display: none;
}

.wdbb-invp-photo,
.wdbb-invp-track img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.wdbb-invp-track img {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.wdbb-invp-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1e1e1e;
    cursor: pointer;
}

.wdbb-invp-nav svg {
    width: 22px;
    height: 22px;
}

.wdbb-invp-prev {
    left: 12px;
}

.wdbb-invp-next {
    right: 12px;
}

.wdbb-invp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.wdbb-invp-thumbs::-webkit-scrollbar {
    display: none;
}

.wdbb-invp-thumb {
    flex: 0 0 156px;
    width: 156px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.wdbb-invp-thumb.is-on {
    border-color: var(--wdbb-blue);
}

.wdbb-invp-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.wdbb-invp-track img.is-size,
.wdbb-invp-photo.is-size,
.wdbb-invp-thumb.is-size img {
    object-fit: contain;
    background: #111;
}

.wdbb-invp-buy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--wdbb-card);
    border-radius: 18px;
    padding: 22px;
}

.wdbb-invp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
}

.wdbb-invp-buy h1 {
    flex: 1 1 auto;
    margin: 0;
    color: var(--wdbb-text);
    font-family: Hanuman, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.wdbb-invp-facts {
    margin: 4px 0 0;
    text-transform: none;
}

.wdbb-invp-facts div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wdbb-invp-facts div:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wdbb-invp-facts dt {
    margin: 0;
    color: var(--wdbb-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wdbb-invp-facts dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    text-transform: none;
}

.wdbb-invp-facts .is-lead dd {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.wdbb-invp-related-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.wdbb-invp-rel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px;
    border-radius: 16px;
    background: var(--wdbb-card);
    color: inherit;
    text-decoration: none;
}

.wdbb-invp-rel-photo {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.wdbb-invp-rel-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.wdbb-invp-rel-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 4px 4px;
}

.wdbb-invp-rel-copy strong {
    color: var(--wdbb-text);
    font-family: Hanuman, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}

.wdbb-invp-rel-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wdbb-invp-rel-sub span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--wdbb-muted);
    border-radius: 999px;
    color: var(--wdbb-muted);
    font-size: 13px;
}

.wdbb-invp-rel-price {
    font-size: 18px;
    font-weight: 600;
}

.wdbb-invp-rel-count {
    color: var(--wdbb-blue);
    font-size: 13px;
}

.wdbb-invp-buy-foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.wdbb-invp-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.wdbb-invp-amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.wdbb-invp-price .woocommerce-Price-amount,
.wdbb-invp-price bdi {
    color: inherit;
    font-weight: inherit;
}

.wdbb-invp-now {
    color: var(--wdbb-text);
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}

.wdbb-invp-now.is-sale {
    color: #e2e2e2;
}

.wdbb-invp-was {
    color: var(--wdbb-muted);
    font-size: 15px;
    line-height: 1;
    text-decoration: line-through;
}

.wdbb-invp-flop,
.wdbb-invp-sale {
    flex: 0 0 auto;
    color: #1e1e1e;
    font-weight: 700;
    line-height: 1;
}

.wdbb-invp-flop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 10px 8px;
    border-radius: 10px;
    background: var(--wdbb-orange);
}

.wdbb-invp-kicker {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wdbb-invp-off {
    font-size: 16px;
    font-weight: 700;
}

.wdbb-invp-sale {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--wdbb-blue);
    font-size: 15px;
}


.wdbb-invp-stock {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    color: #8ee6a4;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.wdbb-invp-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3ddc78;
    box-shadow: 0 0 0 0 rgba(61, 220, 120, 0.6);
    animation: wdbb-invp-pulse 1.8s ease-out infinite;
}

@keyframes wdbb-invp-pulse {
    70% {
        box-shadow: 0 0 0 8px rgba(61, 220, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(61, 220, 120, 0);
    }
}

.wdbb-invp-stock.is-out {
    color: var(--wdbb-muted);
}

.wdbb-invp-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--wdbb-blue);
    color: #1e1e1e;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.wdbb-invp-add.is-in-cart {
    flex-direction: column;
    gap: 2px;
    min-height: 56px;
    background: var(--wdbb-blue);
    border: 0;
    color: #1e1e1e;
    line-height: 1.1;
    text-transform: none;
}

.wdbb-invp-cart-kicker {
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
}

.wdbb-invp-cart-go {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wdbb-invp-cart-arrow {
    display: inline-block;
    margin-left: 3px;
    font-size: 16px;
    line-height: 1;
    text-transform: none;
}

.wdbb-invp-story,
.wdbb-invp-related {
    margin-top: 36px;
}

.wdbb-invp-story {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body.wdbb-inv-product {
    overflow-x: hidden;
}

.wdbb-invp-story h2,
.wdbb-invp-related h2 {
    margin: 0 0 12px;
    font-family: Hanuman, sans-serif;
    font-size: 28px;
}

.wdbb-invp-story-body {
    max-width: 760px;
    color: var(--wdbb-muted);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .wdbb-invp-pulse {
        animation: none;
    }
}

@media (hover: hover) {
    .wdbb-invp-back a,
    .wdbb-invp-nav,
    .wdbb-invp-thumb,
    .wdbb-invp-thumb img,
    .wdbb-invp-add,
    .wdbb-invp-rel,
    .wdbb-invp-rel-photo img {
        transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
    }

    .wdbb-invp .wdbb-invp-back a:hover {
        color: #1e1e1e;
        background: var(--wdbb-blue);
    }

    .wdbb-invp .wdbb-invp-back a:hover svg {
        transform: translateX(-3px);
    }

    .wdbb-invp-stage:hover .wdbb-invp-nav {
        background: #fff;
    }

    .wdbb-invp-nav:hover {
        background: var(--wdbb-blue);
        color: #1e1e1e;
    }

    .wdbb-invp-thumb:hover {
        border-color: var(--wdbb-blue);
    }

    .wdbb-invp-thumb:hover img {
        transform: scale(1.04);
    }

    .wdbb-invp-add:hover {
        background: #79d6ff;
    }


    .wdbb-invp-rel:hover {
        transform: scale(1.03);
    }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
    .wdbb-invp-thumb:hover img,
    .wdbb-invp-rel:hover,
    .wdbb-invp .wdbb-invp-back a:hover svg {
        transform: none;
    }
}

@media (max-width: 800px) {
    .wdbb-invp {
        width: calc(100% - 20px);
    }

    .wdbb-invp-back {
        display: none;
    }

    .wdbb-invp-hero {
        grid-template-columns: 1fr;
    }

    .wdbb-invp-buy h1 {
        font-size: 30px;
    }

    .wdbb-invp-nav {
        display: none;
    }

    .wdbb-invp-related-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wdbb-invp-rel {
        padding: 8px;
    }

    .wdbb-invp-rel-copy {
        gap: 6px;
        padding: 10px 2px 2px;
    }

    .wdbb-invp-rel-copy strong {
        font-size: 20px;
    }

    .wdbb-invp-rel-sub span {
        min-height: 24px;
        padding: 0 8px;
        font-size: 12px;
    }

    .wdbb-invp-rel-price {
        font-size: 16px;
    }
}
