﻿/* =========================================================
   Arochap — Base Reset & Bootstrap Legacy (leave as-is)
   ========================================================= */
body {
    padding-bottom: 0;
    margin-bottom: 0;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

#qrCode {
    margin: 15px;
}

@media screen and (max-width: 767px) {
    .carousel-caption {
        display: none;
    }
}

/* =========================================================
   Fonts
   ========================================================= */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body, button, input, textarea, select {
    font-family: 'Vazirmatn', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
}

/* =========================================================
   Design tokens — Telegram Blue theme
   ========================================================= */
:root {
    --brand: #123c5e;
    --brand-dark: #0a2740;
    --brand-light: #e9f1f8;
    --brand-gradient: linear-gradient(135deg, #0a2740 0%, #123c5e 55%, #1e5c8a 100%);
    --text-dark: #1c1f26;
    --text-muted: #6b7280;
    --white: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 4px 14px rgba(0, 30, 50, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 30, 50, 0.14);
    --header-height: 76px;
}

body {
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    background: var(--white);
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid #eef1f4;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* لوگو سمت چپ */
.site-logo {
   
}
.header-left-cluster {
    order: 2;
    display: flex;
    align-items: center;
    gap: 18px;
}

    .site-logo img {
        max-height: 44px;
        height: auto;
        display: block;
    }

/* گروه ناوبری (لینک‌ها + جستجو + ورود) سمت راست */
.header-actions {
    order: 1;
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.menu-item {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 2px;
    transition: color 0.2s;
    white-space: nowrap;
}

    .menu-item::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: var(--brand);
        transition: width 0.25s ease;
    }

    .menu-item:hover {
        color: var(--brand);
        text-decoration: none;
    }

        .menu-item:hover::after {
            width: 100%;
        }

/* دکمه ورود */
.btn-login {
    background: var(--brand);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

    .btn-login::after {
        display: none;
    }

    .btn-login:hover {
        background: var(--brand-dark);
        color: var(--white);
        text-decoration: none;
        transform: translateY(-1px);
    }

/* جستجوی باز شونده */
.search-box {
    display: flex;
    align-items: center;
    background: var(--brand-light);
    border-radius: 30px;
    padding: 4px;
    transition: background 0.25s, box-shadow 0.25s;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 6px 8px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    margin-inline-start: 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.search-box.active {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

    .search-box.active .search-input {
        width: 180px;
        opacity: 1;
        padding: 4px 6px;
        margin-inline-start: 4px;
    }

/* دکمه همبرگری (موبایل) */
.menu-toggle {
    display: none;
    order: 1;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* =========================================================
   Hero — اسلایدر چند بنری
   ========================================================= */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
    padding: 40px 20px;
    background: var(--brand-dark); /* رنگ پشتیبان قبل از لود عکس‌ها */
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
    }



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-logo {
    max-height: 90px;
    margin-bottom: 24px;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 34px;
    line-height: 1.9;
}

.hero-cta {
    display: inline-block;
    background: var(--white);
    color: var(--brand-dark) !important;
    padding: 13px 34px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

   .hero-cta:hover {
       transform: translateY(-3px);
      text-decoration: none;
     color: var(--brand-dark);
    }

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    font-size: 26px;
    animation: bounce 1.8s infinite;
    opacity: 0.85;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

/* =========================================================
   Intro / About section
   ========================================================= */
.intro-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 90px 24px 60px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 30px;
    margin-bottom: 20px;
}

.section-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 2;
}

/* =========================================================
   Features / Promo grid
   ========================================================= */
.features-section {
    background: var(--brand-light);
    padding: 60px 24px 80px;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.feature-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* =========================================================
   Menu cards (محصولات / لیست قیمت) — نسخه ارتقا یافته
   ========================================================= */
.menu-section {
    padding: 80px 24px;
    text-align: center;
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.menu-card {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-md);
    background: var(--brand-light);
    transition: transform 0.3s;
}

    .menu-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 24px;
        transition: transform 0.4s;
    }

    .menu-card:hover {
        transform: translateY(-8px);
    }

        .menu-card:hover img {
            transform: scale(1.06);
        }

.card-title {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,53,84,0.85), rgba(0,53,84,0));
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    scroll-margin-top: 90px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 30px 40px;
    background: linear-gradient(180deg, #0a2740 0%, #123c5e 100%);
    color: var(--white);
    text-align: right;
    margin-bottom: 0;
    border-top: 3px solid #33b8ff;
}

.footer-section {
    min-width: 180px;
}

    .footer-section h3 {
        margin-bottom: 15px;
        color: var(--white);
    }

    .footer-section p {
        line-height: 1.8;
        color: rgba(255,255,255,0.75);
    }

    .footer-section a {
        display: block;
        color: rgba(255,255,255,0.75);
        text-decoration: none;
        margin-bottom: 8px;
        transition: color 0.2s;
    }

        .footer-section a:hover {
            color: var(--brand);
            text-decoration: none;
        }

/* =========================================================
   Responsive
   ========================================================= */
@media screen and (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 767px) {
    .menu-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .menu-toggle {
        display: block;
    }

    .header-actions {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-130%);
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.25s ease;
        pointer-events: none;
    }

        .header-actions.open {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .search-box.active .search-input {
        width: 140px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        width: 100%;
        max-width: 350px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
}
/* =========================================================
   معرفی محصولات (با انیمیشن اسکرول)
   ========================================================= */
.products-showcase {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 50px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 36px 0;
    border-bottom: 1px solid #eef1f4;
    /* حالت اولیه: نامرئی و کمی پایین‌تر */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .product-item:last-child {
        border-bottom: none;
    }

    /* وقتی جاوااسکریپت کلاس visible رو اضافه کرد، ظاهر می‌شه */
    .product-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* ردیف‌های زوج برعکس بشن (آیکون این‌طرف، اون‌طرف) */
    .product-item:nth-child(even) {
        flex-direction: row-reverse;
    }

.product-icon {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-icon img {
        width: 90px;
        height: 90px;
        object-fit: contain;
    }
.product-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-text p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 15px;
    margin: 0;
}

@media screen and (max-width: 700px) {
    .hero {
        min-height: 85vh;
        min-height: 85dvh;
    }

    .hero-slide {
        background-image: var(--bg-mobile);
        background-size: cover;
        background-position: center;
        background-position: top center;
    }

    .product-item,
    .product-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* =========================================================
   طراحی (عکس + متن، با انیمیشن اسکرول)
   ========================================================= */
.intro-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-image {
    flex: 1;
}

    .intro-image img {
        width: 100%;
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        display: block;
    }

.intro-text {
    flex: 1;
    text-align: right;
}

    .intro-text .section-title,
    .intro-text .section-text {
        text-align: right;
    }

@media screen and (max-width: 800px) {
    .intro-grid {
        flex-direction: column;
        text-align: center;
    }

    .intro-text,
    .intro-text .section-title,
    .intro-text .section-text {
        text-align: center;
    }
}

/* کلاس عمومی انیمیشن اسکرول — قابل استفاده روی هر سکشنی */
.reveal-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal-block.visible {
        opacity: 1;
        transform: translateY(0);
    }
/* پلکانی شدن ورود کارت‌های ویژگی */
.feature-card.reveal-block {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

    .feature-card.reveal-block:nth-child(1) {
        transition-delay: 0s;
    }

    .feature-card.reveal-block:nth-child(2) {
        transition-delay: 0.12s;
    }

    .feature-card.reveal-block:nth-child(3) {
        transition-delay: 0.24s;
    }

    .feature-card.reveal-block:nth-child(4) {
        transition-delay: 0.36s;
    }

    /* موقع هاور، دیگه دیلی نداشته باشه که واکنش دیر نده */
    .feature-card.reveal-block:hover {
        transition-delay: 0s;
    }
/* =========================================================
   Auth pages (Login / Register)
   ========================================================= */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 42px 36px;
    text-align: center;
}

    .auth-card.auth-card-wide {
        max-width: 640px;
    }

.auth-logo {
    max-height: 56px;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: right;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.auth-form .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .auth-form .form-control:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(18, 60, 94, 0.12);
    }

.auth-form .text-danger {
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.btn-auth {
    width: 100%;
    background: var(--brand);
    color: var(--white);
    border: none;
    padding: 13px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 6px;
}

    .btn-auth:hover {
        background: var(--brand-dark);
        transform: translateY(-2px);
    }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

@media screen and (max-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 30px 22px;
    }
}
/* =========================================================
   هدر صفحات داخلی (محصولات، لیست قیمت و ...)
   ========================================================= */
.page-header-block {
    text-align: center;
    padding: 50px 24px 10px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 50px 20px;
    font-size: 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin: 24px;
}

    .back-link:hover {
        color: var(--brand-dark);
        text-decoration: none;
    }

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.card-title .count-badge {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 4px;
}

.menu-card.static-card {
    cursor: default;
}

    .menu-card.static-card:hover {
        transform: none;
    }

        .menu-card.static-card:hover img {
            transform: none;
        }

/* =========================================================
   لیست قیمت
   ========================================================= */
.pricelist-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 80px;
   
}

.price-card {
    background: var(--white);
    border: 1px solid #eef1f4;
    border-radius: var(--radius);
    margin-bottom: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.price-card-header {
    background: var(--brand-gradient);
    color: var(--white);
    padding: 16px 22px;
    font-size: 17px;
    font-weight: 700;
}

.price-card-body {
    padding: 18px 22px 6px;
}

.price-card-desc {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.8;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #f1f3f5;
}

    .price-row:last-child {
        border-bottom: none;
    }

.price-row-label {
    color: #4b5563;
    font-size: 14px;
}

.price-row-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
}

/* =========================================================
   فرم‌های پنل ادمین
   ========================================================= */
.admin-form-card {
    max-width: 640px;
}

.admin-form .form-group {
    margin-bottom: 18px;
}

.admin-form label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.admin-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .admin-form .form-control:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(18, 60, 94, 0.12);
    }

.admin-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.admin-form .text-danger {
    font-size: 13px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* دکمه‌های تم‌دار مشترک */
.btn-brand {
    display: inline-block;
    background: var(--brand);
    color: var(--white) !important;
    border: none;
    padding: 10px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

    .btn-brand:hover {
        background: var(--brand-dark);
        transform: translateY(-2px);
        color: var(--white);
        text-decoration: none;
    }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-dark) !important;
    border: 1px solid #dfe3e8;
    padding: 10px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

    .btn-outline:hover {
        background: #f4f6f9;
        text-decoration: none;
    }

.btn-danger-soft {
    display: inline-block;
    background: #fdecef;
    color: #d9455f !important;
    border: none;
    padding: 10px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

    .btn-danger-soft:hover {
        background: #f9d2d8;
        text-decoration: none;
    }

.btn-xs {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 20px;
}

/* جدول پنل ادمین */
.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .admin-table th, .admin-table td {
        padding: 12px 14px;
        text-align: right;
        border-bottom: 1px solid #eef1f4;
    }

    .admin-table th {
        background: #f8fafc;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 13px;
    }

    .admin-table tr:hover td {
        background: #fafcfe;
    }

.admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}

.table-actions {
    display: flex;
    gap: 8px;
}
/* =========================================================
   هدر کارت‌های قیمت در پنل ادمین (با دکمه‌های عملیات)
   ========================================================= */
.price-card-header-admin {
    background: var(--brand-gradient);
    color: var(--white);
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

    .price-card-header-admin strong {
        font-size: 17px;
    }

.price-card-desc-admin {
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
}

.header-actions-admin {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-xs-light {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: var(--white) !important;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
    white-space: nowrap;
}

    .btn-xs-light:hover {
        background: rgba(255,255,255,0.28);
        color: var(--white);
        text-decoration: none;
    }

    .btn-xs-light.danger {
        background: rgba(217,69,95,0.35);
        border-color: rgba(217,69,95,0.5);
    }

        .btn-xs-light.danger:hover {
            background: rgba(217,69,95,0.55);
        }

/* ردیف قیمت با دکمه‌های عملیات (داخل پنل ادمین) */
.price-row-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
    gap: 12px;
    flex-wrap: wrap;
}

    .price-row-admin:last-child {
        border-bottom: none;
    }

.price-row-admin-info {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 200px;
}

.pricelist-cards-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 20px auto 60px;
    padding: 0 16px;
    box-sizing: border-box;
}

.pricelist-card {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    text-decoration: none;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

    .pricelist-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .pricelist-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.pricelist-card-title {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pricelist-card:hover .pricelist-card-title {
    opacity: 1;
    transform: translateY(0);
}

/* برای صفحه اصلی، اگه خواستی حداکثر عرض محدودتر باشه (مثلاً حداکثر ۳ ستون بزرگ‌تر) */
.pricelist-cards-wrap.limit-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1094px;
}

    .pricelist-cards-wrap.limit-3 .pricelist-card {
        flex: 0 1 calc((100% - 50px) / 3);
        max-width: 338px;
        min-width: 260px;
    }

@media screen and (max-width: 767px) {
    .pricelist-cards-wrap.limit-3 .pricelist-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* =========================================================
   Placeholder برای کارت‌های بدون تصویر
   ========================================================= */
.pricelist-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
/* =========================================================
   آیکون‌های سبد خرید و پنل کاربری در هدر
   ========================================================= */
.header-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 6px;
}

    .header-icon-link:hover {
        color: var(--brand);
        text-decoration: none;
    }

.header-icon-badge {
    position: absolute;
    top: -2px;
    left: -6px;
    background: var(--brand);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 20px;
    min-width: 16px;
    text-align: center;
}
.account-dropdown {
    position: relative;
}

.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 140px;
    display: none;
    flex-direction: column;
    z-index: 1100;
}

    .account-dropdown-menu a {
        display: block;
        padding: 10px 14px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 14px;
        border-radius: 8px;
        white-space: nowrap;
    }

        .account-dropdown-menu a:hover {
            background: var(--brand-light);
            color: var(--brand);
            text-decoration: none;
        }

.account-dropdown.open .account-dropdown-menu {
    display: flex;
}
/* =========================================================
   پنجره‌ی سبد خرید (این بخش را به انتهای site.css اضافه کنید)
   ========================================================= */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 39, 64, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .cart-modal-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.cart-modal {
    background: var(--white);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transform: translateY(14px);
    transition: transform 0.25s ease;
}

.cart-modal-overlay.open .cart-modal {
    transform: translateY(0);
}

.cart-modal-header {
    background: var(--brand-gradient);
    color: var(--white);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .cart-modal-header h3 {
        margin: 0;
        font-size: 17px;
        color: var(--white);
    }

.cart-modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.cart-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
}

.cart-modal-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
    font-size: 14px;
}

.cart-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px 20px;
    border-top: 1px solid #eef1f4;
}

    .cart-modal-footer .btn-brand,
    .cart-modal-footer .btn-outline {
        flex: 1;
        text-align: center;
        cursor: pointer;
    }

.cart-sum-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.cart-sum-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.cart-sum-meta {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.cart-sum-price {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.cart-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 6px;
    font-size: 16px;
}

.cart-sum-link {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}

    .cart-sum-link a {
        color: var(--brand);
    }

/* اگر از قبل در site.css این کلاس‌ها را دارید، این بخش را اضافه نکنید */
.header-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.header-icon-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #d9455f;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}


