:root {
  --navy: #0b2f4f;
  --navy-2: #0e416f;
  --blue: #1469aa;
  --cyan: #21b4cc;
  --orange: #f59e0b;
  --bg: #f5f7fa;
  --surface: #fff;
  --text: #17212b;
  --muted: #667789;
  --line: #e3e8ef;
  --green: #16875c;
  --red: #bf4141;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(14, 45, 73, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Vazirmatn", Tahoma, sans-serif; background: var(--bg); color: var(--text); direction: rtl; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }

.topbar { background: #072743; color: #dbe7f0; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.topbar-contact { direction: ltr; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(7, 39, 67, .06); }
.header-main { display: grid; grid-template-columns: 260px minmax(300px, 1fr) 210px; align-items: center; gap: 28px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; font-weight: 800; font-size: 26px; box-shadow: 0 8px 18px rgba(20,105,170,.2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.brand-text strong { font-size: 20px; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 11px; }
.header-search { display: flex; min-width: 0; border: 1px solid var(--line); background: #f7f9fb; border-radius: 13px; overflow: hidden; }
.header-search input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 14px 16px; outline: 0; }
.header-search button { border: 0; background: var(--navy); color: #fff; padding: 0 22px; }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { position: relative; border: 0; background: transparent; display: grid; gap: 3px; justify-items: center; color: var(--navy); min-width: 70px; }
.icon-btn span { font-size: 22px; }
.icon-btn small { font-size: 11px; color: var(--muted); }
.cart-count { position: absolute; top: -5px; left: 9px; min-width: 18px; height: 18px; border-radius: 50px; background: var(--orange); color: #fff; font-size: 10px; display: grid; place-items: center; }
.main-nav { border-top: 1px solid #edf1f5; }
.nav-inner { min-height: 48px; display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav-inner a:hover { color: var(--blue); }

.hero { background: radial-gradient(circle at 20% 30%, rgba(33,180,204,.16), transparent 32%), linear-gradient(135deg,#edf7fb 0%,#f7fafc 54%,#eef3f7 100%); overflow: hidden; }
.hero-grid { min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow, .section-head span, .service-copy > span { color: var(--blue); font-size: 13px; font-weight: 700; }
.hero h1 { font-size: clamp(36px, 4.5vw, 62px); line-height: 1.3; margin: 14px 0 18px; color: var(--navy); letter-spacing: -.8px; }
.hero h1 span { color: var(--blue); }
.hero p { max-width: 630px; color: var(--muted); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn { border: 1px solid transparent; border-radius: 12px; padding: 13px 20px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: .2s ease; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline { background: #fff; color: var(--navy); border-color: #cdd7e1; }
.btn-block { width: 100%; }
.grow { flex: 1; }
.hero-stats { display: flex; gap: 36px; margin-top: 38px; }
.hero-stats div { display: grid; gap: 3px; }
.hero-stats strong { color: var(--navy); font-size: 24px; }
.hero-stats span { color: var(--muted); font-size: 12px; }
.hero-visual { min-height: 470px; position: relative; }
.hero-visual::before { content:""; position:absolute; width:390px; height:390px; border-radius:50%; background:linear-gradient(145deg,var(--navy),var(--blue)); left:50%; top:50%; transform:translate(-50%,-50%); box-shadow:0 35px 80px rgba(14,65,111,.24); }
.hero-visual::after { content:""; position:absolute; inset:55px 65px; border:1px dashed rgba(20,105,170,.3); border-radius:50%; animation:spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card { position: absolute; z-index: 2; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow); }
.card-main { width: 360px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 24px; overflow: hidden; padding: 28px; }
.card-main img { height: 180px; margin: auto; }
.card-main div { display: grid; gap: 6px; margin-top: 18px; }
.card-main small { color: var(--blue); }
.card-main strong { color: var(--navy); font-size: 18px; }
.card-main span { color: var(--muted); font-size: 12px; }
.card-mini { width: 170px; border-radius: 16px; padding: 14px; display:flex; align-items:center; gap:10px; }
.card-mini img { width: 52px; height: 52px; object-fit: contain; }
.card-mini span { font-size:12px; font-weight:700; color:var(--navy); }
.mini-one { right: 0; top: 75px; }
.mini-two { left: 0; bottom: 70px; }

.section { padding: 78px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-head h2, .service-copy h2 { margin: 6px 0 0; color: var(--navy); font-size: 30px; }
.section-head > a { color: var(--blue); font-size: 13px; font-weight: 600; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.category-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; min-height:145px; display:grid; align-content:center; gap:7px; transition:.2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfd6e7; }
.category-icon { width:44px; height:44px; border-radius:12px; background:#eaf5fa; color:var(--blue); display:grid; place-items:center; font-size:20px; margin-bottom:4px; }
.category-card strong { color:var(--navy); }
.category-card small { color:var(--muted); }
.featured-section { background:#fff; }
.product-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.product-card { background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; transition:.2s ease; min-width:0; }
.product-card:hover { box-shadow:0 18px 42px rgba(17,50,78,.1); transform:translateY(-4px); }
.product-media { height:230px; background:linear-gradient(180deg,#f8fafc,#eef3f7); display:grid; place-items:center; position:relative; overflow:hidden; }
.product-media img { width:78%; height:78%; object-fit:contain; transition:.25s ease; }
.product-card:hover .product-media img { transform:scale(1.04); }
.discount-badge { position:absolute; top:14px; right:14px; background:#fff1da; color:#9a5b00; border-radius:8px; padding:6px 9px; font-size:10px; font-weight:700; z-index:2; }
.product-body { padding:18px; }
.product-meta { display:flex; gap:8px; margin-bottom:10px; }
.product-meta span { background:#edf4f8; color:#587187; border-radius:7px; padding:4px 8px; font-size:10px; }
.product-title { display:block; font-size:16px; font-weight:700; color:var(--navy); min-height:52px; line-height:1.8; }
.product-body > p { color:var(--muted); font-size:12px; line-height:1.9; min-height:46px; }
.availability { font-size:11px; margin:10px 0; }
.in-stock { color:var(--green); }
.out-stock { color:var(--red); }
.product-footer { display:flex; align-items:end; justify-content:space-between; gap:14px; border-top:1px solid #edf1f5; padding-top:14px; }
.price-wrap { display:grid; gap:2px; }
.price-wrap del { color:#98a5b1; font-size:10px; }
.price-wrap strong { color:var(--navy); font-size:16px; }
.price-wrap small { font-size:10px; font-weight:500; }
.add-btn { width:38px; height:38px; border-radius:11px; border:0; background:var(--navy); color:#fff; font-size:22px; }
.add-btn:disabled, .btn:disabled { opacity:.45; cursor:not-allowed; }
.services-section { background:linear-gradient(135deg,#082c4a,#104b79); color:#fff; }
.services-wrap { display:grid; grid-template-columns:.85fr 1.15fr; gap:60px; align-items:center; }
.service-copy > span { color:#73d5e4; }
.service-copy h2 { color:#fff; font-size:34px; }
.service-copy p { color:#cfdeea; line-height:2; margin:18px 0 24px; }
.services-section .btn-primary { background:#fff; color:var(--navy); }
.service-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.service-cards > div { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:22px; }
.service-cards b { color:#6fcee0; font-size:12px; }
.service-cards strong { display:block; margin:10px 0 7px; }
.service-cards p { color:#c7d7e4; font-size:12px; line-height:1.8; margin:0; }
.brands-strip { background:#fff; border-bottom:1px solid var(--line); }
.brands-list { min-height:95px; display:flex; align-items:center; justify-content:space-between; gap:28px; color:#7f8f9e; font-weight:800; letter-spacing:1px; }

.page-hero.compact { background:linear-gradient(135deg,#eaf3f8,#f8fbfc); padding:46px 0; }
.page-hero h1 { margin:10px 0 8px; color:var(--navy); font-size:34px; }
.page-hero p { margin:0; color:var(--muted); }
.breadcrumbs { display:flex; gap:8px; align-items:center; color:#748595; font-size:12px; }
.breadcrumbs a:hover { color:var(--blue); }
.products-page { padding-top:42px; }
.shop-layout { display:grid; grid-template-columns:250px 1fr; gap:26px; align-items:start; }
.shop-sidebar { display:grid; gap:16px; position:sticky; top:158px; }
.filter-card, .support-box { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px; }
.filter-card h3 { font-size:14px; color:var(--navy); margin:0 0 14px; }
.filter-card input { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 12px; outline:0; margin-bottom:10px; }
.filter-link { display:block; padding:9px 11px; border-radius:9px; color:#52687b; font-size:13px; }
.filter-link:hover, .filter-link.active { background:#edf5fa; color:var(--blue); font-weight:600; }
.support-box { background:linear-gradient(150deg,#0c3559,#155f94); color:#fff; }
.support-icon { font-size:24px; }
.support-box strong { display:block; margin:12px 0 8px; }
.support-box p { color:#d1e0eb; font-size:12px; line-height:1.8; }
.support-box b { direction:ltr; display:inline-block; }
.shop-toolbar { min-height:58px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; font-size:13px; }
.sort-form { display:flex; align-items:center; gap:9px; }
.sort-form select { border:1px solid var(--line); border-radius:9px; background:#fff; padding:8px 10px; outline:0; }
.shop-grid { grid-template-columns:repeat(3,1fr); }
.empty-state { background:#fff; border:1px solid var(--line); border-radius:18px; text-align:center; padding:70px 20px; }
.empty-state > div { font-size:48px; color:#9cb1c1; }
.empty-state h2 { color:var(--navy); }
.empty-state p { color:var(--muted); }

.product-detail-section { padding:34px 0 60px; }
.detail-breadcrumbs { margin-bottom:20px; }
.product-detail-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:42px; align-items:start; }
.detail-media { background:#fff; border:1px solid var(--line); border-radius:22px; padding:34px; min-height:480px; display:grid; place-items:center; position:relative; }
.detail-media img { width:85%; max-height:330px; object-fit:contain; }
.detail-badge { top:22px; right:22px; }
.media-note { position:absolute; bottom:16px; color:#9aa7b2; font-size:10px; }
.detail-info { background:#fff; border:1px solid var(--line); border-radius:22px; padding:32px; }
.detail-info h1 { color:var(--navy); font-size:30px; line-height:1.5; margin:10px 0; }
.lead { color:var(--muted); line-height:1.9; }
.detail-divider { height:1px; background:var(--line); margin:24px 0; }
.detail-info h3 { font-size:15px; color:var(--navy); }
.feature-list { display:grid; grid-template-columns:repeat(2,1fr); gap:10px 18px; padding:0; list-style:none; }
.feature-list li { font-size:13px; color:#445d70; position:relative; padding-right:18px; }
.feature-list li::before { content:"✓"; color:var(--green); position:absolute; right:0; font-weight:700; }
.purchase-box { margin-top:26px; border:1px solid #dce5ec; background:#f8fafc; border-radius:16px; padding:20px; }
.stock-line { font-size:12px; font-weight:600; }
.detail-price { display:grid; gap:3px; margin:15px 0; }
.detail-price del { color:#9ca9b4; font-size:12px; }
.detail-price strong { font-size:28px; color:var(--navy); }
.detail-price small { font-size:12px; }
.purchase-actions { display:flex; gap:10px; }
.purchase-meta { display:flex; gap:18px; flex-wrap:wrap; margin-top:16px; color:#687b8b; font-size:11px; }
.detail-tabs { margin-top:28px; background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.tabs-head { display:flex; gap:4px; padding:10px 14px 0; border-bottom:1px solid var(--line); }
.tabs-head button { border:0; background:transparent; padding:12px 18px; color:#667b8c; border-bottom:2px solid transparent; }
.tabs-head button.active { color:var(--blue); border-bottom-color:var(--blue); font-weight:600; }
.tab-panel { display:none; padding:28px; color:#506779; line-height:2; }
.tab-panel.active { display:block; }
.tab-panel h2 { color:var(--navy); font-size:20px; margin-top:0; }
.spec-table { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.spec-table div { display:grid; grid-template-columns:220px 1fr; border-bottom:1px solid var(--line); }
.spec-table div:last-child { border-bottom:0; }
.spec-table span, .spec-table strong { padding:13px 16px; }
.spec-table span { background:#f6f8fa; }
.related-grid { grid-template-columns:repeat(4,1fr); }

.site-footer { background:#071f34; color:#d2dee7; }
.footer-grid { display:grid; grid-template-columns:1.2fr .7fr 1fr; gap:60px; padding:58px 0 42px; }
.footer-brand { color:#fff; font-weight:800; font-size:24px; margin-bottom:12px; }
.footer-grid p { color:#9fb1bf; font-size:13px; line-height:1.9; }
.footer-grid h4 { color:#fff; margin-top:0; }
.footer-grid a { display:block; color:#b6c5d0; font-size:13px; margin:9px 0; }
.footer-bottom { text-align:center; border-top:1px solid rgba(255,255,255,.08); padding:15px; color:#7890a2; font-size:11px; }

.cart-drawer { position:fixed; inset:0; background:rgba(3,18,31,.48); z-index:100; opacity:0; visibility:hidden; transition:.2s ease; }
.cart-drawer.open { opacity:1; visibility:visible; }
.cart-panel { position:absolute; top:0; left:0; width:min(390px,92vw); height:100%; background:#fff; transform:translateX(-100%); transition:.25s ease; padding:28px; box-shadow:20px 0 50px rgba(0,0,0,.16); }
.cart-drawer.open .cart-panel { transform:translateX(0); }
.drawer-close { position:absolute; left:18px; top:18px; border:0; background:#eef2f5; width:36px; height:36px; border-radius:10px; font-size:22px; }
.cart-panel h3 { color:var(--navy); margin-top:4px; }
.empty-cart { text-align:center; padding:70px 10px; color:var(--muted); }
.empty-icon { font-size:48px; margin-bottom:16px; }
.empty-cart strong { display:block; color:var(--navy); margin-bottom:8px; }
.empty-cart p { font-size:12px; line-height:1.9; }

@media (max-width: 1050px) {
  .header-main { grid-template-columns:220px 1fr 150px; gap:16px; }
  .nav-inner { gap:22px; overflow:auto; white-space:nowrap; }
  .hero-grid { grid-template-columns:1fr 1fr; gap:20px; }
  .card-main { width:310px; }
  .category-grid { grid-template-columns:repeat(3,1fr); }
  .product-grid, .shop-grid { grid-template-columns:repeat(2,1fr); }
  .related-grid { grid-template-columns:repeat(2,1fr); }
  .shop-layout { grid-template-columns:220px 1fr; }
}

@media (max-width: 780px) {
  .container { width:min(100% - 28px, 1220px); }
  .topbar-contact { display:none; }
  .header-main { grid-template-columns:1fr auto; min-height:72px; }
  .brand-text small, .header-actions .icon-btn:first-child { display:none; }
  .header-search { grid-column:1/-1; grid-row:2; margin-bottom:14px; }
  .header-actions { grid-column:2; grid-row:1; }
  .main-nav { display:none; }
  .hero-grid { grid-template-columns:1fr; padding:55px 0 30px; }
  .hero h1 { font-size:38px; }
  .hero-visual { min-height:390px; }
  .card-main { width:min(310px,80vw); }
  .mini-one { right:0; }
  .mini-two { left:0; }
  .section { padding:58px 0; }
  .section-head { align-items:start; }
  .section-head h2 { font-size:25px; }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .services-wrap { grid-template-columns:1fr; gap:35px; }
  .brands-list { overflow:auto; justify-content:flex-start; padding:0 2px; }
  .shop-layout { grid-template-columns:1fr; }
  .shop-sidebar { position:static; }
  .shop-sidebar .support-box { display:none; }
  .detail-grid, .product-detail-grid { grid-template-columns:1fr; }
  .detail-media { min-height:360px; }
  .feature-list { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:26px; }
}

@media (max-width: 520px) {
  .brand-mark { width:44px; height:44px; }
  .header-main { gap:8px; }
  .header-actions { gap:0; }
  .icon-btn { min-width:55px; }
  .hero h1 { font-size:32px; }
  .hero p { font-size:14px; }
  .hero-actions { flex-direction:column; }
  .hero-stats { gap:18px; justify-content:space-between; }
  .hero-visual::before { width:300px; height:300px; }
  .hero-visual::after { inset:55px 12px; }
  .card-main { padding:20px; }
  .card-main img { height:145px; }
  .card-mini { width:145px; }
  .category-grid, .product-grid, .shop-grid, .related-grid, .service-cards { grid-template-columns:1fr; }
  .category-card { min-height:125px; }
  .product-media { height:210px; }
  .shop-toolbar { align-items:stretch; flex-direction:column; }
  .sort-form { justify-content:space-between; }
  .page-hero h1 { font-size:27px; }
  .detail-info { padding:22px; }
  .detail-info h1 { font-size:24px; }
  .purchase-actions { flex-direction:column; }
  .spec-table div { grid-template-columns:120px 1fr; }
  .tabs-head { overflow:auto; }
  .tabs-head button { white-space:nowrap; }
}
