:root {
    --app-primary: #167d78;
    --app-text: #253446;
    --app-surface: #fff;
    --app-line: #e8edf1;
}

@font-face {
    font-family: 'iransans';
    src: url('fonts/IRANSansXV.woff') format('woff-variations'),
    url('fonts/IRANSansXV.woff') format('woff');
    font-weight: 100 900;
    font-display: fallback;
}
@font-face {
    font-family: 'IRANYekan';
    src: url('fonts/IRANYekanXVF.woff') format('woff-variations'),
    url('fonts/IRANYekanXVF.woff') format('woff');
    font-weight: 100 1000;
    font-display: fallback;
}

/* =========================================================
   1. Base & Reset Styles
   ========================================================= */

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    color: var(--app-text);
    background-color: #f7f9fa;
    font-family: iransans;
}

#page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* =========================================================
   2. App Header & Navigation
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--app-line);
    box-shadow: 0 3px 16px rgba(28, 48, 69, 0.04);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.app-header__inner.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 760px; /* محدودیت عرض دسکتاپ برای حالت اپلیکیشنی و متمرکز */
    min-height: 62px;
    margin-inline: auto;
    padding-right: clamp(12px, 2vw, 24px);
    padding-left: clamp(12px, 2vw, 24px);
}

.app-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--app-text);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.app-header__brand:hover {
    color: var(--app-primary);
}

.app-header__logo,
.app-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
}

.app-header__logo {
    background: #eaf7f5;
    color: var(--app-primary);
    font-size: 18px;
}

.app-header__nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .app-header__nav {
        display: flex;
    }
}

.app-header__nav a {
    color: #566579;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.app-header__nav a:hover {
    color: var(--app-primary);
}

.app-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.app-header__button {
    padding: 0;
    border: 1px solid var(--app-line);
    background: var(--app-surface);
    color: var(--app-text);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-header__button:hover,
.app-header__button:focus-visible {
    background: #eaf7f5;
    color: var(--app-primary);
    border-color: #cce9e5;
}

/* =========================================================
   3. Main Content & Responsive Layout Container
   ========================================================= */

.app-main {
    width: 100%;
    flex: 1 0 auto;
}

.app-main__inner {
    width: 100%;
    max-width: 760px; /* یکپارچه‌سازی عرض محتوا با هدر در دسکتاپ */
    min-width: 0;
    margin-inline: auto;
    padding: clamp(14px, 2vw, 24px) clamp(12px, 2vw, 24px)
    calc(24px + env(safe-area-inset-bottom, 0px));
}

/* پوستهٔ صفحهٔ خدمات */
.home-services-view {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding: 0 0 calc(108px + env(safe-area-inset-bottom, 0px));
}

/* ایمن‌سازی تصاویر و المان‌ها در برابر سرریز عرض */
.home-services-view img {
    max-width: 100%;
}

.home-services-view,
.home-services-view * {
    min-width: 0;
}

/* =========================================================
   4. Media Queries & Device Breakpoints
   ========================================================= */

/* موبایل‌ها */
@media (max-width: 767.98px) {
    .app-header__inner.container {
        min-height: 56px;
        gap: 8px;
    }

    .app-header__brand {
        gap: 8px;
        font-size: 14px;
    }

    .app-header__logo,
    .app-header__button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }

    .app-main__inner {
        padding: 12px 10px calc(18px + env(safe-area-inset-bottom, 0px));
    }
}

/* تبلت: دو یا سه ستونه */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .home-services-view .row > .col-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* دسکتاپ: حفظ ساختار متمرکز و اپلیکیشنی */
@media (min-width: 1200px) {
    .home-services-view .row > .col-6 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* موبایل‌های بسیار باریک */
@media (max-width: 360px) {
    .app-header__inner.container,
    .app-main__inner {
        padding-right: 8px;
        padding-left: 8px;
    }
}

/* ==========================================
   Web-App Bottom Navigation Bar (سبک و شیک)
   ========================================== */
.app-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-bottom-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 60px;
    max-width: 540px; /* در تبلت و دسکتاپ هم مثل گوشی متمرکز و خوش‌دست می‌ماند */
    margin: 0 auto;
    padding: 0 10px;
}

.app-bottom-bar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none !important;
    color: #64748b;
    padding: 6px 0;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, transform 0.1s ease;
}

.app-bottom-bar__icon {
    font-size: 19px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-bottom-bar__text {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
    line-height: 1;
}

/* افکت لمس دکمه */
.app-bottom-bar__link:active {
    transform: scale(0.92);
}

/* دکمه فعال (Active State با رنگ سبز درمانی/پزشکی) */
.app-bottom-bar__link.is-active {
    color: #0d9488; /* Teal / Medical Primary */
}

.app-bottom-bar__link.is-active .app-bottom-bar__icon {
    transform: translateY(-2px) scale(1.1);
}

.app-bottom-bar__link.is-active .app-bottom-bar__text {
    font-weight: 800;
}

/* فاصله پایین صفحه برای اینکه هیچ المانی پشت فوتر مخفی نشود */
body,
#page,
.page-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
}
/* ==========================================
   Modern Bottom Sheet (PWA & General Drawers)
   ========================================== */
.app-bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.app-bottom-sheet.is-active,
.app-bottom-sheet.menu-active {
    display: flex;
}

/* پس‌زمینه تیره و بلور پشت مودال */
.app-bottom-sheet__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease-out;
}

/* بدنه پنل باتم شیت */
.app-bottom-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* دستگیره کوچک بالای شیت */
.app-bottom-sheet__handle {
    width: 42px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 99px;
    margin: 4px auto 16px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Login / registration content; suitable inside an app bottom sheet */
.auth-panel {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    padding: 24px 20px;
    background: #fff;
    border-radius: 20px;
    color: #1e293b;
}

.auth-panel__heading {
    text-align: center;
    margin-bottom: 28px;
}

.auth-panel__symbol {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 17px;
    background: #e9f7f5;
    color: #0f766e;
    font-size: 23px;
}

.auth-panel__heading h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
}

.auth-panel__heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.auth-panel__heading strong {
    display: inline-block;
    color: #0f766e;
}

.auth-panel__field {
    margin-bottom: 18px;
}

.auth-panel__field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.auth-panel__input-wrap {
    position: relative;
}

.auth-panel__input-wrap > i {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.auth-panel__input {
    width: 100%;
    height: 52px;
    padding: 0 43px 0 15px;
    border: 1px solid #dbe3e8;
    border-radius: 13px;
    outline: none;
    background: #f8fafb;
    color: #1e293b;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.auth-panel__input:focus,
.auth-panel__otp-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .11);
    background: #fff;
}

.auth-panel__input.is-invalid {
    border-color: #e9a5ab;
}

.auth-panel__error {
    margin: 8px 0 0;
    color: #a94450;
    font-size: 12px;
    line-height: 1.8;
}

.auth-panel__error--center {
    text-align: center;
    margin: -6px 0 18px;
}

.auth-panel__submit {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    border: 0;
    border-radius: 13px;
    background: #0f766e;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-panel__submit:hover {
    background: #115e59;
}

.auth-panel__submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.auth-panel__legal {
    margin: 20px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 11px;
    line-height: 1.8;
}

.auth-panel__legal a {
    color: #0f766e;
    text-decoration: none;
}

.auth-panel__otp {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 26px auto;
}

.auth-panel__otp-input {
    width: 54px;
    height: 58px;
    padding: 0;
    border: 1px solid #dbe3e8;
    border-radius: 13px;
    outline: none;
    background: #f8fafb;
    color: #1e293b;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    transition: border-color .2s, box-shadow .2s;
}

.auth-panel__secondary {
    display: block;
    margin: 16px auto 0;
    padding: 8px;
    border: 0;
    background: none;
    color: #0f766e;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 360px) {
    .auth-panel__otp-input {
        width: 48px;
        height: 54px;
    }
}
/* =========================================================
   Home & Category Detail Services — Clean & Unified CSS
   ========================================================= */

.home-services-view {
    --home-ink: #172b3a;
    --home-muted: #697c89;
    --home-brand: #087f8c;
    --home-brand-dark: #086875;
    --home-line: #e7edf1;
    --home-surface: #ffffff;

    color: var(--home-ink);
    padding: 12px 14px 108px;
}

.home-services-view *,
.home-services-view *::before,
.home-services-view *::after {
    box-sizing: border-box;
}

/* بخش خوش‌آمدگویی */
.home-services-view .home-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f0f8f8 0%, #ffffff 72%);
    border: 1px solid #e5eeef;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(23, 43, 58, .045);
}

.home-services-view .home-welcome__identity,
.home-services-view .category-detail-header__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.home-services-view .home-welcome__avatar,
.home-services-view .category-detail-header__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #e2f2f1;
    color: var(--home-brand);
    font-size: 20px;
}

.home-services-view .home-welcome__copy,
.home-services-view .category-detail-header__copy {
    min-width: 0;
}

.home-services-view .home-welcome__eyebrow,
.home-services-view .category-detail-header__eyebrow,
.home-services-view .home-section__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--home-brand);
    font-size: 11px;
    font-weight: 700;
}

.home-services-view .home-welcome__title,
.home-services-view .category-detail-header__title {
    margin: 0;
    color: var(--home-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.home-services-view .home-welcome__description,
.home-services-view .category-detail-header__description {
    margin: 2px 0 0;
    color: var(--home-muted);
    font-size: 11px;
    line-height: 1.7;
}

.home-services-view .home-welcome__orders {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #dcebea;
    border-radius: 12px;
    background: #fff;
    color: var(--home-brand-dark);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}

.home-services-view .home-welcome__orders:hover {
    background: #eaf7f6;
    border-color: #badbd9;
    color: var(--home-brand-dark);
}

/* بنر صفحه */
.home-services-view .home-banner {
    position: relative;
    isolation: isolate;
    min-height: 202px;
    height: clamp(202px, 52vw, 255px);
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 22px;
    background: #173847;
    box-shadow: 0 12px 28px rgba(23, 43, 58, .15);
}

.home-services-view .home-banner__image,
.home-services-view .home-banner__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-services-view .home-banner__image {
    object-fit: cover;
    object-position: center;
}

.home-services-view .home-banner__shade {
    background: linear-gradient(
        180deg,
        rgba(10, 31, 42, .20) 0%,
        rgba(10, 31, 42, .04) 35%,
        rgba(8, 29, 40, .50) 68%,
        rgba(8, 29, 40, .88) 100%
    );
}

.home-services-view .home-banner__top,
.home-services-view .home-banner__content {
    position: absolute;
    right: 17px;
    left: 17px;
    z-index: 1;
}

.home-services-view .home-banner__top {
    top: 16px;
}

.home-services-view .home-banner__label,
.home-services-view .home-banner__trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 9px;
    background: rgba(13, 39, 49, .50);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.home-services-view .home-banner__label {
    padding: 7px 10px;
}

.home-services-view .home-banner__content {
    bottom: 17px;
}

.home-services-view .home-banner__trust {
    margin-bottom: 9px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, .15);
}

.home-services-view .home-banner__trust i {
    color: #b7ece4;
}

.home-services-view .home-banner__title {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(17px, 4.5vw, 23px);
    font-weight: 800;
    line-height: 1.4;
}

.home-services-view .home-banner__description {
    margin: 0;
    color: #e5eef1;
    font-size: 11px;
    line-height: 1.7;
}

/* عنوان بخش‌ها */
.home-services-view .home-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 2px;
}

.home-services-view .home-section__title {
    position: relative;
    margin: 0;
    padding-right: 12px;
    color: var(--home-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.home-services-view .home-section__title::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 0;
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: var(--home-brand);
}

/* هدر صفحه جزئیات دسته‌بندی */
.home-services-view .category-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e5eeef;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f8f8, #fff 75%);
}

.home-services-view .category-detail-header__back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #dcebea;
    border-radius: 12px;
    background: #fff;
    color: var(--home-brand-dark);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease;
}

.home-services-view .category-detail-header__back:hover {
    background: #eaf7f6;
}

/* کارت‌های خدمات و دسته‌بندی (مشترک) */
.home-services-view .service-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 14px;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: var(--home-surface);
    box-shadow: 0 3px 11px rgba(23, 43, 58, .035);
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.home-services-view .service-card--category {
    appearance: none;
    min-height: 182px;
    cursor: pointer;
}

.home-services-view .service-card--category:hover {
    transform: translateY(-2px);
    border-color: #b8dcd9;
    box-shadow: 0 9px 23px rgba(8, 127, 140, .09);
}

.home-services-view .service-card--category:active {
    transform: scale(.98);
}

.home-services-view .service-card--item {
    justify-content: space-between;
}

.home-services-view .service-card--item.is-in-cart {
    border-color: #a8d8c8;
    background: #fbfefd;
}

/* بج «در سبد» */
.home-services-view .service-card__badge-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    background: #e4f5ed;
    color: #18754d;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}

.home-services-view .service-card__thumb-box {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border: 1px solid #edf3f5;
    border-radius: 18px;
    background: #fbfdfd;
}

.home-services-view .service-card__thumb {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.home-services-view .service-card__title {
    width: 100%;
    min-height: 40px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--home-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.home-services-view .service-card__action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f3f5;
    color: var(--home-brand-dark);
    font-size: 11px;
    font-weight: 700;
}

.home-services-view .service-card__action-arrow {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9f5f4;
    font-size: 10px;
}

/* فوتر کارت و قیمت */
.home-services-view .service-card__footer {
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f3f5;
}

.home-services-view .service-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-bottom: 10px;
}

.home-services-view .service-card__price-label {
    color: var(--home-muted);
    font-size: 9.5px;
}

.home-services-view .service-card__price-value {
    color: var(--home-brand-dark);
    white-space: nowrap;
}

.home-services-view .service-card__price-value strong {
    font-size: 14px;
    font-weight: 800;
}

.home-services-view .service-card__price-value span {
    font-size: 10px;
    font-weight: 600;
    margin-right: 2px;
}

/* دکمه سفارش */
.home-services-view .service-card__order-button {
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--home-brand);
    border-radius: 11px;
    background: var(--home-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

.home-services-view .service-card__order-button:hover:not(:disabled) {
    background: var(--home-brand-dark);
}

.home-services-view .service-card__order-button:active:not(:disabled) {
    transform: scale(.97);
}

.home-services-view .service-card__order-button--added {
    border-color: #d4ebe0;
    background: #e8f6ee;
    color: #18754d;
}

.home-services-view .service-card__order-button i {
    margin-left: 4px;
}

/* وضعیت خالی */
.home-services-view .services-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 18px;
    border: 1px dashed #d9e5e9;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.home-services-view .services-empty__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #edf6f6;
    color: var(--home-brand);
    font-size: 21px;
}

.home-services-view .services-empty h3 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 800;
}

.home-services-view .services-empty p {
    margin: 0;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 430px) {
    .home-services-view .home-welcome__orders {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   App Toast Notification — Modern Mobile Style
   ========================================================= */

.home-services-view .app-toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.home-services-view .app-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(23, 43, 58, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.home-services-view .app-toast--success {
    background: #f0fdf4;
    border-color: #dcfce7;
    color: #166534;
}

.home-services-view .app-toast--warning {
    background: #fefce8;
    border-color: #fef9c3;
    color: #854d0e;
}

.home-services-view .btn-close-toast {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-services-view .btn-close-toast:hover {
    background: rgba(0, 0, 0, 0.1);
}
/* =========================================================
   Cart & Orders View Styles (Material 3 / iOS App Standard)
   ========================================================= */

.cart-orders-view {
    width: 100%;
}

/* کارت هر آیتم (خدمت یا محصول) */
.cart-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-line, #e8edf1);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(28, 48, 69, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-card:hover {
    border-color: #d1dde4;
    box-shadow: 0 4px 12px rgba(28, 48, 69, 0.04);
}

.cart-item-card__media {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-item-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-card__media--contain img {
    object-fit: contain;
    padding: 4px;
}

.cart-item-card__body {
    flex: 1;
    min-width: 0;
}

.cart-item-card__title {
    margin: 0 0 4px 0;
    color: var(--app-text, #253446);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-card__badge {
    display: inline-block;
    padding: 3px 8px;
    margin-bottom: 6px;
    background: #e8f5f4;
    color: var(--app-primary, #167d78);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}

.cart-item-card__badge--accent {
    background: #f1f5f9;
    color: #475569;
}

.cart-item-card__price {
    color: var(--app-primary, #167d78);
    font-size: 15px;
    font-weight: 800;
}

.cart-item-card__price span {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.cart-item-card__action {
    flex: 0 0 auto;
}

.cart-item-card__delete {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cart-item-card__delete:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

/* باکس مجموع هزینه */
.cart-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--app-line, #e8edf1);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(28, 48, 69, 0.03);
}

.cart-total-box__label {
    color: var(--app-primary, #167d78);
    font-size: 13px;
    font-weight: 700;
}

.cart-total-box__value {
    color: var(--app-text, #253446);
    font-size: 20px;
    font-weight: 800;
}

.cart-total-box__value span {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* دکمه‌های سراسری هماهنگ با اپ */
.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-btn--primary {
    background: var(--app-primary, #167d78);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 125, 120, 0.25);
}

.app-btn--primary:hover {
    background: #136a66;
    color: #ffffff;
}

.app-btn--outline {
    background: #ffffff;
    color: var(--app-text, #253446);
    border-color: var(--app-line, #e8edf1);
}

.app-btn--outline:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
    color: var(--app-primary, #167d78);
}

.app-btn--inline {
    width: auto;
    padding-inline: 28px;
    margin-inline: auto;
}

/* حالت سبد خرید خالی */
.cart-empty-state {
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border: 1px solid var(--app-line, #e8edf1);
    border-radius: 20px;
    margin-top: 12px;
}

.cart-empty-state__icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    background: #eaf7f5;
    color: var(--app-primary, #167d78);
    font-size: 28px;
    border-radius: 50%;
}

.cart-empty-state__title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--app-text, #253446);
}

.cart-empty-state__desc {
    margin: 0 0 24px 0;
    font-size: 13px;
    color: #64748b;
}

/* توست هشدار موفقیت */
.app-toast-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.app-toast-alert--success {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}
