:root{
    --purple: #6b3fa0;
    --purple2: #8a5cc7;
    --soft: #f6f2fa;
    --border: #e6e6e6;
    --text: #222;

    --font-body: "Baloo Bhaijaan 2", "Vazirmatn", sans-serif;
    --font-title: "Lalezar", "Baloo Bhaijaan 2", sans-serif;
    --font-button: "Shabnam FD", "Baloo Bhaijaan 2", "Vazirmatn", sans-serif;

}

*{ box-sizing: border-box; }

body{
    margin: 0;
    direction: rtl;
    font-family: var(--font-body);
    color: var(--text);
    background: #fff;
}

/* Topbar */
.topbar{
    width: 107%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    direction: rtl;
    background-color: #f4ecfc;
    height: 130px;
    padding-left: 12px;
    padding-right: 12px;
}

.right-group,
.left-group{
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo circle */
.logo{
    width: 57px;
    height: 57px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    flex: 0 0 auto;
}
.logo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap: wrap;           /* مهم: اجازه بده بره خط بعد */
    gap: 10px;
}

/* ردیف بالا (چپ و راست) */
.right-group,
.left-group{
    display:flex;
    align-items:center;
    gap:10px;
}

/* سرچ بار = ردیف دوم */
.top-search{
    width: 100%;
    flex: 0 0 100%;            /* مهم: کل عرض و ردیف جدا */
    order: 10;                 /* مهم: همیشه آخر و پایین */
    display:flex;
    align-items:center;
    gap:10px;
    padding: 0 10px 10px;      /* کمی فاصله از پایین/کناره */
}

/* ظاهر سرچ */
.top-search input{
    flex: 1;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 0 14px;
    outline: none;
    font-family: inherit;
    background: #fff;
}

.top-search button{
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 0;
    cursor: pointer;
}


/* Small icon buttons (user/cart) */
.top-icon{
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.top-icon-svg{
    width: 22px;
    height: 22px;
    color: var(--purple);
}

/* Mega Menu */
.mega-menu{ position: relative; }

.mega-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    color: var(--text);
    user-select: none;
    border-radius: 12px;
}

.icon-btn{
    padding: 10px;
    width: 44px;
    height: 44px;
}

.menu-icon{
    width: 22px;
    height: 22px;
    color: var(--purple);
}

.mega-content{
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(980px, 92vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    display: none;
}

.mega-menu.is-open .mega-content{ display: flex; }

.mega-sidebar{
    width: 220px;
    background: var(--soft);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.side-link{
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.side-link:hover,
.side-link.is-active{
    background: rgba(107,63,160,.12);
    color: var(--purple);
}

.mega-body{
    padding: 16px 18px;
    width: 100%;
    max-height: 420px;
    overflow: auto;
    scroll-behavior: smooth;
}

.cat{
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(0,0,0,.08);
    margin-bottom: 18px;
}

.cat:last-child{ border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.cat-title{
    margin: 0 0 12px 0;
    color: var(--purple);
    font-size: 16px;
    font-family: var(--font-title);
}

.cols{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

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

.list li{ margin: 0; padding: 6px 0; font-size: 14px; }

.list a{ text-decoration: none; color: #333; }
.list a:hover{ color: var(--purple); }

.list-title a{ font-weight: 800; color: #111; }
.one-col{ max-width: 320px; }

/* Responsive */
@media (max-width: 820px){
    .mega-content{ width: 92vw; }
    .mega-sidebar{ width: 170px; }
    .cols{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
    .mega-content{ flex-direction: column; }
    .mega-sidebar{
        width: 100%;
        flex-direction: row;
        overflow: auto;
        border-left: none;
        border-bottom: 1px solid var(--border);
        gap: 6px;
    }
    .side-link{ white-space: nowrap; }
    .cols{ grid-template-columns: 1fr; }
}

/* ----- Boxes Section (Banner + Categories) ----- */
.home-boxes{
    margin-top: 14px;
    width: 100%;
    padding-right: 4%;
}

/* بنر بزرگ */
.hero-card{
    background: #b895d6;
    border-radius: 16px;
    padding: 16px;
}

.hero-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-pill{
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-height: 46px;
}

.hero-heart{
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(184,149,214,.18);
    color: #8b57c6;
    font-weight: 800;
}

.hero-text{
    font-family: var(--font-title);
    color: #4b2f66;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-avatar{
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.hero-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* گرید باکس‌های کوچک */
.cat-grid{
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cat-card{
    background: rgba(184,149,214,.55);
    border-radius: 18px;
    padding: 12px 10px 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 150px;
}

.cat-circle{
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cat-circle img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-label{
    width: 100%;
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    text-align: center;
    color: #4b2f66;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

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

/* ----- Product Rows ----- */
.product-rows{
    margin-top: 14px;
    width: 100%;
}

.product-row{
    margin-top: 14px;
    background: rgba(184,149,214,.22);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 16px;
    padding: 12px;
}

.row-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.row-title{
    margin: 0;
    font-family: var(--font-title);
    color: #4b2f66;
    font-size: 16px;
}

.row-more{
    text-decoration: none;
    font-weight: 700;
    color: var(--purple);
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(107,63,160,.12);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.product-strip{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.product-card{
    flex: 0 0 145px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    scroll-snap-align: start;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.p-img{
    width: 100%;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid rgba(0,0,0,.06);
}

.p-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-name{
    margin-top: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #2a1b3a;
    line-height: 1.4;
    min-height: 34px;
}

.p-price{
    margin-top: 6px;
    font-weight: 800;
    font-size: 13px;
    color: var(--purple);
}

.p-btn{
    margin-top: 10px;
    width: 100%;
    border: none;
    background: var(--purple);
    color: #fff;
    border-radius: 12px;
    padding: 10px 10px;
    font-weight: 800;
    cursor: pointer;
}

.p-btn:active{
    transform: translateY(1px);
}
/* ----- Discount (Product Card) ----- */
.product-card{
    position: relative; /* برای جایگذاری badge */
}

.discount-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(107,63,160,.22);
    z-index: 2;
}

/* حالت تخفیف‌دار */
.product-card.is-discount{
    border-color: rgba(107,63,160,.25);
    box-shadow: 0 10px 24px rgba(107,63,160,.10);
}

/* ردیف قیمت‌ها (جدید/قدیم) */
.p-prices{
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.p-old-price{
    font-weight: 800;
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: .9;
}

/* چون .p-price قبلاً margin-top داشت، داخل .p-prices بهتره صفر بشه */
.p-prices .p-price{
    margin-top: 0;
}

/* اختیاری: قیمت جدید در تخفیف کمی برجسته‌تر */
.product-card.is-discount .p-price{
    color: var(--purple);
    font-size: 14px;
}
/* ===== Footer ===== */
.site-footer{
    background:#8971ba;
    padding:24px 16px 28px;
    color:#fff;
    border-radius:28px 28px 0 0;
    margin-top:24px;
    width: 107%;
}

/* features */
.footer-features{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.feature-item{
    flex:1;
    background:rgba(255,255,255,.15);
    border-radius:18px;
    padding:12px 8px;
    text-align:center;
}

.feature-item img{
    width:60%;
    height:63%;
    object-fit:contain;
    margin-bottom:6px;
}

.feature-item span{
    font-size:13px;
    font-weight:800;
}

/* social */
.footer-social{
    margin-top:22px;
    text-align:center;
}

.social-title{
    font-size:14px;
    font-weight:900;
    margin-bottom:10px;
}

.social-icons{
    display:flex;
    justify-content:center;
    gap:14px;
}

.social-icons a{
    width:42px;
    height:42px;
    background:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.social-icons img{
    width:22px;
    height:22px;
}

/* divider */
.footer-divider{
    margin:22px 0 18px;
    height:1px;
    background:linear-gradient(
        to left,
        transparent,
        rgba(255,255,255,.7),
        transparent
    );
}

/* contact */
.footer-contact{
    text-align:center;
    margin-bottom:14px;
}

.contact-title{
    display:block;
    font-size:13px;
    opacity:.9;
}

.contact-phone{
    font-size:16px;
    font-weight:900;
    letter-spacing:1px;
}

/* address */
.footer-address{
    text-align:center;
    margin-bottom:20px;
}

.address-title{
    display:block;
    font-size:13px;
    font-weight:800;
    margin-bottom:4px;
}

.address-text{
    margin:0;
    font-size:12px;
    line-height:1.8;
    opacity:.95;
}

/* trust */
.footer-trust{
    display:flex;
    justify-content:center;
    gap:16px;
}

.footer-trust img{
    width:70px;
    height:70px;
    background:#fff;
    border-radius:14px;
    padding:6px;
    object-fit:contain;
}
/* ===== Product Detail Page (NEW) ===== */
.product-page{
    width: 100%;
    padding-top: 5%;
    padding-right: 8%;
}

.pd-breadcrumb{
    width: 100%;
    background: rgba(184,149,214,.18);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #4b2f66;
    font-weight: 800;
    font-size: 12px;
}

.pd-breadcrumb a{
    text-decoration: none;
    color: var(--purple);
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(107,63,160,.10);
    padding: 5px 10px;
    border-radius: 999px;
}

.pd-sep{ opacity: .6; }
.pd-current{
    font-weight: 900;
    color: #2a1b3a;
}

.pd-card{
    margin-top: 12px;
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.pd-gallery{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
}

.pd-main-img{
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid rgba(0,0,0,.06);
}
.pd-main-img{
    height: auto !important;
}

.pd-main-img img{
    width: 100%;
    padding: 5px;
    height: auto !important;
    display: block;
    border-radius: 25px;
    object-fit: contain;
}

.pd-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(107,63,160,.22);
    z-index: 2;
}

.pd-thumbs{
    margin-top: 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pd-thumb{
    flex: 0 0 70px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(107,63,160,.15);
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.pd-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb.is-active{
    border-color: rgba(107,63,160,.55);
    box-shadow: 0 10px 20px rgba(107,63,160,.12);
}

.pd-info{
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}

.pd-title{
    margin: 0;
    font-family: var(--font-title);
    font-size: 18px;
    color: #2a1b3a;
}

.pd-meta{
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-chip{
    background: rgba(184,149,214,.20);
    border: 1px solid rgba(107,63,160,.12);
    color: #4b2f66;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.pd-pricebox{
    margin-top: 12px;
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.10);
    border-radius: 16px;
    padding: 12px;
}

.pd-prices{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.pd-price{
    font-weight: 900;
    font-size: 16px;
    color: var(--purple);
}

.pd-old{
    font-weight: 900;
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.pd-save{
    margin-top: 8px;
    font-weight: 800;
    font-size: 12px;
    color: #4b2f66;
}

.pd-qty{
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pd-qty-label{
    font-weight: 900;
    color: #2a1b3a;
    font-size: 13px;
}

.pd-stepper{
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(184,149,214,.14);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 14px;
    padding: 6px;
}

.pd-step{
    width: 38px;
    height: 38px;
    border: none;
    background: #fff;
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    color: var(--purple);
}

.pd-count{
    width: 58px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(107,63,160,.12);
    text-align: center;
    font-weight: 900;
    color: #2a1b3a;
    outline: none;
    background: #fff;
}

.pd-actions{
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 54px;
    gap: 10px;
}

.pd-add{
    border: none;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    border-radius: 14px;
    padding: 12px 12px;
    cursor: pointer;
}

.pd-add:active{ transform: translateY(1px); }

.pd-fav{
    border: 1px solid rgba(107,63,160,.18);
    background: #fff;
    color: var(--purple);
    font-weight: 900;
    border-radius: 14px;
    cursor: pointer;
    font-size: 18px;
}

.pd-points{
    margin: 12px 0 0;
    padding: 0 16px 0 0;
    color: #4b2f66;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.9;
}

/* Tabs */
.pd-tabs{
    margin-top: 12px;
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.pd-tab-head{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.pd-tab-btn{
    border: 1px solid rgba(107,63,160,.12);
    background: rgba(255,255,255,.85);
    color: #4b2f66;
    font-weight: 900;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
}

.pd-tab-btn.is-active{
    background: var(--purple);
    color: #fff;
    border-color: rgba(107,63,160,.25);
}

.pd-tab-body{
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}

.pd-tab-panel{ display: none; }
.pd-tab-panel.is-active{ display: block; }

.pd-text{
    margin: 0;
    color: #2a1b3a;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.9;
}

.pd-textlist{
    margin: 0;
    padding-right: 16px;
    color: #2a1b3a;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.9;
}

.pd-spec{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.pd-spec li{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(184,149,214,.14);
    border: 1px solid rgba(107,63,160,.10);
    border-radius: 14px;
    padding: 10px 12px;
}

.pd-spec span{
    font-weight: 900;
    color: #4b2f66;
    font-size: 12px;
}

.pd-spec b{
    font-weight: 900;
    color: #2a1b3a;
    font-size: 12px;
}

/* Related */
.pd-related{
    margin-top: 12px;
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.pd-related-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pd-related-title{
    margin: 0;
    font-family: var(--font-title);
    color: #4b2f66;
    font-size: 16px;
}

.pd-related-more{
    text-decoration: none;
    font-weight: 900;
    color: var(--purple);
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(107,63,160,.12);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.pd-related-strip{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.pd-mini{
    flex: 0 0 150px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    scroll-snap-align: start;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.pd-mini-img{
    width: 100%;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid rgba(0,0,0,.06);
}

.pd-mini-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-mini-name{
    margin-top: 8px;
    font-weight: 900;
    font-size: 13px;
    color: #2a1b3a;
    min-height: 34px;
    line-height: 1.4;
}

.pd-mini-price{
    margin-top: 6px;
    font-weight: 900;
    font-size: 13px;
    color: var(--purple);
}
/* ===== Products Listing Page (NEW) ===== */
.pl-page{
    width: 100%;
    padding: 14px 4% 0;
}

.pl-hero{
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.pl-title{
    margin: 0;
    font-family: var(--font-title);
    font-size: 18px;
    color: #2a1b3a;
}

.pl-sub{
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 12px;
    color: #4b2f66;
    opacity: .9;
}

.pl-controls{
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.pl-search{
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 12px;
}

.pl-search-ic{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b5aa6;
    font-weight: 900;
}

.pl-search-input{
    width: 100%;
    border: none;
    outline: none;
    padding-right: 26px;
    font-weight: 800;
    color: #2a1b3a;
    background: transparent;
}

.pl-sort{
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.9);
    border-radius: 16px;
    padding: 12px;
    font-weight: 900;
    color: #4b2f66;
    outline: none;
}

.pl-chips{
    margin-top: 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.pl-chip{
    border: 1px solid rgba(107,63,160,.12);
    background: rgba(255,255,255,.85);
    color: #4b2f66;
    font-weight: 900;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
}

.pl-chip.is-active{
    background: var(--purple);
    color: #fff;
    border-color: rgba(107,63,160,.25);
}

/* Grid */
.pl-grid{
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pl-card{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.pl-link{
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px;
}

.pl-img{
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid rgba(0,0,0,.06);
}

.pl-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pl-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(107,63,160,.22);
    z-index: 2;
}

.pl-name{
    margin: 10px 0 0;
    font-weight: 900;
    font-size: 13px;
    color: #2a1b3a;
    line-height: 1.4;
    min-height: 34px;
}

.pl-meta{
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pl-tag{
    background: rgba(184,149,214,.20);
    border: 1px solid rgba(107,63,160,.12);
    color: #4b2f66;
    font-weight: 900;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
}

.pl-pricebox{
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    background: rgba(184,149,214,.14);
    border: 1px solid rgba(107,63,160,.10);
    border-radius: 14px;
    padding: 10px 10px;
}

.pl-price{
    font-weight: 900;
    font-size: 12px;
    color: var(--purple);
}

.pl-old{
    font-weight: 900;
    font-size: 11px;
    color: #888;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.pl-actions{
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 10px;
    padding: 0 10px 10px;
}

.pl-add{
    border: none;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}

.pl-add:active{ transform: translateY(1px); }

.pl-fav{
    border: 1px solid rgba(107,63,160,.18);
    background: #fff;
    color: var(--purple);
    font-weight: 900;
    border-radius: 14px;
    cursor: pointer;
    font-size: 18px;
}

.pl-empty{
    margin: 14px 0 0;
    background: rgba(184,149,214,.16);
    border: 1px dashed rgba(107,63,160,.22);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    font-weight: 900;
    color: #4b2f66;
}

/* Responsive کوچک‌تر */
@media (max-width: 380px){
    .pl-grid{ grid-template-columns: 1fr; }
    .pl-img{ height: 170px; }
}
/* ===== Pagination (NEW) ===== */
.pl-pagination{
    margin: 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 10px;
}

.pl-pagebtn{
    border: none;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.pl-pagebtn:active{ transform: translateY(1px); }

.pl-pagenum{
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-num{
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(107,63,160,.14);
    background: rgba(255,255,255,.85);
    color: #4b2f66;
    font-weight: 900;
    cursor: pointer;
}

.pl-num.is-active{
    background: var(--purple);
    color: #fff;
    border-color: rgba(107,63,160,.25);
}
/* ===== Cart Page (NEW) ===== */
.cart-page{
    width: 100%;
    padding-top: 5%;
    padding-right: 8%;
}

.cart-hero{
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.cart-title{
    margin: 0;
    font-family: var(--font-title);
    font-size: 18px;
    color: #2a1b3a;
}

.cart-sub{
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 12px;
    color: #4b2f66;
    opacity: .9;
}

.cart-wrap{
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

/* List */
.cart-list{
    display: grid;
    gap: 12px;
}

.cart-item{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.cart-thumb{
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid rgba(0,0,0,.06);
}

.cart-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-badge{
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(107,63,160,.22);
}

.cart-info{
    min-width: 0;
}

.cart-name{
    margin: 0;
    font-weight: 900;
    font-size: 13px;
    color: #2a1b3a;
    line-height: 1.4;
}

.cart-spec{
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-chip{
    background: rgba(184,149,214,.20);
    border: 1px solid rgba(107,63,160,.12);
    color: #4b2f66;
    font-weight: 900;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
}

.cart-row{
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cart-prices{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    background: rgba(184,149,214,.14);
    border: 1px solid rgba(107,63,160,.10);
    border-radius: 14px;
    padding-left: 20%;
    width: 85%;
}

.cart-price{
    font-weight: 900;
    font-size: 12px;
    color: var(--purple);
}

.cart-old{
    font-weight: 900;
    font-size: 11px;
    color: #888;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.cart-qty{
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(184,149,214,.14);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 14px;
    padding: 8px;
    width: 85%;
    justify-content: space-between;
}

.cart-step{
    width: 38px;
    height: 38px;
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 12px;
    background: #fff;
    color: var(--purple);
    font-weight: 900;
    cursor: pointer;
}

.cart-count{
    width: 64px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(107,63,160,.12);
    text-align: center;
    font-weight: 900;
    color: #2a1b3a;
    outline: none;
    background: #fff;
}

.cart-bottom{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-remove{
    border: 1px solid rgba(107,63,160,.16);
    background: rgba(184,149,214,.12);
    color: #4b2f66;
    font-weight: 900;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
}

.cart-line-total{
    font-weight: 900;
    font-size: 12px;
    color: #2a1b3a;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(107,63,160,.10);
    border-radius: 14px;
    padding: 10px 12px;
}

/* Summary */
.cart-summary{
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.cart-s-title{
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: 16px;
    color: #4b2f66;
}

.cart-s-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px;
    font-weight: 900;
    color: #2a1b3a;
    font-size: 13px;
}

.cart-s-discount{
    color: #7b2fb8;
}

.cart-s-divider{
    height: 1px;
    background: rgba(107,63,160,.18);
    margin: 12px 0;
    border-radius: 999px;
}

.cart-s-total{
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(107,63,160,.14);
}

.cart-continue{
    margin-top: 12px;
    width: 100%;
    border: none;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
}

.cart-continue:active{ transform: translateY(1px); }

.cart-note{
    margin: 10px 2px 0;
    font-weight: 700;
    font-size: 12px;
    color: #4b2f66;
    opacity: .9;
    line-height: 1.7;
}
/* ===== Profile Page (NEW) ===== */
.profile-page{
    width: 100%;
    padding-top: 5%;
    padding-right: 8%;
}

.profile-hero{
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.profile-title{
    margin: 0;
    font-family: var(--font-title);
    font-size: 18px;
    color: #2a1b3a;
}

.profile-sub{
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 12px;
    color: #4b2f66;
    opacity: .9;
}

.profile-card{
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.profile-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(184,149,214,.12);
    border: 1px solid rgba(107,63,160,.10);
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px;
}

.profile-label{
    font-weight: 900;
    font-size: 12px;
    color: #4b2f66;
}

.profile-value{
    font-weight: 900;
    font-size: 12px;
    color: #2a1b3a;
}

.profile-row-address{
    align-items: flex-start;
}

.profile-address{
    margin: 0;
    font-weight: 800;
    font-size: 12px;
    color: #2a1b3a;
    line-height: 1.9;
    text-align: right;
    max-width: 62%;
}

.profile-actions{
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.profile-edit{
    border: none;
    background: var(--purple);
    color: #fff;
    font-weight: 900;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
}

.profile-edit:active{ transform: translateY(1px); }

.profile-logout{
    border: 1px solid rgba(107,63,160,.18);
    background: rgba(184,149,214,.10);
    color: #4b2f66;
    font-weight: 900;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
}

.profile-hint{
    margin-top: 10px;
    background: rgba(184,149,214,.16);
    border: 1px dashed rgba(107,63,160,.22);
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 12px;
    color: #4b2f66;
    line-height: 1.8;
}
/* ===== About Page (NEW) ===== */
.about-page{
    width: 100%;
    padding-top: 5%;
    padding-right: 8%;
}

.about-hero{
    background: rgba(184,149,214,.16);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.about-title{
    margin: 0;
    font-family: var(--font-title);
    font-size: 18px;
    color: #2a1b3a;
}

.about-sub{
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 12px;
    color: #4b2f66;
    opacity: .9;
    line-height: 1.8;
}

.about-stats{
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.about-stat{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.about-stat b{
    display: block;
    font-weight: 900;
    color: var(--purple);
    font-size: 14px;
}

.about-stat span{
    display: block;
    margin-top: 4px;
    font-weight: 800;
    font-size: 11px;
    color: #4b2f66;
    line-height: 1.5;
}

.about-card{
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.about-h{
    margin: 0;
    font-family: var(--font-title);
    font-size: 16px;
    color: #4b2f66;
}

.about-text{
    margin: 10px 0 0;
    font-weight: 700;
    font-size: 12px;
    color: #2a1b3a;
    line-height: 2;
}

.about-grid{
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.about-box{
    background: rgba(184,149,214,.14);
    border: 1px solid rgba(107,63,160,.12);
    border-radius: 18px;
    padding: 12px;
}

.about-box-title{
    margin: 0;
    font-weight: 900;
    font-size: 14px;
    color: #2a1b3a;
}

.about-list{
    margin: 10px 0 0;
    padding-right: 18px;
    font-weight: 800;
    font-size: 12px;
    color: #4b2f66;
    line-height: 2;
}

.about-contact{
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.about-contact-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(184,149,214,.12);
    border: 1px solid rgba(107,63,160,.10);
    border-radius: 16px;
    padding: 12px;
}

.about-contact-row span{
    font-weight: 900;
    font-size: 12px;
    color: #4b2f66;
}

.about-contact-row b{
    font-weight: 900;
    font-size: 12px;
    color: #2a1b3a;
    text-align: left;
}

/* Responsive کوچک */
@media (max-width: 380px){
    .about-stats{ grid-template-columns: 1fr; }
}
.product-card .product-link{
    display:block;
    color:inherit;
    text-decoration:none;
}
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.p-btn,
.row-more,
.pd-add,
.pd-fav,
.pd-tab-btn,
.pl-add,
.pl-fav,
.pl-pagebtn,
.cart-continue,
.cart-remove,
.profile-edit,
.profile-logout {
    font-family: var(--font-button);
    letter-spacing: 0.2px;
}
