/* ====== Pipes / SVG liquid ====== */
.pipes {
    position: relative;
    padding-block: clamp(24px, 5vw, 56px);
    margin-top: -170px;
}

.pipes__stage {
    position: relative;
    width: min(var(--max, 1200px), 100% - 32px);
    margin-inline: auto;
    aspect-ratio: var(--ar, 1286/545);
}

.pipes__stage .pipes__bg img {
    max-width: 100%;
}

.pipes__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

:root {
    --liq-color: #008efa;
    --liq-w: 10;
    --step-gap: .25s;
}

.liq {
    fill: none;
    stroke: #6dddff;
    stroke-width: var(--liq-w, 10);
    stroke-linecap: square;
    stroke-linejoin: miter;
    vector-effect: non-scaling-stroke;
    opacity: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    will-change: stroke-dashoffset;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Cards on pipes */
.pipes__cards {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.pcard {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: clamp(120px, 12vw, 180px);
}

.pcard__img {
    position: relative;
    width: 50%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 18px;
    background: none;
    border: 0;
    box-shadow: none;
}

.pcard__img .layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.pcard__img .layer.show {
    opacity: 1;
}

@media (max-width:900px) {
    .pipes__stage {
        width: min(var(--max, 1200px), 100% - 20px);
    }

    .pipes__cards {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-top: 12px;
    }

    .pcard {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
    }
}

/* ===== Countdown ===== */
.countdown {
    padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 7vw, 80px);
    text-align: center;
    color: var(--ink);
    padding-top: 0;
}

.countdown .container {
    width: min(var(--max, 1200px), 100% - 32px);
    margin-inline: auto;
}

.cd-title {
    font-size: clamp(20px, 3.2vw, 36px);
    margin: 0 0 40px 10px;
    font-weight: 800;
}

.cd-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(10px, 2vw, 16px);
    flex-direction: row-reverse;
}

:root {
    --cd-bg: url("../img/countdown.png");
    --cd-bleed: 8px;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
}

.cd-num {
    position: relative;
    display: grid;
    place-items: center;
    min-width: clamp(64px, 8vw, 92px);
    height: clamp(64px, 8vw, 92px);
    font-size: clamp(22px, 4.4vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.cd-num::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--cd-bleed));
    background: var(--cd-bg) center / 100% 100% no-repeat;
    border-radius: 22px;
    z-index: -1;
    pointer-events: none;
}

.cd-label {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
}

.cd-sep {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 2.5;
    opacity: .85;
    margin: 0 .25em 0;
}

/* ===== #sec-products ===== */
#sec-products.psec {
    padding-block: clamp(24px, 4vw, 48px);
    color: var(--ink);
    overflow-anchor: none;
}

#sec-products .psec__container {
    width: min(var(--max, 1200px), 100% - 32px);
    margin-inline: auto;
    display: flex;
    gap: clamp(16px, 3vw, 24px);
    align-items: stretch;
    flex-wrap: nowrap;
    direction: rtl;
    padding-bottom: 10px;
}

#sec-products .psec__carousel {
    flex: 0 0 80%;
    min-width: 0;
}

#sec-products .psec__aside {
    flex: 0 0 20%;
    min-width: 240px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    text-align: right;
    padding-top: 70px;
}

#sec-products .psec__title {
    margin: 0 0 0px;
    font-weight: 800;
    font-size: clamp(18px, 2.4vw, 28px);
    text-align: center;
}

#sec-products .psec__visual {
    width: clamp(140px, 16vw, 220px);
    height: auto;
    display: block;
    object-fit: contain;
    margin: 4px 0 10px;
}

#sec-products .psec__cta {
    display: inline-block;
    padding: .6rem 1rem;
    border-radius: 999px;
    background: #1677ff;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

#sec-products .psec__carousel {
    flex: 0 0 80%;
    min-width: 0;
}

#sec-products .psec__swiper {
    width: 100%;
    overflow: hidden;
    direction: rtl;
}

#sec-products .psec__swiper .swiper-wrapper {
    display: flex;
    gap: 0 !important;
}

#sec-products .psec__swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    display: flex;
}

#sec-products .pcard {
    background: transparent;
    border-radius: 14px;
    border: 1px solid #fff;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#sec-products .pcard a.pcard__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#sec-products .pcard__thumb {
    padding: 12px;
    background-color: #f3f3f3;
}

#sec-products .pcard__imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Pill */
#sec-products .pcard__pill {
    position: absolute;
    top: 80%;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border-radius: 10px;
    background: #ffffffdd;
    color: #0a5ed7;
    font-size: 12px;
    line-height: 1;
    left: 50%;
    width: 95%;
    transform: translatex(-50%);
    justify-content: center;
    padding-left: 20px;
    min-height: 28px;
    padding-right: 20px;
}

#sec-products .pcard__pill-ico {
    width: 30px;
    height: 30px;
    display: inline-flex;
    background-color: #008efa;
    padding: 5px;
    margin: 0;
    border-radius: 0 10px 10px 0;
    position: absolute;
    right: 0;
}

#sec-products .pcard__pill-ico svg {
    width: 100%;
    height: 100%;
    display: block;
}

#sec-products .pcard__pill-ico path {
    fill: #fff;
}

#sec-products .pcard__pill--solid {
    background: linear-gradient(135deg, #0aa2ff, #1a66ff);
    color: #fff;
}

#sec-products .pcard__pill--solid .pcard__pill-ico path {
    fill: #fff;
}

#sec-products .pcard__body {
    padding: 0 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pcard__pill-txt {
    font-size: 14px;
    color: #000;
}

#sec-products .pcard__prices {
    margin-top: auto;
    padding: 0 12px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px 10px;
    align-items: end;
}

#sec-products .pcard__old {
    font-size: 12px;
    color: #97a3b3;
    text-decoration: line-through;
}

#sec-products .pcard__off {
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}

#sec-products .pcard__new {
    grid-column: 1 / 3;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

#sec-products .pcard__new small {
    font-size: 12px;
    color: #6b7993;
}

#sec-products .pcard__new strong {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

@media (max-width:980px) {
    #sec-products .psec__container {
        flex-direction: column;
    }

    #sec-products .psec__carousel {
        flex: 0 0 auto;
        width: 100%;
    }

    #sec-products .psec__aside {
        order: 2;
        align-items: center;
        text-align: center;

    }
}

#sec-products .psec__head {
    display: flex;
    justify-content: end;
    padding-bottom: 15px;
    z-index: 3;
    margin: 0;
}

#sec-products .psec__nav {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
}

#sec-products .psec__prev,
#sec-products .psec__next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
    outline: none;
}

#sec-products .psec__prev::before,
#sec-products .psec__next::before {
    content: "" !important;
    width: 16px;
    height: 16px;
    border-inline: 2px solid currentColor;
    border-block: 2px solid transparent;
    transform: rotate(45deg);
}

#sec-products .psec__prev::before {
    border-right-color: transparent;
    transform: translateX(2px) rotate(45deg);
}

#sec-products .psec__next::before {
    border-left-color: transparent;
    transform: translateX(-2px) rotate(45deg);
}

#sec-products .psec__prev:hover,
#sec-products .psec__next:hover {
    background: linear-gradient(135deg, #0aa2ff, #1a66ff);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(2, 6, 23, .25);
}

#sec-products .psec__prev:focus-visible,
#sec-products .psec__next:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 102, 255, .35);
}

#sec-products .psec__prev.swiper-button-disabled,
#sec-products .psec__next.swiper-button-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

@media (max-width:600px) {
    #sec-products .psec__head {
        top: auto;
        bottom: 10px;
        left: 10px;
    }
}

#sec-products .psec__prev::before,
#sec-products .psec__next::before {
    content: none !important;
}

#sec-products .psec__nav .ico {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

/* ===== Section 4 (IPW) ===== */
/* ====== IPW — Desktop-only, deduped ====== */
#sec-ipw .container {
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
}

/* Scope & tokens */
#sec-ipw .ipw {
    --ink: #000;
    --sub: #9fb6d8;
    --muted: #1e3a5f;
    --ring: #23456f;
    --brand: #008efa;
    --soft: rgba(255, 255, 255, .04);
    color: var(--ink);
    font-family: 'Vazirmatn', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

#sec-ipw .ipw * {
    box-sizing: border-box;
}

/* Glass card */
#sec-ipw .glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 30px 60px rgba(2, 6, 23, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 16px;
}

/* Layout */
#sec-ipw .ipw-grid {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-direction: row-reverse;
}

#sec-ipw .ipw-left {
    flex: 0 1 33%;
    padding: 0 20px;
    align-self: center;
    height: 100%;
}

#sec-ipw .ipw-right {
    flex: 0 1 67%;
    min-width: 320px;
    justify-content: center;
    padding: 20px;
}

#sec-ipw .ipw-card {
    width: 100%;
}

/* Store header row */
#sec-ipw .store-box,
#sec-ipw .storebox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #fff;
    width: 100%;
    flex-direction: row-reverse;
}

#sec-ipw .store-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .3);
    background: #fff;
}

#sec-ipw .store-name {
    font-size: 14px;
    font-weight: 800;
}

#sec-ipw .ipw-sec-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

/* Table-as-cards */
#sec-ipw .table-wrap {
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

#sec-ipw table {
    width: 100%;
    display: block;
    border: 0;
    border-collapse: separate;
    background: transparent;
}

#sec-ipw table thead {
    display: none;
}

#sec-ipw tbody {
    display: grid;
    gap: 12px;
    padding: 4px;
}

#sec-ipw tbody tr {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #fff;
}

#sec-ipw td {
    padding: 0;
    border: 0;
    text-align: inherit;
    font-size: 14px;
}

#sec-ipw tbody td:first-child {
    color: #475569;
    font-weight: 600;
}

#sec-ipw tbody td:last-child {
    font-weight: 800;
    white-space: nowrap;
    justify-self: end;
}

#sec-ipw tbody tr:nth-child(even) {
    background: transparent;
    color: #fff;
}

/* Footer sum */
#sec-ipw tfoot {
    display: block;
    margin-top: 12px;
}

#sec-ipw tfoot tr {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
    border-top: 1px solid #e5e7eb;
}

#sec-ipw tfoot td {
    padding: 0;
    border: 0;
    font-weight: 700;
}

#sec-ipw #ipw-sum {
    font-weight: 900;
    white-space: nowrap;
    justify-self: end;
}

/* Steps (row view) */
#sec-ipw .ipw-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

#sec-ipw .ipw-step-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

#sec-ipw .ipw-step-amount {
    white-space: nowrap;
}

/* CTA */
#sec-ipw .ipw-cta {
    margin-top: 14px;
    width: 100%;
    padding: 5px 16px;
    border-radius: 100px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1677ff;
}

#sec-ipw .ipw-cta:hover {
    filter: brightness(1.06);
}

.hero__subtitle {
    font-size: 25px;
}

h1.hero__title {
    font-size: 50px !important;
}

.hero__copy {
    margin-bottom: -40px !important;
}

/* Card internals */
#sec-ipw .ipw-card-in-2 {
    display: flex;
    gap: 12px;
    align-items: center;
}

#sec-ipw .ipw-card-in {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 25px;
}

/* Preview & thumbs */
#sec-ipw .ipw-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#sec-ipw .ipw-preview-title {
    font-size: 13px;
    color: #d9e7ff;
    font-weight: 700;
    margin: 0 0 10px;
}

#sec-ipw .ipw-thumbs {
    width: 100%;
    padding: 8px 4px;
}

#sec-ipw .ipw-thumbs .swiper-wrapper {
    align-items: stretch;
}

#sec-ipw .ipw-thumbs .swiper-slide {
    height: auto;
}

/* Product tile */
#sec-ipw .ipw-prod {
    background: transparent;
    border-radius: 14px;
    padding: 0px;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    color: #000;
    transition: .18s;
    box-shadow: 0 0px 10px rgba(2, 6, 23, .18);
    border: 1px solid #fff;
}

#sec-ipw .ipw-step-label {
    color: #fff;
}

#sec-ipw .ipw-prod:hover {
    transform: translateY(-1px);
}

#sec-ipw .ipw-prod.selected {
    box-shadow: 0 0 0 2px var(--brand) inset;
    border-color: transparent;
}

#sec-ipw .ipw-ph {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: rgba(0, 0, 0, .08);
}

#sec-ipw .ipw-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #fff;
}

#sec-ipw .ipw-initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #9fb6d8;
    font-weight: 800;
    font-size: 18px;
}

#sec-ipw .ipw-pricechip {
    align-self: center;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 142, 250, 0);
    color: #fff;
}

#sec-ipw .ipw-cap {
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: #fff;
    font-weight: 800;
}

/* Swiper arrows */
#sec-ipw .swiper-button-prev,
#sec-ipw .swiper-button-next {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(245, 250, 255, .9));
    color: #0f172a;
    padding: 3px;
}

#sec-ipw .swiper-button-prev:after,
#sec-ipw .swiper-button-next:after {
    font-size: 5px;
}

#sec-ipw .swiper-button-disabled {
    opacity: .45;
}

/* Fields */
#sec-ipw .ipw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    width: 100%;
}

#sec-ipw .ipw-field label {
    font-size: 12px;
    color: #c6d7ef;
}

#sec-ipw input[type="text"],
#sec-ipw input[type="number"] {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: transparent;
    color: #000;
}

#sec-ipw input:focus {
    outline: 2px solid var(--brand);
    border-color: transparent;
}

#sec-ipw input[readonly] {
    background: transparent;
    color: #c8d6ea;
    cursor: not-allowed;
    border-radius: 8px;
}

#sec-ipw .ipw-hint {
    font-size: 12px;
    color: #9fb6d8;
}

/* Credit input */
#sec-ipw .credit-input {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sec-ipw .credit-input .ipw-txt {
    flex: 1;
    border-radius: 8px;
    padding: 12px 14px;
    padding-inline-end: 64px;
    color: #fff;
    font-size: 15px;
    direction: ltr;
    text-align: left;
    padding-left: 40px;
}

#sec-ipw .credit-input .ipw-txt:focus {
    outline: 2px solid var(--brand);
    border-color: transparent;
}

#sec-ipw .credit-input .ipw-suffix {
    position: absolute;
    inset-inline-end: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #c6d7ef;
    pointer-events: none;
}

#sec-ipw .ipw-inputs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

/* Step buttons (absolute) */
#sec-ipw button.ipw-step {
    border: none;
    border-radius: 100%;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    position: absolute;
    right: 20px;
    background-color: transparent;
}

#sec-ipw button.ipw-step:nth-of-type(2) {
    top: 0;
}

#sec-ipw button.ipw-step:nth-of-type(1) {
    bottom: 0;
}

#sec-ipw .ipw-step:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Misc */
#sec-ipw .discount-box {
    display: none;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    color: #fff !important;
    text-align: center;
    border: 1px solid;
    color: #000;
}

#sec-ipw .ipw-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border: 1px dashed rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: 12px;
    color: #d7e6ff;
    background: #fff;
}

#sec-ipw #ipw-price,
#sec-ipw #ipw-creditM {
    direction: ltr;
    text-align: left;
}

/* Product card (side panel) */
#sec-ipw .ipw-pcard {
    width: 35%;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
}

#sec-ipw .pcard__imgwrap {
    position: relative;
    min-width: 100%;
    border-radius: 12px;
    aspect-ratio: 1/1;
    background: #ebebeb;
    display: grid;
    place-items: center;
}

#sec-ipw #pcard-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#sec-ipw .pcard__logo {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

#sec-ipw .pcard__pill {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 142, 250, .14);
    border: 1px solid rgba(0, 142, 250, .35);
    color: #d9ecff;
    font-weight: 800;
    font-size: 12px;
    backdrop-filter: blur(6px);
}

#sec-ipw .pcard__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pcard__title {
    font-size: 13px;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.5;
    padding-top: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sec-ipw .pcard__price {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    padding: 6px 10px;
}

/* Paragraphs on right */
#sec-ipw .ipw-right p {
    color: #fff;
    padding-bottom: 20px;
}


/* ===== Section 5 / Categories ===== */
.sec-cat {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-bottom: 30px;
}

.cat-img-wrap img {
    width: 80%;
}

.catbox1 {
    margin-bottom: -120px;
}

.catbox1,
.catbox2 {
    display: flex;
    flex-direction: row;
    padding: 0;
    max-width: 100%;
    justify-content: center;
}


/* ====== Base Scopes (shared) ====== */
.pcx,
.pcx-2 {
    --brand: #008efa;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #0a1640;
    --soft: #f1f5f9;
    --radius: 18px;
    --gap: 18px;

    /* پوستۀ کارت با متغیر قابل‌تغییر بین اسکین‌ها */
    --card-bg: transparent;
    --card-backdrop: none;

    /* تب‌ها (قابل‌تغییر بین اسکین‌ها) */
    --tab-border: #fff;
    --tab-color: #fff;

    /* فاصله‌ی پایین کارت (فقط در .pcx لازم بود) */
    --card-pad-b: 0px;

    /* ممکنه جای دیگه تعریف شده باشه؛ اینجا فقط استفاده می‌کنیم */
    /* --shadow: ... */

    padding: 24px 12px;
}

/* ====== Skin overrides (keep exact visuals) ====== */


.pcx-2,
.pcx {
    --tab-border: rgba(255, 255, 255, .12);
    --tab-color: #e7eefc;
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    --card-backdrop: blur(14px);
    position: relative;
}

/* ====== Tabs (shared) ====== */
.pcx .pcx-tabs,
.pcx-2 .pcx-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 6px;
    scroll-snap-type: x proximity;
    max-width: 1220px;
}

.pcx .pcx-tabs::-webkit-scrollbar,
.pcx-2 .pcx-tabs::-webkit-scrollbar {
    display: none;
}

.pcx .pcx-tabs button,
.pcx-2 .pcx-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    appearance: none;
    border: 1px solid var(--tab-border);
    background: transparent;
    color: var(--tab-color);
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 14px;
    font: 500 14px/1.2 system-ui;
    transition: .2s;
}

.pcx .pcx-tabs button:hover,
.pcx-2 .pcx-tabs button:hover {
    border-color: rgba(255, 255, 255, .3);
}

.pcx .pcx-tabs .is-active,
.pcx-2 .pcx-tabs .is-active {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

@media (max-width:900px) {

    .pcx .pcx-tabs,
    .pcx-2 .pcx-tabs {
        scroll-snap-type: x mandatory;
    }
}

/* ====== Swiper shell (shared) ====== */
.pcx .pcx-swiper,
.pcx-2 .pcx-swiper {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
}

.pcx .swiper-slide,
.pcx-2 .swiper-slide {
    height: auto;
}

.pcx .swiper-wrapper,
.pcx-2 .swiper-wrapper {
    padding: 6px 0 18px;
    margin-bottom: 30px;
}

/* ناوبری اسلایدر */
.pcx .pcx-nav,
.pcx-2 .pcx-nav {
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 22px;
    text-align: center;
    line-height: 47px;
    color: #fff;
}

/* تفاوت رفتاری: فقط در .pcx در موبایل مخفی شود (مطابق قبل) */
@media (max-width:900px) {
    .pcx .pcx-nav {
        display: none;
    }
}

/* ناوبری رپپر (واحد) */
.nav-pcx {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    position: absolute;
    top: 30px;
    gap: 5px;
    left: 10px;
}

#prduct-1 .cta {
    display: flex;
    padding: .3rem 1rem;
    border-radius: 999px;
    background: #1677ff;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    justify-content: center;
    max-width: 130px;
    align-self: center;
    margin-top: 0;
    margin-right: 11px;
    position: absolute;
    min-width: 150px;
    bottom: 20px;
    left: 10px;
}

/* موقعیت pagination برای هر سکشن (همان مقادیر قبلی) */
#prduct-1 .swiper-pagination,
#prduct-2 .swiper-pagination {
    bottom: -5px;
}

/* ====== Card (shared) ====== */
.pcx .pcx-card,
.pcx-2 .pcx-card {
    background: var(--card-bg);
    backdrop-filter: var(--card-backdrop);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #fff;
    padding: 0;
    padding-bottom: var(--card-pad-b);
}

.pcx .pcx-media,
.pcx-2 .pcx-media {
    position: relative;
    background: var(--soft);
    border-radius: 14px 14px 0 0;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pcx .pcx-media img,
.pcx-2 .pcx-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pcx .pcx-title,
.pcx-2 .pcx-title {
    font: 600 14px/1.5 system-ui;
    color: #fff;
    margin: 0;
    min-height: 40px;
    padding: 5px 10px;
}

.pcx .pcx-price,
.pcx-2 .pcx-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 6px;
    flex-direction: column;
    padding: 5px 10px;
}

.pcx .pcx-price .now,
.pcx-2 .pcx-price .now {
    font: 800 16px/1.2 system-ui;
    color: #fff;
}

.pcx .pcx-price .old,
.pcx-2 .pcx-price .old {
    font: 500 13px/1 system-ui;
    color: var(--muted);
    text-decoration: line-through;
}

.pcx .pcx-row,
.pcx-2 .pcx-row {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 12px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.pcx .pcx-badge,
.pcx-2 .pcx-badge {
    background: #ff4d4f;
    color: #fff;
    font: 700 12px/1 system-ui;
    border-radius: 25px;
    padding: 8px 8px;
}

.pcx .pcx-merchant,
.pcx-2 .pcx-merchant {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: absolute;
    left: 20px;
    top: 20px;
}

.pcx .pcx-merchant img,
.pcx-2 .pcx-merchant img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.pcx .pcx-merchant span,
.pcx-2 .pcx-merchant span {
    font: 600 12px/1 system-ui;
    color: var(--muted);
}

.pcx .pcx-cta,
.pcx-2 .pcx-cta {
    text-decoration: none;
}

/* هدرباکس‌ها (shared) */
.pcx-box1,
.pcx-box2 {
    display: flex;
    min-height: 44px;
    justify-content: space-between;
    margin-bottom: 10px;
}


/* malls section */

.malls-slider {
    --m-edge: 173px;
    /* فاصله‌ی دو سر در دسکتاپ */
    --m-gap: 16px;
    --m-aspect: 16/9;
}

.malls-slider .m-ph {
    aspect-ratio: 3/2;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* ===== Desktop layout ≥900px ===== */
.sp-faq .faq-wrap {
    grid-template-columns: 1.05fr 1.2fr;
    /* راست: تصویر | چپ: آکاردئون (RTL) */
    align-items: center;
    position: relative;
}

.sp-faq[dir="rtl"] .faq-media {
    grid-column: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(100%);
}

.faq-media img {
    width: 20%;
}

.sp-faq[dir="rtl"] .faq-accordion {
    grid-column: 2;
}

.sp-faq .faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-self: center;
}

.sp-faq .faq-summary {
    padding: 10px 0px;
}

.sp-faq .faq-content {
    font-size: 15px;
}

.heading-2 {
    text-align: center;
    font-size: 30px;
    color: #fff;
}

.heading-3 {
    text-align: center;
    font-size: 18px;
    color: #fff;
}

.head-box {
    margin-bottom: 40px;
    margin-top: 70px;
}

.sub-text {
    text-align: center;
    font-weight: 400;
    font-size: 12px;
    margin-top: 10px;
}

/* ===== Desktop / Laptop styles ===== */
@media (min-width: 900px) {
    .promo-slider {
        padding-block: 16px 24px;
    }

    .promo-slider .promo-swiper {
        padding-inline: 40px;
    }


    .promo-nav {
        display: inline-flex;
    }

    .promo-prev {
        right: 24px;
    }

    .promo-next {
        left: 24px;
    }

    .promo-pagination {
        bottom: 12px;
    }
}

.sec-cat {
    max-width: 100%;
}

/* گرید ۲×۲ ثابت */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    /* فاصله بین کارت‌ها */
    display: flex;
    flex-direction: row;
}

/* کل کارت لینک‌دار */
.cat-card {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* باکس تصویر؛ ۴ تا باکس دقیقاً هم‌اندازه */
.cat-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* نسبت تصویر؛ اگر خواستی کنش کن به 16/9 */
    border-radius: 18px;
    background: transparent;
}

/* تصویر فول‌کادر و هم‌اندازه */
.cat-img-wrap picture,
.cat-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
}

.cat-img-wrap img {
    object-fit: contain;
}

/* باکس گلس‌مورفی روی تصویر */
.cat-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    /* تا دکمه جدا کلیک نگیرد و کل کارت لینک بماند */
    pointer-events: none;
    display: flex;
    justify-content: center;

}

/* عنوان دسته */
.cat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* CTA شبیه دکمه هرو */
.cat-cta {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #008efa;
    /* برند بلو اسنپ‌پی */
    color: #ffffff;
    white-space: nowrap;
}

.cat-glass {
    display: none;
}

.pcx-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    flex-shrink: 0;
    padding: 0;
}

#pcx-bf .pcx-nav svg {
    width: 7px;
    height: 12px;
    display: block;
    pointer-events: none;
    flex-direction: row-reverse;
}

/* ناوبری دسکتاپ برای #sec-products و PCX */

/* ظرف دکمه‌ها */
#sec-products .psec__nav,
.nav-pcx {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
}

/* خود دکمه‌ها (قبلی / بعدی) */
#sec-products .psec__prev,
#sec-products .psec__next,
.pcx-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
    outline: none;
}

/* هاور روی دکمه‌ها */
#sec-products .psec__prev:hover,
#sec-products .psec__next:hover,
.pcx-nav:hover {
    background: linear-gradient(135deg, #0aa2ff, #1a66ff);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(2, 6, 23, .25);
}

/* فوکوس با کیبورد */
#sec-products .psec__prev:focus-visible,
#sec-products .psec__next:focus-visible,
.pcx-nav:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 102, 255, .35);
}

/* وقتی Swiper دکمه رو غیرفعال می‌کند */
#sec-products .psec__prev.swiper-button-disabled,
#sec-products .psec__next.swiper-button-disabled,
.pcx-nav.swiper-button-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

/* حذف فلش‌های قدیمی ::before روی دکمه‌های محصولات */
#sec-products .psec__prev::before,
#sec-products .psec__next::before {
    content: none !important;
}

/* آیکن‌های داخل دکمه (SVG یا .ico) */
#sec-products .psec__nav .ico,
.pcx-nav svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

/* اسلایدر لیگ برندگان اسنپ پی */
/* ===== Winners League Slider – Desktop ===== */

#sec-hero-slider {
    padding-block: 56px;
}

#sec-hero-slider .hero-swiper {
    width: min(1160px, 100% - 32px);
    margin-inline: auto;
}

#sec-hero-slider .swiper-slide {
    display: flex;
}

#sec-hero-slider .hero-slide {
    display: flex;                 /* حتما فلکس */
    flex-direction: row-reverse;   /* متن راست، تصویر چپ */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    color: #e5edff;                /* متن روشن روی بک‌گراند تیره‌ی صفحه */
}

/* --- باکس تصویر: ابعاد استاتیک، بدون بک‌گراند --- */
#sec-hero-slider .hero-slide__media {
    flex: 0 0 500px;               /* عرض ثابت */
    height: 500px;                 /* ارتفاع ثابت */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;             /* تصویر کامل دیده بشه */
    background: transparent;       /* بدون بک‌گراند */
    border-radius: 0;
}

#sec-hero-slider .hero-slide__img {
    width: 100%;
    height: 100%;
    object-fit: contain;           /* کل تصویر، بدون کات شدن */
    display: block;
}

/* --- باکس محتوا: ابعاد استاتیک --- */
#sec-hero-slider .hero-slide__content {
    flex: 0 0 500px;               /* عرض ثابت */
    min-height: 500px;             /* هم‌ارتفاع با باکس تصویر */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* تایپوگرافی */
#sec-hero-slider .hero-slide__eyebrow {
    font-size: 0.9rem;
    margin: 0 0 8px;
    color: #38bdf8;
    letter-spacing: 0.06em;
}

#sec-hero-slider .hero-slide__title {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #f9fafb;
}

#sec-hero-slider .hero-slide__subtitle {
    font-size: 0.95rem;
    line-height: 1.9;
    margin: 0 0 12px;
    color: #d1e0ff;
}

#sec-hero-slider .hero-slide__subtitle--small {
    font-size: 0.85rem;
    margin-top: 0;
}

#sec-hero-slider .hero-slide__list {
    margin: 0 0 12px;
    padding-right: 1.1rem;
    list-style: disc;
}

#sec-hero-slider .hero-slide__list li {
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 4px;
    color: #e5edff;
}

/* لیست امتیازها */
#sec-hero-slider .hero-slide__list--points {
    list-style: none;
    padding: 0;
}

#sec-hero-slider .hero-slide__list--points li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

#sec-hero-slider .points-label {
    font-size: 0.95rem;
}

#sec-hero-slider .points-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #22d3ee;
}

/* بج‌ها آنلاین/حضوری */
#sec-hero-slider .hero-slide__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

#sec-hero-slider .hero-badge {
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #e0f2fe;
}

/* متن توضیحی ریز */
#sec-hero-slider .hero-slide__meta {
    font-size: 0.78rem;
    color: #9fb6ff;
    margin-top: 4px;
}

/* CTA (بدون بک‌گراند، فقط بوردر) */
#sec-hero-slider .hero-slide__cta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: start;
    border: none;
    background: transparent;       /* بدون بک‌گراند */
    color: #e0f2fe;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}


/* Pagination */
#sec-hero-slider .hero-slider__pagination {
    margin-top: 20px;
    text-align: center;
}

#sec-hero-slider .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    opacity: 0.4;
    background: #38bdf8;
}

#sec-hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}
