/* =========================================================
   Product Details Page - Cleaned CSS
   Duplicate selectors/properties were merged while preserving current UI.
========================================================= */

:root {
    --pd-primary: #4f93e8;
    --pd-primary-dark: #1266d6;
    --pd-primary-soft: rgba(79,147,232,.12);
    --pd-success: #16a34a;
    --pd-danger: #ff1f5d;
    --pd-text: #121827;
    --pd-muted: #667085;
    --pd-border: #e4e7ec;
    --pd-bg-soft: #f8fafc;
    --pd-shadow: 0 18px 45px rgba(15,23,42,.07);
    --pd-sticky-top: 0px;
}

.product-details-page {
    background: #fff;
    color: var(--pd-text);
    overflow-x: hidden;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #53657f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

    .pd-breadcrumb a {
        color: inherit;
        text-decoration: none;
    }

    .pd-breadcrumb span:last-child {
        color: var(--pd-text);
    }

.pd-hero-card {
    border: 1px solid var(--pd-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--pd-shadow);
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(360px,480px) minmax(360px,1fr) minmax(310px,360px);
    gap: 20px;
    align-items: start;
}

.pd-gallery-modern {
    border: 1px solid var(--pd-border);
    border-radius: 22px;
    background: linear-gradient(180deg,#fff,#f9fbff);
    padding: 14px;
    position: sticky;
    top: 82px;
}

.pd-main-image-modern {
    height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

    .pd-main-image-modern .swiper,
    .pd-main-image-modern .swiper-wrapper,
    .pd-main-image-modern .swiper-slide {
        width: 100%;
        height: 100%;
    }

.pd-zoom-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .pd-zoom-frame img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 18px;
    }

.pd-gallery-action {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--pd-border);
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 19px;
    z-index: 3;
}

.pd-thumbs-modern {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;
    margin-top: 12px;
}

    .pd-thumbs-modern button {
        height: 68px;
        border: 1px solid var(--pd-border);
        background: #fff;
        border-radius: 14px;
        padding: 6px;
        cursor: pointer;
    }

        .pd-thumbs-modern button.active {
            border-color: var(--pd-primary);
            box-shadow: 0 0 0 3px var(--pd-primary-soft);
        }

    .pd-thumbs-modern img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.pd-info-modern {
    padding: 4px 4px 0;
}

.pd-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7f9fc;
    border: 1px solid var(--pd-border);
    border-radius: 999px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 13px;
    margin-bottom: 12px;
}

.pd-product-title {
    font-size: 28px;
    line-height: 1.45;
    font-weight: 900;
    margin: 0 0 8px;
    color: #020617;
}

.pd-en-title-modern {
    font-size: 14px;
    color: #53657f;
    margin: 0 0 16px;
}

.pd-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pd-rating-badge,
.pd-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--pd-border);
    background: #fff;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}

    .pd-rating-badge i {
        color: #f59e0b;
    }

.pd-summary-title-modern {
    font-size: 15px;
    font-weight: 900;
    margin: 18px 0 10px;
}

.pd-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #26364f;
}

    .pd-feature-pill i {
        color: var(--pd-primary);
    }

.pd-colors-wrap-modern {
    margin: 12px 0;
    border: 1px solid var(--pd-border);
    background: #fbfdff;
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pd-colors-label {
    font-size: 12px;
    font-weight: 900;
    color: #475569;
}

.pd-colors-list {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.pd-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    outline: 1px solid var(--pd-border);
    background: var(--pd-color,#e5e7eb);
}

.pd-intro-mini {
    margin-top: 16px;
    border: 1px solid var(--pd-border);
    background: #fbfdff;
    border-radius: 18px;
    padding: 14px 16px;
    color: #475569;
    font-size: 13px;
    line-height: 2;
}

.pd-mini-features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 14px;
}

.pd-mini-feature {
    background: #fff;
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

    .pd-mini-feature i {
        display: block;
        color: var(--pd-primary);
        font-size: 21px;
        margin-bottom: 6px;
    }

.pd-buy-card-modern {
    border: 1px solid var(--pd-border);
    border-radius: 22px;
    background: linear-gradient(180deg,#fff,#fbfdff);
    padding: 18px;
    position: sticky;
    top: 82px;
}

.pd-buy-card-head-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pd-border);
    margin-bottom: 14px;
}

    .pd-buy-card-head-modern span {
        font-size: 16px;
        font-weight: 900;
    }

    .pd-buy-card-head-modern i {
        font-size: 24px;
        color: var(--pd-success);
    }

.pd-seller-row-modern {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
}

    .pd-seller-row-modern:before {
        content: "";
        height: 1px;
        border-bottom: 1px dashed #d9e2ef;
        grid-column: 2;
        grid-row: 1;
    }

    .pd-seller-row-modern span {
        color: var(--pd-muted);
        font-weight: 800;
        white-space: nowrap;
    }

    .pd-seller-row-modern strong {
        font-weight: 900;
        white-space: nowrap;
        justify-self: end;
    }

.pd-stock-badge-modern {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
}

    .pd-stock-badge-modern.is-in {
        background: rgba(22,163,74,.1);
        color: var(--pd-success);
    }

    .pd-stock-badge-modern.is-out {
        background: rgba(255,31,93,.1);
        color: var(--pd-danger);
    }

.pd-price-panel {
    margin: 16px 0;
    border-radius: 18px;
    background: linear-gradient(135deg,#f8fbff,#fff);
    border: 1px solid var(--pd-border);
    padding: 16px;
}

.pd-price-row-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pd-discount-badge-modern {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--pd-danger);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(255,31,93,.22);
}

.pd-old-price-modern {
    color: var(--pd-danger);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 800;
}

.pd-price-modern {
    color: var(--pd-success);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

    .pd-price-modern span {
        font-size: 13px;
        color: var(--pd-success);
        font-weight: 900;
    }

.pd-discount-meta-modern {
    border: 1px solid rgba(255,31,93,.25);
    background: #fff5f7;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 12px;
    color: #334155;
    line-height: 2;
    margin-bottom: 14px;
}

    .pd-discount-meta-modern b {
        color: var(--pd-danger);
    }

.pd-buy-actions-modern {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 10px;
}

.pd-add-cart-modern {
    border: 0;
    border-radius: 15px;
    min-height: 54px;
    background: #22c55e;
    color: #fff !important;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 16px 35px rgba(34,197,94,.22);
    text-decoration: none;
}

.pd-favorite-btn-modern {
    border: 1px solid var(--pd-border);
    background: #fff;
    border-radius: 15px;
    font-size: 25px;
    color: #334155;
}

    .pd-favorite-btn-modern.is-active {
        color: var(--pd-danger);
        background: #fff1f2;
    }

.pd-buy-benefits-modern {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top: 12px;
}

    .pd-buy-benefits-modern div {
        border-radius: 14px;
        background: #f8fafc;
        padding: 10px 6px;
        text-align: center;
        font-size: 11px;
        font-weight: 900;
        color: #26364f;
    }

    .pd-buy-benefits-modern i {
        display: block;
        color: var(--pd-primary);
        font-size: 18px;
        margin-bottom: 4px;
    }

.pd-details-card {
    margin-top: 26px;
    border: 1px solid var(--pd-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--pd-shadow);
    overflow: visible;
}

.pd-tabs-modern button.active {
    background: var(--pd-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(79,147,232,.25);
}

.pd-modern-content-grid {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr);
    gap: 18px;
    align-items: start;
}

.pd-content-panel {
    border: 1px solid var(--pd-border);
    background: #fff;
    border-radius: 22px;
    padding: 20px;
}

    .pd-content-panel.soft {
        background: linear-gradient(180deg,#fff,#fbfdff);
    }

.pd-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pd-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pd-panel-title i {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--pd-primary-soft);
        color: var(--pd-primary);
        font-size: 20px;
        flex: 0 0 auto;
    }

    .pd-panel-title h2, .pd-panel-title h3 {
        margin: 0;
        font-size: 19px;
        font-weight: 900;
        color: #0f172a;
    }

.pd-panel-subtitle {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pd-description-text {
    color: #475569;
    font-size: 14px;
    line-height: 2.15;
    margin: 0;
}

    .pd-description-text :first-child {
        margin-top: 0;
    }

    .pd-description-text :last-child {
        margin-bottom: 0;
    }

.pd-desc-feature-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-top: 16px;
}

.pd-desc-feature {
    border: 1px solid #edf2f7;
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px 10px;
    min-height: 78px;
}

    .pd-desc-feature i {
        color: var(--pd-success);
        font-size: 18px;
        margin-bottom: 7px;
        display: block;
    }

    .pd-desc-feature span {
        display: block;
        color: #1e293b;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.7;
    }

.pd-use-case-box {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}

.pd-use-case {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px dashed #d9e2ef;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

    .pd-use-case i {
        color: var(--pd-primary);
        font-size: 20px;
    }

.pd-spec-group-modern {
    border: 1px solid #edf2f7;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.pd-spec-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

    .pd-spec-group-head span:first-child {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .pd-spec-group-head i {
        color: var(--pd-primary);
        font-size: 18px;
    }

    .pd-spec-group-head small {
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
    }

.pd-spec-mini-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0;
}

.pd-spec-mini {
    padding: 12px 14px;
    min-height: 68px;
    border-bottom: 1px solid #edf2f7;
    border-left: 1px solid #edf2f7;
    background: #fff;
}

    .pd-spec-mini:nth-child(2n) {
        border-left: 0;
    }

    .pd-spec-mini:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .pd-spec-mini span {
        display: block;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .pd-spec-mini strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.7;
    }

.pd-empty-panel {
    border: 1px dashed #d9e2ef;
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.pd-compact-block {
    border: 1px solid var(--pd-border);
    border-radius: 22px;
    background: #fff;
    padding: 20px;
}

.pd-compact-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 900;
}

    .pd-compact-title i {
        color: var(--pd-primary);
        font-size: 22px;
    }

.pd-shipping-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.pd-shipping-card {
    border: 1px solid #edf2f7;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
}

    .pd-shipping-card i {
        font-size: 24px;
        color: var(--pd-primary);
        margin-bottom: 8px;
        display: block;
    }

    .pd-shipping-card strong {
        display: block;
        font-size: 13px;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 5px;
    }

    .pd-shipping-card span {
        display: block;
        font-size: 12px;
        color: #64748b;
        line-height: 1.8;
    }

.pd-review-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 360px;
    gap: 18px;
    align-items: start;
}

.pd-comment-form-modern {
    border: 1px solid var(--pd-border);
    border-radius: 20px;
    padding: 18px;
    background: #fbfdff;
    position: sticky;
    top: 140px;
}

.pd-comments-list-modern .pd-comments-list {
    display: grid;
    gap: 10px;
}

.pd-related {
    margin-top: 28px;
}

.pd-related-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .pd-related-head h2 {
        font-size: 24px;
        font-weight: 900;
        margin: 0;
    }

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.pd-related-card {
    border: 1px solid var(--pd-border);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.pd-related-img {
    height: 190px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

    .pd-related-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.pd-related-body {
    padding: 14px;
}

.pd-related-title {
    font-weight: 900;
    line-height: 1.7;
    min-height: 48px;
}

.pd-related-price {
    color: var(--pd-success);
    font-weight: 900;
    font-size: 18px;
}

.pd-mobile-sticky-buy {
    display: none;
}

.pd-spec-group-clean-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

    .pd-spec-group-clean-head > div {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .pd-spec-group-clean-head i {
        color: var(--primary);
        font-size: 17px;
    }

    .pd-spec-group-clean-head strong {
        font-size: 13px;
        font-weight: 900;
        color: #0f172a;
    }

    .pd-spec-group-clean-head small {
        font-size: 11px;
        font-weight: 800;
        color: #64748b;
        background: #eef4ff;
        border-radius: 999px;
        padding: 4px 8px;
        white-space: nowrap;
    }

.pd-spec-lines {
    display: block;
}

.pd-spec-line {
    display: grid;
    grid-template-columns: 120px minmax(0,1fr);
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    align-items: start;
}

    .pd-spec-line:last-child {
        border-bottom: 0;
    }

    .pd-spec-line span {
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.8;
    }

    .pd-spec-line strong {
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.9;
        word-break: break-word;
    }

.pd-modern-content-layout {
    display: grid;
    gap: 18px;
}

.pd-description-wide {
    width: 100%;
}

.pd-specs-wide {
    width: 100%;
}

.pd-spec-groups {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    align-items: start;
}

.pd-spec-group-clean {
    border: 1px solid #e8eef6;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.product-details-page,
.pd-details-section,
.pd-details-card {
    overflow: visible !important;
}

.pd-tabs-modern {
    position: sticky;
    top: var(--pd-sticky-top);
    z-index: 2000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pd-border);
    border-radius: 22px 22px 0 0;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    scrollbar-width: none;
}

    .pd-tabs-modern::-webkit-scrollbar {
        display: none;
    }

    .pd-tabs-modern button {
        display: flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
        border: 0;
        background: #f8fafc;
        border-radius: 999px;
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 900;
        color: var(--pd-muted);
        flex: 0 0 auto;
    }

.pd-tab-panel-modern[hidden] {
    display: block !important;
}

.pd-tab-panel-modern {
    padding: 22px;
    scroll-margin-top: 90px;
}

.pd-container {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: 32px;
}

.pd-tabs-placeholder {
    display: none;
    height: 0;
}

.pd-tabs-modern.is-fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1600px, calc(100vw - 64px));
    z-index: 5000;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 35px rgba(15,23,42,.12);
}

.pd-tabs-placeholder.is-active {
    display: block;
    height: 74px;
}

.pd-spec-real-table {
    border: 1px solid var(--pd-border);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.pd-spec-real-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--pd-border);
}

    .pd-spec-real-head h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 900;
        color: #0f172a;
    }

    .pd-spec-real-head span {
        font-size: 12px;
        font-weight: 900;
        color: #2563eb;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        border-radius: 999px;
        padding: 6px 12px;
        white-space: nowrap;
    }

.pd-spec-real-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pd-spec-real-table tr {
    border-bottom: 1px solid #edf2f7;
}

    .pd-spec-real-table tr:last-child {
        border-bottom: 0;
    }

.pd-spec-real-group div {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pd-spec-real-name {
    width: 220px;
    background: #fbfdff;
    border-left: 1px solid #edf2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pd-spec-real-value {
    color: #0f172a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.9;
    word-break: break-word;
}

.pd-qa-section {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.pd-qa-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
    direction: rtl;
}

.pd-qa-list-panel,
.pd-qa-form-panel {
    min-width: 0;
}

.pd-qa-list-panel {
    border: 1px solid var(--pd-border);
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
}

.pd-qa-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--pd-border);
    background: linear-gradient(135deg,#fff,#f8fbff);
}

.pd-comment-count {
    flex: 0 0 auto;
    border: 1px solid #dbe7ff;
    background: #eef4ff;
    color: var(--pd-primary-dark);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}

.pd-qa-filter-bar {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--pd-border);
    overflow-x: auto;
    scrollbar-width: none;
}

    .pd-qa-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .pd-qa-filter-bar button {
        flex: 0 0 auto;
        border: 1px solid var(--pd-border);
        background: #fff;
        color: #475569;
        border-radius: 999px;
        padding: 8px 13px;
        font-size: 12px;
        font-weight: 900;
    }

        .pd-qa-filter-bar button.active,
        .pd-qa-filter-bar button:hover {
            background: var(--pd-primary);
            color: #fff;
            border-color: var(--pd-primary);
        }

.pd-qa-scroll {
    max-height: 650px;
    overflow-y: auto;
    padding: 14px;
    display: grid;
    gap: 12px;
    background: #fbfdff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

    .pd-qa-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .pd-qa-scroll::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

.pd-qa-card {
    border: 1px solid #e8eef6;
    border-radius: 20px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 26px rgba(15,23,42,.035);
}

.pd-qa-card-head,
.pd-qa-reply-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pd-qa-card-head {
    margin-bottom: 12px;
}

.pd-qa-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pd-qa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#eef4ff,#fff);
    border: 1px solid #dbe7ff;
    color: var(--pd-primary-dark);
    font-weight: 900;
    flex: 0 0 auto;
}

.pd-qa-user strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 2px;
}

.pd-qa-user small,
.pd-qa-reply-head small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.pd-qa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

    .pd-qa-badge.is-answered {
        background: rgba(22,163,74,.1);
        color: #15803d;
    }

    .pd-qa-badge.is-pending {
        background: #fff7ed;
        color: #c2410c;
    }

.pd-qa-body {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 2.05;
}

.pd-qa-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

    .pd-qa-actions button {
        border: 0;
        background: transparent;
        color: var(--pd-primary-dark);
        font-size: 12px;
        font-weight: 900;
        padding: 0;
    }

.pd-qa-replies {
    display: grid;
    gap: 10px;
    margin-top: 13px;
    margin-right: 34px;
}

.pd-qa-reply {
    border-right: 3px solid var(--pd-primary);
    background: #f8fbff;
    border-radius: 16px;
    padding: 12px 13px;
}

.pd-qa-reply-head {
    margin-bottom: 7px;
}

    .pd-qa-reply-head strong {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--pd-primary-dark);
        font-size: 12px;
        font-weight: 900;
    }

.pd-qa-reply p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 2;
}

.pd-qa-form-panel {
    position: sticky;
    top: 140px;
    border: 1px solid var(--pd-border);
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg,#fff,#fbfdff);
    box-shadow: 0 16px 42px rgba(15,23,42,.06);
}

.pd-qa-form-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
}

    .pd-qa-form-head > i {
        width: 42px;
        height: 42px;
        border-radius: 15px;
        background: var(--pd-primary-soft);
        color: var(--pd-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex: 0 0 auto;
    }

    .pd-qa-form-head h3 {
        margin: 0 0 4px;
        font-size: 17px;
        font-weight: 900;
        color: #0f172a;
    }

    .pd-qa-form-head p {
        margin: 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.9;
    }

.pd-comment-fields {
    display: grid;
    gap: 12px;
}

.pd-comment-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

    .pd-comment-field span {
        color: #334155;
        font-size: 12px;
        font-weight: 900;
    }

.pd-comment-control {
    border: 1px solid var(--pd-border) !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 13px;
    padding: 11px 13px;
}

    .pd-comment-control:focus {
        border-color: var(--pd-primary) !important;
    }

.pd-comment-submit {
    width: 100%;
    border: 0;
    border-radius: 15px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--pd-primary);
    color: #fff !important;
    font-weight: 900;
}

.pd-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #dbe7ff;
    background: #eef4ff;
    color: #1d4ed8;
    border-radius: 15px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 900;
}

    .pd-reply-preview[hidden] {
        display: none !important;
    }

    .pd-reply-preview button {
        border: 0;
        background: #fff;
        color: #ef4444;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 11px;
        font-weight: 900;
    }

.pd-comment-message {
    min-height: 22px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.8;
}

    .pd-comment-message.is-success {
        color: #15803d;
    }

    .pd-comment-message.is-error {
        color: #dc2626;
    }

.pd-empty-comments {
    border: 1px dashed #cbd5e1;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.pd-spec-real-group {
    width: 220px;
    border-left: 1px solid #edf2f7;
    text-align: center;
    position: relative;
    background: #f8fafc;
}

.pd-spec-real-table tr:not(:first-child) .pd-spec-real-group {
    border-top: 2px solid #dbe7f5;
}

.pd-spec-real-group + .pd-spec-real-name {
    position: relative;
}

    .pd-spec-real-group + .pd-spec-real-name::before {
        content: "";
        position: absolute;
        top: -1px;
        right: 0;
        left: 0;
        height: 2px;
        background: linear-gradient( 90deg, transparent, rgba(59,130,246,.28), transparent );
    }

.pd-spec-real-group strong {
    font-size: 15px;
    font-weight: 950;
    color: #0f172a;
}

.pd-spec-real-group small {
    font-weight: 800;
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
}

.pd-spec-real-table td {
    padding: 13px 16px;
    vertical-align: middle;
    padding-top: 15px;
    padding-bottom: 15px;
}

.pd-spec-real-table tr:hover td {
    background: #fcfdff;
}

.pd-spec-real-table tr:hover .pd-spec-real-group {
    background: #f1f6ff;
}

.pd-mobile-buybar {
    display: none;
}

@media(max-width:1199.98px) {
    .pd-hero-card {
        grid-template-columns: 1fr 1fr;
    }

    .pd-gallery-modern {
        grid-column: 1/-1;
        position: static;
    }

    .pd-buy-card-modern {
        position: static;
    }

    .pd-modern-content-grid {
        grid-template-columns: 1fr;
    }

    .pd-shipping-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .pd-review-layout {
        grid-template-columns: 1fr;
    }

    .pd-comment-form-modern {
        position: static;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .pd-qa-layout {
        grid-template-columns: 1fr;
    }

    .pd-qa-form-panel {
        position: static;
        order: -1;
    }

    .pd-qa-scroll {
        max-height: none;
        overflow: visible;
    }
}

@media(max-width:767.98px) {
    .pd-gallery-modern {
        width: 100%;
        padding: 10px;
        border-radius: 18px;
    }

    .pd-main-image-modern {
        height: 300px;
    }

    .pd-thumbs-modern {
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

        .pd-thumbs-modern button {
            min-width: 62px;
            height: 62px;
        }

    .pd-product-title {
        font-size: 22px;
    }

    .pd-mini-features {
        grid-template-columns: repeat(3,minmax(110px,1fr));
        overflow-x: auto;
    }

    .pd-details-card {
        border-radius: 18px;
        margin-top: 18px;
    }

    .pd-content-panel, .pd-compact-block {
        padding: 16px;
        border-radius: 18px;
    }

    .pd-panel-title i {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 18px;
    }

    .pd-panel-title h2, .pd-panel-title h3 {
        font-size: 17px;
    }

    .pd-description-text {
        font-size: 13px;
        line-height: 2;
    }

    .pd-desc-feature-strip {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(145px,72%);
        overflow-x: auto;
        gap: 9px;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .pd-desc-feature {
        scroll-snap-align: start;
        min-height: 82px;
    }

    .pd-use-case-box {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pd-spec-group-modern {
        border-radius: 16px;
    }

    .pd-spec-group-head {
        padding: 11px 12px;
        font-size: 13px;
    }

    .pd-spec-mini-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .pd-spec-mini {
        padding: 10px 11px;
        min-height: 66px;
    }

        .pd-spec-mini span {
            font-size: 11px;
        }

        .pd-spec-mini strong {
            font-size: 12px;
        }

    .pd-shipping-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(185px,78%);
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .pd-shipping-card {
        scroll-snap-align: start;
    }

    .pd-related-grid {
        grid-template-columns: 1fr;
    }

    .pd-mobile-sticky-buy {
        display: flex;
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(255,255,255,.98);
        border-top: 1px solid var(--pd-border);
        box-shadow: 0 -12px 30px rgba(15,23,42,.12);
        z-index: 1200;
        padding: 10px 12px;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

        .pd-mobile-sticky-buy .price {
            font-weight: 900;
            color: var(--pd-success);
        }

        .pd-mobile-sticky-buy a {
            border: 0;
            background: #22c55e;
            color: #fff !important;
            border-radius: 14px;
            min-height: 46px;
            padding: 0 18px;
            font-weight: 900;
            display: flex;
            align-items: center;
            text-decoration: none;
        }

    .pd-spec-group-clean-head {
        padding: 10px 12px;
    }

    .pd-container {
        width: 100%;
        padding-inline: 12px;
    }

    .product-details-page {
        padding-bottom: 76px;
    }

    .pd-hero-card {
        padding: 12px;
        border-radius: 18px;
        gap: 14px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .pd-gallery-modern,
    .pd-info-modern,
    .pd-buy-card-modern {
        width: 100%;
        min-width: 0;
    }

    .pd-feature-pills {
        grid-auto-flow: column;
        grid-auto-columns: minmax(145px,70%);
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

        .pd-feature-pills::-webkit-scrollbar {
            display: none;
        }

    .pd-feature-pill {
        min-height: 54px;
        flex: 0 0 auto;
        min-width: 170px;
        max-width: 240px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        scroll-snap-align: start;
    }

    .pd-rating-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }

        .pd-rating-row::-webkit-scrollbar {
            display: none;
        }

    .pd-rating-badge,
    .pd-meta-badge {
        flex: 0 0 auto;
    }

    .pd-buy-card-modern {
        padding: 14px;
        border-radius: 18px;
    }

    .pd-buy-actions-modern {
        grid-template-columns: 1fr 50px;
    }

    .pd-add-cart-modern {
        min-height: 50px;
        font-size: 13px;
        padding-inline: 10px;
    }

    .pd-favorite-btn-modern {
        min-height: 50px;
        font-size: 22px;
    }

    .pd-buy-benefits-modern {
        grid-template-columns: repeat(3,minmax(100px,1fr));
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }

        .pd-buy-benefits-modern::-webkit-scrollbar {
            display: none;
        }

        .pd-buy-benefits-modern div {
            flex: 0 0 110px;
        }

    .pd-tabs-modern {
        top: 0;
        border-radius: 18px 18px 0 0;
        padding: 10px 8px;
    }

        .pd-tabs-modern button {
            padding: 9px 13px;
            font-size: 12px;
        }

    .pd-tab-panel-modern {
        padding: 14px;
        scroll-margin-top: 72px;
    }

    .pd-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pd-spec-groups {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .pd-spec-line {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 12px;
    }

    .pd-tabs-modern.is-fixed {
        width: 100%;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
    }

    .pd-tabs-placeholder.is-active {
        height: 62px;
    }

    .pd-spec-real-head {
        padding: 12px 14px;
    }

        .pd-spec-real-head h3 {
            font-size: 16px;
        }

    .pd-spec-real-table table,
    .pd-spec-real-table tbody,
    .pd-spec-real-table tr,
    .pd-spec-real-table td {
        display: block;
        width: 100%;
    }

    .pd-spec-real-table tr {
        border-bottom: 1px solid #edf2f7;
    }

    .pd-spec-real-group {
        border-left: 0;
        border-bottom: 1px solid #edf2f7;
        text-align: right;
        padding: 11px 12px;
    }

        .pd-spec-real-group div {
            align-items: flex-start;
        }

    .pd-spec-real-name {
        border-left: 0;
        padding: 10px 12px 4px;
        font-size: 12px;
    }

    .pd-spec-real-value {
        padding: 0 12px 12px;
        font-size: 13px;
    }

    .pd-qa-panel-head,
    .pd-qa-card-head,
    .pd-qa-reply-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pd-qa-list-panel,
    .pd-qa-form-panel {
        border-radius: 18px;
    }

    .pd-qa-panel-head,
    .pd-qa-form-panel {
        padding: 14px;
    }

    .pd-qa-scroll {
        padding: 12px;
    }

    .pd-qa-replies {
        margin-right: 0;
    }
}

@media(max-width:1400px) {
    .pd-spec-groups {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 767.98px) {
    .pd-shipping-card strong,
    .pd-shipping-card span {
        text-align: right !important;
        writing-mode: horizontal-tb !important;
        word-break: normal !important;
    }

    .pd-compact-block {
        overflow: hidden !important;
    }

    .pd-shipping-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-flow: row !important;
        grid-auto-columns: unset !important;
        grid-auto-rows: auto !important;
        gap: 10px !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        scroll-snap-type: none !important;
        transform: none !important;
    }

    .pd-shipping-card {
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 46px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 3px !important;
        align-items: center !important;
        padding: 13px 14px !important;
        border-radius: 16px !important;
        text-align: right !important;
        scroll-snap-align: none !important;
        transform: none !important;
    }

        .pd-shipping-card i {
            flex: 0 0 42px !important;
            grid-column: 1 !important;
            grid-row: 1 / span 2 !important;
            width: 46px !important;
            height: 46px !important;
            min-width: 46px !important;
            max-width: 46px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 !important;
            border-radius: 15px !important;
            background: var(--pd-primary-soft) !important;
            color: var(--pd-primary) !important;
            font-size: 22px !important;
            line-height: 1 !important;
        }

        .pd-shipping-card strong {
            grid-column: 2 !important;
            grid-row: 1 !important;
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            color: #0f172a !important;
            font-size: 13px !important;
            font-weight: 900 !important;
            line-height: 1.7 !important;
            text-align: right !important;
            white-space: normal !important;
            word-break: normal !important;
            overflow-wrap: anywhere !important;
            writing-mode: horizontal-tb !important;
        }

        .pd-shipping-card span {
            grid-column: 2 !important;
            grid-row: 2 !important;
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            color: #64748b !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            line-height: 1.85 !important;
            text-align: right !important;
            white-space: normal !important;
            word-break: normal !important;
            overflow-wrap: anywhere !important;
            writing-mode: horizontal-tb !important;
        }

    body.product-details-view {
        padding-bottom: 92px;
    }

    .pd-mobile-buybar {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -10px 30px rgba(15,23,42,.10);
    }

    .pd-mobile-buybar-price {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

        .pd-mobile-buybar-price small {
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
            text-decoration: line-through;
            margin-bottom: 2px;
        }

        .pd-mobile-buybar-price strong {
            color: #0f172a;
            font-size: 17px;
            font-weight: 950;
            line-height: 1.2;
            white-space: nowrap;
        }

    .pd-mobile-buybar-btn {
        flex: 0 0 auto;
        min-width: 190px;
        min-height: 52px;
        padding-inline: 18px;
        border-radius: 16px;
        background: #22c55e;
        color: #fff !important;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        font-size: 14px;
        font-weight: 900;
        box-shadow: 0 14px 32px rgba(34,197,94,.25);
    }

        .pd-mobile-buybar-btn i {
            font-size: 20px;
        }

        .pd-mobile-buybar-btn.is-notify {
            background: #2563eb;
            box-shadow: 0 14px 32px rgba(37,99,235,.22);
        }
}

@media (max-width: 380px) {
    .pd-shipping-card {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        padding: 12px !important;
    }

        .pd-shipping-card i {
            width: 42px !important;
            height: 42px !important;
            min-width: 42px !important;
            max-width: 42px !important;
            font-size: 20px !important;
        }
}

@media (max-width: 991.98px) {
    body.product-details-view {
        padding-bottom: 150px !important;
    }

    .pd-mobile-buybar {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 1199 !important;
        height: 72px;
    }

    .bottom-nav {
        z-index: 1200 !important;
    }
}

@media (max-width: 767.98px) {

    .pd-mobile-buybar {
        padding: 10px 12px;
        gap: 10px;
        min-height: 68px;
    }

    .pd-mobile-buybar-price strong {
        font-size: 15px;
    }

    .pd-mobile-buybar-btn {
        min-width: 148px;
        min-height: 44px;
        padding-inline: 14px;
        border-radius: 14px;
        font-size: 12px;
        gap: 6px;
    }

        .pd-mobile-buybar-btn i {
            font-size: 16px;
        }

        .pd-mobile-buybar-btn.is-notify {
            min-width: 132px;
            font-size: 11px;
            padding-inline: 10px;
        }
}