/* Cizgiran — استایل سایت */

@font-face {
    font-family: 'Vazirmatn';
    src: local('Vazirmatn'), local('Vazir');
    font-display: swap;
}

:root {
    --teal: #0a7c76;
    --teal-dark: #065f5a;
    --teal-light: #e6f4f3;
    --ink: #12212b;
    --body: #445;
    --muted: #7c8a94;
    --line: #e3e9ec;
    --bg: #f6f9fa;
    --white: #fff;
    --gold: #c9a227;
    --danger: #c0392b;
    --ok: #1d8b4a;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(18, 33, 43, .06);
    --shadow-lg: 0 8px 28px rgba(18, 33, 43, .10);
    --font: 'Vazirmatn', 'IRANSans', Tahoma, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    color: var(--body);
    background: var(--bg);
    line-height: 1.85;
    font-size: 15px;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.5; font-weight: 700; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }

.skip-link {
    position: absolute; right: -9999px; top: 0; background: var(--teal); color: #fff;
    padding: 10px 18px; z-index: 100;
}
.skip-link:focus { right: 8px; top: 8px; color: #fff; }

/* ---------- هدر ---------- */
.site-header { background: var(--white); box-shadow: var(--shadow); position: relative; z-index: 20; }

.topbar { background: var(--teal-dark); color: #d7ecea; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 12px; }
.badge-official { font-weight: 600; }
.topbar-phone { color: #fff; font-weight: 700; }
.topbar-phone:hover { color: #fff; opacity: .85; }

.header-inner { display: flex; align-items: center; gap: 24px; padding: 16px; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark {
    width: 46px; height: 46px; border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px;
    letter-spacing: .5px; flex-shrink: 0;
}
.logo-text strong { display: block; font-size: 20px; line-height: 1.3; }
.logo-text small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.search-box { flex: 1; min-width: 220px; display: flex; }
.search-box input {
    flex: 1; border: 1.5px solid var(--line); border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 11px 16px; font-family: inherit; font-size: 14px; outline: none;
}
.search-box input:focus { border-color: var(--teal); }
.search-box button {
    border: 0; background: var(--teal); color: #fff; padding: 0 22px;
    border-radius: var(--radius) 0 0 var(--radius); cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: 14px;
}
.search-box button:hover { background: var(--teal-dark); }

.btn-whatsapp {
    background: #25d366; color: #fff; padding: 11px 20px; border-radius: var(--radius);
    font-weight: 700; font-size: 14px; white-space: nowrap;
}
.btn-whatsapp:hover { background: #1eb355; color: #fff; }

/* ---------- منو ---------- */
.main-nav { background: var(--ink); }
.nav-toggle, .nav-toggle-label { display: none; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block; color: #cfd8de; padding: 13px 16px; font-size: 14px; font-weight: 500;
    transition: background .15s;
}
.nav-list > li > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.submenu {
    position: absolute; top: 100%; right: 0; min-width: 200px; background: var(--white);
    box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 30;
}
.has-children:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 16px; color: var(--body); font-size: 14px; }
.submenu a:hover { background: var(--teal-light); color: var(--teal-dark); }

/* ---------- هیرو ---------- */
.hero {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    color: #fff; padding: 56px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow {
    display: inline-block; background: rgba(255, 255, 255, .15); padding: 5px 14px;
    border-radius: 30px; font-size: 12.5px; letter-spacing: .5px; margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: 33px; margin-bottom: 14px; line-height: 1.6; }
.hero p { color: #e2f1f0; font-size: 16px; max-width: 640px; }
.hero strong { color: #fff; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-trust { display: grid; gap: 12px; }
.hero-trust li {
    background: rgba(255, 255, 255, .10); padding: 12px 16px; border-radius: var(--radius);
    font-size: 14.5px; font-weight: 500;
}
.hero-trust span { color: var(--gold); font-weight: 800; margin-left: 6px; }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-block; padding: 11px 26px; border-radius: var(--radius);
    font-weight: 700; font-size: 14.5px; border: 2px solid transparent; cursor: pointer;
    font-family: inherit; transition: .15s; text-align: center;
}
.btn-primary { background: var(--gold); color: #1d1400; border-color: var(--gold); }
.btn-primary:hover { background: #b8931f; border-color: #b8931f; color: #1d1400; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-whats { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whats:hover { background: #1eb355; color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ---------- بخش‌ها ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.section-title { font-size: 23px; position: relative; padding-right: 14px; }
.section-title::before {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 24px; background: var(--gold); border-radius: 3px;
}
.section-more { font-size: 14px; font-weight: 600; }

/* ---------- دسته‌ها ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.category-card {
    background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; text-align: center; transition: .18s;
}
.category-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.cc-name { display: block; font-weight: 700; color: var(--ink); font-size: 16px; }
.cc-desc { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }

/* ---------- کارت محصول ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #d3dde2; }
.pc-image { display: block; position: relative; aspect-ratio: 1; background: #fafcfc; }
.pc-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pc-badge {
    position: absolute; top: 10px; right: 10px; padding: 4px 11px; border-radius: 20px;
    font-size: 11.5px; font-weight: 700; color: #fff;
}
.pc-badge.hot { background: var(--gold); color: #1d1400; }
.pc-badge.out { background: var(--danger); }
.pc-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { color: var(--muted); font-size: 12px; }
.pc-title { font-size: 15px; margin: 4px 0 6px; line-height: 1.7; }
.pc-title a { color: var(--ink); }
.pc-title a:hover { color: var(--teal); }
.pc-desc { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin-bottom: 12px; }
.pc-footer {
    margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.pc-price { font-weight: 800; color: var(--teal-dark); font-size: 14.5px; }
.pc-btn {
    background: var(--teal-light); color: var(--teal-dark); padding: 6px 14px;
    border-radius: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.pc-btn:hover { background: var(--teal); color: #fff; }

/* ---------- مجله/مقالات ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #d3dde2; }
.post-card-image { display: block; aspect-ratio: 16/10; background: #fafcfc; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.post-card-date { color: var(--muted); font-size: 12px; }
.post-card-title { font-size: 16px; margin: 6px 0 8px; line-height: 1.7; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--teal); }
.post-card-excerpt { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 12px; flex: 1; }
.post-card-more { font-size: 12.5px; font-weight: 700; margin-top: auto; }

.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.post-featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 24px; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- مسیر و سرصفحه ---------- */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--muted); }
.breadcrumb span { margin: 0 4px; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.page-head h1 { font-size: 26px; }
.result-count { color: var(--muted); font-size: 13.5px; }
.category-intro {
    background: var(--white); border-right: 4px solid var(--teal); padding: 16px 20px;
    border-radius: var(--radius); margin-bottom: 20px; font-size: 14.5px;
}

/* ---------- لیست + سایدبار ---------- */
.layout-with-sidebar { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-bottom: 50px; align-items: start; }
.sidebar { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sidebar-title { font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--teal-light); }
.sidebar-cats a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--body); font-size: 14px; }
.sidebar-cats a:hover { background: var(--teal-light); color: var(--teal-dark); }
.sidebar-cats a.active { background: var(--teal); color: #fff; font-weight: 600; }
.sidebar-cats ul { padding-right: 14px; }
.sidebar-cats ul a { font-size: 13px; color: var(--muted); }
.sidebar-cta { margin-top: 22px; background: var(--teal-light); padding: 16px; border-radius: var(--radius); }
.sidebar-cta h3 { font-size: 15px; margin-bottom: 6px; }
.sidebar-cta p { font-size: 13px; color: var(--body); margin-bottom: 12px; }

/* ---------- صفحهٔ محصول ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; padding: 10px 16px 40px; align-items: start; }
.pd-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pd-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb {
    border: 2px solid var(--line); border-radius: 8px; padding: 0; background: var(--white);
    cursor: pointer; overflow: hidden; width: 72px; height: 72px;
}
.pd-thumb:hover, .pd-thumb.active { border-color: var(--teal); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pd-info h1 { font-size: 27px; margin-bottom: 14px; line-height: 1.6; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pd-original {
    background: var(--teal-light); border-radius: var(--radius); padding: 14px 18px;
    font-size: 13.5px; color: var(--teal-dark); margin-bottom: 18px; line-height: 1.9;
}
.oc-badge {
    display: inline-block; background: var(--teal); color: #fff; padding: 2px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 700; margin-left: 8px;
}
.source-link { display: block; margin-top: 8px; font-weight: 700; color: var(--teal-dark); }
.source-link:hover { text-decoration: underline; }
.pd-short { font-size: 15px; margin-bottom: 18px; }
.pd-variants { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pv-label { font-weight: 700; color: var(--ink); font-size: 14px; }
.pv-chip {
    border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 14px;
    font-size: 13px; background: var(--white);
}
.pv-chip.disabled { opacity: .45; text-decoration: line-through; }

.pd-purchase { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.pd-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.pd-price { font-size: 25px; font-weight: 800; color: var(--teal-dark); }
.pd-stock { padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.pd-stock.in { background: #e4f5eb; color: var(--ok); }
.pd-stock.out { background: #fdeceb; color: var(--danger); }
.pd-stock.call { background: #fdf6e0; color: #8a6d0b; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; }

.pd-inquiry { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pd-inquiry summary { padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.pd-inquiry[open] summary { border-bottom: 1px solid var(--line); }

.pd-description { background: var(--white); border-radius: var(--radius); padding: 28px; margin-bottom: 30px; box-shadow: var(--shadow); }
.pd-description h2 { font-size: 20px; margin-bottom: 14px; }

/* ---------- فرم ---------- */
.inquiry-form { padding: 18px; display: grid; gap: 14px; }
.inquiry-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.inquiry-form input, .inquiry-form textarea {
    width: 100%; margin-top: 6px; padding: 10px 14px; border: 1.5px solid var(--line);
    border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 400; outline: none;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-field { position: absolute !important; right: -9999px !important; opacity: 0; height: 0; }

/* ---------- متن غنی ---------- */
.rich-text { font-size: 15px; line-height: 2.1; }
.rich-text h2 { font-size: 20px; margin: 26px 0 12px; }
.rich-text h3 { font-size: 17px; margin: 20px 0 10px; }
.rich-text p { margin-bottom: 14px; }
.rich-text ul, .rich-text ol { margin: 0 22px 16px 0; }
.rich-text ul li { list-style: disc; margin-bottom: 6px; }
.rich-text ol li { list-style: decimal; margin-bottom: 6px; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 9px 12px; text-align: right; }
.rich-text th { background: var(--teal-light); }
.article-page { background: var(--white); border-radius: var(--radius); padding: 30px; margin-bottom: 40px; box-shadow: var(--shadow); }

.seo-block { background: var(--white); }
.seo-block h2 { font-size: 21px; margin-bottom: 14px; }
.seo-block p { margin-bottom: 12px; font-size: 14.5px; line-height: 2.1; }

/* ---------- تماس ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; padding-bottom: 50px; align-items: start; }
.contact-info, .contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-info h2, .contact-form-wrap h2 { font-size: 19px; margin-bottom: 16px; }
.contact-list li { padding: 7px 0; font-size: 14px; }
.contact-list.big li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.contact-form-wrap .inquiry-form { padding: 0; }

/* ---------- صفحه‌بندی ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 12px;
    border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
    font-size: 14px; font-weight: 600;
}
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .current { background: var(--teal); border-color: var(--teal); color: #fff; }
.pagination .dots { border: 0; background: transparent; }

/* ---------- هشدارها و حالت خالی ---------- */
.alert { padding: 13px 20px; border-radius: var(--radius); margin: 16px 0; font-size: 14px; font-weight: 600; }
.alert-success { background: #e4f5eb; color: var(--ok); border-right: 4px solid var(--ok); }
.alert-error { background: #fdeceb; color: var(--danger); border-right: 4px solid var(--danger); }

.empty-state { text-align: center; padding: 60px 20px; background: var(--white); border-radius: var(--radius); }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.error-404 { margin: 40px 0 70px; }
.error-404 h1 { font-size: 70px; color: var(--teal); }
.error-404 .hero-actions { justify-content: center; }
.error-404 .btn-outline { color: var(--teal); }
.error-404 .btn-outline:hover { background: var(--teal-light); }

/* ---------- فوتر ---------- */
.site-footer { background: var(--ink); color: #a9b8c2; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; padding: 44px 16px; }
.site-footer h3 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.site-footer p { font-size: 13.5px; line-height: 2; }
.site-footer a { color: #a9b8c2; font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.site-footer li { padding: 5px 0; font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px; text-align: center; font-size: 12.5px; }

.float-whatsapp {
    position: fixed; bottom: 22px; left: 22px; width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; z-index: 50;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
}
.float-whatsapp:hover { background: #1eb355; color: #fff; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .product-detail, .contact-grid { grid-template-columns: 1fr; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { gap: 12px; }
    .search-box { order: 3; width: 100%; flex-basis: 100%; }
    .btn-whatsapp { padding: 9px 14px; font-size: 13px; }
    .hero h1 { font-size: 25px; }
    .hero { padding: 38px 0; }

    .nav-toggle-label {
        display: block; color: #cfd8de; padding: 13px 16px; cursor: pointer;
        font-weight: 600; font-size: 14px;
    }
    .nav-list { display: none; flex-direction: column; padding-bottom: 8px; }
    .nav-toggle:checked ~ .nav-list { display: flex; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; }
    .submenu a { color: #9fb0ba; padding-right: 32px; }
    .submenu a:hover { background: transparent; color: #fff; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .pd-info h1 { font-size: 21px; }
    .pd-price { font-size: 21px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
