﻿@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Vazirmatn', sans-serif;
    background: #0A1330;
    color: #0F1626;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ===== PAGE WRAP ===== */
/* ===== PAGE-WRAP — wider & taller ===== */
.page-wrap {
    max-width: 600px; /* از 480 به 600 */
    margin: 0 auto;
    min-height: 100dvh; /* از 100vh به 100dvh */
    background: #F2F4FA;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 601px) {
    body {
        padding: 20px 0;
        background: #0A1330;
    }

    .page-wrap {
        min-height: calc(100dvh - 40px);
        border-radius: 0;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    }
}

/* ===== LOGIN FORM (inside splash) ===== */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 8px;
}

.login-field {
    position: relative;
    width: 100%;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 5px;
    padding: 8px 16px;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .18s, background .18s;
    text-align: center;
    direction: rtl;
}

    .login-input::placeholder {
        color: rgba(255, 255, 255, .35);
    }

    .login-input:focus {
        border-color: #CDA349;
        background: rgba(205, 163, 73, .07);
    }

/* خطا */
.login-error {
    display: none;
    color: #FF6B72;
    font-size: 12.5px;
    text-align: center;
    background: rgba(255, 107, 114, .1);
    border-radius: 10px;
    padding: 8px 14px;
    width: 100%;
    box-sizing: border-box;
}


/* ===== HEADER ===== */
.app-header {
    background: #0A1330;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: sticky;
    top: 0;
    z-index: 30;
}

    .app-header .logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #CDA349;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 16px;
        color: #0A1330;
        flex-shrink: 0;
    }

    .app-header .brand-text {
        flex: 1;
    }

        .app-header .brand-text h1 {
            font-size: 15px;
            font-weight: 800;
            color: #FFFFFF;
            letter-spacing: .3px;
            margin-right : 110px;
        }

        .app-header .brand-text span {
            font-size: 10.5px;
            color: #8D98BC;
            font-weight: 500;
        }

    .app-header .header-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .08);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .app-header .header-icon img {
            width: 18px;
            height: 18px;
        }

    .app-header .back-btn img {
        width: 18px;
        height: 18px;
    }

/* ===== CONTENT ===== */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #0F1B3D, #16295A 60%, #213A73);
    padding: 20px 20px 26px;
    color: #fff;
    flex-shrink: 0;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .hero-top .brand-mini {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .hero-top .brand-mini .mark {
            width: 38px;
            height: 38px;
            border-radius: 11px;
            background: #CDA349;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 15px;
            color: #0A1330;
        }

        .hero-top .brand-mini .name {
            font-size: 15px;
            font-weight: 800;
        }

        .hero-top .brand-mini .tag {
            font-size: 10.5px;
            color: #B9C2DE;
            font-weight: 500;
        }

.hero h2 {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 4px;
}

.hero p.desc {
    font-size: 12.5px;
    color: #AEB9D8;
    font-weight: 500;
    margin-bottom: 18px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    padding: 12px 14px;
}

    .search-bar input {
        background: none;
        border: none;
        outline: none;
        color: #fff;
        font-size: 13px;
        flex: 1;
        font-weight: 500;
        font-family: inherit;
    }

        .search-bar input::placeholder {
            color: #8D98BC;
        }

    .search-bar img {
        width: 17px;
        height: 17px;
        opacity: .6;
    }

/* ===== SECTION ===== */
.section-pad {
    padding: 22px 20px 6px;
}

.section-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .section-label h3 {
        font-size: 14.5px;
        font-weight: 700;
        color: #0F1B3D;
    }

    .section-label span {
        font-size: 11.5px;
        color: #95A0B4;
        font-weight: 500;
    }

/* ===== TAB GRID ===== */
.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px 24px;
    margin-top: 20px;
}

.tab-card {
    display: block;
    background: #FFFFFF;
    border: 1px solid #E7EAF2;
    border-radius: 18px;
    padding: 20px 14px 16px;
    text-align: center;
    position: relative;
    transition: transform .15s;
}

    .tab-card:active {
        transform: scale(.97);
    }

    .tab-card::before {
        content: '';
        position: absolute;
        top: -7px;
        right: 20px;
        width: 34px;
        height: 14px;
        background: #CDA349;
        border-radius: 7px 7px 0 0;
    }

    .tab-card .icon-wrap {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        margin: 0 auto 12px;
        background: #E8EBF5;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

        .tab-card .icon-wrap img {
            width: 26px;
            height: 26px;
            object-fit: contain;
        }

    .tab-card h4 {
        font-size: 13.5px;
        font-weight: 700;
        color: #0F1B3D;
        margin-bottom: 3px;
    }

    .tab-card p {
        font-size: 10.5px;
        color: #95A0B4;
        font-weight: 500;
    }

    .tab-card .count {
        display: inline-block;
        margin-top: 8px;
        font-size: 10px;
        font-weight: 700;
        color: #AD8433;
        background: #F8EFDA;
        padding: 3px 9px;
        border-radius: 20px;
    }

/* ===== SCROLL ROW ===== */
.scroll-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 26px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

    .scroll-row::-webkit-scrollbar {
        height: 3px;
    }

    .scroll-row::-webkit-scrollbar-track {
        background: #E7EAF2;
        border-radius: 3px;
    }

    .scroll-row::-webkit-scrollbar-thumb {
        background: #CDA349;
        border-radius: 3px;
    }

.rel-card {
    flex-shrink: 0;
    width: 130px;
    background: #FFFFFF;
    border: 1px solid #E7EAF2;
    border-radius: 16px;
    padding: 8px;
    display: block;
    scroll-snap-align: start;
}

    .rel-card .thumb {
        width: 100%;
        height: 90px;
        border-radius: 11px;
        overflow: hidden;
        margin-bottom: 8px;
        background: #F2F4FA;
    }

        .rel-card .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .rel-card h6 {
        font-size: 11.5px;
        font-weight: 700;
        color: #0F1B3D;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 3px;
    }

    .rel-card .price {
        font-size: 11.5px;
        font-weight: 800;
        color: #AD8433;
    }

/* ===== PRODUCT LIST ===== */
.filter-row {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

    .filter-row::-webkit-scrollbar {
        height: 2px;
    }

    .filter-row::-webkit-scrollbar-thumb {
        background: #CDA349;
        border-radius: 2px;
    }

.chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #FFFFFF;
    border: 1px solid #E7EAF2;
    color: #5B6478;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .chip.active {
        background: #0F1B3D;
        border-color: #0F1B3D;
        color: #fff;
    }

.product-list {
    padding: 0 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p-row {
    display: flex;
    gap: 12px;
    background: #0B1F33;
    color : #FFFFFF;
    border: 1px solid #E7EAF2;
    border-radius: 18px;
    padding: 10px;
    align-items: center;
}

    .p-row a.hit {
        display: flex;
        gap: 12px;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .p-row .thumb {
        width: 90px;
        height: 90px;
        border-radius: 6px;
        overflow: hidden;
        flex-shrink: 0;
        background: #F2F4FA;
    }

        .p-row .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .p-row .info {
        flex: 1;
        min-width: 0;
        text-align : center;
    }

    .p-row .brand-tag2 {
        font-size: 10px;
        color: #95A0B4;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .p-row h5 {
        font-size: 13px;
        font-weight: 700;
        color: #0F1B3D;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .p-row .meta {
        font-size: 10.5px;
        color: #95A0B4;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .p-row .price-line {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .p-row .price {
        font-size: 13.5px;
        font-weight: 800;
        color: #0F1B3D;
    }

    .p-row .unit {
        font-size: 10px;
        color: #95A0B4;
        font-weight: 500;
    }

    .p-row .add-btn {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        background: #0F1B3D;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .p-row .add-btn img {
            width: 16px;
            height: 16px;
        }

/* ===== PRODUCT DETAIL ===== */
.p-hero {
    position: relative;
    width: 100%;
    height: 420px;
    background: #FFFFFF;
}

    .p-hero img {
        width: 100%;
        height: 100%;
        /*object-fit: cover;*/
    }

    .p-hero .dots {
        position: absolute;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
    }

        .p-hero .dots span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(255, 255, 255, .55);
        }

            .p-hero .dots span.on {
                background: #fff;
                width: 16px;
                border-radius: 4px;
            }

.p-sheet {
    position: relative;
    margin-top: -22px;
    background: #F2F4FA;
    border-radius: 24px 24px 0 0;
    padding: 10px 20px 0;
}

.badge-row {
    justify-content :center;
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.badge {
    font-size: 16px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .badge.ok {
        background: #E7F5EE;
        color: #1D8A5E;
    }

    .badge.moq {
        background: #E8EBF5;
        color: #16295A;
    }
    .badge.offer {
        background: #CDA349;
        color: #16295A;
        width : 30%;
        justify-content : center;
        margin-right : 100px;
        margin-top : -7px;
    }

    .badge img {
        width: 12px;
        height: 12px;
    }

.p-title-row {
    margin-bottom: 4px;
}

.p-brand {
    font-size: 11.5px;
    color: #AD8433;
    font-weight: 700;
    margin-bottom: 3px;
}

.p-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F1B3D;
    line-height: 1.5;
    text-align: center;
}

.tag-row {
    display: flex;
    gap: 6px;
    margin: 10px 0 18px;
    flex-wrap: wrap;
}

    .tag-row .tag {
        font-size: 10.5px;
        font-weight: 600;
        color: #5B6478;
        background: #FFFFFF;
        border: 1px solid #E7EAF2;
        padding: 5px 10px;
        border-radius: 8px;
    }

.card {
    background: #FFFFFF;
    border: 1px solid #E7EAF2;
    border-radius: 18px;
    padding: 16px 16px 6px;
    margin-bottom: 16px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .card-title .bar {
        width: 3px;
        height: 13px;
        background: #CDA349;
        border-radius: 2px;
    }

    .card-title h4 {
        font-size: 13px;
        font-weight: 700;
        color: #0F1B3D;
    }

    .card-title .stamp {
        margin-right: auto;
        font-size: 9.5px;
        color: #95A0B4;
        font-weight: 600;
        border: 1px dashed #E7EAF2;
        padding: 2px 7px;
        border-radius: 6px;
    }

.ledger-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
   
}

    .ledger-row:last-child {
        /*border-bottom: none;*/
    }

    .ledger-row .lbl {
        font-size: 16px;
        color: #95A0B4;
        font-weight: 600;
        flex-shrink: 0;
    }

    .ledger-row .val {
        font-size: 12.5px;
        color: #0F1B3D;
        font-weight: 700;
        text-align: left;
    }

.seg {
    display: flex;
    background: #F2F4FA;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 14px;
}

    .seg button {
        flex: 1;
        padding: 9px 0;
        border-radius: 9px;
        font-size: 12.5px;
        font-weight: 700;
        color: #5B6478;
    }

        .seg button.active {
            background: #0F1B3D;
            color: #fff;
        }

.price-display {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .price-display .main {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .price-display .num {
        font-size: 24px;
        font-weight: 800;
        color: #0F1B3D;
    }

    .price-display .cur {
        font-size: 12px;
        font-weight: 600;
        color: #95A0B4;
    }

.discount-pill {
    background: #FBEAE8;
    color: #CB4A41;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 8px;
}

.installment-box {
    background: #E8EBF5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: none;
}

    .installment-box.show {
        display: block;
    }

    .installment-box .row {
        display: flex;
        justify-content: space-between;
        font-size: 11.5px;
        font-weight: 600;
        color: #16295A;
        padding: 4px 0;
    }

        .installment-box .row b {
            font-weight: 800;
        }

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 16px;
    border-top: 1px solid #E7EAF2;
}

    .qty-row .lbl {
        font-size: 12.5px;
        font-weight: 700;
        color: #0F1B3D;
    }

        .qty-row .lbl small {
            display: block;
            font-size: 10.5px;
            font-weight: 500;
            color: #95A0B4;
            margin-top: 2px;
        }

.stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F2F4FA;
    border-radius: 12px;
    padding: 6px 10px;
}

    .stepper button {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        background: #FFFFFF;
        border: 1px solid #E7EAF2;
        font-size: 16px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0F1B3D;
    }

    .stepper span {
        font-size: 14px;
        font-weight: 800;
        min-width: 18px;
        text-align: center;
    }

.sec-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F1B3D;
    margin: 6px 0 10px;
    padding: 0 20px;
}

.buy-bar-spacer {
    height: 80px;
}

.buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border-top: 1px solid #E7EAF2;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(15, 27, 61, .08);
}

    .buy-bar .price-block {
        flex: 1;
    }

        .buy-bar .price-block .lbl {
            font-size: 10px;
            color: #95A0B4;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .buy-bar .price-block .num {
            font-size: 16px;
            font-weight: 800;
            color: #0F1B3D;
        }

    .buy-bar .cta {
        background: #0F1B3D;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        padding: 13px 22px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .buy-bar .cta img {
            width: 16px;
            height: 16px;
        }

/* ===== FOOTER / BOTTOM NAV ===== */
/*.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    max-width: 480px;
    margin: 0 auto;
    background: #0A1330;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
}*/
.app-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100%, 600px);
    max-width: 600px;
    z-index: 50;
    background: #0A1330;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
}
    .app-footer a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 4px 12px;
        border-radius: 10px;
        transition: background .2s;
        flex: 1;
        /*max-width: 70px;*/
    }

        .app-footer a:active {
            background: rgba(255, 255, 255, .06);
        }

        .app-footer a img {
            width: 30px;
            height: 30px;
            opacity: .5;
            transition: opacity .2s;
        }

        .app-footer a.active img {
            opacity: 1;
        }

        .app-footer a span {
            font-size: 10px;
            color: rgba(255, 255, 255, .4);
            font-weight: 600;
            transition: color .2s;
        }

        .app-footer a.active span {
            color: #CDA349;
        }
        .app-footer a .nav-icon {
            width: 26px;
            height: 26px;
            color: #FFFFFF; /* ⬅ سفید */
            opacity: 0.55; /* ⬅ کمی محو در حالت عادی */
            transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
            display: block;
        }

        .app-footer a.active .nav-icon {
            color: #CDA349; /* ⬅ فعال: طلایی */
            opacity: 1;
            transform: translateY(-1px);
        }

        .app-footer a:hover .nav-icon {
            color: #FFFFFF;
            opacity: 0.85;
        }

        .app-footer a.active:hover .nav-icon {
            color: #CDA349;
            opacity: 1;
        }

/* موبایل کوچک */
@media (max-width: 380px) {
    .app-footer a .nav-icon {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 481px) {
    .app-footer a .nav-icon {
        width: 28px;
        height: 28px;
    }
}
/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0A1330;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all .28s ease;
    z-index: 80;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .08);
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .toast img {
        width: 15px;
        height: 15px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width:480px) {
    .app-footer a {
        padding: 4px 8px;
    }
}

/* ===== CARD WITH IMAGE COVER ===== */
.tab-card-image {
    display: block;
    background: #0B1F33;
    border: 1px solid #E7EAF2;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform .15s;
    text-align: center;
}
    .tab-card-image:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px #163A59;
    }
    .tab-card-image:active {
        transform: scale(.97);
    }

    .tab-card-image .card-cover {
        width: 100%;
        height: 150px;
        overflow: hidden;
        background: #E8EBF5;
        position: relative;
        
    }

        .tab-card-image .card-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .tab-card-image .card-cover .badge-top {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(205, 163, 73, 0.92);
            color: #0A1330;
            font-size: 9px;
            font-weight: 800;
            padding: 3px 10px;
            border-radius: 12px;
            letter-spacing: .3px;
        }

    .tab-card-image .card-body {
        padding: 14px 12px 16px;
    }

        .tab-card-image .card-body h4 {
            font-size: 16px;
            font-weight: 600;
            color: #FFFFFF;
            margin-bottom: 3px;
        }

        .tab-card-image .card-body p {
            font-size: 10.5px;
            color: #95A0B4;
            font-weight: 500;
        }

        .tab-card-image .card-body .count {
            display: inline-block;
            margin-top: 8px;
            font-size: 10px;
            font-weight: 700;
            color: #AD8433;
            background: #F8EFDA;
            padding: 3px 9px;
            border-radius: 5px;
        }

    .tab-card-image .card-cover .overlay-icon {
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #FFFFFF;
        border: 2px solid #E7EAF2;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }

        .tab-card-image .card-cover .overlay-icon img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }
/* ===== SPLASH SCREEN ===== */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: linear-gradient(160deg, #0B1F33 0%, #0B1F33 50%, #0B1F33 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

    .splash-overlay.hide {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .splash-overlay[style*="display: none"] {
        opacity: 0 !important;
        pointer-events: none !important;
    }

.splash-container {
    width: 100%;
    max-width: 400px;
    padding: 30px 24px 20px; /* کاهش padding بالا */
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 0; /* تغییر مهم */
    padding-top: 40px; /* فاصله مناسب از بالا */
}

.splash-logo {
    width: 50px;
    height: 50px;
    border-radius: 28px;
   /* background: linear-gradient(145deg, #CDA349, #B8922F);*/
    display: flex;
    align-items: center;
    justify-content: center;
  /*  box-shadow: 0 20px 60px rgba(205, 163, 73, 0.3);*/
    /*margin-bottom: 8px;*/
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.splash-logo .logo-icon {
    margin-top:auto;
    font-size: 32px;
    font-weight: 900;
    color: #0A1330;
    letter-spacing: 2px;
}

.splash-title {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 1px;
}


.splash-subtitle {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 500;
    /* margin: -4px 0 8px; */
    letter-spacing: 0.5px;
    margin-top: -30px;
    margin-bottom: 50px;
}
.splash-loader {
    display: flex;
    gap: 8px;
    margin: 8px 0 16px;
}
.splash-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 30px;
}
@media (min-width: 481px) {
    .splash-container {
        padding: 40px 30px;
        30px;
    }

    .splash-bottom {
        padding-bottom: 40px;
    }
}

@media (max-width: 380px) {
    .splash-bottom {
        padding-top: 15px;
        padding-bottom: 25px;
    }
}

.loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CDA349;
    animation: dotBounce 1.4s ease-in-out infinite;
}

    .loader-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .loader-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.4);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.splash-btn {
    justify-content: center;
    text-align: center;
    height: 76px;
    background: #0B1F33;
    color: #FFFFFF;
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
   /* box-shadow: 0 8px 32px rgba(205, 163, 73, 0.35);*/
}

    .splash-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px #163A59;
    }

    .splash-btn:active {
        transform: scale(0.96);
    }

    .splash-btn svg {
        transition: transform 0.3s ease;
    }

    .splash-btn:hover svg {
        transform: translateX(4px);
    }

.splash-version {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
   /* margin-top: 4px;*/
    letter-spacing: 0.5px;
}
.pre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; 
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0; 
    border: none;
    border-radius: 12px;
   
    color: #fff;
    cursor: pointer;
   /* box-shadow: 0 8px 20px rgba(205,163,73,.35);*/
}

    .pre-btn .pre-btn__icon {
        width: 22px;
        height: 22px;
        display: block;
    }

    .pre-btn .pre-btn__path {
        stroke-width: 1.5 !important; 
        stroke: currentColor;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
/* Responsive */
@media (max-width: 380px) {
    .splash-logo {
        width: 80px;
        height: 80px;
        border-radius: 22px;
    }

        .splash-logo .logo-icon {
            font-size: 26px;
        }

    .splash-title {
        font-size: 26px;
    }

    .splash-btn {
        padding: 12px 28px;
        font-size: 13px;
    }
}

/*.app-footer .nav-call {
    max-width: 80px;
    flex: 0 0 80px;
    position: relative;
    margin-top: -18px;
}*/
.app-footer .nav-call {
    max-width: 92px;
    flex: 0 0 76px;
    position: relative;
    margin-top: -18px;
}
.call-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #CDA349, #B8922F);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(205, 163, 73, 0.45), 0 0 0 4px rgba(205, 163, 73, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: callPulse 2s ease-in-out infinite;
}

@keyframes callPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(205, 163, 73, 0.45), 0 0 0 4px rgba(205, 163, 73, 0.15);
    }

    50% {
        box-shadow: 0 4px 30px rgba(205, 163, 73, 0.6), 0 0 0 8px rgba(205, 163, 73, 0.08);
    }
}

.call-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(205, 163, 73, 0.2);
    animation: ringRipple 2s ease-out infinite;
}

@keyframes ringRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.call-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(205, 163, 73, 0.1);
    animation: ringRipple 2s ease-out infinite 0.8s;
}

.call-btn img {
    width: 26px !important;
    height: 26px !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.call-btn:hover img {
    transform: scale(1.1) rotate(10deg);
}

.call-btn:active {
    transform: scale(0.92);
}

/* متن زیر دکمه تماس */
.app-footer .nav-call span {
    color: #CDA349 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    margin-top: 4px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* ===== GROUP LIST (ROW STYLE) ===== */
.group-list {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.group-list-item {
    height: 130px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0B1F33;
    border: 1px solid #E7EAF2;
    border-radius: 8px;
    padding: 10px 12px 10px 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #FFFFFF;
    position: relative;
    min-height: 130px;
    margin: 10px;
}

    .group-list-item:active {
        transform: scale(0.98);
        background: #F8F9FC;
    }

.group-item-image {
    width: 100px;
    min-width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #F2F4FA;
    flex-shrink: 0;
}

    .group-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.group-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-item-desc {
    font-size: 11.5px;
    color: #95A0B4;
    font-weight: 500;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.group-item-count {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #CDA349;
    /* background: #F8EFDA*/;
    padding: 2px 10px;
    text-align:center;
    margin-top: 4px;
    width: fit-content;
}

.group-item-arrow {
    flex-shrink: 0;
    margin-right: 4px;
    color: #CDA349;
    display: flex;
    align-items: center;
}

    .group-item-arrow svg {
        width: 20px;
        height: 20px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
    .group-item-image {
        width: 65px;
        min-width: 65px;
        height: 65px;
    }

    .group-item-title {
        font-size: 12.5px;
    }

    .group-item-desc {
        font-size: 10.5px;
    }
}

/*@media (min-width: 481px) {
    .group-list {
        padding: 0 24px 24px;
    }
}*/


/* ===== PRICE ROW IN PRODUCT LIST ===== */
/* ===== PRODUCT LIST (UPDATED) ===== */
.product-list {
    padding: 0 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p-row {
    display: flex;
    gap: 14px;
    background: #0B1F33;
    color: #FFFFFF;
    border: 1px solid #E7EAF2;
    border-radius: 10px;
    padding: 12px;
    align-items: center;
}

    .p-row a.hit {
        display: flex;
        gap: 14px;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    /* عکس بزرگ‌تر */
    .p-row .thumb {
        width: 110px;
        height: 110px;
        border-radius: 1px;
        overflow: hidden;
        flex-shrink: 0;
        background: #F2F4FA;
    }

        .p-row .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .p-row .info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .p-row h4 {
        font-size: 14px;
        font-weight: 700;
        color: #FFFFFF;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        margin-bottom : 10px;
    }

/* ===== PRICE BLOCK ===== */
.price-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.price-lines {
    display: flex;
    flex-direction: column;
    gap: 6px; /* ← فاصله بین سطرها */
    flex: 1;
    min-width: 0;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #CDA349;
    font-weight: 500;
    white-space: nowrap;
}

    .price-item strong {
        color: #fff;
        font-weight: 700;
        font-size: 12px;
        margin-right: auto;  ← مقدار به سمت چپ 
    }

/* ===== DISCOUNT BADGE ===== */
.discount-badge {
    font-size: 12px;
    font-weight: 700;
    color: #0A1330;
    background: #CDA349;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal; /* ← اجازه wrap */
    word-break: break-word; /* ← شکستن کلمه در صورت نیاز */
    line-height: 1.4; /* ← فاصله خطوط بهتر */
    text-align: center;
    flex-shrink: 0;
    align-self: center;
    max-width: 90px; /* ← عرض محدود برای wrap */
    min-height: 40px; /* ← ارتفاع بیشتر */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(205, 163, 73, 0.35);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(205, 163, 73, 0.35);
    }

    50% {
        box-shadow: 0 2px 16px rgba(205, 163, 73, 0.6);
    }
}

/* اگر کلاس Class_() خالی برگرداند، این حالت اعمال می‌شود */
.discount-badge:empty {
    display: none;
}

.desc-text {
    font-size: 11px;
    color: #95A0B4;
    line-height: 1.5;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Enter-btn {
    justify-content: center;
    text-align: center;
    height: 60px;
    background: #FFFFFF;
    color: #0A1330;
    border: none;
    padding: 14px 36px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;

}

    .Enter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px #FFFFFF;
    }

    .Enter-btn:active {
        transform: scale(0.96);
    }

    .Enter-btn svg {
        transition: transform 0.3s ease;
    }

    .Enter-btn:hover svg {
        transform: translateX(4px);
    }




/* ===== اصلاح فاصله بالا و پایین (از عرض 481px به بالا) ===== */
@media (min-width: 481px) {
    .splash-container {
        display: flex;
        flex-direction: column;
    }

    .splash-version {
        margin-top: auto;
    }

    .splash-content {
        gap: 24px;
    }

    .splash-subtitle {
        margin-top: 20px;
    }

    .Enter-btn {
        height: 58px;
        margin-top: 16px;
    }
}

/* ===== تنظیمات اضافی برای موبایل ===== */
@media (max-width: 480px) {
    .splash-container {
        padding: 60px 24px 50px !important;
        justify-content: center;
        gap: 20px;
    }
}







/* گوشی خیلی کوچک */
@media (max-width: 360px) {
    .app-footer a {
        padding: 4px 2px;
        gap: 1px;
    }

        .app-footer a img {
            width: 26px;
            height: 26px;
        }

        .app-footer a span {
            font-size: 9px;
        }

    .call-btn {
        width: 52px;
        height: 52px;
    }

    .app-footer .nav-call {
        flex-basis: 64px;
        max-width: 72px;
        margin-top: -14px;
    }
}

/* گوشی معمولی */
@media (min-width: 361px) and (max-width: 480px) {
    .app-footer a {
        padding: 4px 6px;
    }
}

/* تبلت کوچک و تبلت */
@media (min-width: 481px) {
    .app-footer {
        padding: 10px 12px calc(20px + env(safe-area-inset-bottom));
    }

        .app-footer a {
            padding: 6px 10px;
            gap: 4px;
            max-width: 120px;
        }

            .app-footer a img {
                width: 32px;
                height: 32px;
            }

            .app-footer a span {
                font-size: 12px;
            }

        .app-footer .nav-call {
            flex: 0 0 88px;
            max-width: 100px;
            margin-top: -20px;
        }

    .call-btn {
        width: 62px;
        height: 62px;
    }

    .group-list {
        padding: 0 24px 24px;
    }

    .p-hero {height:520px;}
}

/* تبلت بزرگ / افقی */
@media (min-width: 768px) {
    .app-footer a span {
        font-size: 13px;
    }

    .app-footer a {
        max-width: 140px;
    }
}
