/* ==========================================================
   پاتریس چاپ - فایل استایل مشترک همه صفحه‌ها
   تم: زمینه روشن + سورمه‌ای + طلایی (طراحی جدید)
   برای تغییر رنگ‌ها فقط متغیرهای بخش ۱ را عوض کن.
   ========================================================== */

/* ---------- ۱) رنگ‌ها و متغیرها ---------- */
:root {
  /* سورمه‌ای */
  --navy: #17305c;
  --navy-dark: #0e2044;
  --navy-deep: #0a1630;
  --navy-soft: #25457f;

  /* طلایی */
  --gold: #c9a43a;
  --gold-main: #c9a43a;
  --gold-bright: #ecce7c;               /* طلایی روشن برای متن روی زمینه سورمه‌ای */
  --gold-dark: #e6c660;                 /* نام قدیمی؛ طلایی روشن روی زمینه تیره */
  --gold-text: #8a6a0e;                 /* طلایی تیره برای متن روی زمینه روشن */
  --gold-soft: rgba(201, 164, 58, .12);
  --gold-line: rgba(201, 164, 58, .40);
  --gold-gradient: linear-gradient(135deg, #d6b24a 0%, #ecce7c 52%, #bf982c 100%);

  /* زمینه و متن */
  --bg: #f4f6fb;
  --card: #ffffff;
  --surface: #f1f4fa;       /* داخل کارت‌ها: ورودی، باکس‌ها */
  --surface-2: #e7ecf6;     /* سرتیتر جدول، هاور */
  --text: #26324d;
  --heading: #0e2044;
  --muted: #667391;
  --border: rgba(23, 48, 92, .10);
  --border-strong: rgba(23, 48, 92, .20);

  /* نام‌های قدیمی (inline ها و کدهای قبلی از اینها استفاده می‌کنند) */
  --navy-card: var(--card);
  --text-light: var(--text);
  --text-muted: var(--muted);
  --border-glow: var(--border);
  --gold-light: var(--gold-dark);

  --radius: 16px;
  --shadow: 0 4px 18px rgba(23, 48, 92, .08);
  --shadow-lg: 0 14px 38px rgba(23, 48, 92, .16);

  --danger: #c0283f;
  --danger-bg: #fdecef;
  --danger-line: #f3b8c2;
  --success: #12805c;
  --success-bg: #e6f6ef;
  --success-line: #a9dcc6;

  /* فونت اختصاصی هدر (لوگو/اسم سایت) */
  --brand-font: 'BrandFont', 'Dana', 'Vazirmatn', Tahoma, sans-serif;
}

/* ---------- ۲) فونت‌ها ---------- */
@font-face {
  font-family: 'Dana';
  src: url('assets/dana.woff2') format('woff2'),
       url('assets/dana.woff') format('woff'),
       url('/fonts/Dana-Medium.woff2') format('woff2'),
       url('/fonts/Dana-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* فونت اختصاصی برند: فایل را از پنل مدیریت در این مسیر آپلود کن.
   اگر فایلی نباشد، خودکار با فونت دانا نمایش داده می‌شود. */
@font-face {
  font-family: 'BrandFont';
  src: url('/uploads/brand/brand-font.woff2') format('woff2'),
       url('/uploads/brand/brand-font.woff') format('woff'),
       url('/uploads/brand/brand-font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- ۳) پایه ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
html, body { width: 100%; overflow-x: hidden; }

body, button, input, select, textarea {
  font-family: 'Dana', 'Vazirmatn', Tahoma, sans-serif;
}
body {
  background-color: var(--bg);
  /* پترن خیلی کمرنگ لوگو؛ فایل: logo-pattern.png (برای کمرنگ‌تر/پررنگ‌تر شدن فقط خود تصویر را عوض کن) */
  background-image: url('logo-pattern.png');
  background-repeat: repeat;
  background-size: 210px 210px;
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a { text-decoration: none; color: inherit; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
img, video, svg { max-width: 100%; }
img { height: auto; }
::selection { background: var(--gold); color: var(--navy-dark); }

:focus-visible { outline: 3px solid rgba(201, 164, 58, .55); outline-offset: 2px; }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- ۴) هدر ---------- */
header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 6px 22px rgba(10, 22, 48, .25);
  padding-top: env(safe-area-inset-top);
}
header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold-gradient);
}
.head {
  min-height: 92px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding-top: 10px; padding-bottom: 13px;
}
.head-center, .logo-box { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo-box { height: 70px; }
.logo-img { max-height: 100%; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.logo-text {
  font-family: var(--brand-font);
  font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: #fff;
  white-space: nowrap; letter-spacing: 0;
  line-height: 1.3;
  background: linear-gradient(180deg, #ffffff 0%, #ecce7c 140%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.side-icons, .nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  color: var(--gold-bright); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); cursor: pointer;
}
.menu-btn:hover { background: rgba(255,255,255,.16); border-color: var(--gold); }
.menu-btn:active { transform: scale(.95); }

/* دکمه‌های کوچک هدر */
.pill, .back-btn, .cart-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px;
  padding: 8px 15px; border-radius: 12px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
}
.pill:hover, .back-btn:hover, .cart-icon-btn:hover {
  background: rgba(255,255,255,.17); border-color: var(--gold);
}
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-gradient); color: var(--navy-dark);
  font-size: 11px; font-weight: 800; border-radius: 20px;
  min-width: 20px; padding: 1px 6px;
}

/* جستجو در هدر */
.search-form {
  flex: 1 1 auto; max-width: 440px; min-width: 0; margin: 0 14px;
  height: 46px; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: 0 8px 0 14px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--gold); background: rgba(255,255,255,.2); box-shadow: 0 0 0 4px rgba(201,164,58,.22); }
.search-ico { width: 18px; height: 18px; color: rgba(255,255,255,.7); flex-shrink: 0; }
.search-input {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: none; outline: none; -webkit-appearance: none; appearance: none;
  color: #fff; padding: 6px 2px; font-size: 13.5px;
}
.search-input::placeholder { color: rgba(255,255,255,.65); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-btn {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--gold-gradient); color: var(--navy-dark); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { filter: brightness(1.06); }
.head-center { color: inherit; flex-shrink: 0; }
.pill-cart { border-color: var(--gold) !important; background: rgba(201,164,58,.18) !important; }
.pill-cart svg { color: var(--gold-bright); }

/* منوی کشویی */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(10, 22, 48, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 101;
  opacity: 0; pointer-events: none; transition: .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; right: -340px; top: 0; width: 300px; max-width: 86vw; height: 100%; height: 100dvh;
  background: #fff;
  border-left: 4px solid var(--gold);
  color: var(--text); z-index: 102; padding: 22px 18px;
  transition: .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -10px 0 40px rgba(10, 22, 48, .25);
  overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-strong);
}
.drawer h3 { color: var(--navy); font-size: 17px; font-weight: 800; }
.drawer-close { background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; }
.drawer a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; border-radius: 12px; margin-bottom: 4px;
  color: var(--navy); font-size: 14px; font-weight: 600;
}
.drawer a:hover, .drawer a:active { background: var(--gold-soft); color: var(--gold-text); }

/* ---------- ۵) عنوان بخش‌ها ---------- */
.title { margin: 40px 0 22px; font-size: 23px; font-weight: 800; color: var(--heading); display: flex; align-items: center; }
.title-sub { display: flex; align-items: center; gap: 12px; }
.title-sub::before {
  content: ''; width: 5px; height: 26px; border-radius: 4px; background: var(--gold-gradient);
}

/* ---------- ۶) دکمه‌ها (مشترک) ---------- */
.btn-submit, .btn-pay, .btn-checkout, .btn-add-cart, .btn-gold, .dl-btn {
  background: var(--gold-gradient); color: var(--navy-dark);
  border: none; border-radius: 12px; font-weight: 900; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(201,164,58,.30);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  min-height: 46px;
}
.btn-submit:hover, .btn-pay:hover, .btn-checkout:hover, .btn-add-cart:hover, .btn-gold:hover, .dl-btn:hover {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,164,58,.45);
}
.btn-submit:active, .btn-pay:active, .btn-checkout:active, .btn-add-cart:active, .btn-gold:active, .dl-btn:active { transform: scale(.98); }
.btn-submit { width: 100%; padding: 14px; font-size: 16px; margin-top: 10px; }
.btn-pay { width: 100%; padding: 16px; font-size: 17px; margin-top: 25px; }
.btn-checkout { padding: 14px 28px; font-size: 16px; }
.btn-add-cart { width: 100%; padding: 16px; font-size: 17px; margin-top: 15px; }
.btn-gold { padding: 12px 24px; font-size: 15px; margin-top: 15px; width: 100%; }
.dl-btn { padding: 10px 18px; font-size: 14px; }

.btn-update {
  background: #fff; color: var(--navy);
  border: 1px solid var(--border-strong); padding: 10px 18px; border-radius: 10px;
  cursor: pointer; font-weight: bold; min-height: 42px;
}
.btn-update:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-remove {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid var(--danger-line); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 12px;
}
.btn-remove:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ---------- ۷) فرم‌ها ---------- */
.input-group, .form-group { margin-bottom: 16px; position: relative; }
.input-group label, .form-group label {
  display: block; font-size: 13px; color: var(--navy); margin-bottom: 6px; font-weight: 700;
}
.custom-input, .qty-input {
  width: 100%; background: #fff; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.custom-input::placeholder { color: #98a3bd; }
.custom-input:focus, .qty-input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,58,.20); background: #fff;
}
select.custom-input option { background: #fff; color: var(--text); }
.qty-input { width: 72px; padding: 6px; text-align: center; border-radius: 8px; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i, .input-wrapper svg {
  position: absolute; right: 12px; color: var(--gold-text); width: 18px; pointer-events: none;
}
.input-wrapper .custom-input { padding: 12px 40px 12px 14px; }

/* دکمه چشم برای نمایش/مخفی کردن رمز (سمت چپ فیلد) */
.pw-toggle, .toggle-pass, .toggle-password, .eye-btn {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 10px; cursor: pointer; color: var(--muted);
  pointer-events: auto;
}
.pw-toggle:hover, .toggle-pass:hover, .toggle-password:hover, .eye-btn:hover { color: var(--navy); background: var(--surface); }
.input-wrapper .pw-toggle svg, .input-wrapper .toggle-pass svg, .input-wrapper .toggle-password svg, .input-wrapper .eye-btn svg,
.input-wrapper .pw-toggle i, .input-wrapper .toggle-pass i, .input-wrapper .toggle-password i, .input-wrapper .eye-btn i {
  position: static; color: inherit; width: 20px; height: 20px; pointer-events: none;
}
.input-wrapper:has(.pw-toggle, .toggle-pass, .toggle-password, .eye-btn) .custom-input { padding-left: 46px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.full-width { grid-column: span 2; }

/* پیام‌ها */
.alert-box, .alert-error, .alert {
  padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px;
}
.alert-box, .alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); text-align: center; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); }

/* ---------- ۸) کارت و جدول ---------- */
.cart-card, .checkout-card, .content-card, .about-card, .product-detail-card, .auth-container, .auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow);
}
.cart-card { padding: 25px; margin-bottom: 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.checkout-card { padding: 30px; margin-bottom: 40px; }

table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
th, td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); }
th { color: var(--navy); font-size: 14px; background: var(--surface); font-weight: 800; }

.cart-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}

/* ---------- ۹) صفحه اصلی ---------- */
.hero-container { position: relative; margin: 22px 0 26px; }
.hero {
  height: clamp(160px, 27vw, 260px);
  border-radius: 22px; overflow: hidden; position: relative;
  background: var(--navy); touch-action: pan-y; box-shadow: var(--shadow-lg);
}
.slide { display: none; height: 100%; position: relative; }
.slide.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(10,22,48,.78) 0%, rgba(10,22,48,.35) 55%, rgba(10,22,48,.04) 100%),
    linear-gradient(0deg, rgba(10,22,48,.35) 0%, transparent 45%);
}
.cap {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: clamp(16px, 2.8vw, 28px); font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,.5);
  border-right: 4px solid var(--gold); padding-right: 16px;
  max-width: 80%; line-height: 1.55;
}
.dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c3cbe0; border: 0; cursor: pointer; transition: .3s; padding: 0; }
.dot.active { width: 28px; border-radius: 10px; background: var(--gold); }

/* نوار ویژگی‌ها */
.features-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0 34px; }
.feat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.feat-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--navy); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
}
.feat-info h4 { font-size: 14px; font-weight: 800; color: var(--heading); }
.feat-info p { font-size: 11.5px; color: var(--muted); }

/* خدمات: بزرگ، بدون کادر، فضای بیشتر */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 40px 24px; margin-bottom: 24px;
}
.service-card, .services-grid > a, .services-grid > div {
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding: 14px 8px; text-align: center; border-radius: 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.service-card img, .services-grid img {
  width: 150px; height: 150px; object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(23,48,92,.22));
  transition: transform .3s;
}
.service-card b, .services-grid b { color: var(--heading); font-size: 17px; font-weight: 800; line-height: 1.5; }
.service-card p, .service-card small { color: var(--muted); font-size: 12.5px; }
.service-card:hover img, .services-grid > a:hover img { transform: translateY(-6px) scale(1.06); }
.service-card:hover b, .services-grid > a:hover b { color: var(--gold-text); }

/* تیکت‌های جشنواره و تخفیف */
.discounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.ticket {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, var(--navy-dark) 100%);
  border-radius: 20px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.ticket::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 6px; background: var(--gold-gradient); }
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ticket-icon {
  flex-shrink: 0; align-self: center; margin-right: 22px;
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-gradient); color: var(--navy-dark);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.ticket-icon svg { width: 26px; height: 26px; }
.ticket-body { flex: 1; min-width: 0; padding: 20px 16px; }
.ticket h3 { color: var(--gold-bright); font-size: 17px; margin-bottom: 6px; font-weight: 800; line-height: 1.5; }
.ticket p { color: #dbe4f5; font-size: 13px; line-height: 1.85; }
.ticket-stub {
  position: relative; flex-shrink: 0; width: 88px; padding: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-right: 2px dashed rgba(236, 206, 124, .5);
  background: rgba(255,255,255,.06); color: var(--gold-bright);
  font-size: 12px; font-weight: 800; line-height: 1.6;
}
.ticket-stub::before, .ticket-stub::after {
  content: ''; position: absolute; right: -11px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg);
}
.ticket-stub::before { top: -11px; }
.ticket-stub::after { bottom: -11px; }

/* فوتر */
footer {
  margin-top: 64px; background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deep) 100%); color: #dbe3f3;
  padding: 50px 0 calc(18px + env(safe-area-inset-bottom)); border-top: 4px solid var(--gold);
}
.foot { display: grid; grid-template-columns: 1.4fr 1.2fr .9fr; gap: 40px; align-items: start; }
.foot h3 {
  color: var(--gold-bright); font-size: 16px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px;
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot p { color: #c4cfe6; font-size: 13.5px; line-height: 2; margin-bottom: 6px; }
.foot-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-logo img { height: 46px; width: auto; max-width: 90px; object-fit: contain; }
.foot-logo b { color: #fff; font-size: 19px; font-weight: 900; }

.contact-item {
  display: flex; align-items: center; gap: 10px; color: #dbe3f3; margin-bottom: 10px; font-size: 13.5px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 11px 14px; line-height: 1.7;
}
a.contact-item:hover { background: rgba(255,255,255,.1); border-color: var(--gold-line); color: #fff; }
.contact-item i, .contact-item svg { color: var(--gold-bright); width: 18px; height: 18px; flex-shrink: 0; }
.contact-item b { font-weight: 700; letter-spacing: .3px; }

.foot-links { display: flex; flex-direction: column; gap: 2px; }
.foot-links a {
  display: flex; align-items: center; gap: 8px; padding: 9px 4px; font-size: 13.5px; color: #c4cfe6;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.foot-links a:last-child { border-bottom: none; }
.foot-links a i, .foot-links a svg { width: 15px; height: 15px; color: var(--gold); transition: transform .2s; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-links a:hover svg { transform: translateX(-4px); }

/* جای نمادها (اینماد و ...) بدون هیچ عنوان؛ فقط یک فضای خالی */
.foot-trust { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 16px; margin-top: 18px; }
.enamad-box {
  width: 110px; height: 110px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.18);
  overflow: hidden; padding: 6px;
}
.enamad-box:has(img, a, iframe, script) { background: #fff; border: 1px solid transparent; }
.enamad-box img, .enamad-box a { max-width: 100%; max-height: 100%; display: block; }
.enamad-box img { object-fit: contain; }
.foot-enamad { display: flex; justify-content: center; align-items: flex-start; }

.foot-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.copyright { font-size: 12.5px; color: #9aa8c6; margin: 0; padding: 0; border: 0; text-align: right; }
.copyright strong { color: var(--gold-bright); }
.to-top {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--gold-bright); border: 1px solid rgba(255,255,255,.18);
}
.to-top:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }

/* جدیدترین محصولات (صفحه اصلی) */
.latest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.latest-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); transition: .25s;
}
.latest-card:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow-lg); }
.latest-img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.latest-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.latest-card:hover .latest-img img { transform: scale(1.06); }
.latest-badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 11px; border-radius: 20px;
  background: var(--gold-gradient); color: var(--navy-dark); font-size: 11px; font-weight: 900;
}
.latest-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.latest-info b { color: var(--heading); font-size: 15px; font-weight: 800; line-height: 1.6; }
.latest-price { color: var(--gold-text); font-size: 13px; font-weight: 800; }

/* محصولات اختصاصی */
.custom-note {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 14px 18px;
  background: var(--gold-soft); border: 1px dashed var(--gold-line); border-radius: 14px;
  color: var(--navy); font-size: 14px;
}
.custom-desc { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 6px; }
.custom-card .btn-gold { width: 100%; margin-top: 14px; }

@media (max-width: 768px) {
  .latest-grid {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .latest-grid::-webkit-scrollbar { display: none; }
  .latest-card { flex: 0 0 68%; scroll-snap-align: start; }
  .ticket-stub { width: 70px; font-size: 11px; }
  .ticket-icon { margin-right: 18px; width: 46px; height: 46px; }
  .discounts-grid { grid-template-columns: 1fr; }
}


/* انیمیشن CMYK */
.cmyk-particle { position: fixed; pointer-events: none; border-radius: 50%; z-index: 9999; animation: splash .7s ease-out forwards; }
@keyframes splash { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3) translate(var(--tx), var(--ty)); opacity: 0; } }

/* ---------- ۱۰) محصولات / جزئیات محصول ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-bottom: 50px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 15px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow); transition: .25s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow-lg); }
.card-img-box { width: 100%; height: 170px; border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 12px; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; }
.card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--border);
}

.product-detail-card { padding: 30px; margin: 30px auto; }
.product-grid-layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; }
.img-container { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.product-img { width: 100%; height: auto; display: block; }
.product-info h1 { font-size: 24px; font-weight: 900; margin-bottom: 15px; color: var(--heading); }
.cart-box { background: var(--surface); border: 1px solid var(--gold-line); border-radius: 18px; padding: 20px; margin-top: 20px; }
.price-tag-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--gold-line);
}

/* ---------- ۱۱) درباره ما ---------- */
.about-card { padding: 45px 35px; margin: 30px 0 50px; position: relative; overflow: hidden; }
.about-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold-gradient); }
.hero-text { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-text);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.hero-text h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; color: var(--heading); margin-bottom: 16px; line-height: 1.55; }
.hero-text p { color: var(--text); font-size: 16px; line-height: 2; text-align: justify; text-align-last: center; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 35px 0 45px; }
.stat-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 15px; text-align: center; transition: .25s; }
.stat-item:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.stat-item b { font-size: 32px; font-weight: 900; color: var(--navy); display: block; margin-bottom: 4px; }
.stat-item span { color: var(--muted); font-size: 13px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 45px; }
.feat-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.feat-icon-bg { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--gold-bright); display: flex; align-items: center; justify-content: center; }
.feat-box h4 { font-size: 15px; font-weight: 800; color: var(--heading); }
.feat-box p { font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.section-title {
  color: var(--heading); font-size: 20px; font-weight: 800;
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-line);
}
.branches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 25px; }
.branch-card {
  background: #fff; border: 1px solid var(--border); border-right: 5px solid var(--gold);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 15px;
}
.branch-card h3 { color: var(--heading); font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.branch-info { display: flex; flex-direction: column; gap: 10px; }
.about-page .info-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text); }
.about-page .info-row i, .about-page .info-row svg { color: var(--gold-text); width: 18px; flex-shrink: 0; margin-top: 3px; }
.action-call-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); border: 1px solid var(--navy); color: #fff;
  padding: 11px; border-radius: 12px; font-size: 13px; font-weight: 700; min-height: 44px;
}
.action-call-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.manager-bar {
  background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 16px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px;
}
.manager-info { display: flex; align-items: center; gap: 12px; }
.manager-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-gradient); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; flex-shrink: 0; }
.manager-text h4 { font-size: 15px; font-weight: 800; color: var(--heading); }
.manager-text p { font-size: 12px; color: var(--gold-text); }
.manager-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 12px; font-weight: 900; font-size: 16px;
}
.manager-phone:hover { background: var(--navy-soft); }
.copy-text { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 30px; }

/* ---------- ۱۲) ورود / ثبت‌نام ---------- */
.auth-page, .auth-page-simple {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 20px 10px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 62%, var(--navy-soft) 100%);
}
.auth-container, .auth-card { width: 100%; max-width: 440px; padding: 30px; box-shadow: var(--shadow-lg); border: none; border-top: 4px solid var(--gold); }
.auth-card { padding: 30px 22px; }
.auth-header { text-align: center; margin-bottom: 25px; }
.auth-logo { max-height: 70px; margin-bottom: 12px; }
.auth-title { font-size: 21px; font-weight: 900; color: var(--heading); }

.tab-switcher { display: flex; background: var(--surface); padding: 5px; border-radius: 14px; margin-bottom: 25px; border: 1px solid var(--border); }
.tab-switcher .tab-btn, .tab-item {
  flex: 1; padding: 11px 0; text-align: center; font-size: 14px; font-weight: 700;
  color: var(--muted); border: none; background: transparent; border-radius: 10px; cursor: pointer; transition: .25s;
}
.tab-switcher .tab-btn.active, .tab-item.active {
  background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(23,48,92,.25);
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.back-home { text-align: center; margin-top: 20px; }
.back-home a { font-size: 13px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.back-home a:hover { color: var(--gold-text); }

/* ---------- ۱۳) پنل مشتری ---------- */
.cust-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cust-page .wrap { flex: 1; padding: 15px 0; }
.cust-page .head { flex-wrap: wrap; }
.nav-tabs {
  display: flex; gap: 8px; margin-top: 20px; border-bottom: 2px solid var(--border);
  overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .tab-btn {
  padding: 11px 16px; border-radius: 12px 12px 0 0; background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
}
.nav-tabs .tab-btn:hover { color: var(--navy); background: var(--surface-2); }
.nav-tabs .tab-btn.active { background: var(--card); color: var(--navy); border: 1px solid var(--border); border-bottom: 2px solid var(--card); border-top: 3px solid var(--gold); font-weight: 800; margin-bottom: -2px; }
.content-card { border-radius: 0 0 18px 18px; padding: 25px 20px; margin-bottom: 40px; }

.cust-page .info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border); gap: 10px; flex-wrap: wrap;
}
.info-label { color: var(--muted); font-size: 14px; }
.info-value { color: var(--heading); font-weight: bold; font-size: 14px; word-break: break-all; }
.ticket-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 15px; }
.cust-page .badge { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.cust-page .badge-open { background: #e5efff; color: #1f55b3; border: 1px solid #b9d0f5; }
.cust-page .badge-closed { background: var(--surface); color: var(--muted); border: 1px solid var(--border-strong); }

/* ---------- ۱۴) طرح‌های لایه باز ---------- */
.templates-page .title { font-size: 26px; gap: 12px; }
.templates-page .title::before { content: ''; width: 8px; height: 26px; background: var(--gold); border-radius: 4px; }
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 60px; }
.template-card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 22px; text-align: center;
  display: flex; flex-direction: column; justify-content: space-between; gap: 15px;
  box-shadow: var(--shadow); transition: .25s;
}
.template-card:hover { border-color: var(--gold-line); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.template-card h3 { font-size: 18px; color: var(--heading); }
.templates-page .logo-box { width: 55px; height: 55px; border: 2px solid var(--gold); border-radius: 50%; overflow: hidden; background: #fff; }
.templates-page .logo-img { width: 100%; height: 100%; object-fit: contain; }

/* پریویو طرح‌ها */
.tpl-preview {
  display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; position: relative;
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); cursor: zoom-in; color: var(--muted);
}
.tpl-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.tpl-preview:hover img { transform: scale(1.05); }
.tpl-zoom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px;
  background: linear-gradient(0deg, rgba(10,22,48,.85), transparent);
  color: var(--gold-bright); font-size: 13px; font-weight: 700;
}
.tpl-preview.empty { display: flex; align-items: center; justify-content: center; cursor: default; font-size: 13px; border-style: dashed; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 22, 48, .92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
.lightbox img {
  max-width: 96vw; max-height: 86vh; max-height: 86dvh; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--gold-line); box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 18px;
  border: 1px solid rgba(255,255,255,.25);
}
.lightbox-close:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- ۱۵) جستجو ---------- */
.search-page { padding: 20px 0; }
.search-page .wrap { width: min(1000px, 92%); }
.search-page h2 { color: var(--heading); border-bottom: 2px solid var(--gold-line); padding-bottom: 10px; }
.search-page .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.search-page .card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px; text-align: center; color: var(--text); box-shadow: var(--shadow);
}
.search-page .card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.search-page .no-result { color: var(--muted); margin-top: 30px; }
.search-page .back-btn { display: inline-flex; margin-bottom: 20px; color: var(--navy); background: #fff; border-color: var(--border-strong); }
.search-page .back-btn:hover { background: var(--navy); color: #fff; }

/* ---------- ۱۶) راهنما ---------- */
.guide-page .box { max-width: 800px; margin: 50px auto; background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 30px; border-radius: 20px; box-shadow: var(--shadow); }

/* ---------- ۱۷) عرض بخش‌ها در هر صفحه ---------- */
.p-products .wrap { width: min(1100px, 92%); }
.p-cart .wrap { width: min(1100px, 92%); }
.p-checkout .wrap { width: min(800px, 92%); }
.p-about .wrap { width: min(1000px, 92%); }
.p-customer .wrap { width: min(1000px, 94%); }
.p-cart header, .p-checkout header, .p-products-list header { margin-bottom: 30px; }
.p-product-detail header { margin-bottom: 0; }

/* ---------- ۱۸) پنل مدیریت (تمیز و حرفه‌ای) ---------- */
.admin-login-page {
  font-family: 'Dana', Tahoma, sans-serif;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 65%, var(--navy-soft) 100%);
  color: var(--text);
  display: flex; justify-content: center; align-items: center; min-height: 100vh; min-height: 100dvh; padding: 16px;
}
.admin-login-page .login-box {
  background: #fff; padding: 32px 28px; border-radius: 20px; width: 340px; max-width: 94vw;
  border-top: 4px solid var(--gold); box-shadow: var(--shadow-lg);
}
.admin-login-page input, .admin-login-page button {
  width: 100%; padding: 12px; margin: 8px 0; border-radius: 10px; border: 1px solid var(--border-strong);
  box-sizing: border-box; font-size: 14px;
}
.admin-login-page input { background: #fff; color: var(--text); }
.admin-login-page input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,58,.2); }
.admin-login-page button { background: var(--gold-gradient); color: var(--navy-dark); border: 0; cursor: pointer; font-weight: 900; min-height: 46px; }

.admin-page {
  font-family: 'Dana', Tahoma, sans-serif; background: var(--bg); color: var(--text);
  display: flex; min-height: 100vh; line-height: 1.7; font-size: 14px;
}
.admin-page .sidebar {
  width: 250px; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 22px 16px; border-left: 3px solid var(--gold); flex-shrink: 0; color: #fff;
}
.admin-page .sidebar h3 { color: var(--gold-bright); font-size: 17px; font-weight: 800; margin-bottom: 18px; padding: 0 6px 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.admin-page .sidebar a { display: block; color: #cfd8ec; padding: 11px 14px; border-radius: 10px; margin-bottom: 4px; font-weight: 600; }
.admin-page .sidebar a:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-page .sidebar a.active { background: var(--gold-gradient); color: var(--navy-dark); font-weight: 900; }
.admin-page .main { flex: 1; min-width: 0; padding: 30px; overflow-x: auto; }
.admin-page .main h1, .admin-page .main h2 { color: var(--heading); font-weight: 800; margin-bottom: 16px; }
.admin-page .main h3 { color: var(--navy); font-weight: 800; margin-bottom: 10px; }
.admin-page .card {
  background: #fff; padding: 22px; border-radius: 16px; margin-bottom: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.admin-page input, .admin-page textarea, .admin-page select {
  width: 100%; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text); border-radius: 10px; box-sizing: border-box;
}
.admin-page input:focus, .admin-page textarea:focus, .admin-page select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,58,.18);
}
.admin-page input[type="checkbox"], .admin-page input[type="radio"] { width: auto; margin: 0 6px; }
.admin-page button {
  padding: 10px 20px; margin: 6px 0; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--gold-gradient); color: var(--navy-dark); font-weight: 900; min-height: 40px;
  box-shadow: 0 4px 12px rgba(201,164,58,.25);
}
.admin-page button:hover { box-shadow: 0 8px 18px rgba(201,164,58,.4); }
.admin-page form > button:only-child, .admin-page .card form > button:last-child { min-width: 140px; }
.admin-page table { width: 100%; border-collapse: collapse; margin-top: 10px; background: #fff; border-radius: 12px; overflow: hidden; }
.admin-page th, .admin-page td { border-bottom: 1px solid var(--border); padding: 11px 12px; text-align: right; font-size: 13px; background: transparent; color: var(--text); }
.admin-page th { background: var(--surface); color: var(--navy); font-weight: 800; }
.admin-page tr:hover td { background: #fafbfe; }
.admin-page .badge { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; display: inline-block; }
.admin-page .badge-open { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); }
.admin-page .badge-closed { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.admin-page .item-list { font-size: 12px; color: var(--muted); line-height: 1.7; }
.admin-page a { color: var(--navy-soft); }

/* ==========================================================
   ریسپانسیو
   ========================================================== */

/* دستگاه‌های لمسی: افکت هاور باعث گیر کردن حالت نشود */
@media (hover: none) {
  .product-card:hover, .template-card:hover, .search-page .card:hover, .stat-item:hover, .latest-card:hover, .ticket:hover,
  .btn-submit:hover, .btn-pay:hover, .btn-checkout:hover, .btn-add-cart:hover, .btn-gold:hover, .dl-btn:hover {
    transform: none;
  }
}

/* کاهش انیمیشن برای کاربرانی که خواسته‌اند */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* تبلت و لپ‌تاپ کوچک */
@media (max-width: 1024px) {
  .wrap { width: 94%; }
  .head { min-height: 82px; }
  .logo-box { height: 60px; }
  .pill span:not(.cart-badge) { display: none; }
  .pill { padding: 8px 11px; }
  .search-form { margin: 0 8px; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 18px; }
  .service-card img, .services-grid img { width: 130px; height: 130px; }
  .product-grid-layout { grid-template-columns: 280px 1fr; gap: 22px; }
}

@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: span 2; }
  .admin-page { flex-direction: column; }
  .admin-page .sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; border-bottom: 3px solid var(--gold); }
  .admin-page .sidebar h3 { width: 100%; }
  .admin-page .sidebar a { margin: 0; padding: 8px 12px; font-size: 13px; }
  .admin-page .main { padding: 16px; }
}

/* موبایل و تبلت عمودی */
@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .head { min-height: 74px; gap: 8px; padding-top: 8px; padding-bottom: 11px; row-gap: 10px; }
  .logo-box { height: 54px; gap: 8px; }
  .logo-text { font-size: 22px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .head { flex-wrap: wrap; }
  .search-form { order: 5; flex: 0 0 100%; max-width: none; margin: 2px 0 0; height: 44px; }
  .pill span:not(.cart-badge), .back-btn span { display: none; }
  .pill, .back-btn { padding: 8px 11px; border-radius: 10px; }
  .cart-icon-btn { padding: 8px 11px; }
  .menu-btn { width: 44px; height: 44px; }

  .title { font-size: 19px; margin: 28px 0 18px; }
  .hero-container { margin: 14px 0 20px; }
  .hero { border-radius: 16px; }
  .cap { right: 5%; padding-right: 10px; max-width: 90%; border-right-width: 3px; }

  .features-bar { grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 26px; }
  .feat-card { padding: 10px; border-radius: 14px; gap: 8px; }
  .feat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .feat-info h4 { font-size: 12px; }
  .feat-info p { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
  .service-card, .services-grid > a, .services-grid > div { padding: 8px 4px; gap: 12px; }
  .service-card img, .services-grid img { width: 110px; height: 110px; }
  .service-card b, .services-grid b { font-size: 14.5px; }

  .foot { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: row; margin-top: 26px; }
  footer { margin-top: 44px; padding: 32px 0 calc(15px + env(safe-area-inset-bottom)); }
  .enamad-box { width: 104px; height: 104px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 11px; border-radius: 16px; }
  .card-img-box { height: 125px; }
  .product-grid-layout { grid-template-columns: 1fr; }
  .product-detail-card { padding: 16px; margin: 18px auto; }
  .product-info h1 { font-size: 20px; }

  th, td { font-size: 12px; padding: 8px 5px; }
  .cart-card { padding: 16px 12px; }
  .cart-summary { flex-direction: column; align-items: stretch; text-align: center; }

  .about-card { padding: 25px 18px; margin: 20px 0 35px; border-radius: 20px; }
  .hero-text p { font-size: 14px; line-height: 1.9; text-align: justify; text-align-last: auto; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; margin: 25px 0 35px; }
  .stat-item { padding: 16px; display: flex; align-items: center; justify-content: space-between; text-align: right; }
  .stat-item b { font-size: 24px; margin-bottom: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
  .feat-box { padding: 14px 10px; gap: 6px; }
  .feat-icon-bg { width: 38px; height: 38px; border-radius: 10px; }
  .feat-box h4 { font-size: 13px; }
  .feat-box p { font-size: 11px; }
  .branches-grid { grid-template-columns: 1fr; gap: 14px; }
  .branch-card { padding: 18px; }
  .manager-bar { flex-direction: column; text-align: center; justify-content: center; }
  .manager-info { flex-direction: column; }
  .manager-phone { width: 100%; justify-content: center; font-size: 15px; }

  /* جلوگیری از زوم خودکار iOS هنگام فوکوس روی فیلدها */
  .custom-input, .qty-input, .search-input, select, textarea, input { font-size: 16px; }
}

@media (max-width: 650px) {
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .checkout-card { padding: 20px 14px; }
  .content-card { padding: 18px 12px; }
  .btn-gold { width: 100%; }
  .auth-container, .auth-card { padding: 24px 16px; }
}

/* گوشی‌های خیلی کوچک */
@media (max-width: 360px) {
  .logo-text { font-size: 18px; }
  .logo-box { height: 46px; }
  .products-grid { grid-template-columns: 1fr; }
  .card-img-box { height: 160px; }
  .service-card img, .services-grid img { width: 96px; height: 96px; }
  .features-bar, .features-grid { grid-template-columns: 1fr; }
}

/* گوشی در حالت افقی: هدر و هیرو کوتاه‌تر */
@media (max-height: 480px) and (orientation: landscape) {
  .head { min-height: 58px; }
  .logo-box { height: 42px; }
  .hero { height: 170px; }
}

@media (min-width: 768px) {
  .btn-gold { width: auto; }
}

/* مانیتورهای بزرگ */
@media (min-width: 1400px) {
  .wrap { width: min(1280px, 92%); }
  .hero { height: 290px; }
  .head { min-height: 100px; }
  .logo-box { height: 78px; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .service-card img, .services-grid img { width: 164px; height: 164px; }
}

@media (min-width: 1920px) {
  body { font-size: 16px; }
  .wrap { width: min(1400px, 90%); }
}
