/* ============================================================
   Design System - Monochrome Minimal
   Inspired by clean, minimal aesthetic
   ============================================================ */

:root {
    --bg: #f6f6f7;
    --bg-soft: #fbfbfc;
    --surface: #ffffff;
    --border: #e7e8ec;
    --border-strong: #d6d8de;
    --text: #16181d;
    --text-muted: #6b7280;
    --text-subtle: #9ca3af;
    --accent: #16181d;
    --accent-hover: #2c2f36;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --success: #067647;
    --success-soft: #ecfdf3;
    --warning: #b54708;
    --warning-soft: #fffaeb;
    --info: #175cd3;
    --info-soft: #eff8ff;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-xs: 0 1px 2px rgba(16,18,23,.04);
    --shadow-sm: 0 2px 8px rgba(16,18,23,.05);
    --shadow-md: 0 8px 24px rgba(16,18,23,.07);
    --shadow-lg: 0 16px 44px rgba(16,18,23,.09);
}

/* ============================================================
   Base
   ============================================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .18s ease;
}

    a:hover {
        color: var(--text);
    }

::selection {
    background: #16181d;
    color: #fff;
}

section[id] {
    scroll-margin-top: 96px;
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 8px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-subtle);
    }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    font-size: .8125rem;
    color: var(--text-muted);
}

    .topbar a {
        color: var(--text-muted);
        transition: color .18s ease;
    }

        .topbar a:hover {
            color: var(--text);
        }

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

    .topbar-item svg {
        width: 14px;
        height: 14px;
        opacity: .65;
    }

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    transition: all .18s ease;
}

    .topbar-social a:hover {
        border-color: var(--border-strong);
        color: var(--text);
        box-shadow: var(--shadow-xs);
    }

.topbar-social svg {
    width: 15px;
    height: 15px;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    height: 46px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.brand-sub {
    font-size: .6875rem;
    color: var(--text-subtle);
    font-weight: 500;
    line-height: 1.3;
}

.nav-main .nav-link {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: .5rem .85rem !important;
    border-radius: 8px;
    transition: all .18s ease;
}

    .nav-main .nav-link:hover,
    .nav-main .nav-link:focus,
    .nav-main .nav-link.active {
        color: var(--text);
        background: var(--bg);
    }

.nav-main .dropdown-toggle::after {
    margin-inline-start: .4rem;
    vertical-align: .15em;
    border-top-color: currentColor;
    opacity: .5;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    font-size: .875rem;
    min-width: 240px;
}

.dropdown-item {
    border-radius: 8px;
    padding: .5rem .75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .15s ease;
}

    .dropdown-item:hover {
        background: var(--bg);
        color: var(--text);
    }

    .dropdown-item i {
        width: 1.2rem;
        text-align: center;
        margin-left: .4rem;
    }

.btn-icon-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    transition: all .18s ease;
    position: relative;
}

    .btn-icon-soft:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-sm);
        color: var(--text);
    }

    .btn-icon-soft svg {
        width: 18px;
        height: 18px;
    }

.cart-badge {
    position: absolute;
    top: -5px;
    inset-inline-start: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    border-radius: 999px;
    border: 2px solid var(--surface);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    font-weight: 600;
    font-size: .875rem;
    border-radius: 10px;
    padding: .625rem 1.25rem;
    transition: all .18s ease;
    border: 1px solid transparent;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-xs);
}

    .btn-accent:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        color: #fff;
        box-shadow: var(--shadow-sm);
    }

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

    .btn-ghost:hover {
        border-color: var(--border-strong);
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-sm);
    }

.btn-sm {
    padding: .45rem 1rem;
    font-size: .8125rem;
}

.btn-lg {
    padding: .8rem 1.75rem;
    font-size: .9375rem;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        color: #fff;
    }

.btn-secondary {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

    .btn-secondary:hover {
        background: var(--bg-soft);
        border-color: var(--border-strong);
        color: var(--text);
    }

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

    .btn-success:hover {
        background: #045c37;
        border-color: #045c37;
        color: #fff;
    }

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

    .btn-danger:hover {
        background: #912018;
        border-color: #912018;
        color: #fff;
    }

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
}

    .btn-warning:hover {
        background: #93370d;
        border-color: #93370d;
        color: #fff;
    }

.btn-info {
    background: var(--info);
    border-color: var(--info);
    color: #fff;
}

    .btn-info:hover {
        background: #1249a8;
        border-color: #1249a8;
        color: #fff;
    }

.btn-outline-primary {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}

    .btn-outline-primary:hover {
        background: var(--bg);
        border-color: var(--border-strong);
        color: var(--text);
    }

/* ============================================================
   Cards & surfaces
   ============================================================ */
.surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
}

    .card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: .75rem 1.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
}

.card-text {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================================
   Forms
   ============================================================ */
.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .625rem 1rem;
    font-size: .875rem;
    background: var(--surface);
    color: var(--text);
    transition: all .18s ease;
    font-family: inherit;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(22,24,29,.08);
        background: var(--surface);
        color: var(--text);
    }

    .form-control::placeholder {
        color: var(--text-subtle);
    }

.form-label {
    font-weight: 600;
    font-size: .8125rem;
    margin-bottom: .4rem;
    color: var(--text);
}

.form-check {
    padding-right: 2rem;
    padding-left: 0;
}

.form-check-input {
    margin-right: -2rem;
    margin-left: 0;
}

    /* ============================================================
   Radio Buttons (custom)
   ============================================================ */
    .form-check-input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 1.15rem;
        height: 1.15rem;
        border: 2px solid var(--border-strong);
        border-radius: 50%;
        background: var(--surface);
        transition: all .2s ease;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
        vertical-align: middle;
    }

        .form-check-input[type="radio"]:hover {
            border-color: var(--text);
        }

        .form-check-input[type="radio"]:checked {
            border-color: var(--accent);
            background: var(--accent);
        }

            .form-check-input[type="radio"]:checked::after {
                content: '';
                position: absolute;
                top: 50%;
                right: 50%;
                transform: translate(50%, -50%);
                width: 0.42rem;
                height: 0.42rem;
                background: #fff;
                border-radius: 50%;
            }

        .form-check-input[type="radio"]:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(22,24,29,.1);
        }

.form-check-label {
    padding-right: .5rem;
    cursor: pointer;
    font-weight: 400;
}

/* ============================================================
   Checkbox
   ============================================================ */
.form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    transition: all .2s ease;
    cursor: pointer;
    position: relative;
}

    .form-check-input[type="checkbox"]:hover {
        border-color: var(--text);
    }

    .form-check-input[type="checkbox"]:checked {
        border-color: var(--accent);
        background: var(--accent);
    }

        .form-check-input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            top: 45%;
            right: 50%;
            transform: translate(50%, -50%) rotate(45deg);
            width: 0.35rem;
            height: 0.6rem;
            border: solid #fff;
            border-width: 0 0 2px 2px;
        }

    .form-check-input[type="checkbox"]:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(22,24,29,.1);
    }

/* ============================================================
   Radio Button Groups (button-style)
   ============================================================ */
.btn-group .btn-check + .btn {
    border-radius: 0;
    padding: .5rem 1.25rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all .18s ease;
}

.btn-group .btn-check:first-child + .btn {
    border-radius: 10px 0 0 10px;
}

.btn-group .btn-check:last-child + .btn {
    border-radius: 0 10px 10px 0;
}

.btn-group .btn-check:checked + .btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-xs);
}

.btn-group .btn-check:not(:checked) + .btn:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border-strong);
}

/* ============================================================
   Tables
   ============================================================ */
.table {
    font-size: .875rem;
    color: var(--text);
    border-color: var(--border);
}

    .table thead th {
        background: var(--bg-soft);
        color: var(--text);
        font-weight: 700;
        font-size: .8125rem;
        border: none;
        border-bottom: 1px solid var(--border);
        padding: .85rem 1rem;
        white-space: nowrap;
    }

    .table tbody td {
        padding: .85rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--border);
        color: var(--text-muted);
    }

    .table tbody tr:last-child td {
        border-bottom: none;
    }

    .table tbody tr:hover {
        background: var(--bg-soft);
    }

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: transparent;
}

.table-responsive {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
    font-weight: 600;
    font-size: .75rem;
    padding: .35rem .7rem;
    border-radius: 8px;
    letter-spacing: 0;
}

    .badge.bg-primary {
        background: var(--accent) !important;
    }

    .badge.bg-success {
        background: var(--success-soft) !important;
        color: var(--success);
    }

    .badge.bg-danger {
        background: var(--danger-soft) !important;
        color: var(--danger);
    }

    .badge.bg-warning {
        background: var(--warning-soft) !important;
        color: var(--warning);
    }

    .badge.bg-info {
        background: var(--info-soft) !important;
        color: var(--info);
    }

    .badge.bg-secondary {
        background: var(--bg) !important;
        color: var(--text-muted);
    }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    gap: .25rem;
    margin: 0;
}

    .pagination .page-item .page-link {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: .45rem .8rem;
        color: var(--text-muted);
        font-weight: 600;
        font-size: .8125rem;
        background: var(--surface);
        transition: all .18s ease;
        min-width: 36px;
        text-align: center;
    }

        .pagination .page-item .page-link:hover {
            background: var(--bg);
            color: var(--text);
            border-color: var(--border-strong);
        }

    .pagination .page-item.active .page-link {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }

    .pagination .page-item.disabled .page-link {
        background: var(--bg);
        color: var(--text-subtle);
        border-color: var(--border);
    }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .875rem 1.125rem;
    font-size: .875rem;
    font-weight: 500;
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(6,118,71,.15);
}

.alert-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: rgba(180,35,24,.15);
}

.alert-warning {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: rgba(181,71,8,.15);
}

.alert-info {
    background: var(--info-soft);
    color: var(--info);
    border-color: rgba(23,92,211,.15);
}

/* ============================================================
   Modal
   ============================================================ */
.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.progress {
    height: .5rem;
    border-radius: 999px;
    background: var(--bg);
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
    background: var(--accent);
    transition: width .4s ease;
    font-size: .625rem;
    font-weight: 600;
    color: #fff;
    line-height: .5rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 4.5rem 0 3.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .35rem .9rem;
    letter-spacing: .01em;
}

    .eyebrow .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--success);
        box-shadow: 0 0 0 3px rgba(6,118,71,.12);
    }

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.45;
    letter-spacing: -.01em;
}

.hero p.lead-text {
    font-size: clamp(.9375rem, 1.6vw, 1.0625rem);
    color: var(--text-muted);
    max-width: 660px;
    line-height: 2;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-xs);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.stat-label {
    font-size: .75rem;
    color: var(--text-subtle);
    font-weight: 500;
}

/* ============================================================
   Section headings
   ============================================================ */
.section-head {
    margin-bottom: 2rem;
}

    .section-head .num {
        font-size: .75rem;
        font-weight: 700;
        color: var(--text-subtle);
        letter-spacing: .08em;
        display: block;
        margin-bottom: .35rem;
    }

    .section-head h2 {
        font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    }

    .section-head p {
        color: var(--text-muted);
        font-size: .875rem;
        margin: .5rem 0 0;
        max-width: 620px;
    }

/* ============================================================
   Product tiles
   ============================================================ */
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .75rem;
    height: 100%;
    padding: 1.25rem .625rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    color: var(--text);
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .tile:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
        color: var(--text);
    }

    .tile:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .tile .tile-icon {
        width: 56px;
        height: 56px;
        object-fit: contain;
        filter: grayscale(1);
        opacity: .72;
        transition: filter .28s ease, opacity .28s ease, transform .28s ease;
    }

    .tile:hover .tile-icon {
        filter: grayscale(0);
        opacity: 1;
        transform: scale(1.06);
    }

    .tile .tile-label {
        font-size: .8125rem;
        font-weight: 600;
        line-height: 1.6;
    }

    .tile .tile-meta {
        font-size: .6875rem;
        color: var(--text-subtle);
        font-weight: 500;
    }

/* ============================================================
   Feature list
   ============================================================ */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        display: flex;
        align-items: flex-start;
        gap: .625rem;
        padding: .5rem 0;
        font-size: .875rem;
        color: var(--text-muted);
    }

    .feature-list .check {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin-top: .35rem;
        border-radius: 50%;
        background: #eef0f3;
        color: var(--text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .feature-list .check svg {
            width: 11px;
            height: 11px;
        }

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

    .cta-strip h2 {
        font-size: clamp(1.125rem, 2.4vw, 1.5rem);
    }

    .cta-strip p {
        color: var(--text-muted);
        font-size: .875rem;
        max-width: 560px;
        margin: .75rem auto 1.5rem;
    }

/* ============================================================
   Trust / license
   ============================================================ */
.trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-xs);
}

.trust-badge {
    width: 64px;
    height: 64px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--text-muted);
    flex: 0 0 auto;
}

    .trust-badge svg {
        width: 26px;
        height: 26px;
    }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-title {
    font-size: .8125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-list li {
        font-size: .8125rem;
        color: var(--text-muted);
        padding: .3rem 0;
        line-height: 1.9;
    }

    .footer-list a {
        color: var(--text-muted);
        transition: color .18s ease;
    }

        .footer-list a:hover {
            color: var(--text);
        }

    .footer-list i {
        color: var(--text-subtle);
        margin-left: .35rem;
        width: 1.1rem;
    }

.footer-map {
    width: 100%;
    max-width: 190px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    filter: grayscale(1);
    opacity: .9;
    transition: filter .25s ease, opacity .25s ease;
}

    .footer-map:hover {
        filter: grayscale(0);
        opacity: 1;
    }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    font-size: .75rem;
    color: var(--text-subtle);
}

/* ============================================================
   Utility
   ============================================================ */
.text-muted {
    color: var(--text-muted) !important;
}

.text-subtle {
    color: var(--text-subtle) !important;
}

.bg-surface {
    background: var(--surface) !important;
}

.bg-soft {
    background: var(--bg-soft) !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .tile .tile-icon {
        width: 48px;
        height: 48px;
    }

    .offcanvas {
        border-radius: 0;
    }

    .offcanvas-header {
        border-bottom: 1px solid var(--border);
    }

    .offcanvas .nav-link {
        padding: .7rem .5rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: .9rem;
        color: var(--text-muted);
    }

        .offcanvas .nav-link:hover {
            background: var(--bg);
            color: var(--text);
        }

    .offcanvas .accordion-button {
        font-size: .9rem;
        font-weight: 600;
        padding: .75rem .5rem;
        color: var(--text-muted);
    }

        .offcanvas .accordion-button:not(.collapsed) {
            color: var(--text);
            background: var(--bg);
            box-shadow: none;
        }

        .offcanvas .accordion-button:focus {
            box-shadow: none;
        }

    .offcanvas .accordion-item {
        border: 0;
        border-bottom: 1px solid var(--border);
    }

    .offcanvas .accordion-body {
        padding: .5rem .5rem 1rem;
    }

        .offcanvas .accordion-body a {
            display: block;
            padding: .45rem .75rem;
            font-size: .8125rem;
            color: var(--text-muted);
            border-radius: 8px;
        }

            .offcanvas .accordion-body a:hover {
                background: var(--bg);
                color: var(--text);
            }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .hero {
        padding: 2.25rem 0 2rem;
    }

    .tile {
        padding: 1rem .5rem;
        gap: .5rem;
    }

        .tile .tile-icon {
            width: 42px;
            height: 42px;
        }

        .tile .tile-label {
            font-size: .75rem;
        }

    .navbar-brand img {
        max-height: 32px;
    }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
    .no-print,
    .topbar,
    .site-header,
    .site-footer,
    .btn {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: #fff !important;
    }
}
/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb-bar {
    font-size: .8125rem;
    color: var(--text-subtle);
    padding: 1rem 0 0;
}

    .breadcrumb-bar a {
        color: var(--text-muted);
        transition: color .18s ease;
    }

        .breadcrumb-bar a:hover {
            color: var(--text);
        }

    .breadcrumb-bar .sep {
        margin: 0 .5rem;
        opacity: .6;
    }

    .breadcrumb-bar .current {
        color: var(--text);
        font-weight: 600;
    }

/* ============================================================
   Hero image
   ============================================================ */
.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    display: block;
}

/* ============================================================
   Product cards (with description)
   ============================================================ */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    color: var(--text);
}

    .product-card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
        color: var(--text);
    }

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

    .product-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1);
        opacity: .9;
        transition: filter .3s ease, opacity .3s ease, transform .3s ease;
    }

.product-card:hover .product-thumb img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
    gap: .5rem;
}

.product-title {
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-desc {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .product-desc li {
        display: flex;
        align-items: flex-start;
        gap: .35rem;
        padding: .125rem 0;
    }

        .product-desc li::before {
            content: "";
            flex: 0 0 auto;
            width: 4px;
            height: 4px;
            margin-top: .6rem;
            border-radius: 50%;
            background: var(--text-subtle);
        }

.product-cta {
    margin-top: auto;
    padding-top: .75rem;
}

    .product-cta .btn {
        width: 100%;
    }

/* ============================================================
   Filter pills
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all .18s ease;
    cursor: pointer;
    text-decoration: none;
}

    .filter-pill:hover {
        border-color: var(--border-strong);
        color: var(--text);
    }

    .filter-pill.is-active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
    padding: 4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

    .empty-state .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        background: var(--bg);
        border-radius: 50%;
        color: var(--text-subtle);
        margin-bottom: 1rem;
        font-size: 1.75rem;
    }

/* ============================================================
   Contact cards
   ============================================================ */
.contact-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    color: var(--text);
}

    .contact-card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

    .contact-card h3 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text);
    }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}

    .contact-list li {
        padding: .4rem 0;
        border-bottom: 1px solid var(--border);
    }

        .contact-list li:last-child {
            border-bottom: 0;
        }

    .contact-list a,
    .contact-text {
        display: flex;
        align-items: flex-start;
        gap: .6rem;
        font-size: .875rem;
        color: var(--text-muted);
        text-decoration: none;
        transition: color .18s ease;
        line-height: 1.9;
        padding: .35rem 0;
    }

        .contact-list a:hover {
            color: var(--text);
        }

    .contact-list i {
        flex: 0 0 auto;
        width: 1.15rem;
        text-align: center;
        color: var(--text-subtle);
        font-size: 1rem;
        margin-top: .2rem;
        transition: color .18s ease;
    }

    .contact-list a:hover i {
        color: var(--text);
    }

    .contact-list span {
        word-break: break-word;
    }

.contact-note {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--text-subtle);
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

    .contact-note i {
        color: var(--text-muted);
    }

/* ============================================================
   Map
   ============================================================ */
.map-container {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    aspect-ratio: 16 / 9;
    min-height: 380px;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(1) contrast(1.05);
    transition: filter .35s ease;
}

.map-container:hover .map-frame {
    filter: grayscale(0.15) contrast(1);
}

@media (max-width: 767.98px) {
    .map-container {
        aspect-ratio: 4 / 3;
        min-height: 300px;
    }
}

/* ============================================================
   Working hours
   ============================================================ */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.hours-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .875rem;
    transition: border-color .18s ease, background-color .18s ease;
}

    .hours-item:hover {
        border-color: var(--border-strong);
        background: var(--bg);
    }

.hours-day {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: var(--text);
}

    .hours-day i {
        color: var(--text-subtle);
        font-size: .9375rem;
    }

.hours-time {
    font-weight: 500;
    color: var(--text-muted);
}

    .hours-time.muted {
        color: var(--text-subtle);
        font-style: italic;
    }

@media (max-width: 575.98px) {
    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }
}

/* ============================================================
   User Menu Offcanvas
   ============================================================ */
.user-menu-offcanvas {
    width: min(92vw, 400px) !important;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.user-menu-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.25rem;
    align-items: center;
}

.user-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.25rem;
}

.user-info {
    min-width: 0;
    flex: 1;
}

.user-name {
    font-weight: 700;
    font-size: .9375rem;
    color: var(--text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-phone {
    font-size: .75rem;
    color: var(--text-subtle);
    line-height: 1.4;
    margin-top: .15rem;
}

/* ===== Body ===== */
.user-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1rem 1.5rem;
    background: var(--bg-soft);
}

    /* Custom Scrollbar */
    .user-menu-body::-webkit-scrollbar {
        width: 6px;
    }

    .user-menu-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .user-menu-body::-webkit-scrollbar-thumb {
        background: var(--border-strong);
        border-radius: 3px;
    }

        .user-menu-body::-webkit-scrollbar-thumb:hover {
            background: var(--text-subtle);
        }

/* ===== Section ===== */
.user-menu-section {
    margin-bottom: 1.25rem;
}

    .user-menu-section:last-child {
        margin-bottom: 0;
    }

.user-menu-title {
    font-size: .6875rem;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 0 .5rem .5rem;
    display: flex;
    align-items: center;
}

    .user-menu-title i {
        font-size: .8125rem;
    }

/* ===== List ===== */
.user-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

    .user-menu-list li {
        border-bottom: 1px solid var(--border);
    }

        .user-menu-list li:last-child {
            border-bottom: 0;
        }

/* ===== Item ===== */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .18s ease;
    background: var(--surface);
}

    .user-menu-item:hover {
        background: var(--bg);
        color: var(--text);
    }

    .user-menu-item:focus {
        outline: none;
        background: var(--bg);
    }

.user-menu-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: .9375rem;
    transition: all .18s ease;
}

.user-menu-item:hover .user-menu-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.user-menu-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-arrow {
    flex: 0 0 auto;
    color: var(--text-subtle);
    font-size: .75rem;
    transition: transform .18s ease, color .18s ease;
}

.user-menu-item:hover .user-menu-arrow {
    color: var(--text);
    transform: translateX(-3px);
}

/* ===== Footer (Logout) ===== */
.user-menu-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 1rem;
    flex-shrink: 0;
}

    .user-menu-footer .btn {
        border-radius: 10px;
        padding: .75rem 1rem;
        font-weight: 600;
        font-size: .875rem;
    }

/* ===== Backdrop ===== */
.offcanvas-backdrop {
    background-color: rgba(16, 18, 23, .35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ===== Responsive ===== */
@media (max-width: 575.98px) {
    .user-menu-offcanvas {
        width: 88vw !important;
    }

    .user-menu-header {
        padding: 1rem 1rem;
    }

    .user-avatar {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .user-menu-body {
        padding: .875rem .875rem 1.25rem;
    }
}


/* ============================================================
   Auth Pages (Login / Register)
   ============================================================ */
.auth-section {
    padding: 2rem 0 3rem;
    background: var(--bg);
}

.min-vh-auth {
    min-height: calc(100vh - 200px);
}

/* ===== Header ===== */
.auth-header {
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
    line-height: 1.5;
}

.auth-subtitle {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0;
    padding: 0 1rem;
}

/* ===== Card ===== */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* ===== Field ===== */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .5rem;
}

    .auth-label i {
        color: var(--text-subtle);
        font-size: .9375rem;
    }

.auth-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .875rem;
    background: var(--surface);
    color: var(--text);
    transition: all .18s ease;
    font-family: inherit;
    line-height: 1.5;
}

    .auth-input::placeholder {
        color: var(--text-subtle);
    }

    .auth-input:hover {
        border-color: var(--border-strong);
    }

    .auth-input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(22, 24, 29, .08);
    }

/* Wrapper for password toggle */
.auth-input-wrap {
    position: relative;
}

    .auth-input-wrap .auth-input {
        padding-inline-end: 2.75rem;
    }

.auth-input-btn {
    position: absolute;
    top: 50%;
    inset-inline-end: .35rem;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text-subtle);
    font-size: 1rem;
    cursor: pointer;
    transition: all .18s ease;
}

    .auth-input-btn:hover {
        background: var(--bg);
        color: var(--text);
    }

    .auth-input-btn:focus {
        outline: none;
        color: var(--text);
    }

/* Error message */
.auth-error {
    display: block;
    font-size: .75rem;
    color: var(--danger);
    margin-top: .35rem;
    padding-inline-start: .25rem;
}

/* ===== Options Row ===== */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Custom checkbox */
.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .8125rem;
    color: var(--text-muted);
    user-select: none;
}

    .auth-check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.auth-check-box {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    position: relative;
    transition: all .18s ease;
}

.auth-check input:checked + .auth-check-box {
    background: var(--accent);
    border-color: var(--accent);
}

    .auth-check input:checked + .auth-check-box::after {
        content: '';
        position: absolute;
        top: 45%;
        right: 50%;
        transform: translate(50%, -50%) rotate(45deg);
        width: .3rem;
        height: .55rem;
        border: solid #fff;
        border-width: 0 0 2px 2px;
    }

.auth-check input:focus-visible + .auth-check-box {
    box-shadow: 0 0 0 3px rgba(22, 24, 29, .1);
}

.auth-check-label {
    line-height: 1.4;
}

/* ===== Submit Button ===== */
.auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 10px;
    font-size: .9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: var(--shadow-xs);
}

    .auth-submit:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

    .auth-submit:active {
        transform: translateY(0);
    }

    .auth-submit i {
        transition: transform .18s ease;
    }

    .auth-submit:hover i {
        transform: translateX(-3px);
    }

/* ===== Divider ===== */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

    .auth-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border);
    }

    .auth-divider span {
        position: relative;
        display: inline-block;
        padding: 0 .75rem;
        background: var(--surface);
        font-size: .75rem;
        color: var(--text-subtle);
    }

/* ===== Alt Link ===== */
.auth-alt {
    text-align: center;
    font-size: .8125rem;
    color: var(--text-muted);
}

.auth-alt-link {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-inline-start: .35rem;
    transition: gap .18s ease;
}

    .auth-alt-link:hover {
        color: var(--text);
        gap: .5rem;
    }

    .auth-alt-link i {
        font-size: .75rem;
    }

/* ===== Footer Note ===== */
.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: .75rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .75rem;
    color: var(--text-muted);
    text-align: center;
}

    .auth-footer i {
        color: var(--success);
        font-size: .9375rem;
        flex-shrink: 0;
    }

/* ===== Validation Summary Styling ===== */
.auth-card .alert.alert-danger {
    font-size: .8125rem;
    padding: .75rem 1rem;
    line-height: 1.7;
}

    .auth-card .alert.alert-danger ul {
        padding-inline-start: 1rem;
        margin: 0;
    }

    .auth-card .alert.alert-danger li {
        margin-bottom: .25rem;
    }

        .auth-card .alert.alert-danger li:last-child {
            margin-bottom: 0;
        }

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-section {
        padding: 1rem 0 2rem;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .auth-submit {
        padding: .75rem 1.25rem;
        font-size: .875rem;
    }

    .auth-footer {
        font-size: .6875rem;
    }
}

/* ============================================================
   Auth — Register Page Extensions
   ============================================================ */

/* Card بزرگ‌تر برای فرم‌های طولانی */
.auth-card-lg {
    padding: 2rem 2.25rem;
}

/* ===== Section Title ===== */
.auth-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

    .auth-section-title i {
        color: var(--text-subtle);
        font-size: .9375rem;
    }

/* ===== Required Asterisk ===== */
.auth-required {
    color: var(--danger);
    font-weight: 600;
    margin-inline-start: .15rem;
}

/* ===== Inline Link ===== */
.auth-link-inline {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color .18s ease;
}

    .auth-link-inline:hover {
        color: var(--accent-hover);
    }

/* ===== Block Checkbox (for terms) ===== */
.auth-check-block {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .875rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .8125rem;
    line-height: 1.9;
    cursor: pointer;
}

    .auth-check-block .auth-check-box {
        margin-top: .25rem;
    }

    .auth-check-block .auth-check-label {
        color: var(--text-muted);
        flex: 1;
    }

/* ===== Radio/Checkbox General in Auth ===== */
.auth-card .auth-check + .auth-check {
    margin-top: .75rem;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .auth-card-lg {
        padding: 1.5rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card-lg {
        padding: 1.25rem 1rem;
    }

    .auth-section-title {
        font-size: .75rem;
    }
}

/* ============================================================
   Admin Page Layout
   ============================================================ */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: .25rem 0 .5rem;
    line-height: 1.4;
}

.admin-page-subtitle {
    font-size: .875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.9;
    max-width: 600px;
}

.admin-page-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ============================================================
   Admin Toolbar (Filters + Search)
   ============================================================ */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

/* ===== Tabs ===== */
.admin-tabs {
    display: inline-flex;
    gap: .25rem;
    padding: .25rem;
    background: var(--bg);
    border-radius: 10px;
}

.admin-tab {
    padding: .5rem 1.1rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all .18s ease;
    text-decoration: none;
    white-space: nowrap;
}

    .admin-tab:hover {
        color: var(--text);
        background: rgba(255, 255, 255, .5);
    }

    .admin-tab.is-active {
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-xs);
    }

/* ===== Search ===== */
.admin-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
    flex: 1;
    max-width: 380px;
}

.admin-search-icon {
    position: absolute;
    inset-inline-start: .9rem;
    color: var(--text-subtle);
    font-size: .9375rem;
    pointer-events: none;
}

.admin-search-input {
    width: 100%;
    padding: .55rem 2.5rem .55rem 2.4rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font-size: .875rem;
    color: var(--text);
    font-family: inherit;
    transition: all .18s ease;
}

    .admin-search-input::placeholder {
        color: var(--text-subtle);
    }

    .admin-search-input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(22, 24, 29, .08);
    }

.admin-search-clear {
    position: absolute;
    inset-inline-end: .5rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: .8125rem;
    transition: all .18s ease;
}

    .admin-search-clear:hover {
        background: var(--border);
        color: var(--text);
    }

/* ===== Count Info ===== */
.admin-count-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--text-muted);
    padding: .75rem .25rem 0;
}

    .admin-count-info i {
        color: var(--text-subtle);
    }

/* ============================================================
   Category Admin Card
   ============================================================ */
.category-admin-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .category-admin-card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

    .category-admin-card.is-inactive {
        opacity: .7;
    }

        .category-admin-card.is-inactive:hover {
            opacity: 1;
        }

/* ===== Thumb ===== */
.category-admin-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

    .category-admin-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1);
        opacity: .9;
        transition: filter .3s ease, opacity .3s ease, transform .3s ease;
    }

.category-admin-card:hover .category-admin-thumb img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.category-admin-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 2rem;
    background: var(--bg-soft);
}

/* ===== Status Badge ===== */
.category-admin-badge {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    font-size: .6875rem;
    font-weight: 700;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

    .category-admin-badge i {
        font-size: .6875rem;
    }

    .category-admin-badge.badge-active {
        background: rgba(6, 118, 71, .92);
        color: #fff;
    }

    .category-admin-badge.badge-inactive {
        background: rgba(107, 114, 128, .92);
        color: #fff;
    }

/* ===== Body ===== */
.category-admin-body {
    flex: 1;
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.category-admin-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-admin-desc {
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.85em;
}

/* ===== Meta ===== */
.category-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding-top: .5rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.category-admin-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .6875rem;
    color: var(--text-subtle);
    font-weight: 500;
}

    .category-admin-meta-item i {
        font-size: .75rem;
        color: var(--text-muted);
    }

/* ===== Actions ===== */
.category-admin-actions {
    display: flex;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.category-admin-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .65rem .5rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
}

    .category-admin-btn:first-child {
        border-inline-end: 1px solid var(--border);
    }

    .category-admin-btn:hover {
        background: var(--bg);
        color: var(--text);
    }

    .category-admin-btn i {
        font-size: .875rem;
    }

    .category-admin-btn.danger:hover {
        background: rgba(180, 35, 24, .08);
        color: var(--danger);
    }

    .category-admin-btn.success:hover {
        background: rgba(6, 118, 71, .08);
        color: var(--success);
    }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767.98px) {
    .admin-page-header {
        padding: 1.25rem;
    }

    .admin-page-title {
        font-size: 1.25rem;
    }

    .admin-toolbar {
        padding: .875rem 1rem;
    }

    .admin-search {
        max-width: 100%;
    }

    .admin-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .admin-tab {
        flex: 1;
        text-align: center;
        padding: .5rem .5rem;
        font-size: .75rem;
    }
}

@media (max-width: 575.98px) {
    .admin-page-actions {
        width: 100%;
    }

        .admin-page-actions .btn {
            flex: 1;
        }

    .category-admin-actions {
        flex-direction: column;
    }

    .category-admin-btn:first-child {
        border-inline-end: 0;
        border-bottom: 1px solid var(--border);
    }
}

/* ============================================================
   Form Page (Create/Edit) Layout
   ============================================================ */

/* ===== Form Card ===== */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.form-card-header {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.form-card-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-card-header h3 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .2rem;
    line-height: 1.4;
}

.form-card-header p {
    font-size: .75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.8;
}

.form-card-body {
    padding: 1.5rem;
}

/* ===== Form Field ===== */
.form-field {
    margin-bottom: 1.25rem;
}

    .form-field:last-child {
        margin-bottom: 0;
    }

.form-label-custom {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .5rem;
}

    .form-label-custom .required {
        color: var(--danger);
        font-weight: 700;
        margin-inline-start: .15rem;
    }

/* ===== Form Input ===== */
.form-input-custom {
    width: 100%;
    padding: .75rem 1rem;
    font-size: .875rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all .18s ease;
    line-height: 1.5;
}

    .form-input-custom::placeholder {
        color: var(--text-subtle);
    }

    .form-input-custom:hover {
        border-color: var(--border-strong);
    }

    .form-input-custom:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(22, 24, 29, .08);
    }

/* ===== Form Hint ===== */
.form-hint {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    color: var(--text-subtle);
    margin-top: .5rem;
    line-height: 1.7;
}

    .form-hint i {
        font-size: .8125rem;
        color: var(--text-muted);
    }

/* ===== Form Error ===== */
.form-error {
    display: block;
    font-size: .75rem;
    color: var(--danger);
    margin-top: .35rem;
    padding-inline-start: .25rem;
    line-height: 1.6;
}

/* ============================================================
   Switch Card (Custom Checkbox)
   ============================================================ */
.switch-card {
    display: block;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

    .switch-card input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.switch-card-body {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .2s ease;
}

.switch-card:hover .switch-card-body {
    border-color: var(--border-strong);
    background: var(--bg);
}

.switch-card input:checked + .switch-card-body {
    background: var(--surface);
    border-color: var(--accent);
}

.switch-card-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all .2s ease;
}

.switch-card input:checked + .switch-card-body .switch-card-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.switch-card-text {
    flex: 1;
    min-width: 0;
}

.switch-card-title {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: .15rem;
}

.switch-card-sub {
    display: block;
    font-size: .6875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Toggle Switch Visual */
.switch-card-toggle {
    flex: 0 0 auto;
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--border-strong);
    border-radius: 999px;
    transition: background-color .2s ease;
}

    .switch-card-toggle::after {
        content: '';
        position: absolute;
        top: 2px;
        inset-inline-start: 2px;
        width: 18px;
        height: 18px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
        transition: transform .2s ease;
    }

.switch-card input:checked + .switch-card-body .switch-card-toggle {
    background: var(--accent);
}

    .switch-card input:checked + .switch-card-body .switch-card-toggle::after {
        transform: translateX(-18px);
    }

/* ============================================================
   Image Upload
   ============================================================ */
.image-upload-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    margin-bottom: .75rem;
}

    .image-upload-preview:hover,
    .image-upload-preview.is-dragover {
        border-color: var(--accent);
        background: var(--bg);
    }

    .image-upload-preview.has-image {
        border-style: solid;
        border-color: var(--border);
        cursor: default;
    }

.image-upload-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--text-subtle);
    font-size: .8125rem;
    text-align: center;
    padding: 1rem;
}

    .image-upload-preview-empty i {
        font-size: 2rem;
    }

.image-upload-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    opacity: .95;
    transition: filter .3s ease, opacity .3s ease;
}

.image-upload-preview:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Upload Button */
.image-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .65rem 1rem;
    font-size: .8125rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s ease;
    text-align: center;
}

    .image-upload-btn:hover {
        border-color: var(--border-strong);
        background: var(--bg);
    }

    .image-upload-btn input[type="file"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 0;
        height: 0;
    }

    .image-upload-btn i {
        font-size: 1rem;
        color: var(--text-muted);
    }

/* ============================================================
   Form Actions Card
   ============================================================ */
.form-actions-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 100px;
}

/* ============================================================
   TinyMCE Editor Container Styling
   ============================================================ */
.form-card-body .custom-editor-wrapper {
    border-radius: 10px;
    border-color: var(--border);
}

    .form-card-body .custom-editor-wrapper:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(22, 24, 29, .08);
    }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .form-actions-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .form-card-header {
        padding: 1rem 1.25rem;
    }

    .form-card-body {
        padding: 1.25rem;
    }

    .form-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .form-card-header h3 {
        font-size: .875rem;
    }

    .form-actions-card {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .form-card-body {
        padding: 1rem;
    }

    .switch-card-body {
        padding: .75rem .875rem;
    }

    .switch-card-toggle {
        width: 36px;
        height: 20px;
    }

        .switch-card-toggle::after {
            width: 16px;
            height: 16px;
        }

    .switch-card input:checked + .switch-card-body .switch-card-toggle::after {
        transform: translateX(-16px);
    }
}

/* ============================================================
   Edit Page Extensions
   ============================================================ */

/* Badge نمایش تصویر فعلی */
.image-current-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem .75rem;
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(6, 118, 71, .15);
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
}

    .image-current-badge i {
        font-size: .875rem;
    }

/* جداکننده در کارت Actions */
.form-actions-divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0 1rem;
}

    .form-actions-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border);
    }

    .form-actions-divider span {
        position: relative;
        display: inline-block;
        padding: 0 .75rem;
        background: var(--surface);
        font-size: .6875rem;
        font-weight: 600;
        color: var(--text-subtle);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

/* اطلاعات در کارت Actions */
.form-actions-info {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form-actions-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .75rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .75rem;
}

    .form-actions-info-item .label {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        color: var(--text-muted);
        font-weight: 500;
    }

        .form-actions-info-item .label i {
            color: var(--text-subtle);
            font-size: .8125rem;
        }

    .form-actions-info-item .value {
        font-weight: 700;
        color: var(--text);
    }

/* ============================================================
   Rich Content Sections (for Category/Page Description)
   ============================================================ */
.content-section {
    margin-bottom: 2.5rem;
}

    .content-section:last-child {
        margin-bottom: 0;
    }

/* ===== Section Header ===== */
.content-section-header {
    margin-bottom: 1.5rem;
}

.content-section-num {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-subtle);
    letter-spacing: .08em;
    margin-bottom: .35rem;
}

.content-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 .5rem;
}

.content-section-subtitle {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 2;
    margin: 0;
    max-width: 700px;
}

/* ===== Callouts ===== */
.content-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: var(--bg-soft);
    font-size: .875rem;
    line-height: 2;
}

.content-callout-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
}

.content-callout-body {
    flex: 1;
    color: var(--text-muted);
}

    .content-callout-body strong {
        color: var(--text);
        font-weight: 700;
    }

    .content-callout-body a {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.content-callout-warning {
    background: var(--warning-soft);
    border-color: rgba(181, 71, 8, .15);
}

    .content-callout-warning .content-callout-icon {
        background: var(--surface);
        color: var(--warning);
        border-color: rgba(181, 71, 8, .2);
    }

.content-callout-info {
    background: var(--info-soft);
    border-color: rgba(23, 92, 211, .15);
}

    .content-callout-info .content-callout-icon {
        background: var(--surface);
        color: var(--info);
        border-color: rgba(23, 92, 211, .2);
    }

.content-callout-success {
    background: var(--success-soft);
    border-color: rgba(6, 118, 71, .15);
}

    .content-callout-success .content-callout-icon {
        background: var(--surface);
        color: var(--success);
        border-color: rgba(6, 118, 71, .2);
    }

/* ===== Steps List ===== */
.content-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    counter-reset: step;
}

    .content-steps li {
        display: flex;
        align-items: flex-start;
        gap: .875rem;
        padding: 1rem 1.25rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        transition: border-color .18s ease;
    }

        .content-steps li:hover {
            border-color: var(--border-strong);
        }

.content-step-num {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
}

.content-step-body {
    flex: 1;
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 2;
    padding-top: .2rem;
}

    .content-step-body strong {
        color: var(--text);
        font-weight: 700;
    }

/* ===== Info Cards Grid ===== */
.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .content-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.content-info-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .content-info-card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.content-info-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.content-info-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .5rem;
}

.content-info-text {
    font-size: .8125rem;
    color: var(--text-muted);
    line-height: 2;
    margin: 0;
}

/* ===== FAQ Accordion (native details) ===== */
.content-faq {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.content-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .content-faq-item:hover {
        border-color: var(--border-strong);
    }

    .content-faq-item[open] {
        box-shadow: var(--shadow-sm);
    }

.content-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.9;
    user-select: none;
    transition: background-color .18s ease;
}

    /* stylelint-disable-next-line selector-pseudo-element-no-unknown */
    .content-faq-question::-webkit-details-marker {
        display: none;
    }

    .content-faq-question::marker {
        display: none;
    }

    .content-faq-question:hover {
        background: var(--bg-soft);
    }

.content-faq-arrow {
    flex: 0 0 auto;
    font-size: .875rem;
    color: var(--text-subtle);
    transition: transform .25s ease, color .25s ease;
}

.content-faq-item[open] .content-faq-arrow {
    transform: rotate(180deg);
    color: var(--text);
}

.content-faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 2;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

    .content-faq-answer p {
        margin-bottom: .875rem;
    }

        .content-faq-answer p:last-child {
            margin-bottom: 0;
        }

    .content-faq-answer strong {
        color: var(--text);
        font-weight: 700;
    }

    .content-faq-answer a {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px;
        font-weight: 600;
        transition: color .18s ease;
    }

        .content-faq-answer a:hover {
            color: var(--accent-hover);
        }

/* ===== Responsive ===== */
@media (max-width: 575.98px) {
    .content-section-title {
        font-size: 1.1rem;
    }

    .content-callout {
        padding: 1rem;
        gap: .75rem;
    }

    .content-callout-icon {
        width: 32px;
        height: 32px;
        font-size: .9375rem;
    }

    .content-steps li {
        padding: .875rem 1rem;
    }

    .content-step-num {
        width: 24px;
        height: 24px;
        font-size: .6875rem;
    }

    .content-info-card {
        padding: 1.25rem;
    }

    .content-faq-question {
        padding: 1rem 1rem;
        font-size: .875rem;
    }

    .content-faq-answer {
        padding: 0 1rem 1rem;
        padding-top: .875rem;
        font-size: .8125rem;
    }
}

.content-html {
    font-size: .9375rem;
    line-height: 2;
    color: var(--text-muted);
}

    .content-html h2,
    .content-html h3,
    .content-html h4 {
        color: var(--text);
        margin-top: 1.5rem;
        margin-bottom: .75rem;
    }

    .content-html p {
        margin-bottom: 1rem;
    }

    .content-html ul,
    .content-html ol {
        padding-inline-start: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-html a {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .content-html strong {
        color: var(--text);
        font-weight: 700;
    }

/* ============================================================
   Product Admin Card
   ============================================================ */
.product-admin-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .product-admin-card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

    .product-admin-card.is-inactive {
        opacity: .7;
    }

        .product-admin-card.is-inactive:hover {
            opacity: 1;
        }

/* ===== Thumb ===== */
.product-admin-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

    .product-admin-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1);
        opacity: .9;
        transition: filter .3s ease, opacity .3s ease, transform .3s ease;
    }

.product-admin-card:hover .product-admin-thumb img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.product-admin-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 2.5rem;
    background: var(--bg-soft);
}

/* ===== Image Count Badge ===== */
.product-admin-img-count {
    position: absolute;
    bottom: .75rem;
    inset-inline-end: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .55rem;
    background: rgba(22, 24, 29, .75);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    .product-admin-img-count i {
        font-size: .75rem;
    }

/* ===== Body ===== */
.product-admin-body {
    flex: 1;
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.product-admin-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.85em;
}

.product-admin-desc {
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.85em;
}

/* ===== Price ===== */
.product-admin-price {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    margin-top: .25rem;
    padding: .5rem 0;
    border-top: 1px solid var(--border);
}

.product-admin-price-value {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.product-admin-price-unit {
    font-size: .6875rem;
    color: var(--text-subtle);
    font-weight: 500;
}

/* ===== Meta ===== */
.product-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding-top: .35rem;
    margin-top: auto;
}

/* ===== Actions (3 buttons) ===== */
.product-admin-card .category-admin-actions .category-admin-btn {
    padding: .6rem .35rem;
    font-size: .6875rem;
    gap: .25rem;
}

    .product-admin-card .category-admin-actions .category-admin-btn i {
        font-size: .8125rem;
    }

/* ===== Responsive tweaks ===== */
@media (max-width: 575.98px) {
    .product-admin-card .category-admin-actions {
        flex-direction: row;
    }

        .product-admin-card .category-admin-actions .category-admin-btn:first-child {
            border-inline-end: 1px solid var(--border);
            border-bottom: 0;
        }

        .product-admin-card .category-admin-actions .category-admin-btn span {
            display: none;
        }

        .product-admin-card .category-admin-actions .category-admin-btn i {
            font-size: 1rem;
        }
}

/* ============================================================
   Attribute Block
   ============================================================ */
.attribute-block {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color .2s ease;
}

    .attribute-block:hover {
        border-color: var(--border-strong);
    }

    .attribute-block:last-child {
        margin-bottom: 1rem;
    }

.attribute-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.attribute-block-num {
    font-size: .8125rem;
    font-weight: 700;
    color: var(--text);
}

.attribute-block-remove {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: .75rem;
    transition: all .18s ease;
}

    .attribute-block-remove:hover {
        background: var(--danger-soft);
        border-color: rgba(180, 35, 24, .15);
        color: var(--danger);
    }

.attribute-block-body {
    padding: 1rem;
}

/* Compact switch */
.switch-card-sm .switch-card-body {
    padding: .65rem .875rem;
    background: var(--surface);
}

.switch-card-sm .switch-card-title {
    font-size: .75rem;
}

/* ============================================================
   Attribute Values
   ============================================================ */
.attribute-values-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.attribute-values-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.attribute-values-title {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.btn-add-value {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
}

    .btn-add-value:hover {
        border-color: var(--border-strong);
        background: var(--bg);
    }

    .btn-add-value i {
        font-size: .8125rem;
    }

/* Value Row */
.value-row {
    margin-bottom: .5rem;
}

    .value-row:last-child {
        margin-bottom: 0;
    }

.value-row-fields {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    padding: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .18s ease;
}

    .value-row-fields:hover {
        border-color: var(--border-strong);
    }

.value-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

    .value-field label {
        font-size: .6875rem;
        font-weight: 600;
        color: var(--text-subtle);
        padding-inline-start: .15rem;
    }

.value-field-lg {
    flex: 2;
}

.value-field:not(.value-field-lg):not(.value-field-sm) {
    flex: 1;
}

.value-field-sm {
    flex: 0 0 80px;
}

.form-input-sm {
    padding: .5rem .65rem;
    font-size: .8125rem;
    border-radius: 8px;
}

.value-row-remove {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: .8125rem;
    transition: all .18s ease;
}

    .value-row-remove:hover {
        background: var(--danger-soft);
        color: var(--danger);
        border-color: rgba(180, 35, 24, .15);
    }

/* ============================================================
   Category Picker
   ============================================================ */
.category-picker {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 320px;
    overflow-y: auto;
    padding: .25rem;
}

.category-picker-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .875rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .18s ease;
    user-select: none;
}

    .category-picker-item:hover {
        border-color: var(--border-strong);
        background: var(--bg);
        color: var(--text);
    }

    .category-picker-item input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.category-picker-box {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    position: relative;
    transition: all .18s ease;
}

.category-picker-item input:checked ~ .category-picker-box {
    background: var(--accent);
    border-color: var(--accent);
}

    .category-picker-item input:checked ~ .category-picker-box::after {
        content: '';
        position: absolute;
        top: 45%;
        right: 50%;
        transform: translate(50%, -50%) rotate(45deg);
        width: .3rem;
        height: .55rem;
        border: solid #fff;
        border-width: 0 0 2px 2px;
    }

.category-picker-item input:checked ~ .category-picker-label {
    color: var(--text);
    font-weight: 600;
}

.category-picker-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty category */
.category-picker-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

    .category-picker-empty i {
        font-size: 1.5rem;
        color: var(--text-subtle);
        display: block;
        margin-bottom: .5rem;
    }

    .category-picker-empty p {
        font-size: .75rem;
        color: var(--text-muted);
        margin-bottom: .75rem;
    }

/* ============================================================
   Image Preview Grid
   ============================================================ */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    margin-bottom: .75rem;
}

    .image-preview-grid:empty {
        display: none;
    }

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

    .image-preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1);
        opacity: .95;
        transition: filter .3s ease, opacity .3s ease;
    }

    .image-preview-item:hover img {
        filter: grayscale(0);
        opacity: 1;
    }

    .image-preview-item.is-cover {
        border-color: var(--accent);
        border-width: 2px;
    }

.image-preview-badge {
    position: absolute;
    top: .4rem;
    inset-inline-start: .4rem;
    padding: .2rem .5rem;
    background: var(--accent);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: .03em;
}

.image-preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .35rem .5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    color: #fff;
    font-size: .625rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767.98px) {
    .value-row-fields {
        flex-wrap: wrap;
    }

    .value-field-lg {
        flex: 1 1 100%;
    }

    .value-field:not(.value-field-lg):not(.value-field-sm) {
        flex: 1 1 calc(50% - .25rem);
    }

    .value-field-sm {
        flex: 1 1 100%;
    }

    .value-row-remove {
        flex: 0 0 100%;
        width: 100%;
        margin-top: .25rem;
    }
}

/* ============================================================
   Attribute Block — Saved Badge
   ============================================================ */
.attribute-block-saved {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-inline-start: .5rem;
    padding: .15rem .5rem;
    background: var(--success-soft);
    color: var(--success);
    font-size: .625rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: .02em;
}

    .attribute-block-saved i {
        font-size: .6875rem;
    }

/* ============================================================
   Existing Images Grid
   ============================================================ */
.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .875rem;
}

@media (max-width: 767.98px) {
    .existing-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .existing-images-grid {
        grid-template-columns: 1fr;
    }
}

.existing-image-item {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .existing-image-item:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-sm);
    }

    .existing-image-item.is-cover {
        border-color: var(--accent);
        border-width: 2px;
        box-shadow: 0 0 0 3px rgba(22, 24, 29, .06);
    }

    .existing-image-item.is-marked-for-delete {
        opacity: .4;
        filter: grayscale(1);
    }

        .existing-image-item.is-marked-for-delete::after {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient( 45deg, rgba(180, 35, 24, .08), rgba(180, 35, 24, .08) 10px, transparent 10px, transparent 20px );
            pointer-events: none;
        }

.existing-image-item {
    position: relative;
}

/* Thumb */
.existing-image-thumb {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-soft);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

    .existing-image-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1);
        opacity: .9;
        transition: filter .3s ease, opacity .3s ease, transform .3s ease;
    }

.existing-image-item:hover .existing-image-thumb img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}

.existing-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 2rem;
}

/* Cover Badge */
.existing-image-badge {
    position: absolute;
    top: .5rem;
    inset-inline-start: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .55rem;
    background: var(--accent);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

    .existing-image-badge i {
        font-size: .625rem;
    }

/* Body */
.existing-image-body {
    padding: .75rem .875rem;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.existing-image-name {
    font-size: .6875rem;
    color: var(--text-subtle);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* Controls */
.existing-image-controls {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.existing-image-radio,
.existing-image-checkbox {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: .35rem .55rem;
    border-radius: 6px;
    transition: all .18s ease;
    user-select: none;
    flex: 1;
    justify-content: center;
}

    .existing-image-radio:hover,
    .existing-image-checkbox:hover {
        background: var(--bg);
        color: var(--text);
    }

    .existing-image-radio input,
    .existing-image-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.existing-image-radio-box {
    flex: 0 0 auto;
    width: .95rem;
    height: .95rem;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    position: relative;
    transition: all .18s ease;
}

.existing-image-radio input:checked ~ .existing-image-radio-box {
    border-color: var(--accent);
    background: var(--accent);
}

    .existing-image-radio input:checked ~ .existing-image-radio-box::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        width: .35rem;
        height: .35rem;
        background: #fff;
        border-radius: 50%;
    }

.existing-image-radio input:checked ~ span:last-child {
    color: var(--text);
}

.existing-image-checkbox-box {
    flex: 0 0 auto;
    width: .95rem;
    height: .95rem;
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    background: var(--surface);
    position: relative;
    transition: all .18s ease;
}

.existing-image-checkbox input:checked ~ .existing-image-checkbox-box {
    background: var(--danger);
    border-color: var(--danger);
}

    .existing-image-checkbox input:checked ~ .existing-image-checkbox-box::after {
        content: '';
        position: absolute;
        top: 45%;
        right: 50%;
        transform: translate(50%, -50%) rotate(45deg);
        width: .28rem;
        height: .5rem;
        border: solid #fff;
        border-width: 0 0 2px 2px;
    }

.existing-image-checkbox input:checked ~ span:last-child {
    color: var(--danger);
}

/* Display Order */
.existing-image-order {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
}

    .existing-image-order label {
        font-size: .6875rem;
        font-weight: 600;
        color: var(--text-subtle);
        margin: 0;
        flex: 0 0 auto;
    }

    .existing-image-order input {
        flex: 1;
    }