/* ============================================================
   PRODUCTS v3 — vertical cards, fixed SAR currency
   ============================================================ */

/* ── PRODUCT HERO HEADER (matches About/Contact) ────────── */
.prod-hero {
    background: linear-gradient(135deg,#F0ECFF 0%,#EBF1FF 60%,#F5F3FE 100%);
    border-bottom: 1px solid #E0D8FF;
    padding-block: clamp(24px,3.5vw,44px);
    overflow: hidden;
    position: relative;
}

.prod-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem
}

.prod-hero-left {
    flex: 1;
    min-width: 0
}

.crumbs {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .6rem
}

    .crumbs a, .crumbs span {
        color: var(--muted)
    }

        .crumbs a:hover {
            color: var(--violet)
        }

        .crumbs span:last-child {
            color: var(--violet);
            font-weight: 600
        }

.prod-hero-left h1 {
    font-size: clamp(2rem,4.5vw,3rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .4rem;
    line-height: 1.15
}

.prod-hero-left p {
    color: var(--muted);
    font-size: clamp(.88rem,1.5vw,1rem);
    margin: 0;
    line-height: 1.6
}

.ph-gray {
    display: none
}

.prod-hero-watermark {
    display: none
}

.prod-hero-illo {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: .55;
    pointer-events: none;
}

@media(max-width:700px) {
    .prod-hero-illo {
        display: none
    }
}

/* ===== WHITE BODY ===== */
.pl-body {
    background: #fff;
    padding-top: clamp(36px,5vw,56px);
    padding-bottom: clamp(36px,5vw,56px)
}

/* ===== TOOLBAR ===== */
.pl-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid #F2F4F7;
    margin-bottom: 32px
}

.pl-toolbar-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1
}

.pl-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px
}

.pl-search-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1.5px solid #EAECF0;
    border-radius: 10px;
    padding: .8rem 1rem;
    min-width: 220px;
    transition: border-color .15s,box-shadow .15s
}

    .pl-search-field:focus-within {
        border-color: var(--violet);
        box-shadow: 0 0 0 3px rgba(124,82,244,.1)
    }

    .pl-search-field svg {
        width: 14px;
        height: 14px;
        color: #98A2B3;
        flex: none
    }

    .pl-search-field input {
        border: none;
        outline: none;
        font-family: inherit;
        font-size: .88rem;
        background: transparent;
        width: 100%;
        color: #101828
    }

.pl-cat-select {
    position: relative
}

    .pl-cat-select select {
        appearance: none;
        -webkit-appearance: none;
        background: #fff;
        border: 1.5px solid #EAECF0;
        border-radius: 8px;
        padding: .6rem 2.2rem .6rem 1rem;
        font-family: inherit;
        font-size: .88rem;
        font-weight: 500;
        color: #344054;
        cursor: pointer;
        outline: none;
        min-width: 155px
    }

html[dir="rtl"] .pl-cat-select select {
    padding: .6rem 1rem .6rem 2.2rem
}

.pl-cat-select select:focus {
    border-color: var(--violet)
}

.sel-chev {
    position: absolute;
    inset-inline-end: .65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #667085;
    pointer-events: none
}

.pl-count {
    font-size: .84rem;
    color: #344054;
    font-weight: 500;
    background: #F9FAFB;
    border: 1px solid #EAECF0;
    border-radius: 10px;
    padding: .6rem 1rem;
    white-space: nowrap
}

.sort-form {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1.5px solid #EAECF0;
    border-radius: 10px;
    padding: .6rem .6rem .6rem 1rem
}

html[dir="rtl"] .sort-form {
    padding: .4rem .8rem .4rem .4rem
}

.sort-form label {
    font-size: .82rem;
    color: #667085;
    white-space: nowrap
}

.sort-form select {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .84rem;
    color: #344054;
    background: #fff;
    cursor: pointer
}

.cart-toast {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 16px
}

    .cart-toast svg {
        width: 16px;
        height: 16px;
        color: #16A34A;
        flex: none
    }

    .cart-toast a {
        color: var(--violet);
        text-decoration: underline
    }

/* ===== GRID — 4 vertical columns ===== */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px
}

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

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

@media(max-width:500px) {
    .pl-grid {
        grid-template-columns: 1fr
    }
}

/* ===== VERTICAL CARD ===== */
.pl-card {
    background: #fff;
    border: 1px solid #EAECF0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s,border-color .2s
}

    .pl-card:hover {
        box-shadow: 0 8px 24px rgba(16,24,40,.1);
        border-color: #D0D5DD
    }

/* Badges row — top of card */
.pl-card-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 6px
}

.pl-cat-badge {
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .24rem .6rem;
    border-radius: 999px;
    background: #EEE9FD;
    color: #6941C6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%
}

.pl-stock-badge {
    font-size: .66rem;
    font-weight: 700;
    padding: .22rem .52rem;
    border-radius: 7px;
    white-space: nowrap
}

    .pl-stock-badge.in {
        background: #ECFDF3;
        color: #027A48
    }

    .pl-stock-badge.out {
        background: #FEF3F2;
        color: #B42318
    }

/* Image area — full width, no background tint */
.pl-img-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    text-decoration: none;
    min-height: 160px;
    background: #F8F7FF;
    border-bottom: 1px solid #EAECF0
}

    .pl-img-col img {
        width: 100%;
        max-height: 160px;
        object-fit: contain;
        transition: transform .22s
    }

.pl-card:hover .pl-img-col img {
    transform: scale(1.04)
}

.pl-ph-icon {
    width: 64px;
    height: 64px;
    color: #D0D5DD
}

/* Content area */
.pl-content {
    padding: 6px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: .24rem;
    flex: 1
}

.pl-model {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #98A2B3
}

.pl-content h3 {
    font-size: .88rem;
    font-weight: 600;
    color: #344054;
    line-height: 1.38;
    margin: 0 0 .5rem
}

    .pl-content h3 a {
        color: #344054
    }

        .pl-content h3 a:hover {
            color: var(--violet)
        }

.pl-desc {
    font-size: .78rem;
    color: #7A8499;
    margin: .25rem 0 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

/* Price block */
.pl-price-block {
    margin: .3rem 0 .05rem
}

.pl-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem
}

.price-lbl {
    font-size: .65em;
    font-weight: 600;
    letter-spacing: .04em;
    opacity: .75;
    margin-inline-end: .06em
}

.pl-sell-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--violet);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    letter-spacing: -.01em
}

.pl-cost-price {
    font-size: .76rem;
    color: #B0B8C8;
    text-decoration: line-through;
    display: inline-flex;
    align-items: center;
    gap: .18rem;
    letter-spacing: 0
}

.pl-disc-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    color: #B42318;
    background: #FEF3F2;
    border: 1px solid #FECDCA;
    border-radius: 99px;
    padding: .14rem .5rem;
    margin-top: .18rem
}

/* Action bar */
.pl-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px 14px;
    border-top: 1px solid #F2F4F7;
    margin-top: auto
}

.pl-view-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: #fff;
    color: #6941C6;
    border: 1.5px solid #D6BBFB;
    font-weight: 600;
    font-size: .84rem;
    padding: .62rem .5rem;
    border-radius: 10px;
    transition: background .15s,border-color .15s
}

    .pl-view-btn:hover {
        background: #F9F5FF;
        border-color: var(--violet)
    }

    .pl-view-btn svg {
        width: 13px;
        height: 13px;
        flex: none
    }

html[dir="rtl"] .pl-view-btn svg {
    transform: scaleX(-1)
}

.pl-cart-sq {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1.5px solid #EAECF0;
    background: #F9FAFB;
    color: #667085;
    cursor: pointer;
    transition: .15s
}

    .pl-cart-sq:hover:not(:disabled):not(.disabled):not(.added) {
        background: #101828;
        border-color: #101828;
        color: #fff
    }

    .pl-cart-sq svg {
        width: 17px;
        height: 17px
    }

    .pl-cart-sq.added {
        background: #ECFDF3;
        border-color: #BBF7D0;
        color: #027A48;
        cursor: default
    }

    .pl-cart-sq.loading {
        opacity: .6;
        cursor: wait
    }

    .pl-cart-sq.disabled, .pl-cart-sq:disabled {
        opacity: .4;
        cursor: not-allowed
    }

/* Pagination */
.pl-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px
}

.pg {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1.5px solid #D0D5DD;
    border-radius: 8px;
    font-weight: 600;
    font-size: .88rem;
    color: #344054;
    transition: .15s
}

    .pg:hover {
        border-color: var(--violet);
        color: var(--violet)
    }

    .pg.on {
        background: var(--violet);
        border-color: var(--violet);
        color: #fff
    }

    .pg svg {
        width: 15px;
        height: 15px
    }

html[dir="rtl"] .pg.next svg {
    transform: scaleX(-1)
}

.pl-empty {
    text-align: center;
    color: #667085;
    padding-block: 4rem;
    display: grid;
    justify-items: center;
    gap: .8rem
}

    .pl-empty svg {
        width: 40px;
        height: 40px;
        color: #D0D5DD
    }

.ajax-toast {
    position: fixed;
    bottom: 90px;
    inset-inline-end: 24px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #101828;
    color: #fff;
    border-radius: 12px;
    padding: .8rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(16,24,40,.28);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s,transform .25s;
    pointer-events: none
}

    .ajax-toast.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto
    }

    .ajax-toast svg {
        width: 16px;
        height: 16px;
        color: #4ADE80;
        flex: none
    }

    .ajax-toast a {
        color: #C9B8FF;
        text-decoration: underline
    }

html[dir="rtl"] .ajax-toast {
    inset-inline-end: auto;
    inset-inline-start: 24px
}

@media(max-width:640px) {
    .pl-toolbar-row {
        flex-direction: column;
        align-items: stretch
    }

    .pl-toolbar-form {
        flex-direction: column
    }

    .pl-toolbar-right {
        justify-content: space-between
    }
}

/* ===== DETAILS ===== */
.pd-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(24px,4vw,48px);
    align-items: start
}

@media(max-width:900px) {
    .pd-layout {
        grid-template-columns: 1fr
    }
}

.pd-media {
    background: #F9FAFB;
    border: 1px solid #EAECF0;
    border-radius: 16px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: clamp(20px,4vw,44px)
}

    .pd-media img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

    .pd-media > svg {
        width: 50%;
        height: 50%
    }

.pd-info h2 {
    font-size: clamp(1.4rem,2.8vw,1.9rem);
    font-weight: 700;
    color: #101828;
    margin-bottom: .5rem
}

.pd-model-lbl {
    font-size: .76rem;
    color: #98A2B3;
    font-weight: 500;
    margin-bottom: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em
}

.pd-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem
}

.pd-sell-price {
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--violet);
    display: inline-flex;
    align-items: center;
    gap: .2rem
}

.pd-cost-price {
    font-size: .95rem;
    color: #98A2B3;
    text-decoration: line-through;
    display: inline-flex;
    align-items: center;
    gap: .15rem
}

.pd-discount-badge {
    font-size: .8rem;
    font-weight: 700;
    color: #B42318;
    background: #FEF3F2;
    border: 1px solid #FECDCA;
    border-radius: 8px;
    padding: .2rem .6rem
}

.pd-desc {
    color: #667085;
    line-height: 1.85;
    font-size: .95rem
}

    .pd-desc.rich-text p {
        margin: 0 0 .9rem
    }

    .pd-desc.rich-text ul, .pd-desc.rich-text ol {
        padding-inline-start: 1.3rem;
        margin: 0 0 .9rem;
        list-style: disc
    }

    .pd-desc.rich-text strong {
        color: #101828;
        font-weight: 600
    }

    .pd-desc.rich-text span {
        background: transparent !important;
        color: inherit !important
    }

.pd-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.6rem
}

.pd-add-form {
    display: flex;
    gap: 10px;
    align-items: stretch
}

.pd-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1.5px solid #D0D5DD;
    border-radius: 10px;
    padding: 3px
}

    .pd-qty .q-btn {
        width: 34px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 700;
        color: #344054;
        display: grid;
        place-items: center;
        transition: .15s
    }

        .pd-qty .q-btn:hover {
            background: #F9FAFB;
            color: var(--violet)
        }

    .pd-qty input {
        width: 44px;
        text-align: center;
        border: none;
        outline: none;
        font-family: inherit;
        font-size: .92rem;
        font-weight: 600;
        color: #101828;
        -moz-appearance: textfield
    }

        .pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0
        }

.pd-actions .btn-primary {
    background: #101828;
    box-shadow: none
}

    .pd-actions .btn-primary:hover {
        background: var(--violet)
    }

.pd-trust {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
    background: #F8F7FF;
    border: 1px solid #E9E5FF;
    border-radius: 14px;
    padding: 16px 20px;
}

    .pd-trust li {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        font-size: .84rem;
        font-weight: 500;
        color: #344054
    }

    .pd-trust svg {
        width: 18px;
        height: 18px;
        color: var(--violet)
    }

.spec-panel {
    margin-top: clamp(24px,4vw,40px);
    background: #fff;
    border: 1px solid #EAECF0;
    border-radius: 14px;
    overflow: hidden
}

.spec-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: #101828;
    color: #fff;
    padding: 1rem clamp(16px,3vw,28px)
}

    .spec-head svg {
        width: 18px;
        height: 18px
    }

    .spec-head h3 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0
    }

.spec-body {
    padding: clamp(16px,3vw,28px);
    color: #667085;
    line-height: 1.9;
    font-size: .91rem
}

    .spec-body p {
        margin: 0 0 .8rem
    }

    .spec-body ul, .spec-body ol {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid
    }

    .spec-body li {
        position: relative;
        padding: .5rem 0 .5rem 1.8rem;
        border-bottom: 1px solid #F2F4F7
    }

html[dir="rtl"] .spec-body li {
    padding: .5rem 1.8rem .5rem 0
}

.spec-body li:last-child {
    border-bottom: none
}

.spec-body li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #EEE9FD url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237C52F4" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-11"/></svg>') center/9px no-repeat
}

.spec-body strong {
    color: #101828;
    font-weight: 600
}

.spec-body span {
    background: transparent !important;
    color: inherit !important
}

.cart-status {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    border-radius: 10px;
    padding: .65rem 1rem;
    font-weight: 600;
    font-size: .88rem;
    margin: 12px 0;
    flex-wrap: wrap
}

    .cart-status svg {
        width: 16px;
        height: 16px;
        flex: none
    }

    .cart-status a {
        color: var(--violet);
        text-decoration: underline
    }

.pd-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    background: #22C55E;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    padding: .65rem;
    border-radius: 10px;
    transition: background .15s;
    margin-top: 10px;
}

    .pd-whatsapp:hover {
        background: #33AC47
    }

    .pd-whatsapp svg {
        width: 18px;
        height: 18px
    }

/* ===== DETAILS PAGE EXTRAS ===== */
.pd-disc-pill {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: #FEF3F2;
    color: #B42318;
    border: 1px solid #FECDCA;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 99px;
}

.pd-media {
    position: relative
}

.pd-stock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pd-stock-badge {
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 8px;
}

    .pd-stock-badge.in {
        background: #ECFDF3;
        color: #027A48
    }

    .pd-stock-badge.out {
        background: #FEF3F2;
        color: #B42318
    }

.pd-cat-pill {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: #EEE9FD;
    color: #6941C6;
}

.pd-vat-note {
    font-size: .76rem;
    color: var(--muted);
    margin: .2rem 0 .8rem;
}

.sec-tag {
    display: inline-block;
    background: #EDE9FF;
    color: var(--violet);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}

.pd-remove-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .6rem;
    padding-top: 1rem;
    border-top: 1px dashed #FECDCA;
}

.btn-remove-cart {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #FEF3F2;
    border: 1.5px solid #FECDCA;
    color: #B42318;
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem .95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s,border-color .15s;
    white-space: nowrap;
}

    .btn-remove-cart:hover {
        background: #FEE2E2;
        border-color: #B42318
    }

    .btn-remove-cart svg {
        flex: none
    }

.pd-in-basket-note {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    color: var(--muted);
}

    .pd-in-basket-note svg {
        color: #027A48
    }

    .pd-in-basket-note a {
        color: var(--violet);
        font-weight: 600
    }

/* ── CTA Band ────────────────────────────────────────────── */
.pl-cta-band {
    background: #fff;
    padding-block: clamp(24px,4vw,40px);
    padding-bottom: clamp(36px,5vw,56px);
}

.pl-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: linear-gradient(135deg,#7C52F4,#4D8DF8);
    border-radius: 20px;
    padding: clamp(24px,4vw,36px) clamp(24px,4vw,48px);
    color: #fff;
}

    .pl-cta-inner h3 {
        font-size: clamp(1.2rem,2.5vw,1.5rem);
        font-weight: 800;
        margin: 0 0 .35rem;
        color: #fff
    }

    .pl-cta-inner p {
        margin: 0;
        opacity: .88;
        font-size: .93rem
    }

.pl-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: none
}

.pl-cta-btn-primary {
    background: #fff;
    color: var(--violet);
    font-weight: 700;
    border: none;
    padding: .7rem 1.5rem;
    border-radius: 12px;
    transition: background .15s;
}

    .pl-cta-btn-primary:hover {
        background: #F5F3FF;
        color: var(--violet)
    }

.pl-cta-btn-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,.7);
    padding: .7rem 1.5rem;
    border-radius: 12px;
    transition: background .15s;
}

    .pl-cta-btn-outline:hover {
        background: rgba(255,255,255,.15);
        color: #fff
    }

/* ── Top badges row (category + stock) ──────────────────── */
.pd-top-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: .8rem;
    flex-wrap: wrap
}

/* ── Need more info card ─────────────────────────────────── */
.pd-contact-card {
    background: #F8F7FF;
    border: 1px solid #E9E5FF;
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

    .pd-contact-card h4 {
        font-size: .95rem;
        font-weight: 700;
        color: var(--navy);
        margin: 0 0 .4rem
    }

    .pd-contact-card p {
        font-size: .82rem;
        color: var(--muted);
        margin: 0 0 14px;
        line-height: 1.6
    }

.pd-contact-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    padding: .65rem;
}


/* ============================================================
   PRODUCT DETAILS TABS + RESOURCES  (moved from Details.cshtml)
   ============================================================ */

.product-details-tabs {
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(16, 24, 40, 0.05);
}

.spec-tabs {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    min-height: 72px;
    padding: 0 1.5rem;
    overflow-x: auto;
    background: #101828;
    scrollbar-width: thin;
}

    .spec-tabs::-webkit-scrollbar {
        height: 4px;
    }

.product-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 72px;
    padding: 0 1.25rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

    .product-tab-btn::after {
        content: "";
        position: absolute;
        right: 1.25rem;
        bottom: 0;
        left: 1.25rem;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: transparent;
        transition: background 0.2s ease;
    }

    .product-tab-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
    }

    .product-tab-btn.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
    }

        .product-tab-btn.active::after {
            background: #8b5cf6;
        }

    .product-tab-btn svg {
        display: block;
        width: 22px;
        height: 22px;
        min-width: 22px;
        flex-shrink: 0;
        color: inherit;
        stroke: currentColor;
    }

.product-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
}

.product-tabs-content {
    padding: 1.75rem;
    background: #fff;
}

.product-tab-panel {
    display: none;
}

    .product-tab-panel.active {
        display: block;
    }

/* --- Specifications content --- */
.specification-content {
    color: #101828;
    font-size: 1rem;
    line-height: 1.65;
}

    .specification-content p {
        position: relative;
        margin: 0;
        padding: 0.8rem 0 0.8rem 2rem;
        border-bottom: 1px solid #eaecf0;
    }

        .specification-content p:last-child {
            border-bottom: 0;
        }

    .specification-content ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .specification-content li {
        position: relative;
        margin: 0;
        padding: 0.8rem 0 0.8rem 2rem;
        border-bottom: 1px solid #eaecf0;
    }

        .specification-content li:last-child {
            border-bottom: 0;
        }

        .specification-content p::before,
        .specification-content li::before {
            content: "";
            position: absolute;
            top: 1rem;
            left: 0;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f5f3ff;
            border: 1px solid #c4b5fd;
        }

        .specification-content p::after,
        .specification-content li::after {
            content: "";
            position: absolute;
            top: 1.28rem;
            left: 5px;
            width: 8px;
            height: 4px;
            border-left: 2px solid #7c3aed;
            border-bottom: 2px solid #7c3aed;
            transform: rotate(-45deg);
        }

html[dir="rtl"] .specification-content p,
html[dir="rtl"] .specification-content li {
    padding: 0.8rem 2rem 0.8rem 0;
}

    html[dir="rtl"] .specification-content p::before,
    html[dir="rtl"] .specification-content li::before {
        left: auto;
        right: 0;
    }

    html[dir="rtl"] .specification-content p::after,
    html[dir="rtl"] .specification-content li::after {
        left: auto;
        right: 5px;
    }

/* --- Resources header --- */
.resources-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eaecf0;
}

    .resources-header h3 {
        margin: 0 0 0.3rem;
        color: #101828;
        font-size: 1.05rem;
        font-weight: 750;
    }

    .resources-header p {
        margin: 0;
        color: #667085;
        font-size: 0.85rem;
        line-height: 1.6;
    }

.resources-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 0.76rem;
    font-weight: 750;
    white-space: nowrap;
}

/* --- Resource files --- */
.attachment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .attachment-item:hover {
        color: #344054;
        border-color: #a78bfa;
        box-shadow: 0 10px 28px rgba(91, 33, 182, 0.1);
        transform: translateY(-2px);
    }

.attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

    .attachment-icon svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
    }

.attachment-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.45rem;
}

    .attachment-info strong {
        overflow: hidden;
        color: #101828;
        font-size: 0.92rem;
        font-weight: 750;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.attachment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #98a2b3;
    font-size: 0.74rem;
}

.attachment-type {
    color: #667085;
    font-weight: 600;
}

.attachment-extension {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #f2f4f7;
    color: #475467;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.3;
}

.attachment-size {
    position: relative;
    padding-inline-start: 0.65rem;
    color: #667085;
    font-weight: 600;
}

    .attachment-size::before {
        content: "";
        position: absolute;
        top: 50%;
        inset-inline-start: 0;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: #98a2b3;
        transform: translateY(-50%);
    }

.attachment-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f9fafb;
    color: #667085;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .attachment-download svg {
        width: 19px;
        height: 19px;
        stroke: currentColor;
    }

.attachment-item:hover .attachment-download {
    background: #7c3aed;
    color: #fff;
    transform: translateY(1px);
}

@media (max-width: 767px) {
    .product-details-tabs {
        margin-top: 1.5rem;
        border-radius: 14px;
    }

    /* Split the width so BOTH tabs are always visible (no sideways scroll) */
    .spec-tabs {
        min-height: 52px;
        padding: 0 0.35rem;
        gap: 0;
        overflow-x: visible;
    }

    .product-tab-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 52px;
        padding: 0 0.4rem;
        font-size: 0.82rem;
        gap: 0.4rem;
    }

        .product-tab-btn::after {
            right: 0.4rem;
            left: 0.4rem;
        }

        .product-tab-btn svg {
            width: 17px;
            height: 17px;
        }

        /* keep a long label from overflowing on very small screens */
        .product-tab-btn span:not(.product-tab-count) {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .product-tabs-content {
        padding: 1rem;
    }

    .resources-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .attachment-list {
        grid-template-columns: 1fr;
    }

    .attachment-item {
        gap: 0.8rem;
        padding: 0.9rem;
    }

    .attachment-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

        .attachment-icon svg {
            width: 21px;
            height: 21px;
        }

    .attachment-download {
        width: 34px;
        height: 34px;
    }
}
