/* =====================================================================
   متالینو دکور — تم فروشگاه (ذغالی + برنجی)
   رنگ‌ها از «ظاهر سایت» در پنل ادمین قابل تغییرند (SiteStyles)
   ===================================================================== */

body.site {
    --md-accent: #b08d57;
    --md-accent-rgb: 176, 141, 87;
    --md-accent-strong: color-mix(in srgb, var(--md-accent) 82%, #000);
    --md-accent-soft: color-mix(in srgb, var(--md-accent) 12%, #fff);
    --md-dark: #1c1a17;
    --md-dark-2: color-mix(in srgb, var(--md-dark) 86%, #fff);
    --md-cream: #f7f4ef;
    --md-text: #2a2621;
    --md-muted: #8a8378;
    --md-border: #ece6dc;
    --md-radius: 18px;
    --md-shadow: 0 10px 30px -12px rgba(28, 26, 23, .18);
    --md-shadow-lg: 0 24px 50px -20px rgba(28, 26, 23, .35);

    --vz-primary: var(--md-accent);
    --vz-primary-rgb: var(--md-accent-rgb);
    --vz-primary-bg-subtle: var(--md-accent-soft);
    --vz-primary-text-emphasis: var(--md-accent-strong);
    --vz-link-color: var(--md-accent-strong);
    --vz-link-color-rgb: var(--md-accent-rgb);
    --vz-link-hover-color: var(--md-dark);
    --vz-body-color: var(--md-text);
    color: var(--md-text);
    background-color: #fff;
}

body.site { --md-heading: var(--md-text); }
body.site h1, body.site h2, body.site h3, body.site h4, body.site h5, body.site h6 { color: var(--md-heading); }
.home-hero, .page-hero, .cat-tile, .process-section, .cta-band, .site-footer { --md-heading: #fff; }

/* بنرهای تمام‌عرض بلافاصله زیر هدر ثابت قرار می‌گیرند (ارتفاع هدر با JS اندازه‌گیری می‌شود) */
.layout-wrapper.landing .main-content.landing-main:has(> .home-hero, > .page-hero) { padding-top: var(--nav-h, 61px); }

/* ---------- دکمه‌ها ---------- */
body.site .btn { border-radius: 12px; font-weight: 500; }
body.site .btn-primary {
    --vz-btn-bg: var(--md-accent);
    --vz-btn-border-color: var(--md-accent);
    --vz-btn-hover-bg: var(--md-accent-strong);
    --vz-btn-hover-border-color: var(--md-accent-strong);
    --vz-btn-active-bg: var(--md-accent-strong);
    --vz-btn-active-border-color: var(--md-accent-strong);
    --vz-btn-disabled-bg: var(--md-accent);
    --vz-btn-disabled-border-color: var(--md-accent);
    --vz-btn-focus-shadow-rgb: var(--md-accent-rgb);
    box-shadow: 0 8px 20px -10px rgba(var(--md-accent-rgb), .9);
}
body.site .btn-outline-primary {
    --vz-btn-color: var(--md-accent-strong);
    --vz-btn-border-color: var(--md-accent);
    --vz-btn-hover-bg: var(--md-accent);
    --vz-btn-hover-border-color: var(--md-accent);
    --vz-btn-hover-color: #fff;
    --vz-btn-active-bg: var(--md-accent-strong);
    --vz-btn-active-border-color: var(--md-accent-strong);
}
body.site .btn-dark-brand {
    --vz-btn-color: #fff;
    --vz-btn-bg: var(--md-dark);
    --vz-btn-border-color: var(--md-dark);
    --vz-btn-hover-color: #fff;
    --vz-btn-hover-bg: var(--md-dark-2);
    --vz-btn-hover-border-color: var(--md-dark-2);
    --vz-btn-active-bg: var(--md-dark-2);
    --vz-btn-active-color: #fff;
}
body.site .btn-glass {
    --vz-btn-color: #fff;
    --vz-btn-bg: rgba(255, 255, 255, .08);
    --vz-btn-border-color: rgba(255, 255, 255, .45);
    --vz-btn-hover-color: var(--md-dark);
    --vz-btn-hover-bg: #fff;
    --vz-btn-hover-border-color: #fff;
    --vz-btn-active-bg: #fff;
    --vz-btn-active-color: var(--md-dark);
    backdrop-filter: blur(6px);
}
body.site .form-control:focus,
body.site .form-select:focus {
    border-color: rgba(var(--md-accent-rgb), .6);
    box-shadow: 0 0 0 .2rem rgba(var(--md-accent-rgb), .15);
}
body.site .page-link { --vz-pagination-active-bg: var(--md-accent); --vz-pagination-active-border-color: var(--md-accent); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--md-accent-strong);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--md-accent); border-radius: 2px; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 700; margin: .35rem 0 0; }
.section-head p { color: var(--md-muted); margin: .4rem 0 0; }
.link-arrow { color: var(--md-text); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow:hover { color: var(--md-accent-strong); }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(-4px); }

/* ---------- نوار باریک کد تخفیف (بالای هدر) ---------- */
.discount-promo-bar {
    width: 100%;
    color: #fff;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.4;
    border: 0;
    margin: 0;
}
.discount-promo-bar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 34px;
    padding: .35rem 2.6rem .35rem 1rem;
    text-align: center;
}
.discount-promo-bar__text {
    max-width: 56rem;
}
.discount-promo-bar__close {
    position: absolute;
    inset-inline-end: .55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}
.discount-promo-bar__close:hover { background: rgba(0, 0, 0, .32); }

/* ---------- هدر ---------- */
.layout-wrapper.landing nav.navbar.navbar-landing,
.layout-wrapper.landing .navbar-landing {
    background: rgba(255, 255, 255, .9) !important;
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    box-shadow: 0 1px 0 var(--md-border), 0 8px 24px -18px rgba(28, 26, 23, .35);
    padding: .55rem 0;
}
.layout-wrapper.landing .navbar-landing:has(.discount-promo-bar),
.layout-wrapper.landing .navbar-landing:has(.promo-header-bar) {
    padding-top: 0;
}
.layout-wrapper.landing .navbar-landing:has(.discount-promo-bar) > .container,
.layout-wrapper.landing .navbar-landing:has(.promo-header-bar) > .container {
    padding-top: .55rem;
}
.layout-wrapper.landing .navbar-landing .navbar-nav .nav-link {
    color: var(--md-text) !important;
    font-weight: 500;
    font-size: .95rem !important;
    padding: .6rem 1rem !important;
    position: relative;
}
.layout-wrapper.landing .navbar-landing .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 1rem;
    bottom: .2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--md-accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.layout-wrapper.landing .navbar-landing .navbar-nav .nav-link:hover::after,
.layout-wrapper.landing .navbar-landing .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.layout-wrapper.landing .navbar-landing .navbar-nav .nav-link.active { color: var(--md-accent-strong) !important; }
.navbar-landing .header-actions .btn { border-radius: 999px; padding-inline: 1rem; }
.navbar-landing .header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-cream);
    color: var(--md-text);
    font-size: 1.15rem;
    position: relative;
    transition: background .2s ease, color .2s ease;
}
.navbar-landing .header-icon-btn:hover { background: var(--md-accent); color: #fff; }
.header-icon-btn .cart-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--md-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.header-icon-btn:hover .cart-count { background: var(--md-dark); }

/* ---------- کارت محصول ---------- */
.product-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--md-shadow-lg); border-color: transparent; }
.product-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--md-cream);
    overflow: hidden;
}
.product-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .45s ease, transform .6s ease;
}
.product-card-media .img-alt { opacity: 0; }
.product-card:hover .product-card-media .img-alt { opacity: 1; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-media .no-image { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c9c1b4; font-size: 2.5rem; }
.product-card.is-out .product-card-media img { filter: grayscale(.6); opacity: .75; }
.product-card-badges { position: absolute; top: .75rem; inset-inline-start: .75rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; z-index: 2; }
.product-card-badges .badge { border-radius: 999px; padding: .38em .75em; font-weight: 600; font-size: .72rem; }
.badge-new { background: var(--md-dark); color: #fff; }
.badge-out { background: rgba(255, 255, 255, .92); color: var(--md-text); }
body.site .product-card .discount-percent-badge { background: #c2410c; color: #fff; }

.product-card-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-card-cat { color: var(--md-muted); font-size: .75rem; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-title { font-size: 1rem; font-weight: 600; line-height: 1.6; margin: 0 0 .5rem; }
.product-card-title a { color: var(--md-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a:hover { color: var(--md-accent-strong); }
.product-card-swatches { display: flex; align-items: center; gap: .3rem; margin-bottom: .6rem; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); box-shadow: inset 0 0 0 2px #fff; }
.swatch-more { font-size: .7rem; color: var(--md-muted); margin-inline-start: .15rem; }
.product-card-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
.product-card-price .from { font-size: .75rem; color: var(--md-muted); }
.product-card-price .amount { font-size: 1.12rem; font-weight: 700; color: var(--md-text); }
.product-card-price .cur { font-size: .72rem; color: var(--md-muted); }
.product-card-price del { font-size: .8rem; color: #b3aca1; width: 100%; }
.product-card .d-grid.mt-3 { margin-top: .85rem !important; }
.product-card .btn { border-radius: 12px; font-size: .85rem; padding-block: .55rem; white-space: nowrap; }
.product-card a.btn-primary {
    --vz-btn-bg: var(--md-dark);
    --vz-btn-border-color: var(--md-dark);
    --vz-btn-hover-bg: var(--md-accent);
    --vz-btn-hover-border-color: var(--md-accent);
    box-shadow: none;
}

/* ---------- بنر صفحات داخلی ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(600px 240px at 12% 120%, rgba(var(--md-accent-rgb), .35), transparent 70%),
        radial-gradient(500px 260px at 95% -40%, rgba(var(--md-accent-rgb), .22), transparent 70%),
        var(--md-dark);
    padding: 2.6rem 0 2.4rem;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, #000, transparent);
    pointer-events: none;
}
.page-hero .container-xxl { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin: .4rem 0 .35rem; }
.page-hero p { color: rgba(255, 255, 255, .7); margin: 0; }
.page-hero .breadcrumb { margin: 0; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255, 255, 255, .6); font-size: .85rem; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: var(--md-accent); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .35); }

/* ---------- فروشگاه ---------- */
.shop-filters-panel { position: sticky; top: 96px; }
.filter-block { background: #fff; border: 1px solid var(--md-border); border-radius: var(--md-radius); padding: 1.1rem 1.1rem 1rem; margin-bottom: 1rem; }
.filter-block h6 { font-size: .9rem; font-weight: 700; margin-bottom: .8rem; display: flex; align-items: center; gap: .45rem; }
.filter-block h6 i { color: var(--md-accent); }
.cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .7rem;
    border-radius: 10px;
    color: var(--md-text);
    font-size: .9rem;
    transition: background .2s ease, color .2s ease;
}
.cat-link:hover { background: var(--md-cream); color: var(--md-text); }
.cat-link.active { background: var(--md-dark); color: #fff; }
.cat-link.active .count { background: rgba(255, 255, 255, .15); color: #fff; }
.cat-link.is-child { padding-inline-start: 1.6rem; font-size: .84rem; color: #5f594f; position: relative; }
.cat-link.is-child::before { content: ""; position: absolute; inset-inline-start: .8rem; top: 50%; width: 6px; height: 1px; background: #c9c1b4; }
.cat-link.is-child.active { color: #fff; }
.cat-link .count { font-size: .7rem; min-width: 26px; text-align: center; padding: .1rem .45rem; border-radius: 999px; background: var(--md-cream); color: var(--md-muted); }
.color-filter { display: flex; flex-wrap: wrap; gap: .55rem; }
.color-filter a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: inset 0 0 0 3px #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}
.color-filter a:hover { transform: scale(1.1); }
.color-filter a.active { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--md-accent); }
.color-filter a.color-name { width: auto; height: 30px; padding: 0 .75rem; border-radius: 999px; box-shadow: none; display: inline-flex; align-items: center; font-size: .78rem; color: var(--md-text); background: var(--md-cream); }
.color-filter a.color-name.active { background: var(--md-dark); color: #fff; }
.price-filter .form-control { border-radius: 10px; font-size: .85rem; }
.price-filter .input-group-text { background: var(--md-cream); border-color: var(--md-border); font-size: .75rem; color: var(--md-muted); }

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    background: #fff;
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius);
    padding: .75rem .9rem;
    margin-bottom: 1rem;
}
.shop-toolbar .result-count { color: var(--md-muted); font-size: .85rem; }
.shop-toolbar .result-count strong { color: var(--md-text); }
.sort-pills { display: flex; flex-wrap: wrap; gap: .3rem; background: var(--md-cream); padding: .25rem; border-radius: 12px; }
.sort-pills a { padding: .35rem .8rem; border-radius: 9px; font-size: .8rem; color: #5f594f; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.sort-pills a:hover { color: var(--md-text); }
.sort-pills a.active { background: #fff; color: var(--md-text); font-weight: 600; box-shadow: 0 2px 8px -3px rgba(28, 26, 23, .25); }
.shop-search { position: relative; min-width: 220px; }
.shop-search input { border-radius: 12px; padding-inline-start: 2.2rem; height: 38px; background: var(--md-cream); border-color: transparent; }
.shop-search input:focus { background: #fff; }
.shop-search i { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); color: var(--md-muted); pointer-events: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .45rem .3rem .75rem;
    border-radius: 999px;
    background: var(--md-accent-soft);
    color: var(--md-accent-strong);
    font-size: .78rem;
    font-weight: 500;
}
.filter-chip i { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--md-accent-rgb), .2); font-size: .8rem; }
.filter-chip:hover { background: var(--md-accent); color: #fff; }
.filter-chip:hover i { background: rgba(255, 255, 255, .25); }
.empty-shop { text-align: center; padding: 4rem 1rem; background: #fff; border: 1px dashed var(--md-border); border-radius: var(--md-radius); }
.empty-shop i { font-size: 3rem; color: #d6cec2; }
.shop-pagination .page-link { border-radius: 10px !important; margin: 0 .2rem; border: 1px solid var(--md-border); color: var(--md-text); min-width: 40px; text-align: center; }
.shop-pagination .page-item.active .page-link { background: var(--md-dark); border-color: var(--md-dark); color: #fff; }

@media (max-width: 991.98px) {
    .shop-filters-panel { position: static; }
    .offcanvas-lg .offcanvas-body .filter-block { border: 0; padding-inline: 0; border-bottom: 1px solid var(--md-border); border-radius: 0; }
}

/* ---------- صفحه اصلی: بنر ---------- */
.home-hero { position: relative; background: var(--md-dark); overflow: hidden; }
.home-hero .carousel, .home-hero .carousel-inner, .home-hero .carousel-item { height: 100%; }
.home-hero-frame { position: relative; aspect-ratio: 1024 / 389; min-height: 420px; max-height: 82vh; width: 100%; }
.home-hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 520px at 22% 40%, rgba(var(--md-accent-rgb), .28), transparent 65%),
        radial-gradient(420px 420px at 85% 75%, rgba(var(--md-accent-rgb), .16), transparent 70%),
        var(--md-dark);
}
.home-hero-fallback::before, .home-hero-fallback::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--md-accent-rgb), .35);
}
.home-hero-fallback::before { width: 420px; height: 420px; inset-inline-end: 8%; top: 50%; transform: translateY(-50%); }
.home-hero-fallback::after { width: 300px; height: 300px; inset-inline-end: calc(8% + 60px); top: 50%; transform: translateY(-50%); border-style: dashed; }
.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 0 1rem 4.5rem;
    background: linear-gradient(to top, rgba(10, 9, 8, .88) 0%, rgba(10, 9, 8, .5) 42%, transparent 70%);
    pointer-events: none;
}
.home-hero-overlay .inner { max-width: 760px; pointer-events: auto; }
.home-hero-overlay h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.45; margin-bottom: .6rem; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.home-hero-overlay p { color: rgba(255, 255, 255, .78); font-size: clamp(.9rem, 1.3vw, 1.08rem); margin-bottom: 1.5rem; }
.home-hero-overlay .btn { padding: .75rem 1.6rem; border-radius: 14px; }
.home-hero .carousel-indicators { z-index: 4; margin-bottom: 1.6rem; gap: .35rem; }
.home-hero .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border-radius: 4px; border: 0; margin: 0; background: rgba(255, 255, 255, .45); opacity: 1; transition: width .3s ease, background .3s ease; }
.home-hero .carousel-indicators .active { width: 44px; background: var(--md-accent); }
.home-hero .carousel-control-prev, .home-hero .carousel-control-next { z-index: 4; width: 7%; }
.home-hero .slide-link { position: absolute; inset: 0; z-index: 2; }

/* ---------- صفحه اصلی: نوار مزایا ---------- */
.trust-strip { position: relative; z-index: 5; margin-top: -2.6rem; }
.trust-strip .inner {
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--md-shadow-lg);
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    padding: 1.1rem .5rem;
}
.trust-item { display: flex; align-items: center; gap: .85rem; padding: .5rem 1.1rem; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--md-border); }
.trust-item .ic {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--md-accent-strong);
    background: var(--md-accent-soft);
}
.trust-item h6 { margin: 0 0 .15rem; font-size: .92rem; font-weight: 700; }
.trust-item p { margin: 0; color: var(--md-muted); font-size: .78rem; }
@media (max-width: 991.98px) {
    .trust-strip .inner { grid-template-columns: repeat(2, 1fr); row-gap: .5rem; }
    .trust-item:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 575.98px) {
    .trust-strip { margin-top: -1.5rem; }
    .trust-item { flex-direction: column; text-align: center; gap: .5rem; padding: .5rem; }
}

.home-section { padding: 4.5rem 0; }
.home-section.tight { padding-top: 3.5rem; }

/* ---------- صفحه اصلی: کاشی دسته‌ها ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.cat-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--md-radius);
    overflow: hidden;
    background: var(--md-cream);
    isolation: isolate;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; z-index: -1; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 13, 11, .85), rgba(15, 13, 11, .05) 55%); z-index: -1; }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile .info { position: absolute; inset-inline: 1.1rem; bottom: 1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.cat-tile h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 .15rem; }
.cat-tile span { color: rgba(255, 255, 255, .7); font-size: .78rem; }
.cat-tile .go {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    backdrop-filter: blur(6px);
    transition: background .25s ease, transform .25s ease;
}
.cat-tile:hover .go { background: var(--md-accent); transform: rotate(-45deg); }

/* ---------- صفحه اصلی: مراحل ساخت ---------- */
.process-section {
    position: relative;
    color: #fff;
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(var(--md-accent-rgb), .18), transparent 70%),
        var(--md-dark);
    overflow: hidden;
}
.process-section .section-head h2 { color: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 1.25rem; position: relative; }
.process-grid::before {
    content: "";
    position: absolute;
    top: 30px;
    inset-inline: 12%;
    border-top: 1px dashed rgba(var(--md-accent-rgb), .45);
}
.process-step { position: relative; text-align: center; padding: 0 .5rem; }
.process-step .num {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--md-dark);
    background: linear-gradient(135deg, color-mix(in srgb, var(--md-accent) 70%, #fff), var(--md-accent));
    box-shadow: 0 0 0 8px var(--md-dark), 0 0 0 9px rgba(var(--md-accent-rgb), .35);
    position: relative;
}
.process-step h5 { color: #fff; font-size: 1.02rem; font-weight: 700; margin-bottom: .35rem; }
.process-step p { color: rgba(255, 255, 255, .6); font-size: .85rem; margin: 0; }
@media (max-width: 767.98px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .process-grid::before { display: none; }
}

/* ---------- دعوت به اقدام ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
    background:
        radial-gradient(400px 200px at 0% 100%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(120deg, var(--md-accent-strong), var(--md-accent));
    color: #fff;
}
.cta-band::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    inset-inline-end: -80px;
    top: -120px;
}
.cta-band h3 { color: #fff; font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band .btn { position: relative; z-index: 1; padding: .7rem 1.5rem; border-radius: 14px; }
.cta-band .btn-light { color: var(--md-dark); }

/* ---------- فوتر ---------- */
.site-footer {
    background:
        radial-gradient(600px 220px at 85% 0%, rgba(var(--md-accent-rgb), .14), transparent 70%),
        var(--md-dark);
    color: rgba(255, 255, 255, .62);
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}
.site-footer h5 { color: #fff; font-size: .98rem; font-weight: 700; margin-bottom: 1.1rem; }
.site-footer .footer-list li { margin-bottom: .6rem; }
.site-footer .footer-list a { color: rgba(255, 255, 255, .62); transition: color .2s ease, padding .2s ease; }
.site-footer .footer-list a:hover { color: var(--md-accent); padding-inline-start: .25rem; }
.site-footer .tagline { max-width: 340px; line-height: 1.9; }
.site-footer .social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 1.1rem;
    transition: background .2s ease;
}
.site-footer .social a:hover { background: var(--md-accent); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding-top: 1.4rem; font-size: .85rem; }

body.site .landing-back-top {
    background: var(--md-dark);
    border: 0;
    border-radius: 14px;
    width: 44px;
    height: 44px;
    box-shadow: var(--md-shadow);
}
body.site .landing-back-top:hover { background: var(--md-accent); }

/* ---------- انیمیشن ورود ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
    .product-card, .product-card-media img, .cat-tile img { transition: none; }
}

/* ---------- پاپ‌آپ صفحه اصلی ---------- */
.home-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.home-popup[hidden] { display: none !important; }
.home-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 26, 23, .55);
    backdrop-filter: blur(2px);
}
.home-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(var(--home-popup-w, 420px), calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    animation: home-popup-in .28s ease;
}
.home-popup__media {
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .55);
}
.home-popup__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 2rem);
    object-fit: contain;
}
.home-popup__close {
    position: absolute;
    top: -12px;
    inset-inline-end: -12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1c1a17;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.home-popup__close:hover { transform: scale(1.06); background: #f7f4ef; }
@keyframes home-popup-in {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .home-popup__dialog { animation: none; }
}

html.home-popup-open { overflow: hidden; }

/* ——— وبلاگ ——— */
.blog-index { padding-top: 6rem; }
.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(28, 26, 23, .08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -24px rgba(28, 26, 23, .35);
}
.blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e4dc;
}
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: .8rem; color: #7a7468; margin-bottom: .35rem; display: block; }
.blog-card-title { font-size: 1.1rem; margin: 0 0 .5rem; line-height: 1.45; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--site-accent, #b08d57); }
.blog-card-excerpt { color: #5c574e; font-size: .92rem; flex: 1; margin-bottom: .85rem; }
.blog-card-link { font-size: .9rem; font-weight: 600; color: var(--site-accent, #b08d57); text-decoration: none; }
.blog-card-link:hover { text-decoration: underline; }

.blog-details { padding-top: 6rem; }
.blog-hero-figure { margin: 0; }
.blog-hero-img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: 12px;
}
.blog-lead { font-size: 1.1rem; line-height: 1.8; }
.blog-body {
    font-size: 1.05rem;
    line-height: 1.95;
    color: #2c2924;
}
.blog-body > p { margin-bottom: 1.15rem; }
.blog-promo-banner {
    width: 100%;
    margin-inline: 0;
}
.blog-promo-banner__link {
    display: block;
    width: 100%;
    line-height: 0;
}
.blog-promo-banner__img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.blog-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.blog-tag {
    display: inline-block;
    padding: .2rem .65rem;
    font-size: .78rem;
    border-radius: 999px;
    background: rgba(176, 141, 87, .12);
    color: #6b5530;
}
.blog-meta { color: #7a7468; }
@media (prefers-reduced-motion: reduce) {
    .blog-card, .blog-card-media img { transition: none; }
    .blog-card:hover { transform: none; }
    .blog-card:hover .blog-card-media img { transform: none; }
}

