/* =========================================================
   گالری هنری نیلوفر — استایل اصلی
   تم: صورتی / سفید — فونت: وزیرمتن — راست‌چین کامل
   ========================================================= */

/* ---------- متغیرهای رنگ ---------- */
:root {
    --pink-50:  #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --pink-800: #9d174d;
    --pink-900: #831843;

    --text-dark: #4a2b3a;
    --text-soft: #9f5f7d;
    --border:    #f9d5e5;

    --white: #ffffff;
    --text:      #4a2b3a;

    --radius:       18px;
    --radius-small: 12px;
    --shadow:       0 10px 30px rgba(236, 72, 153, .12);
    --shadow-hover: 0 18px 44px rgba(236, 72, 153, .22);
}

/* ---------- پایه ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Vazirmatn, Tahoma, sans-serif;
    direction: rtl;
    background: var(--pink-50);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.9;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

main { flex: 1; }

.container {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 28px;
}

.page-section { padding: 44px 0 0; }

/* ---------- اسکرول‌بار ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--pink-100); }
::-webkit-scrollbar-thumb { background: var(--pink-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink-400); }

/* ---------- نوار بالا ---------- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 19px;
    color: var(--pink-700);
}

.brand-dot {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-300));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

/* لوگوی رسمی سایت در نوار بالا و فوتر */
.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    object-fit: cover;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-soft);
    transition: all .25s ease;
}

.nav-link:hover { background: var(--pink-100); color: var(--pink-700); }
.nav-link.active { background: var(--pink-500); color: var(--white); }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 999px;
    transition: all .25s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline {
    background: var(--white);
    color: var(--pink-700);
    border: 2px solid var(--pink-300);
}

.btn-outline:hover { background: var(--pink-100); border-color: var(--pink-500); }

.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ---------- کارت ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all .3s ease;
}

.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* ---------- برچسب‌ها ---------- */
.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-pink  { background: var(--pink-100); color: var(--pink-700); }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gold  { background: #fef3c7; color: #b45309; }

/* ---------- عنوان بخش‌ها ---------- */
.section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--pink-800);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
}

/* ---------- هیرو ---------- */
.hero {
    background: linear-gradient(135deg, var(--pink-50) 0%, var(--pink-100) 55%, var(--pink-200) 100%);
    padding: 64px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--pink-800);
    margin-bottom: 14px;
}

.hero p {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- آمار ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-num { font-size: 38px; font-weight: 900; color: var(--pink-500); }
.stat-label { font-size: 14px; color: var(--text-soft); margin-top: 6px; font-weight: 600; }

/* ---------- فهرست گام‌ها ---------- */
.steps { display: flex; flex-direction: column; gap: 10px; }

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.step-name { font-weight: 700; font-size: 15px; }
.step-desc { font-size: 13px; color: var(--text-soft); margin-top: 4px; }

/* ---------- کارت اطلاعات ---------- */
.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    line-height: 2.3;
    font-size: 15px;
}

.info-card code {
    background: var(--pink-50);
    color: var(--pink-700);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 13px;
    direction: ltr;
    display: inline-block;
}

/* ---------- فرم‌ها ---------- */
.form-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--pink-800);
}

.form-input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px var(--pink-100);
}

textarea.form-input { resize: vertical; min-height: 110px; }

.text-danger { color: #dc2626; font-size: 13px; font-weight: 700; }

/* ---------- جدول ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.table th {
    background: var(--pink-100);
    color: var(--pink-800);
    font-size: 14px;
    font-weight: 800;
    padding: 14px 16px;
    text-align: right;
}

.table td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.table tr:hover td { background: var(--pink-50); }

/* نام کاربر در فهرست کاربران — لینک به جزئیات (۲.۵.۹) */
.user-link {
    color: var(--pink-700, #c2185b);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color .18s ease, border-color .18s ease;
}

.user-link:hover {
    color: var(--pink-900, #880e4f);
    border-bottom-color: currentColor;
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@keyframes pulse-pink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, .35); }
    50%      { box-shadow: 0 0 0 14px rgba(236, 72, 153, 0); }
}

.anim-fade-in-up { animation: fadeInUp .7s ease both; }
.anim-float { animation: float 5s ease-in-out infinite; }
.anim-pulse { animation: pulse-pink 2.4s infinite; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ---------- فوتر (همیشه چسبیده به پایین) ---------- */
.footer {
    margin-top: auto;
    background: var(--pink-800);
    color: var(--pink-100);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    padding-bottom: 36px;
}

.footer h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.footer p, .footer a {
    font-size: 14px;
    color: var(--pink-200);
    line-height: 2.2;
}

.footer a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: var(--pink-300);
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .navbar-inner { flex-direction: column; }
    .nav-links { justify-content: center; }
    .step { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   نسخهٔ ۲.۰.۰ — فروشگاه، سبد خرید، تسویه، حساب، پنل مدیریت
   ========================================================= */

/* ---------- بج سبد خرید در نوار بالا ---------- */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--pink-600);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    vertical-align: middle;
    margin-right: 6px;
}

/* ---------- بج‌های اضافه ---------- */
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-gray   { background: #f1f5f9; color: #475569; }

/* ---------- اسلایدر ---------- */
.slider {
    position: relative;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    height: 460px;
    background: var(--pink-200);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(131, 24, 67, .78), rgba(131, 24, 67, .25) 55%, transparent);
}

.slide-caption {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    max-width: 480px;
    color: var(--white);
    text-align: right;
}

.slide-caption h1 {
    font-size: 38px;
    font-weight: 900;
    margin: 14px 0 8px;
    line-height: 1.5;
    animation: fadeInUp .8s ease both;
}

.slide-caption p {
    font-size: 17px;
    margin-bottom: 22px;
    opacity: .95;
    animation: fadeInUp .8s .15s ease both;
}

.slide-caption .btn {
    animation: fadeInUp .8s .3s ease both;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: var(--pink-800);
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
    transition: all .25s ease;
    z-index: 5;
}

.slider-arrow:hover { background: var(--pink-500); color: var(--white); }

.slider-next { left: 18px; }
.slider-prev { right: 18px; }

.slider-dots {
    position: absolute;
    bottom: 18px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: all .3s ease;
}

.dot.active {
    width: 30px;
    background: var(--white);
}

/* ---------- پیام‌های فرم ---------- */
.form-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-small);
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 12px;
}

.form-error:empty { display: none; }

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

.form-error li { margin: 2px 0; }

.field-validation-error { color: #b91c1c; font-size: 12.5px; }

.input-validation-error { border-color: #fca5a5; }

.alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-small);
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 12px;
}

/* ---------- دسته‌بندی‌ها ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.category-card {
    padding: 26px;
    text-align: center;
}

.category-card h3 { font-size: 18px; font-weight: 900; color: var(--pink-800); margin: 8px 0; }
.category-card p { font-size: 14px; color: var(--text-soft); }

.category-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-300));
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

/* ---------- مجموعه‌های موضوعی ویترین ---------- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.collection-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
    text-decoration: none;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
    color: #fff;
}

.collection-caption h3 {
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 4px;
    color: #fff;
}

.collection-caption p {
    font-size: 13px;
    margin: 0 0 6px;
    color: rgba(255,255,255,.85);
}

.collection-caption .tag {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ---------- شبکهٔ محصولات ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--pink-50);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.product-type {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.product-discount {
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-sold-out {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
}

.product-title:hover { color: var(--pink-600); }

.product-meta { font-size: 13px; color: var(--text-soft); }

.product-rating { font-size: 13px; color: var(--text-soft); }

.star { color: #f59e0b; }

.rating-dot { margin: 0 6px; }

.stock-ok { color: #15803d; font-weight: 700; }
.stock-out { color: #dc2626; font-weight: 700; }
.stock-low { color: #d97706; font-weight: 800; }

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
}

.product-price del {
    display: block;
    font-size: 12px;
    color: #b91c1c;
}

.product-price strong {
    font-size: 15px;
    color: var(--pink-700);
}

/* ---------- فروشگاه ---------- */
.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.shop-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--pink-800);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--pink-50);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    transition: all .25s ease;
}

.pill:hover { border-color: var(--pink-400); color: var(--pink-700); }

.pill.active {
    background: var(--pink-500);
    border-color: var(--pink-500);
    color: var(--white);
}

.filter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.filter-form .form-input { width: auto; min-width: 220px; }

.empty-state {
    padding: 44px 24px;
    text-align: center;
    color: var(--text-soft);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* ---------- صفحه‌بندی ---------- */
.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.pager-link {
    min-width: 42px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-soft);
    transition: all .25s ease;
}

.pager-link:hover { border-color: var(--pink-400); color: var(--pink-700); }

.pager-link.active {
    background: var(--pink-500);
    border-color: var(--pink-500);
    color: var(--white);
}

/* ---------- جزئیات محصول ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--pink-600); }

.details-layout {
    display: grid;
    grid-template-columns: minmax(420px, 560px) 1fr;
    gap: 32px;
    align-items: start;
}

.details-gallery { padding: 18px; }

.details-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color .2s ease;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--pink-500); }

.details-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.details-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.6;
}

.details-rating { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }

.details-price {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 18px;
}

.details-price del { color: #b91c1c; font-size: 15px; }
.details-price strong { font-size: 24px; color: var(--pink-700); }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}

.spec-table td {
    padding: 8px 4px;
    border-bottom: 1px dashed var(--border);
}

.spec-table td:first-child {
    color: var(--text-soft);
    width: 140px;
    font-weight: 700;
}

.details-desc {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 2.1;
    margin-bottom: 22px;
    white-space: pre-line;
}

.details-add-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.details-add-form .form-label { margin: 0; }

.qty-input { width: 90px; text-align: center; }

/* ---------- سبد خرید ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 26px;
    align-items: start;
    margin-top: 18px;
}

.cart-items-card { padding: 6px; }

.cart-table td { vertical-align: middle; }

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-product-title { font-weight: 800; font-size: 14px; color: var(--text-dark); }

.cart-line-total { font-weight: 800; color: var(--pink-700); }

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-card {
    padding: 22px;
    position: sticky;
    top: 90px;
}

.summary-card h3 {
    font-size: 17px;
    font-weight: 900;
    color: var(--pink-800);
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-soft);
    padding: 8px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dashed var(--border);
    margin-top: 10px;
    padding: 14px 0 4px;
    font-weight: 900;
}

.summary-total strong { color: var(--pink-700); font-size: 17px; }

.free-ship-note {
    background: var(--pink-50);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--pink-800);
    margin-top: 12px;
    font-weight: 700;
}

.summary-cta { width: 100%; margin-top: 18px; }

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.summary-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.summary-item-title { font-size: 13px; font-weight: 800; }

/* ---------- فرم‌ها (کامل‌تر) ---------- */
.form-field { margin-bottom: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-checks {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 6px 0 16px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--pink-50);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
}

.check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pink-500);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.validation-summary ul { margin: 4px 20px 0 0; }

/* ---------- تسویه‌حساب ---------- */
.checkout-form-card { padding: 26px; }

.checkout-heading {
    font-size: 17px;
    font-weight: 900;
    color: var(--pink-800);
    margin-bottom: 16px;
}

.checkout-submit { width: 100%; margin-top: 8px; }

/* ---------- ورود و ثبت‌نام ---------- */
.auth-card {
    max-width: 460px;
    margin: 30px auto 0;
    padding: 34px 30px;
}

.auth-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--pink-800);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-soft);
    margin: 6px 0 20px;
}

.auth-submit { width: 100%; }

.auth-alt {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-soft);
}

.auth-alt a { color: var(--pink-600); font-weight: 800; }

/* ---------- حساب کاربری ---------- */
.account-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 26px;
    align-items: start;
    margin-top: 18px;
}

.profile-card { text-align: center; }

.profile-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-300));
    color: var(--white);
    font-size: 32px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.profile-admin-btn, .profile-logout-btn { width: 100%; margin-top: 10px; }

.orders-card { padding: 20px; }

/* ---------- سفارش ---------- */
.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.order-status-badge { font-size: 14px; padding: 6px 18px; }

.order-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 26px;
    align-items: start;
    margin-top: 18px;
}

.order-totals { padding: 6px 18px 18px; }

/* ---------- هشدارها ---------- */
.alert {
    border-radius: var(--radius-small);
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info    { background: var(--pink-50); border-color: var(--border); color: var(--pink-800); }

/* ---------- پنل مدیریت ---------- */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* دکمهٔ منو (فرزند اول) سمت راست می‌ماند و عنوان درست کنارش می‌ایستد؛
   فضای خالی به سمت چپ می‌افتد — آینهٔ چیدمان قدیمی */
.admin-header .shop-title { margin-inline-end: auto; }

/* ---------- منوی کناری پنل‌ها (پنل مدیریت + پنل مشتری) ----------
   کلاس‌های customer-* فقط نام‌های مستعار همان استایل admin-* هستند؛
   ظاهر و رفتار هر دو پنل کاملاً یکسان می‌ماند. */

/* دکمهٔ باز کردن منو */
.admin-menu-btn, .customer-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--white);
    border: 2px solid var(--pink-300);
    color: var(--pink-700);
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}

.admin-menu-btn:hover, .customer-menu-btn:hover {
    background: var(--pink-100);
    border-color: var(--pink-500);
    transform: translateY(-1px);
}

.admin-menu-btn svg, .customer-menu-btn svg { width: 20px; height: 20px; }

/* پوشش تیرهٔ پشت کشو */
.admin-overlay, .customer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(74, 43, 58, .45);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity .25s ease;
}

.admin-overlay.show, .customer-overlay.show { opacity: 1; }

/* کشوی کناری (در سایت راست‌چین از سمت راست باز می‌شود) */
.admin-sidebar, .customer-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 292px;
    max-width: 86vw;
    background: var(--white);
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 44px rgba(236, 72, 153, .16);
    z-index: 999;
    transform: translateX(105%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}

.admin-sidebar.open, .customer-sidebar.open { transform: translateX(0); }

.admin-sidebar-head, .customer-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 900;
    color: var(--pink-800);
    font-size: 16px;
    flex-shrink: 0;
}

.admin-sidebar-close, .customer-sidebar-close {
    border: none;
    background: var(--pink-50);
    color: var(--pink-700);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.admin-sidebar-close:hover, .customer-sidebar-close:hover { background: var(--pink-100); }

.admin-sidebar-nav, .customer-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 16px;
}

.admin-sidebar-group, .customer-sidebar-group {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-soft);
    padding: 14px 12px 6px;
    letter-spacing: .3px;
}

.admin-sidebar-link, .customer-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 2px;
    transition: all .2s ease;
}

.admin-sidebar-link:hover, .customer-sidebar-link:hover {
    background: var(--pink-50);
    color: var(--pink-700);
}

.admin-sidebar-link.is-active, .customer-sidebar-link.is-active {
    background: var(--pink-500);
    color: var(--white);
    box-shadow: var(--shadow);
}

.admin-sidebar-cta, .customer-sidebar-cta {
    margin: 12px 16px 16px;
    flex-shrink: 0;
}

body.admin-menu-open, body.customer-menu-open { overflow: hidden; }

/* تیتر بزرگ‌تر پنل مدیریت در کنار دکمهٔ منو */
.admin-header .shop-title { font-size: 30px; }

.admin-form-card { padding: 28px; max-width: 1040px; }

.admin-products-table img { width: 56px; height: 56px; }

.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.type-fields {
    background: var(--pink-50);
    border: 1px dashed var(--pink-200);
    border-radius: var(--radius-small);
    padding: 18px;
    margin-bottom: 16px;
}

.type-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--pink-800);
    margin-bottom: 14px;
}

.current-image {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.current-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* کلیدهای سریع ویژه / فعال */
.toggle {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    transition: all .25s ease;
}

.toggle-on {
    background: #dcfce7;
    color: #15803d;
}

.toggle-on:hover { background: #bbf7d0; }

.toggle-off {
    background: #f1f5f9;
    color: #64748b;
}

.toggle-off:hover { background: #e2e8f0; }

/* ---------- حذف محصول ---------- */
.delete-card {
    max-width: 620px;
    padding: 26px;
    margin-top: 18px;
}

.delete-product {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--pink-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 16px;
    margin: 16px 0 20px;
}

.delete-product img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
}

.status-card { border-right: 4px solid var(--pink-500); }

/* ---------- ریسپانسیو صفحات فروشگاه ---------- */
@media (max-width: 900px) {
    .details-layout,
    .cart-layout,
    .order-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .summary-card { position: static; }

    .slider { height: 380px; }

    .slide-caption h1 { font-size: 26px; }

    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

    .slider { height: 320px; }

    .slide-caption { right: 5%; left: 5%; max-width: none; }

    .slide-caption h1 { font-size: 22px; }

    .cart-product-title { font-size: 13px; }

    .filter-form .form-input { min-width: 0; width: 100%; }

    .filter-form { flex-direction: column; }
}

/* ================= ورود با کد یکبارمصرف (OTP) ================= */

.otp-debug {
    background: #fff8e6;
    border: 1px solid #f2ddaa;
    color: #8a6d1a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.9;
}

.otp-code-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 10px;
    max-width: 240px;
    margin-inline: auto;
}

/* ============================================================
   v2.4.0 — بازطراحی صفحات ورود / ثبت‌نام / فراموشی رمز
   ============================================================ */

.auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.auth-brand img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pink-300);
    box-shadow: 0 6px 18px rgba(219, 39, 119, .18);
    margin-bottom: 12px;
}

.auth-brand .auth-title { margin-bottom: 6px; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: #a86a8f;
    font-size: .85rem;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: #fff7fb;
    color: var(--text);
    text-decoration: none;
    transition: all .2s ease;
}

.auth-option:hover {
    border-color: var(--pink-500);
    border-style: solid;
    background: var(--pink-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(236, 72, 153, .12);
}

.auth-option strong { color: var(--pink-600); }
.auth-option .product-meta { margin-top: 4px; }

@media (max-width: 540px) {
    .auth-option { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   نسخهٔ ۲.۴ — نوار بالای نو (منوی صورتی + زیرمنو)، سبد و قلب،
   صحنهٔ شیشه‌ای صفحات ورود، دکمهٔ علاقه‌مندی روی محصولات
   ============================================================ */

/* ---------- نوار بالا (بازنویسی نسخهٔ جدید) ---------- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
    transition: top .28s ease;
}

/* هنگام اسکرول فقط ردیف منو به بالای صفحه می‌چسبد (مثل artymag — بدون گپ);
   مقدار --brand-h با جاوااسکریپت به اندازهٔ واقعی ردیف برند تنظیم می‌شود */
.navbar.is-scrolled {
    top: calc(-1 * var(--brand-h, 72px));
}

.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-utils {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.util-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--pink-50);
    border: 1px solid var(--border);
    color: var(--pink-700);
    font-weight: 800;
    font-size: 14px;
    transition: all .25s ease;
}

.util-btn:hover {
    background: var(--pink-100);
    border-color: var(--pink-300);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, .16);
}

.util-btn svg { width: 21px; height: 21px; }

.util-admin { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.util-admin:hover { background: #ffedd5; border-color: #fdba74; }

.util-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    padding: 8px 10px;
    border-radius: 10px;
    transition: all .2s ease;
}

.util-link:hover { color: var(--pink-700); background: var(--pink-50); }

.util-login { padding: 10px 22px; }

/* بج شمارندهٔ سبد خرید و علاقه‌مندی‌ها (نسخهٔ جدید — روی آیکون) */
.cart-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    left: auto;
    right: auto;
    margin: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pink-600);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(219, 39, 119, .35);
}

.cart-badge.is-empty { background: var(--pink-300); box-shadow: none; }

.util-icon .cart-badge { animation: badge-pop .3s ease; }

@keyframes badge-pop {
    from { transform: scale(.4); }
    to   { transform: scale(1); }
}

/* ---------- منوی صورتی ---------- */
.navbar-menu {
    background: linear-gradient(90deg, var(--pink-600), var(--pink-500));
    box-shadow: 0 6px 18px rgba(219, 39, 119, .25);
}

.navbar-menu .container { position: relative; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 0;
    cursor: pointer;
}

.menu-toggle svg { width: 22px; height: 22px; }

.menu-list {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* همهٔ آیتم‌ها همیشه در یک خط افقی */
}

.menu-item { position: relative; }

.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 12px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    border-radius: 0;
    transition: background .25s ease;
    white-space: nowrap;
}

/* لپ‌تاپ‌های باریک‌تر: منو همچنان در یک خط، فقط کمی فشرده‌تر */
@media (min-width: 961px) and (max-width: 1120px) {
    .menu-link {
        padding: 13px 7px;
        font-size: 13px;
        gap: 4px;
    }

    .menu-link .caret { font-size: 9px; }
}

.menu-item:hover > .menu-link,
.menu-item.open > .menu-link {
    background: rgba(255, 255, 255, .16);
}

.caret {
    font-size: 11px;
    opacity: .85;
    transition: transform .25s ease;
}

.menu-item.open .caret,
.menu-item:hover .caret { transform: rotate(180deg); }

/* ---------- زیرمنو (دراپ‌داون شیک) ---------- */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    min-width: 210px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(131, 24, 67, .18);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 600;
}

.dropdown-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    inset-inline-start: 26px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-inline-start: 1px solid var(--border);
    transform: rotate(45deg);
}

/* بازشدن با نگه‌داشتن ماوس (دسکتاپ) یا انتخاب (لمس) */
.menu-item:hover > .dropdown-panel,
.menu-item.open > .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    transition: all .18s ease;
}

.dropdown-panel a:hover {
    background: var(--pink-50);
    color: var(--pink-600);
    padding-inline-start: 22px;
}

/* ---------- دکمهٔ قلب (علاقه‌مندی) روی کارت محصول ---------- */
.product-card { position: relative; }

.fav-form { position: static; }

.fav-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    color: var(--pink-300);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .22s ease;
    box-shadow: 0 4px 12px rgba(131, 24, 67, .12);
}

.fav-btn:hover {
    transform: scale(1.12);
    color: #e11d48;
    border-color: #fda4af;
}

.fav-btn.active {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fda4af;
}

.fav-btn.active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: fav-pulse .45s ease;
}

@keyframes fav-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(225, 29, 72, .35); }
    100% { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); }
}

/* ---------- صحنهٔ شیشه‌ای صفحات حساب ---------- */
.auth-scene {
    position: relative;
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    overflow: hidden;
    background:
        radial-gradient(1100px 700px at 85% 8%, rgba(244, 114, 182, .55), transparent 55%),
        radial-gradient(900px 640px at 10% 90%, rgba(168, 85, 247, .45), transparent 55%),
        radial-gradient(760px 520px at 50% 118%, rgba(251, 113, 133, .5), transparent 60%),
        linear-gradient(135deg, #9d174d 0%, #be185d 32%, #db2777 62%, #ec4899 100%);
    background-size: 200% 200%;
    animation: scene-shift 16s ease-in-out infinite;
}

@keyframes scene-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* لکه‌های بزرگ رنگی پشت کارت — مثل شکل‌های تصویر مرجع */
.auth-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    opacity: .8;
    pointer-events: none;
}

.auth-orbs span:nth-child(1) {
    width: 470px; height: 470px;
    background: #fb7185;
    top: -130px; right: -90px;
    animation: orb-float 11s ease-in-out infinite;
}

.auth-orbs span:nth-child(2) {
    width: 380px; height: 380px;
    background: #d946ef;
    bottom: -110px; left: 3%;
    animation: orb-float 14s ease-in-out infinite reverse;
}

.auth-orbs span:nth-child(3) {
    width: 300px; height: 300px;
    background: #f43f5e;
    top: 32%; left: -80px;
    animation: orb-float 12s ease-in-out infinite;
    animation-delay: 2s;
}

.auth-orbs span:nth-child(4) {
    width: 250px; height: 250px;
    background: #f9a8d4;
    top: 12%; right: 10%;
    animation: orb-float 10s ease-in-out infinite reverse;
    animation-delay: 1s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(26px, -30px) scale(1.08); }
    66%      { transform: translate(-20px, 22px) scale(.94); }
}

/* لوگوی سایت پشت صفحهٔ لاگین — کاملاً پیدا؛
   بخش پشت کارت از پشت بلورِ شیشه دیده می‌شود (مثل تصویر مرجع) */
.auth-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.auth-watermark img {
    width: min(96vw, 860px);
    opacity: 1;
    filter: drop-shadow(0 26px 60px rgba(80, 7, 44, .38));
    animation: watermark-breathe 9s ease-in-out infinite;
}

@keyframes watermark-breathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.05) rotate(2deg); }
}

/* کارت شیشه‌ای واقعی — بسیار شفاف تا لوگو از پشتش پیدا باشد */
.auth-glass {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 36px 32px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(3px) saturate(1.3);
    -webkit-backdrop-filter: blur(3px) saturate(1.3);
    border: 1.5px solid rgba(255, 255, 255, .55);
    box-shadow:
        0 24px 60px rgba(80, 7, 44, .38),
        inset 0 1px 0 rgba(255, 255, 255, .65);
}

/* متن روی شیشهٔ تیره → سفید، مثل تصویر مرجع */
.auth-glass .auth-title {
    color: #fff;
    text-shadow: 0 2px 14px rgba(80, 7, 44, .5);
}

.auth-glass .auth-subtitle { color: rgba(255, 255, 255, .93); }

.auth-glass .auth-subtitle a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-glass .form-label { color: #fff; }

.auth-glass .field-hint { color: rgba(255, 255, 255, .82); }

.auth-glass .optional-tag {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.auth-glass .text-danger,
.auth-glass .field-validation-error {
    color: #fecaca;
    text-shadow: 0 1px 3px rgba(80, 7, 44, .55);
}

.auth-glass .form-error { box-shadow: 0 8px 24px rgba(80, 7, 44, .25); }

.auth-glass .auth-alt { color: rgba(255, 255, 255, .92); }

.auth-glass .auth-alt a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-glass .auth-divider { color: rgba(255, 255, 255, .9); }

.auth-glass .auth-divider::before,
.auth-glass .auth-divider::after { background: rgba(255, 255, 255, .38); }

.auth-glass .auth-option {
    background: rgba(255, 255, 255, .5);
    border: 1px dashed rgba(255, 255, 255, .78);
}

.auth-glass .auth-option:hover {
    background: rgba(255, 255, 255, .74);
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(80, 7, 44, .28);
}

.auth-glass .auth-option strong { color: var(--pink-700); }

.auth-glass .btn-primary {
    background: var(--white);
    color: var(--pink-700);
    box-shadow: 0 12px 30px rgba(80, 7, 44, .35);
}

.auth-glass .btn-primary:hover { background: var(--pink-50); }

.auth-glass .form-input {
    background: rgba(255, 255, 255, .85);
    border-color: rgba(255, 255, 255, .8);
}

.auth-glass .form-input::placeholder { color: var(--text-soft); }

.auth-glass .form-input:focus {
    background: var(--white);
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .3);
}

.optional-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    background: var(--pink-50);
    border: 1px dashed var(--pink-200);
    border-radius: 999px;
    padding: 2px 10px;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-soft);
}

/* ---------- فیلترهای فعال در فروشگاه ---------- */
.filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pink-100);
    color: var(--pink-700);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--pink-200);
}

.filter-chip a { color: var(--pink-600); font-weight: 900; }
.filter-chip a:hover { color: var(--pink-800); }

/* ---------- صفحهٔ علاقه‌مندی‌ها ---------- */
.fav-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
}

.fav-empty .big-heart { font-size: 52px; color: var(--pink-300); margin-bottom: 12px; }

.fav-remove {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.fav-remove:hover { background: #ffe4e6; }

/* ---------- صفحهٔ نمونه‌کار (عکس و فیلم) ---------- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.media-tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--pink-50);
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.media-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.media-tile img { width: 100%; height: 100%; object-fit: cover; }

.media-tag {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
    background: rgba(255, 255, 255, .9);
    color: var(--pink-700);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

/* ---------- صفحهٔ نظرات مشتریان ---------- */
.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-200));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.review-name { font-weight: 900; color: var(--pink-800); }
.review-stars { color: #f59e0b; font-size: 13px; letter-spacing: 2px; }

.review-text { font-size: 14.5px; color: var(--text-dark); line-height: 2; }

.review-product {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--text-soft);
    background: var(--pink-50);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
}

/* ---------- ریسپانسیو نسخهٔ ۲.۴ ---------- */
@media (max-width: 960px) {
    .menu-toggle { display: inline-flex; }

    .menu-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding-bottom: 10px;
    }

    .menu-list.open { display: flex; }

    .menu-link {
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
        padding: 12px 14px;
    }

    .menu-item:hover > .menu-link { background: rgba(255, 255, 255, .12); }

    /* روی موبایل زیرمنو فقط با کلیک باز می‌شود */
    .menu-item:hover > .dropdown-panel {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .menu-item.open > .dropdown-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-panel {
        position: static;
        transform: none;
        opacity: 1;
        visibility: hidden;
        box-shadow: none;
        margin: 0 4px 6px;
        background: rgba(255, 255, 255, .96);
    }

    .dropdown-panel::before { display: none; }

    .util-label { display: none; }

    .util-btn { padding: 10px; }
}

@media (max-width: 540px) {
    .navbar-top { flex-wrap: wrap; }

    .brand span { font-size: 15px; }

    .auth-glass { padding: 28px 20px; }

    .auth-watermark img { width: 240vw; }
}


/* ================================================================
   نسخهٔ ۳.۰.۰ — ابزارهای جدید پنل مدیریت (۱۲۰ نیازمندی)
   ================================================================ */

/* بج بنفش برای وضعیت‌های میانی (در حال پیگیری/آماده‌سازی/تأییدشده) */
.badge-violet { background: #f3e8ff; color: #7e22ce; }

/* بج‌های کوچک */
.badge { white-space: nowrap; }

/* جدول مشخصات دوستونه برای جزئیات رکورد */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 24px;
}
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-item .detail-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}
.detail-item .detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-word;
}

/* خط زمانی رویدادهای سفارش */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    position: relative;
    padding: 0 24px 18px 0;
    border-left: none;
    border-right: 2px solid var(--pink-200);
}
.timeline li::before {
    content: '';
    position: absolute;
    right: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pink-400);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--pink-200);
}
.timeline .timeline-time { font-size: 12px; color: var(--text-soft); font-weight: 700; }
.timeline .timeline-text { font-size: 14px; color: var(--text-dark); }
.timeline .timeline-actor {
    display: inline-block;
    font-size: 11px;
    background: var(--pink-100);
    color: var(--pink-700);
    border-radius: 999px;
    padding: 1px 10px;
    margin-right: 6px;
    font-weight: 800;
}

/* کارت بخش‌بندی‌شدهٔ فرم */
.form-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.form-section h3 {
    font-size: 15px;
    font-weight: 900;
    color: var(--pink-700);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--border);
}

/* انتخاب‌گر تصاویر موجود (گالری سایت) */
.image-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.image-option {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius-small);
    overflow: hidden;
    cursor: pointer;
    background: var(--pink-50);
    transition: border-color .15s, transform .15s;
}
.image-option:hover { border-color: var(--pink-400); transform: translateY(-2px); }
.image-option.selected { border-color: var(--pink-600); box-shadow: 0 0 0 3px var(--pink-200); }
.image-option img { width: 100%; height: 82px; object-fit: cover; display: block; }
.image-option .image-name {
    display: block;
    font-size: 11px;
    padding: 4px 6px;
    text-align: center;
    color: var(--text-soft);
    font-weight: 700;
    direction: ltr;
}

/* ردیف تصویر کوچک + دکمه‌های عملیات */
.thumb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    margin-bottom: 10px;
    background: var(--white);
}
.thumb-row img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.thumb-row .thumb-info { flex: 1; min-width: 0; }
.thumb-row .thumb-info div { font-size: 12.5px; color: var(--text-soft); font-weight: 700; }

/* آیتم خلاصهٔ مبلغ (سبد خرید/سفارش) */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}
.summary-row.total {
    border-top: 2px dashed var(--border);
    margin-top: 6px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 900;
    color: var(--pink-700);
}
.summary-row .summary-label { color: var(--text-soft); }
.summary-row .summary-discount { color: #15803d; }

/* نوار وضعیت مراحل مرجوعی */
.progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}
.progress-step {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--pink-100);
    color: var(--text-soft);
    border: 1px solid var(--border);
}
.progress-step.done { background: var(--pink-500); color: var(--white); border-color: var(--pink-500); }
.progress-step.current { background: #fef3c7; color: #b45309; border-color: #fcd34d; }

/* نوار ابزار جدول‌های مدیریتی */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.admin-toolbar .form-input, .admin-toolbar select {
    width: auto;
    min-width: 160px;
    margin: 0;
}
.admin-toolbar .spacer { flex: 1; }

/* شمارهٔ سفارش / SKU — چپ‌به‌راست */
.mono-ltr {
    direction: ltr;
    unicode-bidi: embed;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: .5px;
}

/* پیش‌نمایش متن JSON (حسابرسی) */
pre.json-box {
    direction: ltr;
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 12px;
    font-size: 12px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 8px 0 0;
}

/* هشدار کهربایی برای وضعیت‌های نیازمند توجه */
.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: var(--radius-small);
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    margin: 10px 0;
}

/* برچسب کوچک داخل جدول */
.tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 10px;
    margin: 1px 2px;
    background: var(--pink-50);
    color: var(--text-soft);
    border: 1px solid var(--border);
}

/* کارت‌های شمارش بالای داشبوردِ ماژول‌ها */
.stat-mini {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    padding: 12px 18px;
    text-align: center;
    min-width: 120px;
}
.stat-mini .stat-mini-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--pink-700);
    display: block;
}
.stat-mini .stat-mini-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}

@media (max-width: 640px) {
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .admin-toolbar .form-input, .admin-toolbar select { width: 100%; }
}

/* ================================================================
   نسخهٔ ۳.۲.۳ — نظرهای مشتریان + فرم‌های ساده‌تر موجودی + ریسپانسیو پنل
   ================================================================ */

/* ---------- دکمه‌های انتخابی ساده (افزایش/کاهش/تعیین دقیق) ---------- */
.choice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.choice-pills .pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
}
.choice-pills .pill:hover { border-color: var(--pink-400); background: var(--pink-50); }
.choice-pills .pill:has(input:checked) {
    border-color: var(--pink-500);
    background: var(--pink-100);
    color: var(--pink-800);
    font-weight: 800;
}
.choice-pills .pill input { accent-color: var(--pink-500); margin: 0; cursor: pointer; }

/* ---------- نظرهای مشتریان ---------- */
.review-count-link {
    color: var(--pink-600);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.review-count-link:hover { text-decoration: underline; }

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.reviews-avg {
    font-size: 30px;
    font-weight: 900;
    color: var(--pink-700);
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.reviews-avg .star { font-size: 24px; }
.reviews-avg small { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.reviews-meta { font-size: 13.5px; font-weight: 700; color: var(--text-soft); }

.review-form-card {
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1.5px dashed var(--pink-300);
}
.review-form-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 900;
    color: var(--pink-700);
}
.review-form-card textarea { margin-bottom: 10px; }

.star-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.star-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    background: var(--white);
    transition: all .15s ease;
    user-select: none;
}
.star-option:hover { border-color: var(--pink-400); background: var(--pink-50); }
.star-option:has(input:checked) {
    border-color: var(--pink-500);
    background: var(--pink-100);
    box-shadow: 0 0 0 2px var(--pink-200);
}
.star-option input { accent-color: var(--pink-500); margin: 0; cursor: pointer; }
.star-option .star-icon { color: #f59e0b; font-size: 17px; }
.star-option small { font-weight: 800; color: var(--text-soft); }

.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { padding: 14px 18px; margin: 0; }
.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pink-100);
    color: var(--pink-700);
    font-weight: 900;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-who { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.review-who b { font-size: 14px; color: var(--text-dark); }
.review-stars { font-size: 13px; letter-spacing: 2px; }
.star-on { color: #f59e0b; }
.star-off { color: #d8d8d8; }
.review-date { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.review-text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    padding-right: 50px;
}

/* ---------- ریسپانسیو پنل مدیریت و موبایل (نسخهٔ ۳.۲.۳) ---------- */
@media (max-width: 640px) {
    .container { padding: 0 14px; }

    .page-section { padding: 20px 0 0; }

    .shop-title,
    .admin-header .shop-title { font-size: 21px; }

    .section-title { font-size: 19px; }

    .stat-mini { min-width: 0; flex: 1 1 40%; padding: 10px 12px; }
    .stat-mini .stat-mini-num { font-size: 17px; }

    .form-section { padding: 14px 14px 16px; }
    .admin-form-card { padding: 16px 14px; }

    /* جدول‌ها به‌جای له‌شدن، افقی اسکرول می‌شوند (در کارت‌های دارای overflow) */
    .table { min-width: 620px; font-size: 13px; }
    .table th { padding: 10px 12px; font-size: 12.5px; }
    .table td { padding: 10px 12px; font-size: 13px; }

    /* هر کارتی که مستقیماً جدول دارد، روی موبایل اسکرول افقی می‌گیرد */
    .card:has(> .table),
    .card:has(> table) { overflow-x: auto; }

    .form-row { grid-template-columns: 1fr; }

    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }

    .choice-pills { flex-direction: column; }
    .choice-pills .pill { justify-content: flex-start; }

    .detail-grid { grid-template-columns: 1fr; }

    .review-text { padding-right: 0; }
    .reviews-avg { font-size: 24px; }

    .filter-form { flex-direction: column; }
    .filter-form .form-input { min-width: 0; width: 100%; }

    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .admin-toolbar .form-input,
    .admin-toolbar select { width: 100%; min-width: 0; }

    .details-rating { flex-wrap: wrap; }
}

/* ---------- پنل مشتری — نسخهٔ ۳.۳.۶ ---------- */

/* ستون کارت‌های صفحهٔ پروفایل و امنیت */
.panel-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
    max-width: 1040px;
}

/* لینک‌های سریع داشبورد مشتری */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all .25s ease;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(74, 43, 58, .06));
}

.quick-link-card:hover {
    border-color: var(--pink-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-link-title {
    font-weight: 900;
    color: var(--pink-700);
    font-size: 15px;
}

.quick-link-desc {
    font-size: 12.5px;
    color: var(--text-soft);
    line-height: 1.8;
}

/* ---------- پیام‌های من ---------- */

.message-thread {
    padding: 20px 22px;
    margin-bottom: 16px;
}

.message-thread-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.message-bubble {
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
    max-width: 92%;
}

.message-bubble p { margin: 4px 0 0; line-height: 2; font-size: 14px; }

.message-bubble-user {
    background: var(--pink-50);
    border: 1px solid var(--pink-200);
    margin-right: auto;
    margin-left: 0;
}

.message-bubble-admin {
    background: #f4f7f2;
    border: 1px solid #d9e6d3;
    margin-left: auto;
    margin-right: 0;
}

.message-bubble-meta {
    font-size: 11.5px;
    color: var(--text-soft);
    font-weight: 700;
}

.message-reply-form { margin-top: 6px; }

/* ---------- نظرات من ---------- */

.my-review-card {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.my-review-product {
    font-weight: 900;
    color: var(--pink-800);
    font-size: 15px;
}

.my-review-product:hover { text-decoration: underline; }

.review-stars-off { opacity: .22; }

.my-review-edit summary {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    width: fit-content;
}

.my-review-edit summary::-webkit-details-marker { display: none; }

@media (max-width: 768px) {
    .message-bubble { max-width: 100%; }
    .panel-stack { gap: 14px; }
    .quick-links { grid-template-columns: 1fr; }
}

/* خلاصهٔ اعتبارسنجی وقتی خطایی ندارد، فضای اضافه و نوار صورتی نمی‌سازد */
.form-error.validation-summary-valid { display: none; }

/* ===== نوار جست‌وجو/فیلتر آیکونی ===== */
/* الگوی مشترک صفحهٔ فروشگاه و پنل مدیریت:
   یک نوار هم‌تمِ سایت (صورتی ملایم) با دقیقاً دو آیکونِ خطی —
   «قیفِ فیلتر» سمت راست و «ذره‌بینِ جست‌وجو» سمت چپ.
   در سندِ راست‌چین، فرزند اول DOM در راست رندر می‌شود؛
   بنابراین دکمهٔ قیف اول و گروه جست‌وجو آخر می‌آید.
   نسخهٔ ۳.۴.۱: نوار دیگر مشکیِ جدا از تم نیست — صورتیِ هماهنگ با کل سایت. */

.isf-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
    border: 1px solid var(--pink-200);
    box-shadow: var(--shadow);
    border-radius: 10px;
    height: 48px;
    padding: 0 10px;
    position: relative;
}

/* دکمه‌های آیکونی داخل نوار */
.isf-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--pink-600);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

.isf-btn:hover { color: var(--pink-700); background: rgba(236, 72, 153, .10); }

.isf-btn svg { width: 20px; height: 20px; }

/* دکمهٔ قیف + نقطهٔ صورتی وقتی فیلتری فعال است */
.isf-filter-btn { position: relative; }

.isf-filter-btn.isf-active::after {
    content: "";
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pink-500);
    border: 2px solid var(--pink-100);
}

/* گروه جست‌وجو: ذره‌بین + ورودی متنی
   حالت جمع‌شده: فقط دکمهٔ ذره‌بین دیده می‌شود و گروه به انتهای نوار
   (سمت چپ) هُل داده می‌شود تا دو آیکون دو سرِ نوار قرار بگیرند. */
.isf-search {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 8px;
    min-width: 0;
    margin-inline-start: auto;
}

.isf-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    width: 0;
    padding: 0;
    opacity: 0;
    transition: width .25s ease, opacity .2s ease;
}

.isf-input::placeholder { color: var(--text-soft); font-weight: 400; }

.isf-bar.isf-search-open .isf-search { flex: 1; }

.isf-bar.isf-search-open .isf-input { width: 100%; opacity: 1; }

/* پنل کشویی فیلترها (زیر نوار) */
.isf-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 120;
    background: #fff;
    border: 1px solid #f3d8e4;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(74,43,58,.18);
    padding: 16px;
    width: min(320px, 92vw);
    display: none;
}

.isf-panel.open { display: block; }

/* فیلدهای داخل پنل: سفید روی سفید — تمام‌عرض و مرتب */
.isf-panel .form-label { margin-bottom: 4px; font-size: 13px; }

.isf-panel .form-input { width: 100%; min-width: 0; margin-bottom: 12px; }

.isf-panel .isf-apply { width: 100%; margin-top: 4px; }

/* جای‌گیری نوار داخل فرم‌های فیلتر قدیمی (فروشگاه و پنل مدیریت) */
.filter-form .isf-bar,
.admin-toolbar .isf-bar { flex: 1 1 320px; max-width: 560px; }

