
/* =========================================================
   WEBSAN PRODUCT DETAILS V4 - SIGNATURE COMMERCE
   Full replacement / Responsive / RTL / Light & Dark
   ========================================================= */

.pd4 {
    --pd-bg: #faf8f5;
    --pd-card: #ffffff;
    --pd-soft: #f7f3ee;
    --pd-border: #ebe1d6;
    --pd-text: #292621;
    --pd-muted: #857c72;
    --pd-accent: #a5835d;
    --pd-accent-dark: #896743;
    --pd-shadow: 0 14px 42px rgba(68, 48, 29, .065);
    background: var(--pd-bg);
    color: var(--pd-text);
    padding: 18px 0 60px;
    min-width: 0;
}

html.dark .pd4 {
    --pd-bg: #171614;
    --pd-card: #25231f;
    --pd-soft: #302d28;
    --pd-border: #454038;
    --pd-text: #f7f0e7;
    --pd-muted: #b5a99a;
    --pd-accent: #c3a17c;
    --pd-accent-dark: #a98660;
    --pd-shadow: 0 16px 44px rgba(0, 0, 0, .22);
}

.pd4, .pd4 * {
    box-sizing: border-box;
}

.pd4-container {
    width: min(100% - 44px, 1480px);
    margin-inline: auto;
}

.pd4 button,
.pd4-lightbox button {
    font: inherit;
}

    .pd4 button:focus-visible,
    .pd4 a:focus-visible,
    .pd4-lightbox button:focus-visible {
        outline: 3px solid var(--pd-accent);
        outline-offset: 3px;
    }

/* BREADCRUMB */

.pd4-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--pd-muted);
    font-size: 11px;
    line-height: 1.8;
}

    .pd4-breadcrumb a {
        color: inherit;
        text-decoration: none;
    }

        .pd4-breadcrumb a:hover {
            color: var(--pd-accent);
        }

    .pd4-breadcrumb strong {
        color: var(--pd-text);
        font-weight: 800;
    }

/* HERO: information right, gallery left */

.pd4-hero {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    direction: rtl;
    gap: 18px;
    align-items: start;
}

.pd4-gallery,
.pd4-info {
    min-width: 0;
}

.pd4-info {
    grid-column: 1;
    grid-row: 1;
}

.pd4-gallery {
    grid-column: 2;
    grid-row: 1;
}

.pd4-gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    direction: rtl;
    gap: 12px;
    min-width: 0;
}

.pd4-main-image {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--pd-border);
    border-radius: 24px;
    background: var(--pd-card);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
}

.pd4 .productMainSwiper {
    width: 100%;
    height: clamp(420px, 40vw, 585px);
    min-width: 0;
}

    .pd4 .productMainSwiper .swiper-slide,
    .pd4 .productMainSwiper .swiper-zoom-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-width: 0;
    }

    .pd4 .productMainSwiper img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 16px;
        cursor: zoom-in;
    }

    .pd4 .productMainSwiper .swiper-button-next,
    .pd4 .productMainSwiper .swiper-button-prev {
        width: 43px;
        height: 43px;
        border-radius: 50%;
        border: 1px solid var(--pd-border);
        background: var(--pd-card);
        color: var(--pd-text);
        box-shadow: 0 4px 14px rgba(0,0,0,.08);
    }

        .pd4 .productMainSwiper .swiper-button-next::after,
        .pd4 .productMainSwiper .swiper-button-prev::after {
            font-size: 14px;
            font-weight: 900;
        }

.pd4-thumbnails {
    grid-column: 2;
    grid-row: 1;
    width: 82px;
    min-width: 0;
}

.pd4 .productThumbsSwiper {
    height: clamp(420px, 40vw, 585px);
    width: 100%;
    overflow: hidden;
}

    .pd4 .productThumbsSwiper .swiper-wrapper {
        align-items: stretch;
    }

    .pd4 .productThumbsSwiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px !important;
        height: 80px !important;
        padding: 5px;
        border: 1px solid var(--pd-border);
        border-radius: 15px;
        background: var(--pd-card);
        opacity: .65;
        cursor: pointer;
        overflow: hidden;
        transition: opacity .2s, border-color .2s;
    }

        .pd4 .productThumbsSwiper .swiper-slide img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 10px;
        }

        .pd4 .productThumbsSwiper .swiper-slide-thumb-active,
        .pd4 .productThumbsSwiper .swiper-slide:hover {
            opacity: 1;
            border-color: var(--pd-accent);
            box-shadow: inset 0 0 0 1px var(--pd-accent);
        }

.pd4-expand,
.pd4-zoom-hint {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pd-border);
    background: var(--pd-card);
    color: var(--pd-text);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,.07);
}

.pd4-expand {
    top: 20px;
    left: 20px;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    font-size: 17px;
}

.pd4-zoom-hint {
    bottom: 22px;
    left: 22px;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.pd4-no-image {
    display: grid;
    place-items: center;
    min-height: 400px;
    color: var(--pd-muted);
}

/* INFORMATION PANEL */

.pd4-info {
    padding: 25px;
    border: 1px solid var(--pd-border);
    border-radius: 25px;
    background: var(--pd-card);
    box-shadow: var(--pd-shadow);
}

.pd4-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 13px;
}

.pd4-brand,
.pd4-new-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.pd4-brand {
    background: var(--pd-soft);
    color: var(--pd-accent-dark);
}

.pd4-new-badge {
    background: #fce6e9;
    color: #c82e4a;
}

.pd4-heading h1 {
    margin: 0 0 12px;
    color: var(--pd-text);
    font-size: clamp(20px, 1.8vw, 27px);
    font-weight: 900;
    line-height: 1.8;
}

.pd4-summary {
    margin: 0 0 18px;
    color: var(--pd-muted);
    font-size: 12px;
    line-height: 2.1;
}

.pd4-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 15px 0;
    border-top: 1px solid var(--pd-border);
    border-bottom: 1px solid var(--pd-border);
    color: var(--pd-muted);
    font-size: 11px;
}

    .pd4-meta strong {
        color: var(--pd-text);
        font-weight: 800;
    }

/* VARIANT OPTIONS */

.pd4-attributes {
    margin-top: 18px;
}

.pd4-attribute {
    margin-bottom: 18px;
}

.pd4-attribute-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

    .pd4-attribute-heading strong {
        color: var(--pd-text);
        font-weight: 850;
    }

    .pd4-attribute-heading span {
        color: var(--pd-muted);
    }

.pd4-attribute-values {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pd4-option {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--pd-border);
    border-radius: 11px;
    background: var(--pd-soft);
    color: var(--pd-text);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

    .pd4-option.is-selected {
        border-color: var(--pd-accent);
        background: color-mix(in srgb, var(--pd-accent) 13%, var(--pd-card));
        color: var(--pd-accent-dark);
        box-shadow: inset 0 0 0 1px var(--pd-accent);
    }

.pd4 .product-attribute-option:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.pd4 .product-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 55px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pd-text);
    cursor: pointer;
}

.pd4 .product-color-ring {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 4px;
    border: 2px solid var(--pd-border);
    border-radius: 50%;
}

.pd4 .product-color-swatch {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.13);
}

.pd4 .product-color-check {
    display: none;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pd-accent);
    color: #fff;
    font-size: 13px;
}

.pd4 .product-color-option.is-selected .product-color-ring {
    border-color: var(--pd-accent);
}

.pd4 .product-color-option.is-selected .product-color-check {
    display: grid;
}

.pd4 .product-color-name {
    font-size: 10px;
    font-weight: 750;
}

/* SHORT SPECS */

.pd4-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.pd4-highlight {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--pd-border);
    border-radius: 13px;
    background: var(--pd-soft);
}

    .pd4-highlight span {
        color: var(--pd-muted);
        font-size: 10px;
    }

    .pd4-highlight strong {
        color: var(--pd-text);
        font-size: 11px;
        overflow-wrap: anywhere;
    }

.pd4-model-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    color: var(--pd-muted);
    font-size: 12px;
}

    .pd4-model-info strong {
        color: var(--pd-text);
    }

.pd4-selection-message {
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    background: #fff3df;
    color: #a66b22;
    font-size: 12px;
}

.pd4 [hidden],
.pd4-lightbox[hidden] {
    display: none !important;
}

/* FLOATING PURCHASE CARD */

.pd4-purchase {
    margin-top: 20px;
    padding: 19px;
    border: 1px solid var(--pd-border);
    border-radius: 22px;
    background: var(--pd-card);
    box-shadow: 0 15px 40px rgba(72, 50, 28, .10), 0 3px 10px rgba(72, 50, 28, .04);
}

.pd4-purchase-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.pd4-price-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pd4-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: var(--pd-text);
}

    .pd4-price strong {
        font-size: clamp(23px, 2.4vw, 34px);
        font-weight: 950;
        font-variant-numeric: tabular-nums;
    }

    .pd4-price span {
        font-size: 12px;
        font-weight: 800;
    }

.pd4-price-area small,
.pd4-stock-area small {
    color: var(--pd-muted);
    font-size: 10px;
}

.pd4-discount-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pd4-discount-row del {
        color: var(--pd-muted);
        font-size: 12px;
    }

    .pd4-discount-row span {
        padding: 4px 7px;
        border-radius: 8px;
        background: #f43f5e;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
    }

.pd4-stock-area {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pd4-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 850;
}

    .pd4-stock::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: currentColor;
    }

    .pd4-stock.is-available {
        color: #16855a;
    }

    .pd4-stock.is-out {
        color: #dc3650;
    }

.pd4-cart-form {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.pd4-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 53px;
    padding: 5px;
    border: 1px solid var(--pd-border);
    border-radius: 14px;
    background: var(--pd-soft);
}

    .pd4-quantity button {
        display: grid;
        place-items: center;
        width: 35px;
        height: 40px;
        border: 0;
        border-radius: 10px;
        background: var(--pd-card);
        color: var(--pd-text);
        font-size: 20px;
        cursor: pointer;
    }

        .pd4-quantity button:disabled {
            opacity: .35;
            cursor: not-allowed;
        }

    .pd4-quantity output {
        color: var(--pd-text);
        font-size: 13px;
        font-weight: 900;
    }

.pd4-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 53px;
    padding: 10px 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(125deg, #c4a17b, #94704a);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(148,112,74,.20);
    cursor: pointer;
}

    .pd4-cart-button:not(:disabled):hover {
        filter: brightness(1.06);
    }

    .pd4-cart-button:disabled {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none;
    }

.pd4-purchase-note {
    margin: 14px 0 0;
    color: var(--pd-muted);
    font-size: 10px;
    text-align: center;
    line-height: 1.8;
}

.pd4-info-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 14px;
    margin-top: 21px;
    color: var(--pd-muted);
}

    .pd4-info-footer span {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 10px;
    }

    .pd4-info-footer i {
        color: var(--pd-accent);
        font-size: 16px;
    }

/* LOWER TABS */

.pd4-lower {
    margin-top: 24px;
}

.pd4-tabs {
    overflow: hidden;
    border: 1px solid var(--pd-border);
    border-radius: 24px;
    background: var(--pd-card);
    box-shadow: var(--pd-shadow);
}

.pd4-tab-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 13px 26px 0;
    border-bottom: 1px solid var(--pd-border);
    overflow-x: auto;
}

    .pd4-tab-buttons .tab-btn {
        position: relative;
        flex-shrink: 0;
        padding: 12px 14px 16px;
        border: 0;
        background: transparent;
        color: var(--pd-muted);
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
        cursor: pointer;
    }

        .pd4-tab-buttons .tab-btn.active {
            color: var(--pd-accent-dark);
        }

            .pd4-tab-buttons .tab-btn.active::after {
                content: "";
                position: absolute;
                bottom: 0;
                right: 0;
                left: 0;
                height: 3px;
                border-radius: 4px 4px 0 0;
                background: var(--pd-accent);
            }

.pd4-tab-body {
    padding: 28px;
}

    .pd4-tab-body h2 {
        margin: 0 0 18px;
        color: var(--pd-text);
        font-size: 19px;
        font-weight: 900;
    }

    .pd4-tab-body h3 {
        color: var(--pd-accent-dark);
        font-size: 14px;
        font-weight: 850;
    }

.pd4 .product-description {
    color: var(--pd-muted);
    font-size: 13px;
    line-height: 2.2;
    overflow-wrap: anywhere;
}

    .pd4 .product-description p {
        margin: 0 0 13px;
    }

    .pd4 .product-description ul {
        list-style: disc;
        padding-right: 22px;
    }

    .pd4 .product-description ol {
        list-style: decimal;
        padding-right: 22px;
    }

.pd4-spec-group {
    margin-bottom: 24px;
}

    .pd4-spec-group h3 {
        margin: 0 0 13px;
    }

.pd4 .product-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pd4 .product-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--pd-border);
    border-radius: 13px;
    background: var(--pd-soft);
}

.pd4 .product-spec-key {
    color: var(--pd-muted);
    font-size: 11px;
}

.pd4 .product-spec-value {
    color: var(--pd-text);
    font-size: 12px;
    text-align: left;
    overflow-wrap: anywhere;
}

/* FULLSCREEN LIGHTBOX */

.pd4-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background: rgba(12, 13, 17, .97);
    color: #fff;
    direction: ltr;
}

.pd4-lightbox-toolbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
}

.pd4-lightbox-actions {
    display: flex;
    gap: 8px;
}

    .pd4-lightbox-actions button,
    .pd4-lightbox-arrow {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 12px;
        background: rgba(255,255,255,.09);
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }

        .pd4-lightbox-actions button:hover,
        .pd4-lightbox-arrow:hover {
            background: rgba(255,255,255,.2);
        }

.pd4-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding: 25px 70px;
    overflow: hidden;
    touch-action: pan-y;
}

    .pd4-lightbox-stage img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transform-origin: center;
        user-select: none;
        transition: transform .15s ease;
    }

.pd4-lightbox-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
}

#pd4-lightbox-prev {
    left: 15px;
}

#pd4-lightbox-next {
    right: 15px;
}

body.pd4-lightbox-open {
    overflow: hidden;
}

/* RESPONSIVE */

@media (max-width: 1150px) {
    .pd4-hero {
        grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    }

    .pd4-info {
        padding: 18px;
    }

    .pd4-gallery-layout {
        grid-template-columns: minmax(0, 1fr) 68px;
        gap: 8px;
    }

    .pd4-thumbnails {
        width: 68px;
    }

    .pd4 .productThumbsSwiper .swiper-slide {
        width: 66px !important;
        height: 66px !important;
    }
}

@media (max-width: 900px) {
    .pd4-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd4-gallery,
    .pd4-info {
        grid-column: 1;
    }

    .pd4-gallery {
        grid-row: 1;
    }

    .pd4-info {
        grid-row: 2;
    }

    .pd4 .productMainSwiper,
    .pd4 .productThumbsSwiper {
        height: 440px;
    }
}

@media (max-width: 640px) {
    .pd4 {
        padding: 12px 0 35px;
    }

    .pd4-container {
        width: calc(100% - 24px);
    }

    .pd4-breadcrumb {
        font-size: 10px;
    }

    .pd4-gallery-layout {
        display: flex;
        flex-direction: column;
    }

    .pd4-main-image {
        order: 1;
        padding: 8px;
        border-radius: 18px;
    }

    .pd4 .productMainSwiper {
        height: clamp(270px, 82vw, 390px);
    }

    .pd4-thumbnails {
        order: 2;
        width: 100%;
    }

    .pd4 .productThumbsSwiper {
        width: 100%;
        height: 72px;
    }

        .pd4 .productThumbsSwiper .swiper-slide {
            width: 68px !important;
            height: 68px !important;
        }

    .pd4-expand {
        top: 14px;
        left: 14px;
        width: 37px;
        height: 37px;
    }

    .pd4-zoom-hint {
        bottom: 14px;
        left: 14px;
        padding: 9px 12px;
        font-size: 10px;
    }

    .pd4-info {
        padding: 17px 14px;
        border-radius: 18px;
    }

    .pd4-heading h1 {
        font-size: 20px;
    }

    .pd4-highlights {
        gap: 8px;
    }

    .pd4-highlight {
        padding: 10px;
    }

    .pd4-purchase {
        padding: 14px;
        border-radius: 18px;
    }

    .pd4-price strong {
        font-size: 25px;
    }

    .pd4-cart-form {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 8px;
    }

    .pd4-quantity button {
        width: 29px;
    }

    .pd4-cart-button {
        font-size: 11px;
        padding: 9px;
    }

    .pd4-info-footer {
        gap: 10px;
    }

        .pd4-info-footer span {
            font-size: 9px;
        }

    .pd4-tabs {
        border-radius: 18px;
    }

    .pd4-tab-buttons {
        gap: 8px;
        padding: 9px 12px 0;
    }

    .pd4-tab-body {
        padding: 18px 14px;
    }

    .pd4 .product-spec-list {
        grid-template-columns: 1fr;
    }

    .pd4-lightbox-toolbar {
        padding: 10px;
    }

    .pd4-lightbox-actions {
        gap: 4px;
    }

        .pd4-lightbox-actions button {
            width: 35px;
            height: 35px;
        }

    .pd4-lightbox-stage {
        padding: 16px 42px;
    }

    .pd4-lightbox-arrow {
        width: 35px;
        height: 40px;
    }

    #pd4-lightbox-prev {
        left: 3px;
    }

    #pd4-lightbox-next {
        right: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd4 *,
    .pd4-lightbox * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}



/* ===================================================
   PRODUCT DETAILS V4.1 - PREMIUM CHAMPAGNE TABS
   Light / Dark - Visible Active State
   =================================================== */

.pd4 .pd4-tabs .pd4-tab-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 22px;
    background: #fbf8f4;
    border-bottom: 1px solid #e9ded0;
    overflow-x: auto;
    scrollbar-width: thin;
}

    .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        min-height: 46px;
        padding: 11px 22px;
        border: 1px solid #e8dfd4;
        border-radius: 13px;
        background: #ffffff;
        color: #65594d;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.5;
        opacity: 1;
        box-shadow: none;
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    }

        .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn:hover {
            background: #f3e9dc;
            color: #775638;
            border-color: #cdb396;
        }

        .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn.active,
        .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn[aria-selected="true"] {
            background: linear-gradient(135deg, #eee0ce, #f8f1e8);
            color: #51391f;
            border-color: #bc9870;
            font-weight: 900;
            box-shadow: 0 4px 13px rgba(137, 103, 67, .12);
        }

            .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn.active::after {
                content: "";
                position: absolute;
                right: 18px;
                left: 18px;
                bottom: -1px;
                height: 3px;
                border-radius: 5px;
                background: #a5835d;
            }

.pd4 .pd4-tabs .pd4-tab-body {
    background: #ffffff;
}

/* DARK MODE */

html.dark .pd4 .pd4-tabs .pd4-tab-buttons {
    background: #211f1c;
    border-bottom-color: #484037;
}

    html.dark .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn {
        background: #302d28;
        color: #d5c9bc;
        border-color: #4b433a;
    }

        html.dark .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn:hover {
            background: #3d352c;
            color: #f2d9b9;
            border-color: #a5835d;
        }

        html.dark .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn.active,
        html.dark .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn[aria-selected="true"] {
            background: linear-gradient(135deg, #705337, #4b3929);
            color: #fff6e9;
            border-color: #c3a17c;
            box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
        }

            html.dark .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn.active::after {
                background: #e0b98c;
            }

html.dark .pd4 .pd4-tabs .pd4-tab-body {
    background: #25231f;
}

/* MOBILE */

@media (max-width: 640px) {
    .pd4 .pd4-tabs .pd4-tab-buttons {
        gap: 8px;
        padding: 12px;
    }

        .pd4 .pd4-tabs .pd4-tab-buttons .tab-btn {
            min-height: 42px;
            padding: 10px 15px;
            border-radius: 11px;
            font-size: 11px;
        }
}
