:root {
    --bg: #FFFFFF;
    --bg-soft: #F5F4F0;
    --panel: #FFFFFF;
    --line: #E3E1DA;
    --text: #201F1D;
    --muted: #716D67;
    --accent: #D9930F;
    --accent-dim: #B87908;
    --accent-soft: #FBEBCB;
    --steel: #2F5D78;
    --danger: #B14B33;
    --radius: 2px;
    --maxw: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.55;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.logo .mark {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--accent-dim);
    font-size: 0.95rem;
}

nav.main-nav {
    display: flex;
    gap: 34px;
}

nav.main-nav a {
    font-size: 0.94rem;
    color: var(--muted);
    font-weight: 500;
    transition: color .15s ease;
}

nav.main-nav a.active, nav.main-nav a:hover {
    color: var(--text);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-tag {
    font-size: 0.88rem;
    color: var(--muted);
    direction: ltr;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all .15s ease;
    white-space: nowrap;
}

.btn-solid {
    background: var(--accent);
    color: #201F1D;
}

.btn-solid:hover {
    background: var(--accent-dim);
    color: #fff;
}

.page-header {
    position: relative;
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
    direction: ltr;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--steel);
}

h1.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 14px;
    max-width: 640px;
}

.page-sub {
    color: var(--muted);
    max-width: 520px;
    font-size: 1rem;
}

section {
    padding: 64px 0 96px;
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 19, 17, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    width: 100%;
    max-width: 720px;
}

.lightbox-slide {
    aspect-ratio: 4/3;
    background: repeating-linear-gradient(45deg, #2A2D31 0 2px, transparent 2px 14px), #201F1D;
    border: 1px solid #3B3F45;
    position: relative;
    margin-bottom: 16px;
}

.lightbox-slide .crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

.lightbox-slide .crosshair::before, .lightbox-slide .crosshair::after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.lightbox-slide .crosshair::before {
    width: 1px;
    height: 50px;
    top: -7px;
    left: 50%;
}

.lightbox-slide .crosshair::after {
    height: 1px;
    width: 50px;
    left: -7px;
    top: 50%;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #fff;
}

.lightbox-nav button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
}

.lightbox-nav button:hover {
    border-color: #fff;
}

.lightbox-nav span {
    font-size: 0.86rem;
    direction: ltr;
    color: #C9C6BF;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 1rem;
}

.lightbox-close:hover {
    border-color: #fff;
}

.cta-banner {
    background: var(--text);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-banner p {
    color: #C9C6BF;
    margin-bottom: 28px;
}

.cta-banner .btn-solid {
    background: var(--accent);
}

footer {
    padding: 44px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}


/* ===================================================================
   بخش صفحه‌ی فروشگاهی نمونه‌کارها (project.blade.php)
   این بخش باید دقیقاً با کلاس‌های استفاده‌شده در آن فایل یکی باشد.
   =================================================================== */

.shop-layout {
    --shop-border: #e3e1da;
    --shop-radius: 4px;
    --shop-muted: var(--muted);
    --shop-accent: var(--accent-dim);
    --shop-btn-bg: var(--bg-soft);
    --shop-btn-color: var(--text);

    display: grid;
    grid-template-columns: 300px 1fr;   /* فیلتر راست، گرید چپ */
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-filters {
        position: static;
        order: 2;
    }
    .shop-main {
        order: 1;
    }
}

/* ---------- سایدبار فیلتر ---------- */
.shop-filters {
    position: sticky;
    top: 20px;
}

.filter-box {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 18px;
    background: var(--panel);
}

.filter-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.filter-box-head h3 {
    margin: 0;
    font-size: 1rem;
}

.filter-clear {
    background: none;
    border: none;
    color: var(--shop-accent);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.filter-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
}

.filter-sep {
    height: 1px;
    background: var(--shop-border);
    margin: 14px 0;
}

.filter-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.filter-group-head .chevron {
    display: inline-block;
    transition: transform .2s ease;
}

.filter-group-head.collapsed .chevron {
    transform: rotate(180deg);
}

.filter-group-body {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
}

.filter-group-body.collapsed {
    display: none;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
}

.filter-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--shop-accent);
    order: -1;
}

.filter-check span {
    flex: 1;
}

.filter-count {
    font-style: normal;
    color: var(--shop-muted);
    font-size: 0.72rem;
}

/* ---------- نوار مرتب‌سازی ---------- */
.sort-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    background: var(--panel);
}

.sort-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-inline-start: auto;
}

.sort-link {
    background: none;
    border: none;
    font-size: 0.82rem;
    color: var(--shop-muted);
    font-weight: 500;
    padding: 0;
}

.sort-link.active {
    color: var(--shop-accent);
    font-weight: 700;
}

.sort-sep {
    width: 1px;
    height: 14px;
    background: var(--shop-border);
}

.toolbar-meta {
    font-size: 0.82rem;
    color: var(--shop-muted);
    margin-bottom: 14px;
}

/* ---------- گرید محصولات ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-card.hidden {
    display: none;
}

.product-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    cursor: pointer;
    background: #fff;
}

.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-body {
    padding: 4px 14px 12px;
}

.product-title {
    font-size: 0.94rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
}

.product-price {
    color: var(--shop-accent);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.product-cta {
    display: block;
    background: var(--shop-btn-bg);
    color: var(--shop-btn-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px;
    margin: 0 14px 14px;
    border-radius: var(--shop-radius);
}

.product-cta:hover {
    background: var(--accent-soft);
}

/* ---------- صفحه‌بندی و حالت خالی ---------- */
.shop-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: var(--shop-muted);
    padding: 40px 0;
}
@media (max-width: 960px) {
    nav.main-nav {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns:repeat(2, 1fr);
    }

    h1.page-title {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
