
/* base/fonts.css */
@font-face {
    font-family: "Vazir";
    src: url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-Light-FD.woff2") format("woff2"),
         url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-Light-FD.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-FD.woff2") format("woff2"),
         url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-FD.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-Medium-FD.woff2") format("woff2"),
         url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-Medium-FD.woff") format("woff");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-Bold-FD.woff2") format("woff2"),
         url("../font/vazir-font-v18.0.0/Farsi-Digits/Vazir-Bold-FD.woff") format("woff");
    font-weight: 700 950;
    font-style: normal;
    font-display: swap;
}

/* base/foundation.css */
:root {
    --brand: #146d32;
    --brand-2: #2e7d32;
    --brand-light: #66bb6a;
    --accent: #ef5208;
    --accent-dark: #bf360c;
    --page: #fafaf7;
    --ink: #212121;
    --muted: #5c665f;
    --line: #e5e9e1;
    --soft: #f1f8e9;
    --shadow: 0 10px 28px rgba(21, 45, 27, .12);
    --radius: 10px;
    --safe-edge: 5px;
    --scroll-offset: 96px;
    --container-max: 1440px;
    --container-gutter: clamp(16px, 3vw, 48px);

    /* spacing scale */
    --space-xs: 8px;
    --space-sm: 14px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;

    /* typography scale */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-lg: 18px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 44px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

html,
body,
button,
input,
textarea,
select {
    font-family: Vazir, Tahoma, Arial, sans-serif;
}

body.site-body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    direction: rtl;
    letter-spacing: 0;
    overflow-x: hidden;
}

.container {
    width: min(calc(100% - (var(--container-gutter) * 2)), var(--container-max));
    margin-inline: auto;
}

main > section:not(.home-hero):not(.page-hero):not(.benefits-strip),
main > div:not(.home-hero):not(.page-hero):not(.benefits-strip) {
    max-width: 100%;
}

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

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

[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    :root {
        --container-gutter: 14px;
    }

    .container {
        width: min(calc(100% - 20px), var(--container-max));
    }
}

/* components/header.css */
/* ═══════════════════════════════════════════════════════════════
   header.css — سربرگ سایت
   ════════════════════════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    height: 72px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .25s ease, background .25s ease;
}

body.site-body {
    padding-top: 72px;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
}

.header-shell {
    height: 72px;
    width: min(calc(100% - 48px), 1440px);
    margin-inline: auto;
    padding-inline: 0;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 24px;
    direction: rtl;
}

/* Logo */
.header-logo {
    justify-self: start;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    line-height: 1.2;
    text-decoration: none;
}

.brand-logo__text {
    display: grid;
    min-width: 140px;
    font-weight: 900;
}

.brand-logo__text strong {
    color: #1e1e1e;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.brand-logo__text b {
    color: var(--brand);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
}

.brand-logo__mark {
    position: relative;
    width: 64px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--brand);
    flex-shrink: 0;
}

.brand-logo__mark svg {
    width: 52px;
    height: 38px;
    stroke-width: 2.5;
}

.brand-logo__wheat {
    position: absolute;
    left: -4px;
    top: -3px;
    color: #f17900;
    font-size: 38px;
    transform: rotate(-20deg);
}

/* Footer logo variant */
.brand-logo--footer {
    color: #fff;
}

.brand-logo--footer .brand-logo__text strong,
.brand-logo--footer .brand-logo__text b,
.brand-logo--footer .brand-logo__mark {
    color: #fff;
}

/* Desktop nav */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 56px);
    direction: rtl;
    font-weight: 700;
    font-size: 15px;
}

.main-nav a {
    position: relative;
    padding: 24px 0 22px;
    color: var(--ink);
    transition: color .18s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 14px;
    width: 0;
    height: 2.5px;
    border-radius: 99px;
    background: var(--brand);
    transform: translateX(50%);
    transition: width .2s ease;
}

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

.main-nav a.is-active::after,
.main-nav a:hover::after {
    width: 28px;
}

/* Call pill */
.call-pill {
    justify-self: end;
    min-width: 178px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
    font-weight: 800;
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow .18s ease, transform .18s ease;
}

.call-pill:hover {
    box-shadow: 0 6px 20px rgba(20, 109, 50, .18);
    transform: translateY(-1px);
}

.call-pill span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    flex-shrink: 0;
}

/* Mobile-only elements: hidden on desktop */
.mobile-menu-button,
.mobile-nav,
.mobile-call-icon {
    display: none;
}

/* ─── Tablet (769–1200px) ─── */
@media (min-width: 769px) and (max-width: 1200px) {
    .header-shell {
        width: min(calc(100% - 32px), 1100px);
        grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
        gap: 16px;
    }

    .main-nav {
        gap: clamp(14px, 2vw, 32px);
        font-size: 14px;
    }

    .call-pill {
        min-width: 160px;
        font-size: 13px;
    }
}

/* components/product-card.css */
/* ═══════════════════════════════════════════════════════════════
   product-card.css — کارت محصول
   ════════════════════════════════════════════════════════════════ */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transform: translateY(12px);
    animation: cardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition:
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 80, 38, .13);
    border-color: rgba(20, 109, 50, .22);
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 3px 10px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: .2px;
    box-shadow: 0 2px 8px rgba(20, 109, 50, .22);
    pointer-events: none;
}

/* Image area */
.product-card__image {
    display: block;
    width: 100%;
    height: 190px;
    padding: 20px 20px 12px;
    background: #f8faf6;
    overflow: hidden;
    flex-shrink: 0;
    transition: background .25s ease;
}

.product-card:hover .product-card__image {
    background: #f1f7ed;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

/* Body */
.product-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f4ef;
}

.product-card__body h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
}

/* Hide description in catalog/related grids */
.product-grid--catalog .product-card__body p,
.product-grid--related .product-card__body p {
    display: none !important;
}

/* Details button */
.product-card__body .btn--details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 130px;
    height: 36px;
    padding: 0 14px;
    background: var(--soft);
    border: 1px solid rgba(20, 109, 50, .16);
    border-radius: 8px;
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 800;
    transition: background .2s ease, border-color .2s ease, transform .18s ease;
    margin-top: auto;
    text-decoration: none;
}

.product-card__body .btn--details svg {
    font-size: 12px;
    transition: transform .2s ease;
    flex-shrink: 0;
}

.product-card__body .btn--details:hover {
    background: #e2f0dc;
    border-color: var(--brand);
    transform: translateY(-1px);
}

.product-card__body .btn--details:hover svg {
    transform: translateX(-2px);
}

/* ═══════════════════════════════════════════════════════
   Home card — horizontal layout
   ═══════════════════════════════════════════════════════ */
.product-card--home {
    min-height: 160px;
    display: grid;
    grid-template-columns: 44% 1fr;
    align-items: stretch;
    padding: 0;
}

.product-card--home .product-card__image {
    height: 100%;
    min-height: 140px;
    padding: 12px;
    border-radius: 14px 0 0 14px;
}

.product-card--home .product-card__body {
    align-items: flex-start;
    text-align: right;
    padding: 16px 14px 14px 12px;
    border-top: none;
    border-right: 1px solid #f0f4ef;
}

.product-card--home .product-card__body h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.product-card--home .product-card__body p {
    display: block !important;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 12px;
}

.product-card--home .btn--details {
    margin-top: 0;
    min-width: 110px;
    height: 30px;
    font-size: 12px;
}

/* components/seo-content.css */
.seo-copy {
    margin-block: 36px;
    padding: 28px 32px;
    border: 1px solid #d9e7d3;
    border-radius: 18px;
    background: #fbfdf7;
}

.seo-copy h2,
.seo-faq h2 {
    margin: 0 0 14px;
    color: var(--brand);
    font-size: 22px;
    font-weight: 950;
}

.seo-copy p {
    margin: 0;
    color: #3f4843;
    line-height: 2;
    font-size: 15px;
}

.seo-copy__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.seo-copy__links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eaf3e6;
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
}

.seo-faq {
    margin-block: 44px;
}

.seo-faq__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.seo-faq__item {
    padding: 20px;
}

.seo-faq__item h3 {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.8;
}

.seo-faq__item p {
    margin: 0;
    color: #4b544f;
    line-height: 1.9;
    font-size: 14px;
}

@media (max-width: 900px) {
    .seo-faq__grid {
        grid-template-columns: 1fr;
    }

    .seo-copy {
        padding: 22px;
    }
}

/* pages/home.css */
/* ═══════════════════════════════════════════════════════════════
   home.css — صفحه اصلی
   ════════════════════════════════════════════════════════════════ */

/* ── Hero Slider ── */
.home-hero {
    position: relative;
    width: calc(100% - 32px);
    max-width: 1440px;
    height: 420px;
    margin: 12px auto 0;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-color: #172016;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity .65s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide__shade,
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, .12) 0%,
        rgba(0, 0, 0, .64) 42%,
        rgba(0, 0, 0, .14) 100%
    );
}

.hero-slide__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: clamp(60px, 6vw, 100px);
    color: #fff;
    text-align: right;
}

.hero-slide__content h1,
.hero-slide__content .hero-slide__title {
    max-width: 460px;
    margin: 0 0 14px;
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 950;
    line-height: 1.3;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    letter-spacing: -.3px;
}

.hero-slide__content p {
    max-width: 420px;
    margin: 0 0 28px;
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    line-height: 1.7;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease, transform .18s ease;
}

.hero-arrow:hover {
    background: #fff;
    transform: translateY(calc(-50% - 2px));
}

.hero-arrow--prev { right: 28px; }
.hero-arrow--next { left: 28px; }

.hero-dots {
    position: absolute;
    right: 50%;
    bottom: 16px;
    z-index: 4;
    display: flex;
    gap: 12px;
    transform: translateX(50%);
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-dots button.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0 24px;
    font-weight: 850;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, transform .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(180deg, #239044, #0f652e);
    color: #fff;
    box-shadow: 0 6px 18px rgba(20, 109, 50, .24);
}

.btn--primary:hover {
    background: linear-gradient(180deg, #269549, #0f6830);
    box-shadow: 0 8px 24px rgba(20, 109, 50, .32);
}

.btn--accent {
    min-width: 180px;
    height: 46px;
    background: linear-gradient(180deg, #ff6b10, #ef5208);
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 81, 0, .3);
}

.btn--accent:hover {
    background: linear-gradient(180deg, #ff7520, var(--accent));
    box-shadow: 0 10px 26px rgba(230, 81, 0, .38);
}

.btn--ghost {
    min-height: 32px;
    border: 1.5px solid var(--brand);
    background: #fff;
    color: var(--brand);
}

.btn--ghost:hover {
    background: var(--soft);
}

.btn--small {
    min-height: 30px;
    padding: 0 14px;
    font-size: 12px;
}

.btn--wide {
    width: 100%;
}

/* ── Intro Section ── */
.intro-section {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 56px;
    align-items: center;
    direction: ltr;
    padding-block: 36px 24px;
}

.intro-section > div {
    direction: rtl;
}

.intro-section img,
.about-intro img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    display: block;
}

.intro-section h2,
.about-history h2 {
    margin: 0 0 16px;
    color: var(--brand);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 950;
    line-height: 1.4;
}

.intro-section p,
.about-history p {
    margin: 0;
    color: #303633;
    font-size: 15px;
    line-height: 2.1;
    text-align: justify;
}

/* ── Section Title ── */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto 16px;
    color: var(--brand);
}

.section-title h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 950;
    line-height: 1.3;
}

.section-title span {
    position: relative;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8abb8b, transparent);
}

.section-title span::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-light);
    transform: translateX(-50%);
}

/* ── Product Grids ── */
.featured-products {
    padding-bottom: 12px;
}

.product-grid {
    display: grid;
    gap: 16px;
}

.product-grid--home {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid--catalog {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-grid--related {
    grid-template-columns: repeat(4, 1fr);
}

.center-action {
    display: flex;
    justify-content: center;
    margin: 14px 0 4px;
}

/* ── Benefits Strip ── */
.benefits-strip {
    margin-top: 12px;
    padding: 24px 0 16px;
    background: linear-gradient(180deg, rgba(241, 248, 233, .6), rgba(250, 250, 247, .1));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.benefit-card,
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.benefit-card {
    min-height: 116px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.benefit-card:hover {
    box-shadow: 0 6px 20px rgba(20, 80, 38, .10);
    transform: translateY(-2px);
}

.benefit-card__icon,
.about-card__icon,
.contact-row div,
.cta-panel__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--brand);
    font-size: 30px;
    flex-shrink: 0;
}

.benefit-card h3 {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 900;
    color: var(--ink);
}

.benefit-card p {
    margin: 0;
    color: #4f5753;
    font-size: 12px;
    line-height: 1.7;
}

/* ─── Tablet (769–1200px) ─── */
@media (min-width: 769px) and (max-width: 1200px) {
    .home-hero {
        height: 360px;
    }

    .intro-section {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

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

    .product-grid--catalog {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid--related {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* components/footer.css */
/* ═══════════════════════════════════════════════════════════════
   footer.css — فوتر سایت
   ════════════════════════════════════════════════════════════════ */

.site-footer {
    width: calc(100% - 32px);
    max-width: 1440px;
    margin: 32px auto 20px;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0b5228 0%, #0e6130 48%, #0b5228 100%);
    box-shadow: 0 14px 40px rgba(10, 50, 27, .22);
}

.footer-grid {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 0;
    padding: 36px 5% 28px;
}

.footer-grid > section {
    padding-inline: 28px;
}

.footer-grid > section:first-child {
    padding-inline-start: 0;
}

.footer-grid > section:last-child {
    padding-inline-end: 0;
}

.footer-grid > section:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.footer-about {
    text-align: right;
}

.footer-about .brand-logo {
    margin-bottom: 14px;
}

.footer-about p,
.footer-contact p,
.footer-links a {
    margin: 6px 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    line-height: 1.85;
}

.footer-about p {
    max-width: 360px;
    line-height: 2;
}

.footer-links h2,
.footer-contact h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .3px;
}

.footer-links a,
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .15s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    transition: color .15s ease;
}

.footer-contact p a:hover {
    color: #fff;
}

.footer-contact svg,
.footer-links svg {
    flex: 0 0 auto;
    font-size: 16px;
    opacity: .75;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    transition: background .15s ease, border-color .15s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .6);
}

.footer-copy {
    padding: 12px 5%;
    background: rgba(0, 0, 0, .20);
    color: rgba(255, 255, 255, .7);
    text-align: center;
    font-size: 12px;
    letter-spacing: .2px;
}

/* ─── Tablet ─── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        padding: 28px 5% 22px;
    }

    .footer-grid > section:last-child {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .18);
        padding-top: 20px;
        padding-inline: 0;
    }

    .footer-grid > section:nth-child(2) {
        border-left: none;
    }

    .footer-grid > section:first-child {
        padding-inline: 0 24px;
    }
}

/* ─── Mobile: keep footer visible and tidy above bottom nav ─── */
@media (max-width: 768px) {
    .site-footer {
        display: block !important;
        width: calc(100% - 28px);
        max-width: 492px;
        margin: 18px auto calc(104px + env(safe-area-inset-bottom, 0px));
        border-radius: var(--mobile-radius, 18px);
        box-shadow: 0 10px 28px rgba(10, 50, 27, .18);
    }

    .footer-grid {
        max-width: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 20px 18px 16px;
    }

    .footer-grid > section,
    .footer-grid > section:first-child,
    .footer-grid > section:last-child {
        grid-column: auto;
        padding: 16px 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .footer-grid > section:first-child {
        padding-top: 0;
        border-top: none;
    }

    .footer-grid > section:nth-child(2) {
        border-left: none;
    }

    .footer-about .brand-logo {
        margin-bottom: 10px;
    }

    .footer-about p {
        max-width: none;
        font-size: 12.5px;
        line-height: 1.95;
    }

    .footer-links h2,
    .footer-contact h2 {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .footer-links a,
    .footer-contact p,
    .footer-contact p a {
        font-size: 12.5px;
        line-height: 1.8;
    }

    .footer-copy {
        padding: 12px 16px;
        font-size: 11.5px;
        line-height: 1.9;
    }
}

@media (max-width: 430px) {
    .site-footer {
        width: calc(100% - 28px);
    }

    .footer-grid {
        padding-inline: 16px;
    }
}

/* components/page-hero.css */
﻿/* ═══════════════════════════════════════════════════════════════
   page-hero.css — هیرو صفحات داخلی
   ════════════════════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    height: 240px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background-color: #172016;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-hero > picture,
.page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-hero > picture {
    display: block;
}

.page-hero__image {
    object-fit: cover;
    object-position: center;
}

.page-hero--about {
    height: 260px;
}

.page-hero--contact {
    height: 230px;
}

.page-hero--products {
    height: 220px;
}

/* gradient overlay */
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, .18) 0%,
        rgba(8, 42, 20, .72) 45%,
        rgba(0, 0, 0, .24) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: end;
    color: #fff;
    text-align: right;
}

.page-hero__content h1 {
    width: fit-content;
    max-width: 560px;
    margin: 0 0 10px;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 950;
    line-height: 1.25;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .4);
    letter-spacing: -.3px;
}

.page-hero__content p {
    width: fit-content;
    max-width: 560px;
    margin: 0;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    line-height: 1.75;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.hero-flourish {
    width: 180px;
    height: 2px;
    margin: 18px auto 0 140px;
    background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .page-hero,
    .page-hero--about,
    .page-hero--contact,
    .page-hero--products {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        padding: 0 !important;
        margin: 16px auto 20px !important;
    }

    .page-hero__content {
        align-self: end;
        padding: 0 20px 28px;
    }
}

/* pages/products.css */
/* ═══════════════════════════════════════════════════════════════
   products.css — صفحه کاتالوگ محصولات
   ════════════════════════════════════════════════════════════════ */

.products-page {
    width: min(calc(100% - 48px), 1440px);
    margin-inline: auto;
    box-sizing: border-box;
    padding: 28px 0 32px;
}

/* ── Category Tabs ── */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs button {
    flex: 0 0 auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1.5px solid transparent;
    border-radius: 20px;
    background: #edf5e8;
    color: #2d6038;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 18px;
    white-space: nowrap;
}

.category-tabs button:hover {
    background: #daefd1;
    border-color: rgba(20, 109, 50, .18);
}

.category-tabs button.is-active {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(20, 109, 50, .28);
}

/* ── Product Grid Catalog ── */
.product-grid--catalog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

/* ── Empty State ── */
.empty-state {
    margin: 40px auto;
    padding: 52px 32px;
    border: 2px dashed #b8d4b2;
    border-radius: var(--radius);
    text-align: center;
    color: var(--brand);
    max-width: 480px;
}

.empty-state div {
    margin: 0 auto 14px;
    font-size: 52px;
}

.empty-state h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 8px;
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* ── CTA Panel ── */
.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding: 22px 32px;
    border: 1px solid #c4d8be;
    border-radius: 14px;
    background: rgba(253, 255, 250, .97);
    direction: rtl;
    box-shadow: 0 4px 16px rgba(20, 80, 38, .06);
}

.cta-panel__item {
    min-width: 0;
    display: grid;
    align-items: center;
    gap: 16px;
}

.cta-panel__item--support {
    grid-template-columns: 68px minmax(0, 1fr);
    text-align: right;
}

.cta-panel__item--empty {
    grid-template-columns: minmax(0, 1fr) 68px;
    text-align: center;
}

.cta-panel__item > div:not(.cta-panel__icon) {
    min-width: 0;
}

.cta-panel h3 {
    margin: 0 0 5px;
    color: var(--brand);
    font-size: 17px;
    font-weight: 950;
}

.cta-panel p {
    max-width: 500px;
    margin: 0 0 10px;
    color: #4b544f;
    font-size: 13px;
    line-height: 1.85;
}

.cta-panel__divider {
    width: 1px;
    height: 60px;
    background: #cbd8c7;
    align-self: center;
}

/* ─── Tablet (769–1200px) ─── */
@media (min-width: 769px) and (max-width: 1200px) {
    .products-page {
        width: min(calc(100% - 32px), 1100px);
        padding: 24px 0 28px;
    }

    .product-grid--catalog {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .product-grid--catalog {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cta-panel__divider {
        display: none;
    }
}

/* pages/product-detail.css */
/* ═══════════════════════════════════════════════════════════════
   product-detail.css — صفحه جزئیات محصول
   ════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb {
    width: min(calc(100% - 48px), 1360px);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-inline: auto;
    padding: 16px 0 12px;
    color: #606760;
    font-size: 12px;
    align-items: center;
}

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

/* ── Main product layout ── */
.product-detail {
    width: min(calc(100% - 48px), 1360px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 24px;
    align-items: start;
    direction: ltr;
}

.product-summary,
.product-gallery,
.specs-card,
.uses-card {
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(15, 48, 28, .08);
    direction: rtl;
}

.product-summary {
    position: sticky;
    top: 88px;
    align-self: start;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 28px;
    padding-inline: 12px;
    border-radius: 8px;
    background: var(--brand-2);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-summary h1 {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 950;
    line-height: 1.4;
    text-align: center;
}

.product-summary p {
    margin: 0 0 20px;
    color: #434c45;
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
}

.summary-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.summary-icons span {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.summary-icons svg {
    color: var(--brand);
    font-size: 26px;
}

.summary-icons strong {
    color: #243327;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
}

.summary-icons small {
    color: #5e6761;
    font-size: 11px;
    line-height: 1.5;
}

.product-summary .btn--accent {
    min-height: 56px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
}

.summary-note {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #dfe8dc;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(241, 248, 233, .92), rgba(255, 255, 255, .96));
}

.summary-note__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brand);
    font-size: 15px;
    font-weight: 950;
}

.summary-note__head svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.summary-note p {
    margin: 8px 0 12px;
    color: #4b554d;
    font-size: 12.5px;
    line-height: 1.9;
    text-align: center;
}

.summary-note__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.summary-note__chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: #1b6e35;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 3px 10px rgba(15, 48, 28, .08);
}

.summary-note__chips svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ── Gallery Card ── */
.product-gallery {
    position: relative;
    display: grid;
    gap: 12px;
    align-content: start;
}

.gallery-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 560px;
    padding: 12px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(46, 125, 50, .06), transparent 52%),
        linear-gradient(180deg, #fff 0%, #f8faf6 100%);
}

.gallery-main {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
    display: block;
    filter: drop-shadow(0 16px 26px rgba(15, 48, 28, .12));
    transition: transform .2s ease;
}

.product-gallery.has-image-error .gallery-frame::after {
    content: 'در حال نمایش تصویر جایگزین';
    position: absolute;
    inset-inline: 20px;
    bottom: 108px;
    color: #6b746d;
    font-size: 12px;
    text-align: center;
}

.gallery-main.is-tiny-source {
    max-width: min(72%, 520px);
    max-height: min(72%, 320px);
    transform: none;
}

.gallery-main.is-small-source {
    max-width: min(82%, 620px);
    max-height: min(82%, 360px);
    transform: none;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.gallery-thumbs button {
    height: 82px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #f8faf6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.gallery-thumbs button.is-active {
    border-color: var(--brand-light);
    box-shadow: 0 4px 12px rgba(20, 109, 50, .16);
}

.gallery-thumbs button:hover {
    border-color: rgba(20, 109, 50, .3);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .product-detail {
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .product-summary {
        position: static;
    }

    .gallery-frame {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .product-detail,
    .breadcrumb {
        width: min(calc(100% - 24px), 100%);
    }

    .product-summary,
    .product-gallery {
        padding: 14px;
    }

    .summary-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-frame {
        min-height: 300px;
        padding: 8px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* pages/about.css */
﻿/* ═══════════════════════════════════════════════════════════════
   about.css — صفحه درباره ما
   ════════════════════════════════════════════════════════════════ */

.page-hero--about + .about-intro {
    margin-top: 38px;
}

.about-intro {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 48px;
    align-items: center;
    direction: ltr;
    padding-block: 16px 30px;
}

.about-intro > div {
    direction: rtl;
}

.about-intro picture,
.about-intro img {
    min-height: 360px;
    border-radius: 18px;
    overflow: hidden;
}

.about-intro img {
    object-fit: cover;
    object-position: center;
}

.about-history {
    padding: 10px 0;
}

.about-history h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-cards,
.trust-grid,
.contact-grid {
    display: grid;
    gap: 18px;
}

.about-cards {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.about-card {
    min-height: 180px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    row-gap: 10px;
    padding: 24px 28px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0, rgba(102, 187, 106, .10), transparent 34%),
        linear-gradient(180deg, rgba(241, 248, 233, .4), rgba(255, 255, 255, .98) 46%),
        #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.about-card:hover {
    box-shadow: 0 8px 26px rgba(20, 80, 38, .10);
    transform: translateY(-3px);
}

.about-card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 50%;
    background: #eef5e9;
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(20, 109, 50, .10);
}

.about-card__icon svg {
    width: 28px;
    height: 28px;
}

.about-card h3 {
    margin: 0;
    color: var(--brand);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.3;
}

.about-card p,
.about-card li {
    color: #414843;
    font-size: 14px;
    line-height: 1.9;
}

.about-card p {
    margin: 0;
    max-width: 400px;
}

.about-card ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
    width: 100%;
}

.about-card li {
    position: relative;
    min-height: 28px;
    padding: 4px 22px 4px 11px;
    border-radius: 999px;
    background: rgba(241, 248, 233, .7);
}

.about-card li::before {
    content: "";
    position: absolute;
    right: 0;
    top: .8em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(20, 109, 50, .10);
}

/* ── Trust Section ── */
.trust-section {
    margin-top: 20px;
}

.trust-grid {
    grid-template-columns: repeat(4, 1fr);
}

.trust-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 110px;
    padding: 18px 16px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.trust-card:hover {
    box-shadow: 0 8px 24px rgba(20, 80, 38, .10);
    transform: translateY(-2px);
}

.trust-card svg {
    grid-row: span 2;
    color: var(--brand);
    font-size: 44px;
}

.trust-card strong {
    color: var(--brand);
    font-size: 30px;
    font-weight: 950;
    line-height: 1.1;
}

.trust-card span {
    font-size: 12px;
    line-height: 1.65;
    color: #4f5753;
}

/* ─── Tablet (769–1200px) ─── */
@media (min-width: 769px) and (max-width: 1200px) {
    .about-intro {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .about-cards > .about-card:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin-inline: auto;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .page-hero--about + .about-intro {
        margin-top: 24px;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-intro picture,
    .about-intro img {
        min-height: 240px;
    }
}

/* pages/contact.css */
/* ═══════════════════════════════════════════════════════════════
   contact.css — صفحه تماس با ما
   ════════════════════════════════════════════════════════════════ */

.contact-grid,
.map-section,
.success-message,
.benefits-strip {
    width: min(100% - 36px, 1120px);
    margin-inline: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr);
    gap: clamp(18px, 2vw, 26px);
    padding: 30px 0 22px;
    align-items: stretch;
}

.contact-info,
.contact-form-card {
    padding: clamp(22px, 2vw, 28px);
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8ece5;
    box-shadow: 0 10px 30px rgba(14, 60, 30, .08);
}

.contact-info .section-title,
.contact-form-card .section-title {
    margin-top: 0;
    margin-bottom: 18px;
}

.contact-info .section-title h2,
.contact-form-card .section-title h2 {
    font-size: 20px;
}

.contact-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0ea;
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-row div {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f3f8ed;
    color: var(--brand);
    font-size: 26px;
    flex-shrink: 0;
}

.contact-row span {
    min-width: 0;
    display: grid;
    gap: 4px;
    color: #4c544f;
    line-height: 1.75;
    font-size: 13.5px;
    word-break: break-word;
}

.contact-row strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
}

.contact-row a {
    color: inherit;
    text-decoration: none;
}

.contact-row a:hover {
    color: var(--brand);
}

/* ── Contact Form ── */
.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    font-weight: 800;
    font-size: 14px;
    color: #2d3330;
}

.contact-form label > span {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1.5px solid #d2d8ce;
    border-radius: 9px;
    background: #fff;
    padding: 9px 13px;
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    line-height: 1.7;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form select {
    cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(102, 187, 106, .18);
    background: #fff;
}

.contact-form small {
    grid-column: 2;
    display: none;
    color: #9d2c14;
    font-size: 11.5px;
    font-weight: 600;
    margin-top: -4px;
}

.contact-form label.has-error small {
    display: block;
}

.contact-form label.has-error input,
.contact-form label.has-error select,
.contact-form label.has-error textarea {
    border-color: #c0392b;
}

.contact-form .btn {
    min-height: 52px;
    border-radius: 10px;
    font-size: 16px;
}

/* ── Map ── */
.map-section {
    margin-bottom: 18px;
}

.map-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(14, 60, 30, .08);
    text-decoration: none;
    isolation: isolate;
}

.map-card img {
    width: 100%;
    height: clamp(190px, 20vw, 240px);
    display: block;
    object-fit: cover;
    transition: transform .25s ease, filter .25s ease;
}

.map-card:hover img {
    transform: scale(1.018);
    filter: saturate(1.08);
}

.map-popup {
    position: absolute;
    top: 24px;
    right: 24px;
    width: min(220px, calc(100% - 48px));
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    backdrop-filter: blur(4px);
}

.map-popup strong {
    color: var(--brand);
    font-weight: 950;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.map-popup p {
    margin: 0 0 12px;
    color: #4f5753;
    font-size: 12.5px;
    line-height: 1.7;
}

/* ── Success message ── */
.success-message {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid #8ed4a0;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbf8e4, #edfaf3);
    color: var(--brand);
    font-size: 15.5px;
    font-weight: 800;
    padding: 10px 20px;
    text-align: center;
}

.success-message svg {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    flex-shrink: 0;
}

/* ─── Laptop / narrow desktop ─── */
@media (min-width: 1025px) and (max-width: 1280px) {
    .contact-grid,
    .map-section,
    .success-message,
    .benefits-strip {
        width: min(100% - 48px, 1040px);
    }

    .contact-grid {
        grid-template-columns: minmax(330px, .95fr) minmax(0, 1.05fr);
        gap: 22px;
        padding-top: 28px;
    }

    .contact-info,
    .contact-form-card {
        padding: 22px 24px;
    }

    .contact-row {
        grid-template-columns: 56px minmax(0, 1fr);
        min-height: 78px;
        gap: 12px;
    }

    .contact-row div {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}

/* ─── Tablet ─── */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-grid,
    .map-section,
    .success-message,
    .benefits-strip {
        width: min(100% - 32px, 760px);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0 18px;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: stretch;
    }

    .contact-info .section-title {
        grid-column: 1 / -1;
    }

    .contact-row {
        min-height: 112px;
        grid-template-columns: 54px minmax(0, 1fr);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 14px 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    }

    .contact-row:last-child {
        grid-column: 1 / -1;
        min-height: 82px;
        border: 1px solid var(--line);
    }

    .contact-form label {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .map-card img {
        height: 210px;
    }
}

/* ─── Mobile final overrides ─── */
@media (max-width: 768px) {
    .contact-grid {
        width: 100% !important;
        max-width: var(--mobile-max, 520px) !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 14px var(--mobile-pad, 16px) 16px !important;
        margin-inline: auto !important;
    }

    .contact-info,
    .contact-form-card {
        padding: 16px !important;
        border-radius: var(--mobile-radius, 18px) !important;
        border: 1px solid #e8ece5 !important;
        box-shadow: var(--mobile-shadow, 0 6px 20px rgba(11, 64, 31, .08)) !important;
    }

    .contact-info {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .contact-info .section-title,
    .contact-form-card .section-title {
        grid-column: 1 / -1 !important;
        margin: 0 auto 10px !important;
    }

    .contact-row,
    .contact-row:last-child {
        grid-column: auto !important;
        min-height: 0 !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        justify-items: stretch !important;
        text-align: right !important;
        gap: 12px !important;
        padding: 13px 12px !important;
        border: 1px solid #edf1ea !important;
        border-radius: 14px !important;
        background: #fff !important;
    }

    .contact-row div {
        width: 46px !important;
        height: 46px !important;
        font-size: 23px !important;
    }

    .contact-row span {
        justify-items: start !important;
        align-self: center !important;
        font-size: 12.5px !important;
        line-height: 1.7 !important;
    }

    .contact-row strong {
        font-size: 13.5px !important;
    }

    .contact-form {
        gap: 12px !important;
    }

    .contact-form label {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        font-size: 13px !important;
    }

    .contact-form label > span {
        min-height: 0 !important;
        display: block !important;
        color: #343b35 !important;
        font-size: 13px !important;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        min-height: 48px !important;
        border-radius: 12px !important;
        padding: 11px 13px !important;
        font-size: 14px !important;
    }

    .contact-form textarea {
        min-height: 104px !important;
    }

    .contact-form small {
        grid-column: 1 !important;
    }

    .contact-form .btn {
        min-height: 52px !important;
        border-radius: 12px !important;
        font-size: 15.5px !important;
    }

    .map-section {
        width: 100% !important;
        max-width: var(--mobile-max, 520px) !important;
        padding-inline: var(--mobile-pad, 16px) !important;
        margin: 0 auto 14px !important;
    }

    .map-card {
        border-radius: var(--mobile-radius, 18px) !important;
    }

    .map-card img {
        height: 190px !important;
    }

    .map-popup {
        display: none !important;
    }

    .success-message {
        width: calc(100% - 28px) !important;
        max-width: 492px !important;
        min-height: 0 !important;
        margin: 0 auto 16px !important;
        flex-wrap: wrap !important;
        border-radius: 14px !important;
        font-size: 13.5px !important;
        line-height: 1.9 !important;
        padding: 12px 14px !important;
    }

    .success-message svg {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 430px) {
    .contact-grid {
        padding-inline: 14px !important;
    }

    .contact-info,
    .contact-form-card {
        padding: 14px !important;
    }

    .contact-row,
    .contact-row:last-child {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 12px 10px !important;
    }

    .contact-row div {
        width: 42px !important;
        height: 42px !important;
        font-size: 21px !important;
    }

    .map-section {
        padding-inline: 14px !important;
    }
}

/* pages/not-found.css */
﻿/* ═══════════════════════════════════════════════════════════════
   not-found.css — صفحه ۴۰۴
   ════════════════════════════════════════════════════════════════ */

.not-found {
    min-height: 520px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
    padding: 48px 24px;
}

.not-found__icon {
    color: var(--brand);
    font-size: 88px;
    line-height: 1;
}

.not-found h1 {
    margin: 0;
    color: var(--brand);
    font-size: 34px;
    font-weight: 950;
    line-height: 1.4;
}

.not-found p {
    margin: 0 0 14px;
    color: #56615b;
    font-size: 15px;
    line-height: 1.8;
    max-width: 380px;
}

/* responsive/tablet.css */
﻿/* ═══════════════════════════════════════════════════════════════
   tablet.css — نقطه شکست ۷۶۹ تا ۱۲۰۰ پیکسل
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1200px) {

    .container {
        width: min(calc(100% - 40px), 1120px);
    }

    /* Header */
    .site-header {
        height: 68px;
    }

    body.site-body {
        padding-top: 68px;
    }

    .header-shell {
        height: 68px;
        grid-template-columns: minmax(150px, 1fr) auto minmax(140px, 1fr);
        gap: 16px;
    }

    .main-nav {
        gap: clamp(14px, 2vw, 32px);
        font-size: 14px;
    }

    /* Hero */
    .home-hero {
        width: calc(100% - 24px);
        height: 340px;
    }

    /* Intro */
    .intro-section {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Grids */
    .product-grid--home,
    .product-grid--catalog {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid--related {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    /* Footer */
    .site-footer {
        width: calc(100% - 24px);
    }
}

/* ─── 960–1200px: product detail single column ─── */
@media (min-width: 769px) and (max-width: 960px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-summary {
        position: static;
        order: 2;
    }

    .product-gallery {
        order: 1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-intro img {
        max-height: 280px;
        object-fit: cover;
    }
}

/* responsive/mobile.css */
/* ═══════════════════════════════════════════════════════════════
   mobile.css — نقطه شکست زیر ۷۶۸ پیکسل
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Variables ── */
    :root {
        --mobile-pad: 16px;
        --mobile-radius: 18px;
        --mobile-shadow: 0 6px 20px rgba(11, 64, 31, .08);
        --mobile-max: 520px;
    }

    /* ── Base ── */
    html,
    body.site-body {
        overflow-x: hidden;
    }

    body.site-body {
        padding-top: 72px;
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        background: #f4f7f2;
    }

    main {
        width: 100%;
        max-width: var(--mobile-max);
        margin-inline: auto;
    }

    .container {
        width: 100%;
        max-width: var(--mobile-max);
        padding-inline: var(--mobile-pad);
        margin-inline: auto;
    }

    /* ── Header ── */
    .site-header {
        height: 72px;
        border-radius: 0;
        border-bottom: 1px solid #e8ece5;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
        backdrop-filter: none;
    }

    .header-shell {
        height: 72px;
        width: 100% !important;
        max-width: var(--mobile-max);
        margin-inline: auto;
        grid-template-columns: 48px 48px 1fr;
        grid-template-areas: "menu phone logo";
        gap: 8px;
        padding-inline: var(--mobile-pad);
        direction: ltr;
    }

    .header-logo {
        grid-area: logo;
        justify-self: end;
    }

    .brand-logo__text {
        min-width: auto;
    }

    .brand-logo__text strong {
        font-size: 14px;
    }

    .brand-logo__text b {
        font-size: 16px;
    }

    .brand-logo__mark {
        width: 52px;
        height: 44px;
    }

    .brand-logo__mark svg {
        width: 44px;
        height: 36px;
    }

    .brand-logo__wheat {
        font-size: 32px;
    }

    .call-pill,
    .main-nav {
        display: none !important;
    }

    .mobile-call-icon {
        display: grid;
        grid-area: phone;
        justify-self: center;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 0;
        border-radius: 12px;
        background: var(--soft);
        color: var(--brand);
        font-size: 24px;
        text-decoration: none;
    }

    .mobile-menu-button {
        display: grid;
        grid-area: menu;
        justify-self: start;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 0;
        border-radius: 12px;
        background: var(--soft);
        color: var(--brand);
        font-size: 24px;
        cursor: pointer;
    }

    /* ── Mobile Nav Dropdown ── */
    .mobile-nav {
        display: grid;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        background: #fff;
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        z-index: 120;
        max-width: calc(var(--mobile-max) - 24px);
        margin-inline: auto;
        border: 1px solid var(--line);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
    }

    .mobile-nav.is-open {
        max-height: 280px;
    }

    .mobile-nav a {
        display: block;
        padding: 15px 22px;
        border-top: 1px solid var(--line);
        font-size: 15px;
        font-weight: 800;
        color: var(--ink);
    }

    .mobile-nav a:first-child {
        border-top: 0;
    }

    .mobile-nav a.is-active {
        color: var(--brand);
        background: var(--soft);
    }

    /* ── Footer: hidden on mobile ── */
    .site-footer {
        display: none;
    }

    /* ── Bottom Navigation ── */
    .mobile-bottom-nav {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        width: min(calc(100vw - 24px), 420px);
        height: 72px;
        z-index: 150;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        padding: 8px;
        border-radius: 20px;
        background: linear-gradient(135deg, #00642d, #064e28);
        box-shadow: 0 12px 36px rgba(0, 86, 41, .3);
    }

    .mobile-bottom-nav a {
        flex: 1 1 0;
        max-width: 90px;
        height: 100%;
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 4px;
        border-radius: 14px;
        color: rgba(255, 255, 255, .82);
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
        transition: color .18s ease;
    }

    .mobile-bottom-nav svg {
        width: 24px;
        height: 24px;
        stroke-width: 2;
    }

    .mobile-bottom-nav a.is-active {
        color: #fff;
    }

    .mobile-bottom-nav a.is-active svg {
        width: 40px;
        height: 40px;
        padding: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .14);
    }

    /* ── Hero ── */
    .home-hero {
        width: calc(100% - 28px);
        max-width: 492px;
        height: 360px;
        margin: 14px auto 16px;
        border-radius: 20px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
    }

    .hero-slide {
        background-color: #edf5e8;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .hero-slide__shade {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .58) 42%, rgba(255, 255, 255, .08) 100%),
            linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
    }

    .hero-slide__content {
        align-items: flex-end;
        justify-content: flex-start;
        padding: 30px 22px 18px;
        overflow: hidden;
        color: var(--brand);
    }

    .hero-slide__content h1,
    .hero-slide__content .hero-slide__title {
        max-width: 78%;
        margin: 0 0 8px;
        color: var(--brand);
        font-size: clamp(19px, 5.2vw, 25px);
        line-height: 1.48;
        text-shadow: none;
        letter-spacing: -.2px;
    }

    .hero-slide__content p {
        max-width: 78%;
        margin: 0 0 0;
        color: #2a322c;
        font-size: 13px;
        line-height: 1.8;
    }

    .hero-slide__content .btn {
        align-self: flex-end;
        margin-top: auto;
        min-width: 154px;
        height: 50px;
        border-radius: 12px;
        font-size: 14px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .hero-arrow--prev { right: 12px; }
    .hero-arrow--next { left: 12px; }

    .hero-dots {
        bottom: 14px;
        gap: 9px;
    }

    .hero-dots button {
        width: 8px;
        height: 8px;
    }

    /* ── Intro Section ── */
    .intro-section {
        width: calc(100% - 28px) !important;
        max-width: 492px;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 14px;
        margin: 0 auto 16px;
        border: 1px solid var(--line);
        border-radius: var(--mobile-radius);
        background: #fff;
        box-shadow: var(--mobile-shadow);
        direction: ltr;
    }

    .intro-section img {
        height: 210px;
        border-radius: 14px;
        object-fit: cover;
    }

    .intro-section h2 {
        margin: 6px 0 10px;
        font-size: 18px;
        line-height: 1.55;
    }

    .intro-section p {
        font-size: 12.5px;
        line-height: 2;
        text-align: right;
    }

    /* ── Featured Products ── */
    .featured-products {
        width: calc(100% - 28px) !important;
        max-width: 492px;
        margin: 0 auto 16px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--mobile-radius);
        background: #fff;
        box-shadow: var(--mobile-shadow);
    }

    .section-title {
        margin: 4px auto 14px;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .section-title span {
        display: none;
    }

    .product-grid--home {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* Home card: compact vertical on mobile */
    .product-card--home {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        padding: 0;
        border-radius: 12px;
        box-shadow: none;
        border-color: #edf1ea;
    }

    .product-card--home .product-card__badge,
    .product-card--home .product-card__body p,
    .product-card--home .btn {
        display: none;
    }

    .product-card--home .product-card__image {
        height: 88px;
        padding: 10px 12px 6px;
        border-radius: 12px 12px 0 0;
    }

    .product-card--home .product-card__body {
        align-items: center;
        text-align: center;
        padding: 6px 6px 10px;
        border-top: 1px solid #f0f4ef;
        border-right: none;
    }

    .product-card--home .product-card__body h3 {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .center-action {
        margin: 6px 0 0;
        justify-content: flex-start;
    }

    .center-action .btn {
        min-height: 32px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        color: var(--brand);
        font-size: 12px;
        border: none;
    }

    /* ── Benefits ── */
    .benefits-strip {
        width: calc(100% - 28px) !important;
        max-width: 492px;
        margin: 0 auto 18px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--mobile-radius);
        background: #fff;
        box-shadow: var(--mobile-shadow);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .benefit-card {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 0;
        gap: 7px;
        padding: 14px 10px;
        border-radius: 14px;
        text-align: center;
        box-shadow: none;
    }

    .benefit-card__icon {
        width: 46px;
        height: 46px;
        font-size: 26px;
    }

    .benefit-card h3 {
        font-size: 13px;
    }

    .benefit-card p {
        font-size: 11px;
    }

    /* ── Page Hero (internal pages) ── */
    .page-hero {
        height: auto;
        min-height: 180px;
        background-color: #172016;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 28px 0 18px;
        align-items: end;
    }

    .page-hero__overlay {
        display: block;
        background: linear-gradient(180deg, rgba(8, 42, 20, .1), rgba(8, 42, 20, .68));
    }

    .hero-flourish {
        display: none;
    }

    .page-hero__content {
        justify-items: center;
        color: #fff;
        text-align: center;
    }

    .page-hero__content h1 {
        margin: 0 0 8px;
        color: #fff;
        font-size: clamp(22px, 6vw, 28px);
        text-shadow: none;
    }

    .page-hero__content p {
        max-width: 300px;
        color: rgba(255, 255, 255, .88);
        font-size: 13.5px;
        line-height: 1.85;
    }

    /* ── Products Page ── */
    .products-page {
        width: 100% !important;
        max-width: var(--mobile-max);
        padding: 10px var(--mobile-pad) 20px;
    }

    .category-tabs {
        justify-content: flex-start;
        gap: 8px;
        margin: 0 0 18px;
        padding: 0 0 8px;
    }

    .category-tabs button {
        height: 40px;
        padding: 0 16px;
        border-radius: 20px;
        background: #edf5e8;
        font-size: 13px;
    }

    .product-grid--catalog {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Catalog card: horizontal on mobile */
    .product-grid--catalog .product-card {
        width: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(128px, 42%);
        align-items: stretch;
        border-radius: var(--mobile-radius);
        box-shadow: var(--mobile-shadow);
        padding: 10px;
        gap: 10px;
        background: #fff;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .product-grid--catalog .product-card__badge {
        top: 12px;
        right: 12px;
        left: auto;
        font-size: 11px;
        border-radius: 999px;
        background: rgba(14, 97, 46, .12);
        color: var(--brand);
        box-shadow: none;
    }

    .product-grid--catalog .product-card__image {
        height: auto;
        min-height: 150px;
        display: grid;
        place-items: center;
        padding: 14px 10px;
        background: linear-gradient(180deg, #f7fbf4, #eef6eb);
        border-radius: 14px;
        order: 2;
        overflow: hidden;
    }

    .product-grid--catalog .product-card__image img {
        width: 100%;
        height: 128px;
        object-fit: contain;
        object-position: center;
    }

    .product-grid--catalog .product-card:hover .product-card__image img {
        transform: none;
    }

    .product-grid--catalog .product-card__body {
        order: 1;
        min-width: 0;
        justify-content: center;
        padding: 14px 2px 10px 6px;
        text-align: right;
        align-items: flex-start;
        border-top: none;
        border-left: none;
    }

    .product-grid--catalog .product-card__body h3 {
        width: 100%;
        margin-bottom: 8px;
        color: var(--ink);
        font-size: 17px;
        line-height: 1.55;
    }

    .product-grid--catalog .product-card__body p {
        display: block !important;
        min-height: 0;
        width: 100%;
        margin: 0 0 12px;
        color: #535a55;
        font-size: 12.5px;
        line-height: 1.85;
    }

    .product-grid--catalog .btn--details {
        min-height: 38px;
        min-width: 0;
        width: auto;
        border-radius: 10px;
        padding-inline: 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .cta-panel {
        width: calc(100% - 28px) !important;
        max-width: 492px;
        margin-inline: auto;
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
        border-radius: var(--mobile-radius);
    }

    .cta-panel__divider {
        display: none;
    }

    .empty-state {
        width: calc(100% - 28px) !important;
        max-width: 492px;
        margin-inline: auto;
        border-radius: var(--mobile-radius);
    }

    /* ── Product Detail ── */
    .mobile-back-link {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        margin: 12px auto -2px var(--mobile-pad);
        color: var(--brand);
        font-size: 26px;
        text-decoration: none;
    }

    .breadcrumb {
        display: none;
    }

    .product-detail {
        width: 100%;
        max-width: var(--mobile-max);
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px var(--mobile-pad) 0;
    }

    .product-gallery {
        order: 1;
        padding: 14px;
        border-radius: var(--mobile-radius);
        box-shadow: var(--mobile-shadow);
    }

    .gallery-frame {
        aspect-ratio: 4 / 3;
        min-height: 260px;
        padding: 10px;
        border-radius: 14px;
        background: #f5f9f2;
    }

    .gallery-main {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }

    .gallery-main.is-tiny-source {
        max-width: min(54%, 220px);
        max-height: min(70%, 170px);
        transform: none;
    }

    .gallery-main.is-small-source {
        max-width: min(78%, 300px);
        max-height: min(84%, 220px);
        transform: none;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .gallery-thumbs button {
        height: 60px;
        border-radius: 10px;
    }

    .gallery-hint {
        display: none;
    }

    .gallery-arrow {
        top: auto;
        bottom: 88px;
        width: 36px;
        height: 36px;
    }

    .gallery-arrow--right { right: 20px; }
    .gallery-arrow--left  { left: 20px; }

    .product-summary {
        order: 2;
        position: static;
        padding: 20px 20px 22px;
        border-radius: var(--mobile-radius);
        box-shadow: var(--mobile-shadow);
        text-align: center;
    }

    .detail-badge {
        display: inline-flex;
        margin-bottom: 10px;
    }

    .product-summary h1 {
        font-size: 24px;
        margin-bottom: 10px;
        color: var(--ink);
    }

    .product-summary p {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 2;
        text-align: center;
    }

    /* Keep summary icons on mobile */
    .summary-icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .summary-icons span {
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fafcf8;
    }

    .summary-icons svg {
        font-size: 22px;
    }

    .summary-icons strong {
        font-size: 12px;
    }

    .summary-icons small {
        font-size: 10.5px;
    }

    .summary-note {
        display: block;
        margin-top: 14px;
        padding: 14px;
    }

    .product-summary .btn--accent {
        height: 54px;
        border-radius: 12px;
        font-size: 16px;
    }

    .detail-grid {
        width: 100%;
        max-width: var(--mobile-max);
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px var(--mobile-pad) 0;
        margin-top: 0;
    }

    .specs-card,
    .uses-card {
        min-height: 0;
        padding: 16px;
        border-radius: var(--mobile-radius);
        box-shadow: var(--mobile-shadow);
    }

    .specs-card table {
        border-collapse: collapse;
    }

    .specs-card tr {
        background: transparent !important;
        border-bottom: 1px solid #ecefec;
    }

    .specs-card tr:last-child {
        border-bottom: none;
    }

    .specs-card th,
    .specs-card td {
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .uses-card ul {
        gap: 0;
        padding: 0;
    }

    .uses-card li {
        padding: 11px 0;
        border-bottom: 1px solid #edf0ea;
        font-size: 14px;
    }

    .uses-card li:last-child {
        border-bottom: none;
    }

    .related-products {
        width: 100%;
        max-width: var(--mobile-max);
        padding: 14px var(--mobile-pad) 0;
    }

    .related-products .product-grid--related {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .related-products .product-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* ── About Page ── */
    .about-intro {
        width: 100%;
        max-width: var(--mobile-max);
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 var(--mobile-pad) 16px;
    }

    .about-intro img {
        height: 230px;
        border-radius: 16px;
        object-fit: cover;
    }

    .about-history {
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--mobile-shadow);
    }

    .about-history h2 {
        color: var(--brand);
        font-size: 20px;
        margin-bottom: 12px;
    }

    .about-history p {
        font-size: 14px;
        line-height: 2.1;
        text-align: justify;
    }

    .about-cards {
        grid-template-columns: 1fr;
        padding-inline: var(--mobile-pad);
        gap: 12px;
    }

    .about-card {
        min-height: 0;
        padding: 20px;
        text-align: right;
        justify-items: start;
        border-radius: 16px;
        box-shadow: var(--mobile-shadow);
    }

    .about-card:hover {
        transform: none;
    }

    .about-card__icon {
        margin-bottom: 8px;
    }

    .about-card h3 {
        font-size: 18px;
    }

    .trust-section {
        width: calc(100% - 28px);
        max-width: 492px;
        margin: 14px auto;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--mobile-radius);
        background: #fff;
        box-shadow: var(--mobile-shadow);
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .trust-card {
        grid-template-columns: 36px 1fr;
        min-height: 0;
        padding: 12px 10px;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid #ecf0e9;
    }

    .trust-card:hover {
        transform: none;
    }

    .trust-card svg {
        font-size: 28px;
    }

    .trust-card strong {
        font-size: 22px;
    }

    .trust-card span {
        font-size: 11px;
    }

    /* ── Contact Page ── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px var(--mobile-pad);
    }

    .contact-info,
    .contact-form-card {
        padding: 18px;
        border-radius: var(--mobile-radius);
        box-shadow: var(--mobile-shadow);
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        align-items: start;
    }

    .contact-info .section-title {
        grid-column: 1 / -1;
        margin-bottom: 14px;
    }

    .contact-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 14px 10px;
        border: 1px solid #edf1ea;
        border-radius: 14px;
        gap: 8px;
        min-height: 140px;
        align-content: center;
    }

    .contact-row:last-child {
        grid-column: 1 / -1;
        min-height: 0;
        padding: 14px;
    }

    .contact-row div {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .contact-row strong {
        font-size: 13px;
    }

    .contact-row span {
        font-size: 12px;
        justify-items: center;
    }

    .contact-form {
        gap: 14px;
    }

    .contact-form label {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 13px;
    }

    .contact-form label > span {
        font-size: 13px;
        font-weight: 800;
        color: #3a4039;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        min-height: 50px;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 14.5px;
    }

    .contact-form textarea {
        min-height: 110px;
    }

    .contact-form small {
        grid-column: 1;
    }

    .contact-form .btn {
        height: 54px;
        border-radius: 12px;
        font-size: 16px;
    }

    .map-section {
        padding-inline: var(--mobile-pad);
    }

    .map-card img {
        height: 200px;
    }

    .map-popup {
        display: none;
    }

    .success-message {
        width: calc(100% - 28px);
        max-width: 492px;
        margin-inline: auto;
        flex-wrap: wrap;
        border-radius: 14px;
        font-size: 14px;
        padding: 14px;
    }

    /* ── 404 Page ── */
    .not-found {
        width: calc(100% - 28px);
        max-width: 492px;
        min-height: 500px;
        margin: 20px auto;
        padding: 28px 20px;
        border: 1px solid var(--line);
        border-radius: var(--mobile-radius);
        background: linear-gradient(180deg, #f2f8eb, #eef5e4);
        box-shadow: var(--mobile-shadow);
    }

    .not-found__icon {
        font-size: 110px;
    }

    .not-found__code {
        display: block;
        color: var(--brand);
        font-size: 100px;
        font-weight: 950;
        line-height: 1;
    }

    .not-found h1 {
        font-size: 22px;
        line-height: 1.65;
    }

    .not-found .btn {
        height: 54px;
        border-radius: 12px;
        padding-inline: 28px;
        font-size: 16px;
    }

    /* ── Performance: disable animations ── */
    .product-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .product-card:hover {
        transform: none !important;
    }
}

/* ── Very small screens (≤ 430px) ── */
@media (max-width: 430px) {
    :root {
        --mobile-pad: 14px;
    }

    .home-hero {
        height: 320px;
    }

    .hero-slide__content h1,
    .hero-slide__content .hero-slide__title {
        font-size: 21px;
    }

    .hero-slide__content .btn {
        margin-top: auto;
        height: 46px;
    }

    .intro-section {
        grid-template-columns: 1fr;
    }

    .intro-section img {
        height: 180px;
    }

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

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card {
        min-height: auto;
    }

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

    .related-products .product-grid--related {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* responsive/mobile-overrides.css */
/* ═══════════════════════════════════════════════════════════════
   mobile-overrides.css
   موارد اضافی که در mobile.css پوشش نمی‌دهد
   ════════════════════════════════════════════════════════════════ */

/* ─── عناصر فقط موبایل: پنهان در دسکتاپ ─── */
.mobile-call-icon,
.mobile-bottom-nav,
.mobile-back-link,
.mobile-suggested-links,
.not-found__code {
    display: none;
}

/* ─── نمایش تنها در موبایل ─── */
@media (max-width: 768px) {
    .mobile-call-icon,
    .mobile-bottom-nav,
    .mobile-back-link {
        display: grid;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    /* مخفی کردن ناوبری دسکتاپ */
    .main-nav,
    .call-pill {
        display: none !important;
    }

    /* CTA panel در موبایل */
    .cta-panel__item--support {
        grid-template-columns: 64px 1fr;
    }

    .cta-panel__item--empty {
        grid-template-columns: 1fr 64px;
    }

    .cta-panel__icon {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }

    /* Mobile suggested links (404 page) */
    .mobile-suggested-links {
        display: grid;
        gap: 10px;
        padding-inline: var(--mobile-pad, 16px);
        margin-bottom: 18px;
    }

    .mobile-suggested-links h2 {
        margin: 0 0 6px;
        color: var(--brand);
        text-align: center;
        font-size: 20px;
        font-weight: 950;
    }

    .mobile-suggested-links a {
        min-height: 66px;
        display: grid;
        grid-template-columns: 40px 1fr 26px;
        align-items: center;
        gap: 12px;
        padding: 0 18px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        color: var(--brand);
        box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
        font-size: 16px;
        font-weight: 850;
        text-decoration: none;
    }
}

/* ─── نقطه شکست ۵۴۰ ─── */
@media (max-width: 540px) {
    .container {
        padding-inline: 14px;
    }
}

/* app.css */
/* Optimized image rendering */
picture {
    display: contents;
}

.hero-slide > picture,
.page-hero > picture {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-slide__image,
.page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card__image picture,
.map-card picture,
.gallery-frame picture,
.gallery-thumbs picture,
.intro-section picture,
.about-intro picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__image picture img,
.map-card picture img,
.gallery-frame picture img,
.gallery-thumbs picture img,
.intro-section picture img,
.about-intro picture img {
    width: 100%;
    height: 100%;
}

/* Production hardening */
.site-icon,
svg.site-icon {
    display: inline-block;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    flex: 0 0 22px;
    vertical-align: middle;
}

a svg,
button svg {
    flex-shrink: 0;
}

.product-card .site-icon,
.product-card svg.site-icon,
.btn--details .site-icon,
.btn--details svg.site-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    flex-basis: 18px;
}

/* Unified icon bubbles */
.benefit-card__icon,
.about-card__icon,
.contact-row div,
.cta-panel__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(20, 109, 50, .10);
}

.benefit-card__icon .site-icon,
.about-card__icon .site-icon,
.contact-row div .site-icon,
.cta-panel__icon .site-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    max-width: 28px;
    flex-basis: 28px;
}

.trust-card {
    grid-template-columns: 64px 1fr !important;
    gap: 14px !important;
    align-items: center !important;
    text-align: right;
}

.trust-card > .site-icon,
.trust-card > svg.site-icon {
    box-sizing: content-box;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    max-width: 28px;
    flex: 0 0 28px;
    padding: 14px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(20, 109, 50, .10);
}

.summary-icons span {
    min-height: 96px;
    padding: 10px 6px;
    border-radius: 12px;
    background: rgba(241, 248, 233, .45);
}

.summary-icons .site-icon,
.summary-icons svg.site-icon {
    box-sizing: content-box;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(20, 109, 50, .12);
}

/* Larger product-detail gallery */
.product-detail {
    grid-template-columns: minmax(360px, 34%) minmax(0, 1fr) !important;
    gap: 28px !important;
}

.product-gallery {
    padding: 22px !important;
}

.gallery-frame {
    min-height: clamp(440px, 42vw, 620px) !important;
    padding: 10px !important;
}

.gallery-main,
.gallery-main.is-tiny-source,
.gallery-main.is-small-source {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

.gallery-thumbs {
    grid-template-columns: repeat(5, minmax(92px, 1fr)) !important;
    justify-content: end;
}

.gallery-thumbs button {
    height: 86px !important;
}

.gallery-arrow {
    width: 48px !important;
    height: 48px !important;
}

.gallery-arrow .site-icon,
.gallery-arrow svg.site-icon {
    width: 24px !important;
    height: 24px !important;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 960px) {
    .product-detail {
        grid-template-columns: 1fr !important;
    }

    .gallery-frame {
        min-height: clamp(300px, 58vw, 460px) !important;
    }
}

@media (max-width: 768px) {
    body.site-body {
        padding-top: 84px !important;
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    }

    main {
        padding-bottom: 18px;
    }

    .site-header {
        height: 84px !important;
    }

    .header-shell {
        height: 84px !important;
    }

    .home-hero,
    .page-hero {
        width: calc(100% - 28px) !important;
        max-width: 492px;
        margin: 16px auto 20px !important;
        border-radius: 20px;
        overflow: hidden;
    }

    .page-hero {
        min-height: 210px !important;
        padding: 0 !important;
        display: grid;
        align-items: end;
    }

    .page-hero__content {
        padding-block: 26px 22px;
    }

    .hero-dots {
        bottom: 8px !important;
        gap: 0 !important;
        min-height: 44px;
        align-items: center;
    }

    .hero-dots button {
        position: relative;
        width: 44px !important;
        height: 44px !important;
        padding: 0;
        border-radius: 50%;
        background: transparent !important;
        box-shadow: none !important;
    }

    .hero-dots button::after {
        content: "";
        position: absolute;
        inset: 17px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .58);
        box-shadow: 0 1px 4px rgba(0, 0, 0, .20);
    }

    .hero-dots button.is-active::after {
        inset: 15px;
        background: #fff;
    }

    .hero-slide__content .btn,
    .btn,
    .btn--details,
    .category-tabs button,
    .gallery-arrow,
    .mobile-call-icon,
    .mobile-menu-button,
    .mobile-bottom-nav a {
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-bottom-nav {
        display: flex;
        height: 78px !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .intro-section,
    .featured-products,
    .benefits-strip,
    .trust-section,
    .contact-grid,
    .map-section,
    .products-page,
    .product-detail,
    .detail-grid,
    .related-products {
        scroll-margin-top: 100px;
    }

    .about-intro {
        margin-top: 22px !important;
        padding-top: 0 !important;
    }

    .about-intro picture,
    .about-intro img {
        min-height: 240px !important;
    }

    .summary-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .gallery-thumbs button {
        height: 74px !important;
    }
}

@media (min-width: 769px) {
    .mobile-nav,
    .mobile-call-icon,
    .mobile-menu-button,
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* project-audit.css */
/* Project-wide final layout safeguards
   Loaded after the main bundle to prevent accidental hiding of core layout blocks. */

.site-header,
.site-footer,
main {
    visibility: visible;
}

.site-footer {
    display: block;
}

/* Desktop contact page: keep the desktop layout separate from mobile rules. */
@media (min-width: 1025px) {
    .contact-grid,
    .map-section,
    .success-message,
    .benefits-strip {
        width: min(calc(100% - clamp(72px, 10vw, 180px)), 1400px) !important;
        max-width: 1400px !important;
        margin-inline: auto !important;
    }

    .contact-grid {
        direction: rtl;
        display: grid !important;
        grid-template-columns: minmax(420px, .95fr) minmax(560px, 1.05fr) !important;
        grid-template-areas: "info form";
        gap: clamp(24px, 2.2vw, 36px) !important;
        align-items: stretch !important;
        padding: clamp(30px, 3vw, 48px) 0 clamp(24px, 2.4vw, 36px) !important;
    }

    .contact-info {
        grid-area: info;
    }

    .contact-form-card {
        grid-area: form;
    }

    .contact-info,
    .contact-form-card {
        min-width: 0;
        height: 100%;
        min-height: clamp(500px, 31vw, 590px);
        padding: clamp(26px, 2vw, 34px) clamp(28px, 2.2vw, 38px) !important;
        border-radius: 18px !important;
    }

    .contact-info .section-title,
    .contact-form-card .section-title {
        margin-bottom: clamp(18px, 1.6vw, 24px) !important;
    }

    .contact-row {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        min-height: 96px !important;
        gap: 16px !important;
        padding-block: 14px !important;
    }

    .contact-row div {
        width: 58px !important;
        height: 58px !important;
    }

    .contact-form {
        gap: 16px !important;
    }

    .contact-form label {
        grid-template-columns: 108px minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .contact-form input,
    .contact-form select {
        min-height: 46px !important;
    }

    .contact-form textarea {
        min-height: 136px !important;
    }

    .contact-form .btn {
        min-height: 58px !important;
    }

    .map-section {
        margin-bottom: 24px !important;
    }

    .map-card {
        border-radius: 18px !important;
    }

    .map-card img {
        height: clamp(230px, 18vw, 300px) !important;
    }

    .map-popup {
        display: block !important;
        width: 250px !important;
        top: 30px !important;
        right: 30px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .contact-grid,
    .map-section,
    .success-message,
    .benefits-strip {
        width: min(calc(100% - 56px), 1160px) !important;
    }

    .contact-grid {
        grid-template-columns: minmax(360px, .95fr) minmax(480px, 1.05fr) !important;
        gap: 22px !important;
    }

    .contact-info,
    .contact-form-card {
        min-height: 500px;
        padding: 24px 26px !important;
    }
}

@media (max-width: 768px) {
    .site-footer {
        display: block !important;
        width: calc(100% - 28px) !important;
        max-width: 492px !important;
        margin: 18px auto calc(104px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: var(--mobile-radius, 18px) !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    .main-nav,
    .call-pill {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .site-footer {
        display: block !important;
    }

    .mobile-nav,
    .mobile-call-icon,
    .mobile-menu-button,
    .mobile-bottom-nav {
        display: none !important;
    }
}