/*
 * ماشین‌سازی شاه‌آبادی — لایهٔ مرتب‌سازی و ریسپانسیو (۱۴۰۵/۰۷/۱۶)
 * همان تم، همان رنگ‌ها (سبزهای #1b5e20 / #33691e / #66bb6a / #43a047) و همان فونت samim.
 * فقط فاصله، هم‌ترازی، اندازهٔ کارت‌ها و رفتار در موبایل/تبلت. آخرین فایلِ CSS است.
 */
:root {
    --sh-dark: #1b5e20;
    --sh-brand: #33691e;
    --sh-green: #66bb6a;
    --sh-green-2: #43a047;
    --sh-ink: #263238;
    --sh-muted: #607d8b;
    --sh-line: #e6ebe6;
    --sh-radius: 10px;
}

html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: 'samim', Tahoma, sans-serif; color: var(--sh-ink); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.container { padding-right: 16px; padding-left: 16px; }

/* ---------- هدر ---------- */
header.header-style-2 { position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
header.header-style-2 .navbar { display: flex; align-items: center; flex-wrap: nowrap; min-height: 76px; }
header.header-style-2 .navbar-brand {
    width: auto; min-width: 150px; margin: 0 0 0 24px; padding: 8px 28px;
    display: flex; align-items: center; justify-content: center; align-self: stretch;
}
header.header-style-2 .navbar-brand img { max-height: 60px; width: auto; height: 60px; }
header.header-style-2 .lang { display: none; }
header.header-style-2 .navbar-collapse { align-items: center; }
.header-style-2 .navbar-expand-lg .navbar-nav .nav-link { padding: 26px 14px; white-space: nowrap; }
ul.topnav-right { padding: 0 16px; float: none; margin-right: auto; }
ul.topnav-right li { margin: 0; float: none; }
.header-search-wrapper { position: relative; width: 210px; }
.header-search-wrapper .form-control {
    height: 40px; border-radius: 20px; border: 0; padding: 6px 16px 6px 44px;
    font-family: 'samim', sans-serif; font-size: 14px; background: rgba(255, 255, 255, .95);
}
.header-search-wrapper .search-position {
    top: 50% !important; left: 8px !important; transform: translateY(-50%);
    width: 30px !important; height: 30px !important; display: flex; align-items: center; justify-content: center;
}
.header-search-wrapper .search-position img { width: 18px; height: 18px; opacity: .65; }
header.header-style-2 .dropdown-menu { border-radius: 0 0 var(--sh-radius) var(--sh-radius); border: 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }

/* ---------- اسلایدر بالای صفحه ---------- */
.home-hero { display: block; background: var(--sh-dark); line-height: 0; }
.home-hero img {
    width: 100%; height: clamp(240px, 52vw, 620px); object-fit: cover; object-position: center 35%; display: block;
}

/* ---------- درباره ما ---------- */
.home2-about.p100 { padding: 72px 0; }
.home2-about .row { align-items: center; }
.home2-about .video-img img { width: 100%; border-radius: var(--sh-radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.h2-about-txt h3 { margin-bottom: 14px; }
.h2-about-txt p { line-height: 2.05; text-align: justify; font-size: 15.5px; color: #37474f; margin-bottom: 22px; }
.aboutus, a.lm { border-radius: 24px; padding: 0 28px; }

/* ---------- عنوان بخش‌ها ---------- */
.section-title-2 { margin-bottom: 34px; }
.section-title-2 h2 { margin-bottom: 0; }
.section-title-2 p { color: var(--sh-muted); margin: 8px 0 0; }
.online-shop.p80 { padding: 64px 0 72px; }

/* ---------- شبکهٔ محصولات: کارت‌های هم‌قد، تصویر یک‌اندازه ---------- */
.online-shop .row.product-grid, .page-content .row.product-grid { justify-content: center; }
.product-grid > [class*="col-"] { display: flex; margin-bottom: 24px; padding-right: 12px; padding-left: 12px; }
.product-box {
    flex: 1; display: flex; flex-direction: column; width: 100%; margin: 0;
    background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-box:hover { box-shadow: 0 10px 26px rgba(27, 94, 32, .12); transform: translateY(-2px); }
.product-box .pro-thumb { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-box .pro-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-box .pro-txt { flex: 1; display: flex; flex-direction: column; padding: 14px 14px 16px; text-align: center; }
.product-box .pro-txt h6 { font-size: 15px; line-height: 1.75; min-height: 3.5em; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-box .pro-txt p.pro-price { margin: auto 0 0; text-align: center; float: none; }
.load-more { margin-top: 8px !important; }

/* ---------- سربرگ صفحه‌های داخلی ---------- */
.inner-header { padding: 44px 0 38px; }
.inner-header h1 { font-size: 30px; line-height: 1.5; margin-bottom: 10px; }
.inner-header .breadcrumb-nav li, .inner-header .breadcrumb-nav a { font-size: 14px; }
.page-content { padding: 44px 0 64px; }

/* ---------- صفحهٔ محصول ---------- */
.product-detail-row { align-items: flex-start; }
.pro-large {
    background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius);
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 0;
}
.pro-large.gallery-img:before, .pro-large.gallery-img:after { display: none !important; }
.pro-large img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-thumbs { margin-top: 12px; }
.product-thumbs img { border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; }
.product-info {
    direction: rtl; text-align: right;
    background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 24px 26px;
}
.product-info .pro-title h2 { font-size: 26px; line-height: 1.6; margin: 0 0 12px; color: var(--sh-ink); }
.product-info .product-code { color: var(--sh-muted); font-size: 14px; margin-bottom: 4px; }
.product-info .product-contact-price { align-items: flex-start; }
.product-info .product-detail-price { margin: 14px 0 18px; padding: 14px 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.product-info .btn-theme-primary, .product-info .btn-theme-outline { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; border-radius: 24px; text-decoration: none; }
.product-info .about-txt { line-height: 2; text-align: justify; }

/* ---------- فوتر ---------- */
.footer .footer-top.custom-footer { display: none; } /* ستون‌های خالیِ «Latest Posts» قالب */
.footer .footer-top { padding: 56px 0 24px; }
.footer-widget { margin-bottom: 24px; }
.footer-widget h4 { margin-bottom: 18px; }
ul.quick-links li { line-height: 2.3; }
ul.quick-links li a, ul.quick-links li span { font-size: 15px; }
.footer-copyr { padding: 16px 0; }
.footer-copyr p { margin: 0; line-height: 1.9; }
.footer-copyr .row > div { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- تبلت و موبایل ---------- */
@media (max-width: 1199.98px) {
    .header-style-2 .navbar-expand-lg .navbar-nav .nav-link { padding: 26px 10px; font-size: 14px; }
    header.header-style-2 .navbar-brand { margin-left: 12px; padding: 8px 18px; min-width: 0; }
    .header-search-wrapper { width: 170px; }
}

@media (max-width: 991.98px) {
    header.header-style-2 .navbar { flex-wrap: wrap; min-height: 64px; padding: 0 12px 0 0; justify-content: space-between; }
    header.header-style-2 .navbar-brand { margin: 0; padding: 6px 14px; align-self: center; background: transparent; }
    header.header-style-2 .navbar-brand img { height: 52px; max-height: 52px; }
    header.header-style-2 .navbar-toggler {
        order: 2; margin: 0 12px 0 0; width: 46px; height: 46px; border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
    }
    header.header-style-2 .navbar-collapse { order: 3; flex-basis: 100%; background: var(--sh-dark); margin: 0 -12px 0 0; padding: 0 16px 14px; max-height: calc(100vh - 64px); overflow-y: auto; }
    .header-style-2 .navbar-expand-lg .navbar-nav .nav-link { padding: 12px 4px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .header-style-2 .navbar-nav li.nav-item:after { display: none; }
    ul.topnav-right { padding: 12px 0 0; margin: 0; display: block; }
    .header-search-wrapper { width: 100%; }
    .home2-about.p100 { padding: 48px 0; }
    .home2-about .video-img { margin-bottom: 26px; }
    .product-info { margin-top: 20px; }
}

@media (max-width: 767.98px) {
    .home-hero img { height: clamp(200px, 62vw, 360px); }
    .online-shop.p80 { padding: 44px 0 52px; }
    .product-grid { margin-right: -6px; margin-left: -6px; }
    .product-grid > [class*="col-"] { padding-right: 6px; padding-left: 6px; margin-bottom: 12px; }
    .product-box .pro-thumb img { padding: 6px; }
    .product-box .pro-txt { padding: 10px 8px 12px; }
    .product-box .pro-txt h6 { font-size: 14px; }
    .product-box .pro-txt p.pro-price { font-size: 13px; }
    .section-title-2 { margin-bottom: 22px; }
    .section-title-2 h2 { font-size: 24px; }
    .inner-header { padding: 30px 0 26px; }
    .inner-header h1 { font-size: 22px; }
    .page-content { padding: 28px 0 44px; }
    .product-info { padding: 18px 16px; }
    .product-info .pro-title h2 { font-size: 21px; }
    .product-detail-price { font-size: 22px; }
    .product-info .btn-theme-primary, .product-info .btn-theme-outline { width: 100%; justify-content: center; margin: 0 0 10px !important; }
    .h2-about-txt p { font-size: 15px; line-height: 2; }
    .footer .footer-top { padding: 40px 0 8px; text-align: right; }
    .footer-copyr .row > div { flex-direction: column; text-align: center; }
}
