/*
 * Zlix Default Theme v3.0 — Target quality 7.5+
 * RTL · Vazirmatn · Orange #ea580c · Clean boutique storefront
 */
:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-soft: #fff7ed;
  --primary-mid: #ffedd5;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e8ecf1;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
  --shadow-lg: 0 16px 48px rgba(15,23,42,.1);
  --header-h: 70px;
  --font: Vazirmatn, Tahoma, system-ui, sans-serif;
  --max-w: 1160px;
  --t: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.page-main { flex: 1; width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; background: var(--primary); color: #fff !important;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none !important; line-height: 1.2; min-height: 44px;
}
.btn:hover {
  background: var(--primary-dark); color: #fff !important;
  transform: translateY(-1px); box-shadow: 0 8px 22px rgba(234,88,12,.3);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { min-height: 50px; font-size: 15px; padding: 14px 28px; border-radius: 14px; }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: #fff !important; color: var(--text) !important;
  border: 1.5px solid var(--border); box-shadow: none;
}
.btn-outline:hover {
  background: var(--primary-soft) !important; border-color: #fdba74;
  color: var(--primary-dark) !important; box-shadow: none;
}
.btn-hero {
  background: var(--primary) !important; color: #fff !important;
  padding: 14px 28px; font-size: 15px;
  box-shadow: 0 12px 32px rgba(234,88,12,.4);
}
.btn-hero:hover { background: var(--primary-dark) !important; }
.btn-hero-ghost {
  background: rgba(255,255,255,.1) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.12rem; color: var(--text) !important;
  text-decoration: none !important; flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(145deg, #f97316, #c2410c);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(234,88,12,.35);
}
.logo-img { max-height: 36px; max-width: 140px; object-fit: contain; }

.nav-main { display: flex; align-items: center; gap: 2px; }
.nav-main a {
  padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--muted) !important; text-decoration: none !important;
  transition: background .15s, color .15s;
}
.nav-main a:hover { background: var(--primary-soft); color: var(--primary-dark) !important; }
.nav-main a.nav-cta {
  background: var(--primary); color: #fff !important; margin-right: 4px;
}
.nav-main a.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-dark) !important;
  font-weight: 700; font-size: 13px; text-decoration: none !important;
  border: 1px solid #fed7aa;
}
.cart-link:hover { background: var(--primary-mid); }
.cart-badge {
  position: absolute; top: -6px; left: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero--pro {
  background: linear-gradient(135deg, #1c1917 0%, #7c2d12 42%, #ea580c 100%);
  color: #fff; padding: 60px 0 68px; position: relative; overflow: hidden;
}
.hero--pro::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 85% 30%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(0,0,0,.15), transparent);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px;
  align-items: center; position: relative; z-index: 1;
}
.hero__badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  font-size: 12.5px; font-weight: 700; margin-bottom: 18px;
}
.hero__content h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.55rem); font-weight: 800;
  line-height: 1.28; margin-bottom: 16px; color: #fff; letter-spacing: -.025em;
}
.hero__lead {
  font-size: 1.05rem; opacity: .92; max-width: 34rem;
  margin-bottom: 26px; line-height: 1.85;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: 13px; opacity: .88; font-weight: 600;
}
.hero__trust li { display: flex; align-items: center; gap: 7px; }
.hero__trust li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fdba74; flex-shrink: 0;
}
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.hero-card__title { font-weight: 800; font-size: 1rem; margin-bottom: 18px; color: #fff; }
.hero-card__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px;
}
.hero-card__row:last-of-type { border-bottom: none; }
.hero-card__row strong { font-weight: 800; color: #fff; }
.hero-card__row .ok { color: #86efac; }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-head { margin-bottom: 32px; text-align: center; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  text-align: right; gap: 16px; flex-wrap: wrap;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800;
  color: var(--primary); letter-spacing: .04em; margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 800;
  margin-bottom: 8px; letter-spacing: -.02em;
}
.section-head p {
  color: var(--muted); font-size: 14.5px; max-width: 36rem;
  margin: 0 auto; line-height: 1.8;
}
.section-head--row p { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step__num {
  width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft);
  color: var(--primary); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-size: 15px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 800; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.step__link { font-size: 13px; font-weight: 700; color: var(--primary) !important; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px; box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #fdba74;
}
.feature-card__icon {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 800; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.75; }

.cta-band {
  background: linear-gradient(120deg, #1c1917, #9a3412 55%, #ea580c);
  color: #fff; padding: 48px 0;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.35rem; margin-bottom: 8px; color: #fff; font-weight: 800; }
.cta-band p { opacity: .9; font-size: 14.5px; max-width: 36rem; line-height: 1.75; }

/* ===== Forms ===== */
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff; min-height: 46px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none; border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.alert {
  padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; line-height: 1.6;
}
.alert-success, .alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error, .alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a; color: #94a3b8; padding: 44px 0 28px; margin-top: auto;
}
.site-footer a { color: #fdba74; }
.site-footer a:hover { color: #fed7aa; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 16px; justify-content: center;
}
.footer-links a { font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.site-footer p { text-align: center; font-size: 13px; line-height: 1.7; }
.zlix-copyright { margin-top: 10px; font-size: 12.5px; opacity: .85; }

/* ===== Shared pages ===== */
.page-wrap { padding: 28px 0 56px; }
.page-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800;
  margin: 4px 0; letter-spacing: -.02em;
}
.page-sub { color: var(--muted); font-size: 14px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted) !important; }
.breadcrumb a:hover { color: var(--primary) !important; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ===== Catalog ===== */
.catalog-page { padding-top: 20px; padding-bottom: 56px; }
.catalog-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.catalog-head__text .breadcrumb { margin-bottom: 8px; }
.catalog-head .page-title { margin: 0 0 6px; }
.catalog-head .page-sub { margin: 0; }
.catalog-search {
  display: flex; gap: 8px; width: 100%; max-width: 380px; align-items: stretch;
}
.catalog-search .form-control { flex: 1; min-height: 46px; }
.catalog-search__btn { flex-shrink: 0; min-height: 46px; padding: 0 20px; white-space: nowrap; }

.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--border); color: var(--text) !important;
  font-size: 13px; font-weight: 600; text-decoration: none !important;
  transition: all .15s; line-height: 1.2;
}
.chip:hover { border-color: #fdba74; background: var(--primary-soft); color: var(--primary-dark) !important; }
.chip.is-active {
  background: var(--primary) !important; color: #fff !important;
  border-color: var(--primary); box-shadow: 0 4px 14px rgba(234,88,12,.28);
}

.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #fdba74;
}
.product-card.is-out { opacity: .85; }
.product-card__media, .product-card__img {
  position: relative; display: block; aspect-ratio: 1;
  background: linear-gradient(160deg, #f8fafc, #eef2f6);
  overflow: hidden; text-decoration: none !important;
}
.product-card__media img, .product-card__img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.product-card:hover .product-card__media img,
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: #94a3b8; font-size: 12px; font-weight: 600;
}
.badge-sale, .badge-out {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.3;
}
.badge-sale {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(234,88,12,.4);
}
.badge-out { background: #0f172a; color: #fff; left: 12px; right: auto; }
.product-card__body {
  padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.product-card__title, .product-card__body h3 {
  margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.85em;
}
.product-card__title a, .product-card__body h3 a {
  color: var(--text) !important; text-decoration: none !important;
}
.product-card__title a:hover, .product-card__body h3 a:hover { color: var(--primary) !important; }
.product-card__price, .product-card__body .price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.price-now { font-size: 1.08rem; font-weight: 800; color: var(--primary); }
.price-now small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.price-old { font-size: .85rem; color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.product-card__form { margin-top: auto; }
.product-card__btn { min-height: 44px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }

.empty-pro {
  text-align: center; padding: 56px 28px; background: #fff;
  border: 1.5px dashed var(--border); border-radius: 18px;
  max-width: 520px; margin: 12px auto 0;
}
.empty-pro__icon { color: #fdba74; margin-bottom: 14px; }
.empty-pro h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.empty-pro p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.empty-pro__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ===== Product detail ===== */
.product-page { padding-bottom: 64px; }
.product-detail {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: start; margin-bottom: 40px;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.product-gallery__main-wrap {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow);
}
.product-gallery__main {
  width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff;
  display: block; padding: 16px;
}
.product-gallery__empty {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-weight: 600; background: #f8fafc;
}
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery__thumbs .thumb {
  width: 72px; height: 72px; padding: 4px; border: 2px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff;
}
.product-gallery__thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumbs .thumb.is-active {
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(234,88,12,.15);
}

.product-info { display: flex; flex-direction: column; gap: 2px; }
.product-cat {
  display: inline-flex; align-self: flex-start; padding: 5px 12px;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark) !important;
  font-size: 12px; font-weight: 700; text-decoration: none !important;
  margin-bottom: 10px; border: 1px solid #fed7aa;
}
.product-info__title {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem); font-weight: 800;
  line-height: 1.4; margin: 0 0 14px; letter-spacing: -.02em;
}
.product-price {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.product-price .price-now { font-size: 1.65rem; }
.product-price .badge-sale { position: static; }
.stock-ok { color: var(--success); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.stock-out { color: var(--danger); font-weight: 700; margin-bottom: 12px; }

.product-buy-box {
  margin-top: 8px; padding: 22px; background: #fff;
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.qty-form { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.qty-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.qty-label { font-size: 13px; font-weight: 700; color: var(--text); }
.qty-control {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden; background: #fff;
}
.qty-control .qty-btn {
  width: 42px; height: 42px; border: none; background: #f8fafc;
  font-size: 18px; font-weight: 700; cursor: pointer; color: var(--text); line-height: 1;
}
.qty-control .qty-btn:hover { background: var(--primary-soft); color: var(--primary); }
.qty-control .qty-input {
  width: 56px; min-height: 42px; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  border-radius: 0; text-align: center; padding: 0; box-shadow: none;
}
.btn-buy {
  min-height: 52px; font-size: 15px; border-radius: 14px;
  box-shadow: 0 10px 28px rgba(234,88,12,.32);
}

/* AF plugin polish on default theme */
.product-buy-box .af-live-price { margin: 0 0 14px !important; font-size: 1.5rem !important; color: var(--primary) !important; }
.product-buy-box .af-options { margin: 0 0 4px !important; }
.product-buy-box .af-opt-values { gap: 8px !important; }
.product-buy-box .af-custom-fields { margin: 4px 0 0 !important; }
.product-buy-box .af-limit-note { margin: 0 0 10px !important; }
.product-buy-box .af-opt-pill span {
  border-radius: 999px !important; padding: 9px 16px !important;
}
.product-buy-box .af-opt-pill input:checked + span {
  border-color: var(--primary) !important; background: var(--primary-soft) !important;
  color: var(--primary-dark) !important; box-shadow: 0 0 0 3px rgba(234,88,12,.12) !important;
}

.product-below { margin-top: 8px; }
.product-desc-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 28px; box-shadow: var(--shadow); margin-bottom: 28px;
}
.product-desc-card h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 14px; }
.product-desc { color: #475569; font-size: 15px; line-height: 1.95; margin: 0; padding: 0; border: none; }

.product-below .af-product-tabs {
  margin: 0 0 28px !important; background: #fff !important;
  border: 1px solid var(--border) !important; border-radius: 18px !important;
  padding: 6px 0 18px !important; box-shadow: var(--shadow); overflow: hidden;
}
.product-below .af-ptabs {
  display: flex !important; flex-wrap: wrap; gap: 0 !important;
  border-bottom: 1px solid var(--border) !important; margin: 0 0 14px !important;
  padding: 0 12px !important;
}
.product-below .af-ptab {
  border: 0 !important; background: transparent !important;
  padding: 14px 18px !important; font-size: 14px !important; font-weight: 700 !important;
  cursor: pointer; font-family: inherit; color: var(--muted) !important;
  border-bottom: 2px solid transparent !important; margin-bottom: -1px !important;
}
.product-below .af-ptab.is-active {
  color: var(--primary) !important; border-bottom-color: var(--primary) !important;
}
.product-below .af-ppanel {
  display: none; font-size: 15px !important; line-height: 1.95 !important;
  color: #334155 !important; padding: 4px 22px 8px !important;
}
.product-below .af-ppanel.is-active { display: block !important; }
.product-below .af-spec-group {
  border-radius: 12px !important; margin-bottom: 12px !important; overflow: hidden;
  border: 1px solid var(--border) !important;
}
.product-below .af-related { margin-top: 8px !important; }
.product-below .af-related h3 { font-size: 1.2rem !important; margin-bottom: 18px !important; }
.product-below .af-related-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
}
.product-below .af-related-card {
  border: 1px solid var(--border) !important; border-radius: 16px !important;
  overflow: hidden; background: #fff; text-decoration: none !important;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.product-below .af-related-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
}
.product-below .af-related-card img {
  width: 100% !important; height: 160px !important; object-fit: cover !important;
}
.product-below .af-rc-price { color: var(--primary) !important; }
.product-below .af-badges { margin-bottom: 12px !important; }
.product-below .af-meta-line { margin-bottom: 12px !important; }

/* ===== Cart / Checkout ===== */
.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start;
}
.cart-summary h3, .card-title { font-size: 1.05rem; margin-bottom: 14px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.cart-item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
  align-items: center; flex-wrap: wrap;
}
.cart-item img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border); background: #f8fafc;
}
.cart-item__info { flex: 1; min-width: 140px; }
.cart-item__info h3 { font-size: .95rem; margin-bottom: 4px; }
.cart-item__price { font-weight: 800; color: var(--primary); font-size: 15px; }

/* ===== Auth ===== */
.auth-wrap {
  max-width: 440px; margin: 48px auto 64px; padding: 0 16px;
}
.auth-card, .auth-wrap > form, .auth-wrap .card {
  width: 100%; padding: 32px 28px; background: #fff;
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.auth-wrap h1, .auth-card h1 {
  font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; text-align: center;
}
.auth-wrap > p, .auth-lead {
  text-align: center; color: var(--muted); font-size: 13.5px;
  margin-bottom: 22px; line-height: 1.7;
}
.auth-footer {
  text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted);
}
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.content-card { line-height: 1.9; font-size: 15px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  .product-detail, .cart-layout, .checkout-layout, .account-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-main {
    display: none; position: absolute; top: var(--header-h); right: 0; left: 0;
    background: #fff; flex-direction: column; padding: 12px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 99;
  }
  .nav-main.is-open { display: flex; }
  .nav-main a { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero--pro { padding: 40px 0 48px; }
  .catalog-head { align-items: stretch; }
  .catalog-search { max-width: none; }
  .section { padding: 40px 0; }
  .product-card__body { padding: 12px; }
  .product-card__btn { font-size: 12.5px; min-height: 40px; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}


/* Auth head */
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .logo-mark { margin: 0 auto 14px; }
.auth-head h1 { margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: 13.5px; margin: 0; }
.auth-foot, .auth-footer { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.req { color: var(--danger); }
.btn-danger-outline {
  background: #fff !important; color: var(--danger) !important;
  border: 1.5px solid #fecaca;
}
.btn-danger-outline:hover { background: #fef2f2 !important; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; font-size: 15px;
}
.summary-row strong { font-size: 1.15rem; color: var(--primary); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: right; font-size: 12.5px; color: var(--muted);
  padding: 10px 8px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form .qty-input { width: 64px; min-height: 38px; text-align: center; }
.table-wrap { overflow-x: auto; }


/* ===== Zlix default theme polish v3.1 — responsive + visual ===== */
.container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

.site-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
}
.nav-main a {
  border-radius: 10px;
  padding: 8px 12px;
  transition: background .15s ease, color .15s ease;
}
.nav-main a:hover { background: var(--primary-soft); }

.btn, .product-card__btn, .hero .btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
}
.btn-primary, .product-card__btn {
  box-shadow: 0 6px 18px rgba(234,88,12,.22);
}

.product-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.product-card__img,
.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: #f1f5f9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.footer, .site-footer {
  margin-top: auto;
}

input, select, textarea, .form-control {
  border-radius: 12px;
  min-height: 44px;
}
textarea { min-height: 120px; }

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 720px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .hero h1, .hero__title { font-size: clamp(1.35rem, 5vw, 1.75rem) !important; }
  .section { padding: 36px 0 !important; }
  .product-card__body { padding: 12px !important; }
  .nav-toggle {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .site-header .header-actions a,
  .site-header .btn { min-height: 40px; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card { max-width: 100%; }
}

/* صفحه محصول */
.product-detail, .product-single {
  padding-bottom: 40px;
}
@media (max-width: 768px) {
  .product-gallery, .product-detail__gallery { margin-bottom: 16px; }
  .product-detail__grid, .product-layout {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* سبد و حساب */
@media (max-width: 640px) {
  .cart-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .account-cards, .account-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   Zlix default — full responsive fix (cart/checkout/nav)
   ========================================================= */
.header-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h, 70px);
  position: relative;
}
.header-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none !important;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border, #e8ecf1);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  z-index: 20;
}
.nav-toggle span {
  display: block !important;
  width: 18px;
  height: 2px;
  background: var(--text, #0f172a);
  border-radius: 2px;
}

@media (min-width: 901px) {
  .nav-main {
    display: flex !important;
    align-items: center;
    gap: 4px;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
  }
  .nav-toggle { display: none !important; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex !important; }

  .nav-main {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 10px 12px 14px !important;
    border-bottom: 1px solid var(--border, #e8ecf1);
    box-shadow: 0 12px 28px rgba(15,23,42,.1);
    z-index: 100;
  }
  .nav-main.is-open { display: flex !important; }
  .nav-main a {
    width: 100%;
    padding: 12px 14px !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
  }

  .cart-layout, .cart-grid, .cart-table-wrap {
    display: block !important;
    width: 100%;
  }
  .cart-table, table.cart, .page-wrap table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cart-summary, .order-summary, .checkout-summary {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px;
  }

  .zlix-checkout-steps, .zlix-co-steps, ol.steps {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .zlix-co-grid, .checkout-grid, .checkout-layout, .shipping-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .zlix-co-main, .zlix-co-side, .checkout-main, .checkout-side {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-wrap input, .page-wrap select, .page-wrap textarea,
  .zlix-co input, .zlix-co select, .zlix-co textarea {
    max-width: 100% !important;
    width: 100% !important;
  }

  .account-grid, .account-cards, .account-layout {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .page-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
  }
  .page-head .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .container { padding-left: 12px !important; padding-right: 12px !important; }
  .cart-link span:not(.cart-badge) { display: none; }
  .logo > span:last-child {
    max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block;
  }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr !important; }
}
