/* ── Vazirmatn @font-face ─────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  --navy:        #1a3a5c;
  --navy-dark:   #0f2540;
  --navy-light:  #264d78;
  --red:         #e63946;
  --red-dark:    #c0303c;
  --gold:        #f4a261;
  --gold-light:  #fdf0e3;
  --bg:          #f8f9fa;
  --bg-card:     #ffffff;
  --text:        #2b2d42;
  --text-muted:  #6c7a8d;
  --text-light:  #a0aec0;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 4px rgba(26,58,92,.08);
  --shadow-md:   0 4px 16px rgba(26,58,92,.12);
  --shadow-lg:   0 8px 32px rgba(26,58,92,.18);
  --shadow-card: 0 2px 12px rgba(26,58,92,.10);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --font:        'Vazirmatn', system-ui, sans-serif;
  --transition:  .22s ease;
  --max-w:       1240px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Utility ──────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 14px rgba(230,57,70,.35);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,.45); }
.btn-secondary {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

.badge {
  display: inline-block; padding: 3px 10px;
  font-size: 12px; font-weight: 600;
  border-radius: 20px;
}
.badge-red   { background: rgba(230,57,70,.12); color: var(--red); }
.badge-navy  { background: rgba(26,58,92,.1); color: var(--navy); }
.badge-gold  { background: rgba(244,162,97,.15); color: #b3662b; }

.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px; display: block;
}
.section-title {
  font-size: 26px; font-weight: 800; color: var(--navy);
  line-height: 1.25; text-wrap: balance;
}
.section-sub {
  font-size: 15px; color: var(--text-muted); margin-top: 10px; line-height: 1.7;
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: #fff; font-weight: 800; font-size: 20px;
  letter-spacing: -.01em;
}
.logo-icon {
  width: 40px; height: 40px; background: var(--red); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { color: #fff; }
.logo-sub { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.6); display: block; margin-top: -3px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.site-nav a {
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.site-nav a.active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm); overflow: hidden;
}
.header-search input {
  background: none; border: none; outline: none;
  color: #fff; font-size: 14px; padding: 8px 14px; width: 200px;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search button {
  background: none; border: none; color: rgba(255,255,255,.7);
  padding: 8px 12px; transition: color var(--transition);
}
.header-search button:hover { color: #fff; }

.header-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  color: #fff; transition: background var(--transition);
}
.header-icon-btn:hover { background: rgba(255,255,255,.2); }
.cart-badge {
  position: absolute; top: -5px; left: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}

.mobile-menu-toggle {
  display: none; background: none; border: none; color: #fff;
  padding: 6px;
}

/* ── Mobile nav ──────────────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; top: 68px; right: 0; left: 0; bottom: 0;
  background: var(--navy-dark); z-index: 999;
  padding: 24px; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.85); font-size: 16px; font-weight: 500;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 540px;
  background: var(--navy-dark);
  overflow: hidden; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero.webp');
  background-size: cover; background-position: center;
  opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(15,37,64,.9) 0%, rgba(15,37,64,.55) 50%, rgba(15,37,64,.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 580px; padding: 80px 0;
}
.hero-brand {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,57,70,.15); border: 1px solid rgba(230,57,70,.3);
  color: var(--gold); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: .03em;
}
.hero-title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 800;
  color: #fff; line-height: 1.2; text-wrap: balance; margin-bottom: 16px;
}
.hero-title span { color: var(--red); }
.hero-sub {
  font-size: 16px; color: rgba(255,255,255,.75);
  line-height: 1.75; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: rgba(26,58,92,.85); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.hero-trust-inner {
  display: flex; align-items: center; justify-content: space-around; gap: 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ── Stats strip ─────────────────────────────────────────────────── */
.stats-strip { background: var(--navy); padding: 32px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-item {
  text-align: center; padding: 0 20px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-left: none; }
.stat-number {
  font-size: 28px; font-weight: 800; color: var(--gold);
  display: block; line-height: 1;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 6px; }

/* ── Categories ──────────────────────────────────────────────────── */
.categories-section { background: var(--bg-card); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); gap: 16px;
  margin-top: 40px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px 12px;
  cursor: pointer; text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-decoration: none; color: inherit;
}
.cat-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
  border-color: var(--navy);
}
.cat-card-img {
  width: 72px; height: 72px; border-radius: var(--radius-md);
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-name {
  font-size: 13px; font-weight: 600; color: var(--navy);
  line-height: 1.4;
}
.cat-card:hover .cat-card-name { color: var(--red); }

/* ── Products ────────────────────────────────────────────────────── */
.products-section { background: var(--bg); }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 16px;
}
.section-header-right { }
.view-all {
  font-size: 14px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
  transition: color var(--transition);
}
.view-all:hover { color: var(--red); }

.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.product-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-img {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--bg);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badge-featured {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; letter-spacing: .04em; }
.product-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.45; margin-bottom: auto; flex: 1;
}
.product-price { font-size: 17px; font-weight: 800; color: var(--navy); margin-top: 14px; }
.product-price-label { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.product-card-footer { padding: 0 16px 16px; }
.product-card-footer .btn { width: 100%; justify-content: center; }

/* ── Ronix Banner ────────────────────────────────────────────────── */
.ronix-banner {
  background: var(--navy-dark);
  background-image: linear-gradient(135deg, #0f2540 0%, #1a3a5c 50%, #0f2540 100%);
  position: relative; overflow: hidden; padding: 72px 0;
}
.ronix-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('/assets/img/p7.webp');
  background-size: cover; background-position: center;
  opacity: .1;
}
.ronix-banner-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ronix-banner-text {}
.ronix-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold);
  margin-bottom: 16px; text-transform: uppercase;
}
.ronix-title {
  font-size: 30px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 20px;
}
.ronix-desc { font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 32px; }
.ronix-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ronix-point {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: 14px;
}
.ronix-point svg { color: var(--gold); flex-shrink: 0; }
.ronix-banner-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  aspect-ratio: 4/3;
}
.ronix-banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Blog Posts ──────────────────────────────────────────────────── */
.posts-section { background: var(--bg-card); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.post-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 20px; }
.post-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.post-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-summary {
  font-size: 13px; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}
.post-read-more {
  font-size: 13px; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--transition);
}
.post-read-more:hover { color: var(--red); }

/* ── Trust Section ───────────────────────────────────────────────── */
.trust-section { background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.trust-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 32px 20px; text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.trust-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.trust-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #fff;
}
.trust-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.trust-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ── CTA Banner ──────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 64px 0; text-align: center;
}
.cta-banner h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-banner p  { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.btn-white { background: #fff; color: var(--red); font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,.92); transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: #fff; font-weight: 800; font-size: 18px;
}
.footer-logo .logo-icon { width: 36px; height: 36px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.7);
}
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; }
.footer-phone {
  font-size: 15px; font-weight: 700; color: #fff;
  direction: ltr; unicode-bidi: embed;
}

.footer-col-title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--red); display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,.65);
  transition: color var(--transition), padding-right var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--red); font-size: 16px; }
.footer-links a:hover { color: #fff; padding-right: 4px; }

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ── Page ────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy); padding: 48px 0;
  border-bottom: 3px solid var(--red);
}
.page-hero h1 { font-size: 24px; font-weight: 800; color: #fff; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.55); margin-top: 8px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { font-size: 10px; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px;
  font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,.12); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-success { font-size: 13px; color: #16a34a; background: #dcfce7; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.form-msg-error { font-size: 13px; color: var(--red); background: #fee2e2; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }

/* ── Cart ────────────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-size: 13px; font-weight: 700; color: var(--text-muted); padding: 12px 16px; background: var(--bg); border-bottom: 2px solid var(--border); text-align: right; }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-prod-cell { display: flex; align-items: center; gap: 14px; }
.cart-prod-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.cart-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 30px; height: 30px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--bg); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: border-color var(--transition), background var(--transition); }
.qty-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.qty-val { font-weight: 700; min-width: 30px; text-align: center; }
.cart-remove { color: var(--red); background: none; border: none; cursor: pointer; padding: 4px; }

/* ── Admin ───────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; direction: rtl; }
.admin-sidebar {
  width: 240px; background: var(--navy-dark); flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px;
}
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 4px;
  transition: background var(--transition), color var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav a.active { background: var(--red); color: #fff; }
.admin-nav svg { flex-shrink: 0; }
.admin-main { flex: 1; background: var(--bg); display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 62px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar-title { font-size: 18px; font-weight: 700; color: var(--text); }
.admin-content { padding: 28px; flex: 1; }
.admin-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stat-card-inner { display: flex; align-items: center; gap: 16px; }
.stat-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-num { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: 13px; font-weight: 700; text-align: right; padding: 12px 14px; background: var(--bg); color: var(--text-muted); border-bottom: 2px solid var(--border); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tr:hover td { background: var(--bg); }
.action-btns { display: flex; gap: 6px; }
.btn-icon { width: 32px; height: 32px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; transition: all var(--transition); cursor: pointer; text-decoration: none; color: var(--text); }
.btn-icon:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-icon.danger:hover { border-color: var(--red); background: var(--red); }

/* Login */
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-dark); }
.login-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.login-card p  { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

/* ── Alerts ───────────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-link {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg-card); font-size: 14px; font-weight: 600; color: var(--text);
  transition: all var(--transition);
}
.page-link:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.page-link.active { border-color: var(--red); background: var(--red); color: #fff; }

/* ── Scroll reveal ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: .1s; }
  .reveal-delay-2 { transition-delay: .2s; }
  .reveal-delay-3 { transition-delay: .3s; }
  .reveal-delay-4 { transition-delay: .4s; }
}

/* ── Product Gallery ─────────────────────────────────────────────── */
.pg-wrap { display: flex; flex-direction: column; gap: 10px; }
.pg-main {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 1;
  background: var(--bg); position: relative;
}
.pg-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.pg-main:hover img { transform: scale(1.04); }
.pg-thumbs { display: flex; gap: 8px; }
.pg-thumb {
  flex: 1; min-width: 0; aspect-ratio: 1;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg); border: 2.5px solid transparent;
  cursor: pointer; padding: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-thumb:hover { border-color: var(--navy); }
.pg-thumb.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(230,57,70,.25); }

/* ── Size Selector ───────────────────────────────────────────────── */
.size-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.size-btn {
  padding: 8px 18px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.size-btn:hover { border-color: var(--navy); color: var(--navy); }
.size-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid   { grid-template-columns: repeat(3, 1fr); }
  .trust-grid      { grid-template-columns: repeat(2, 1fr); }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ronix-banner-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .site-nav, .header-search { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-content { padding: 60px 0 100px; }
  .hero-trust-inner { flex-wrap: wrap; gap: 16px; justify-content: flex-start; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .posts-grid     { grid-template-columns: 1fr; }
  .trust-grid     { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr; }
  .section        { padding: 48px 0; }
  .stats-row      { grid-template-columns: repeat(2, 1fr); }
  /* Product detail & shop sidebar stack on mobile */
  .product-detail-grid { grid-template-columns: 1fr !important; }
  .shop-layout    { grid-template-columns: 1fr !important; }
  .shop-sidebar   { display: none; }
  .pg-thumbs      { display: none; }
  /* Checkout / cart grids */
  .checkout-grid  { grid-template-columns: 1fr !important; }
  .cart-layout    { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid  { grid-template-columns: 1fr; }
  .trust-grid     { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section-title  { font-size: 22px; }
  .stats-row      { grid-template-columns: 1fr 1fr; }
  .ronix-title    { font-size: 22px; }
}

/* QA#20/21 hero-trust + stats spacing */
@media (max-width:768px){
  .hero{ min-height:auto; flex-direction:column; align-items:stretch; }
  .hero-content{ padding:52px 20px 22px; max-width:none; }
  .hero-trust{ position:static !important; }
  .hero-trust-inner{ justify-content:center; flex-wrap:wrap; gap:14px 22px; padding:0 16px; }
  .stats-grid{ gap:26px 16px !important; }
  .stat-item{ border-left:none !important; padding:0 8px; }
}
/* number<->label tighter (all screens) */
.stat-label{ margin-top:2px !important; }

/* QA#23 contact CTA hover — the «تماس با ما» CTA had an inline bg and no hover */
.cta-banner a[href="/contact"]{ transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.cta-banner a[href="/contact"]:hover{ background:rgba(255,255,255,.30) !important; border-color:#fff !important; transform:translateY(-2px); }

/* QA#20/22 v2 symmetric + icons-left */
@media (max-width:768px){
  .header-actions{ margin-inline-start:auto !important; }
  .hero-trust-inner{ display:flex !important; flex-direction:column !important; align-items:stretch !important; justify-content:flex-start !important; gap:12px !important; padding:0 22px !important; }
  .hero-trust .trust-item{ justify-content:flex-start; width:100%; }
}

/* QA#20 v3 trust cards — premium rounded trust cards on mobile */
@media (max-width:768px){
  .hero-trust{ position:static !important; background:transparent !important; border-top:none !important; padding:10px 0 4px !important; }
  .hero-trust-inner{ display:grid !important; grid-template-columns:1fr 1fr !important; gap:10px !important; padding:0 16px !important; align-items:stretch !important; }
  .hero-trust .trust-item{
    background:rgba(255,255,255,.10) !important; border:1px solid rgba(255,255,255,.18);
    border-radius:14px; padding:14px 12px; box-shadow:0 6px 18px rgba(0,0,0,.18);
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
    justify-content:flex-start; gap:8px; width:auto !important; font-size:12.5px;
  }
  .hero-trust .trust-item:nth-child(5){ grid-column:1 / -1; justify-content:center; }
}

/* QA#38 heading typography — eyebrow 16/600, section title 38/800 (36-40 desktop, 26 mobile) */
.section-label, .ronix-eyebrow{ font-size:16px !important; font-weight:600 !important; }
.section-title, .ronix-title{ font-size:38px !important; font-weight:800 !important; line-height:1.2 !important; }
@media (max-width:768px){ .section-title, .ronix-title{ font-size:26px !important; } }

/* QA#39 trust-divider gap — more space between the last trust card and the stats divider below */
@media (max-width:768px){ .hero-trust{ padding-bottom:22px !important; } }
.stats-strip{ position:relative; }

/* ivos-qa69 red section-label bigger + farsi-friendly */
.section-label{font-size:16px;letter-spacing:normal;text-transform:none}

/* ivos-qa70 cart toast */
.cart-toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:9999;background:var(--navy,#1a3a5c);color:#fff;padding:13px 22px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.22);font-size:14px;font-weight:600;display:flex;align-items:center;gap:12px;direction:rtl;max-width:92vw;animation:cartToastIn .28s ease}
.cart-toast a{color:var(--red,#e63946);text-decoration:underline;font-weight:700;white-space:nowrap}
@keyframes cartToastIn{from{opacity:0;transform:translate(-50%,-14px)}to{opacity:1;transform:translate(-50%,0)}}

/* ===== ivos-qa71 home «about» center + justify on mobile ===== */
@media(max-width:768px){
  #home-about .container > div.reveal{ text-align:center !important; }
  #home-about .section-label,
  #home-about .section-title{ text-align:center !important; }
  #home-about p{ text-align:justify !important; text-align-last:center; }
  #home-about .btn{ display:inline-flex; }
}
/* ===== ivos-qa72 /about intro stack image below text on mobile ===== */
@media(max-width:768px){
  #about-intro{ grid-template-columns:1fr !important; gap:28px !important; }
  #about-intro > div:last-child{ width:100%; max-width:420px; margin:0 auto; }
}
/* ===== ivos-qa73 ivos-qa74 home blog: 3 posts in one centered row on mobile ===== */
@media(max-width:768px){
  .posts-section .posts-grid{ grid-template-columns:repeat(3,1fr) !important; gap:8px !important; }
  .posts-section .posts-grid .post-card{ min-width:0; }
  .posts-section .posts-grid .post-summary{ display:none !important; }
  .posts-section .posts-grid .post-card-body{ padding:10px !important; }
  .posts-section .posts-grid .post-date{ font-size:10.5px !important; }
  .posts-section .posts-grid .post-title{ font-size:12.5px !important; line-height:1.35 !important; }
  .posts-section .posts-grid .post-title a{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .posts-section .posts-grid .post-read-more{ font-size:11px !important; }
}
@media(max-width:480px){
  .posts-section .posts-grid{ gap:6px !important; }
}

/* ivos-qa72b: center /about CTA buttons on mobile */
@media (max-width:768px){ .about-cta{ justify-content:center; } }

/* ivos-qa75: footer links 2-col on mobile to reduce height */
@media (max-width:768px){ .footer-links{ display:grid !important; grid-template-columns:1fr 1fr; gap:8px 18px; } }

/* ivos-qa71-trust2x2: trust why-us premium 2x2 grid + wider gap + centered */
.trust-section .trust-grid{ grid-template-columns:repeat(2,1fr) !important; gap:36px !important; max-width:820px; margin-left:auto; margin-right:auto; }
.trust-section .trust-card{ padding:36px 28px !important; }
@media (max-width:430px){ .trust-section .trust-grid{ grid-template-columns:1fr !important; } }

/* ivos-qa76-center: dealer box centered on mobile */
@media (max-width:768px){ .footer-dealer{ margin-left:auto !important; margin-right:auto !important; } }

/* ivos-qa71c: home-about stack + center on mobile (inline grid was staying 2-col) */
@media(max-width:768px){
  #home-about .container > div.reveal{ grid-template-columns:1fr !important; gap:28px !important; }
  #home-about .container > div.reveal > div{ text-align:center; }
  #home-about .container > div.reveal > div:last-child > div[style]{ justify-items:center; }
}


/* ivos-qa71e: About content arranged like Ronix — highlights as a single vertical list (was 2x2 grid) */
#home-about [style*="grid-template-columns:1fr 1fr;gap:16px"]{ grid-template-columns:1fr !important; gap:14px !important; }

/* ivos-qa71f: right-align About content (reviewer: راست چین) */
#home-about .container > div.reveal{ text-align:right !important; }
#home-about .section-label, #home-about .section-title, #home-about p{ text-align:right !important; }
#home-about p{ text-align-last:right; }
@media(max-width:768px){
  #home-about .container > div.reveal{ text-align:right !important; }
  #home-about .section-label, #home-about .section-title{ text-align:right !important; }
  #home-about p{ text-align:right !important; text-align-last:right; }
}

/* ivos-qa71g: About highlights — icons aligned in one right column + titles aligned (items full-width, icon fixed right, text flex-1 right-aligned) */
#home-about [style*="display:flex;align-items:flex-start;gap:10px"]{ width:100% !important; align-items:center !important; }
#home-about [style*="display:flex;align-items:flex-start;gap:10px"] > div:last-child{ flex:1 1 auto !important; text-align:right !important; }
#home-about [style*="display:flex;align-items:flex-start;gap:10px"] > div:first-child{ order:0; }

/* B64-MOBILE-REACH-20260903 : admin panel had no mobile layout at all */
.admin-main{min-width:0}
.admin-content{min-width:0}
@media (max-width:860px){
  .admin-layout{flex-direction:column}
  .admin-sidebar{width:auto;height:auto;position:static;flex-direction:row;flex-wrap:wrap;align-items:center;overflow-y:visible}
  .admin-sidebar-logo{padding:12px 14px;border-bottom:0;flex:0 0 auto}
  .admin-nav{flex:1 1 100%;padding:8px 10px;display:flex;flex-wrap:wrap;gap:6px}
  .admin-nav a{margin-bottom:0;padding:8px 11px}
  .admin-nav>div{display:none}   /* bare-div section labels: inline style sets no display, so this wins */
  .admin-content{padding:16px}
  .admin-card{overflow-x:auto;overflow-y:visible}
}
