:root{
  --aps-bg: #3b0608;
  --aps-surface: rgba(211,203,188,0.08);
  --aps-card: rgba(211,203,188,0.10);
  --aps-card2: rgba(211,203,188,0.14);
  --aps-text: #d3cbbc;
  --aps-muted: #d3cbbc;
  --aps-border: rgba(211,203,188,0.5);
  --aps-accent: #d3cbbc;
  --aps-radius: 18px;
  --aps-maxw: 640px;

  /* ===== فونت وزیرمتن ===== */
  --font-primary: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}

body.aps-body{
  margin:0;
  /* ✅ اصلاح شد: از متغیر فونت وزیرمتن استفاده می‌کنه */
  font-family: var(--font-primary);
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--aps-bg);
  color: var(--aps-text);
}

/* اطمینان از اعمال فونت به همه عناصر */
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
button, input, select, textarea,
.menu-item, .cart-item, .price {
    font-family: inherit;
}

/* وزن‌های مختلف برای عناصر مختلف */
h1, h2, h3 { font-weight: 700; }
h4, h5, h6 { font-weight: 600; }
strong, b { font-weight: 700; }
.price { font-weight: 500; }

a{color:inherit}
a:visited{color:inherit}
input,button,textarea,select{color: var(--aps-text)}
::placeholder{color: var(--aps-text); opacity: 0.85}
.aps-app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.aps-top-menu{list-style:none;margin:0;padding:0;display:flex;gap:10px}
.aps-top-menu a{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:12px;
  text-decoration:none;
  border:1px solid var(--aps-border);
  background: rgba(211,203,188,0.08);
}

.aps-content{
  width:100%;
  max-width: var(--aps-maxw);
  padding: 14px 16px 0;

  background: rgba(211,203,188,0.04);
  border: 1px solid rgba(211,203,188,0.08);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.aps-tab .aps-ico{font-size:18px;line-height:1}
.aps-tab .aps-label{font-size:16px;font-weight:700}
.aps-tab.is-active{
  background: rgba(211,203,188,0.18);
  border-color: rgba(211,203,188,0.26);
  color: var(--aps-text);
  box-shadow: 0 0 0 1px rgba(211,203,188,0.10) inset, 0 8px 22px rgba(0,0,0,0.22);
}

@media (min-width: 700px){
  .aps-app{padding-bottom: 92px}
}


/* -------- Route: Arkia (full-bleed hero) -------- */
body.apc-route-arkia .aps-bottomnav{display:none;}
body.apc-route-arkia .aps-topbar{display:none;}
body.apc-route-arkia .aps-app{
  padding-bottom: 0;
  align-items: stretch;
}
body.apc-route-arkia .aps-content{
  max-width: none;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

/* -------- Contact section (Arkia landing) -------- */
.aps-contact{display:none}
body.apc-route-arkia .aps-contact{display:block}

body.apc-route-arkia .aps-contact{
  width: 100%;
  padding: 22px 16px 26px;
  background: linear-gradient(180deg, rgba(59,6,8,0) 0%, rgba(59,6,8,0.75) 22%, rgba(59,6,8,1) 100%);
}

.aps-contact-inner{
  max-width: var(--aps-maxw);
  margin: 0 auto;
}

.aps-contact-head{margin-bottom: 14px}
.aps-contact-title{margin:0; font-size: 20px; font-weight: 800}
.aps-contact-sub{margin:6px 0 0; opacity: 0.86; font-size: 13px}

.aps-map-card{
  border: 1px solid var(--aps-border);
  background: rgba(211,203,188,0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.aps-map{width:100%; height: 240px; border:0; display:block}
.aps-map-placeholder{padding:18px}
.aps-map-ph-title{font-weight:800; margin-bottom:6px}
.aps-map-ph-sub{opacity:0.85; font-size:13px; line-height:1.7}

.aps-contact-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.aps-info-card{
  border: 1px solid var(--aps-border);
  background: rgba(211,203,188,0.08);
  border-radius: 18px;
  padding: 14px 14px;
}

.aps-info-label{font-size: 12px; opacity: 0.80; margin-bottom: 6px}
.aps-info-value{font-size: 14px; line-height: 1.85}

.aps-link{font-weight: 800; text-decoration: none}
.aps-link:hover{opacity:0.92; text-decoration: underline}

.aps-socials{display:flex; flex-wrap:wrap; gap:8px}
.aps-social{
  text-decoration:none;
  border: 1px solid rgba(211,203,188,0.24);
  background: rgba(211,203,188,0.12);
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}
.aps-social:hover{opacity:0.92}


.aps-social--icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.aps-social--icon::before{
  content:"";
  width: 28px;
  height: 28px;
  display:block;
  border-radius: 10px;
  background-image: var(--aps-icon-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.aps-social-icon{
  width: 28px;
  height: 28px;
  display:none; /* fallback handled by ::before to work even if <img> is stripped */
  border-radius: 10px;
}

.aps-muted{opacity:0.82; font-size: 13px}

.aps-policy{margin-top: 14px; text-align:center}
.aps-policy-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(211,203,188,0.24);
  background: rgba(211,203,188,0.10);
  font-weight: 900;
}
.aps-policy-link:hover{opacity:0.92; text-decoration: underline}

/* -------- Privacy Policy page -------- */
.aps-policy-page{
  width: 100%;
  max-width: var(--aps-maxw);
  padding: 18px 16px 20px;
}

.aps-policy-article{
  border: 1px solid var(--aps-border);
  background: rgba(211,203,188,0.08);
  border-radius: 18px;
  padding: 16px 16px;
}

.aps-policy-h1{
  margin: 2px 0 10px;
  font-size: 18px;
  font-weight: 900;
}

.aps-policy-body{
  line-height: 2.0;
  font-size: 14px;
}

.aps-policy-body h2, .aps-policy-body h3{
  margin: 16px 0 6px;
}

.aps-policy-body p{margin: 8px 0}
/* --- Bottom nav: thinner + NO glass --- */
/* ✅ نسخه ادغام‌شده - جایگزین هر دو بلوک قبلی */
.aps-bottomnav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;                        /* ← محدودیت عرض حذف */
  transform: none;                        /* ← دیگه نیازی نیست */
  display: flex;
  gap: 12px;
  padding: 12px 12px calc(6px + env(safe-area-inset-bottom));  /* ← فاصله امن پایین برای گوشی‌های ناچ‌دار */
  border-radius: 32px 32px 0 0;           /* ← فقط دو گوشه بالا گرد */
  border-top: 3px solid var(--aps-border);
  border-bottom: none;                    /* ← خط پایین حذف */
  background: rgba(59,6,8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  z-index: 30;
}

.aps-tab{
  flex: 1;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(211,203,188,0.10);
  border: 2px solid transparent;
  color: var(--aps-muted);
  transition: 140ms ease;
}

.aps-tab{
  gap: 4px;
  padding: 12px 6px;             /* باریک‌تر */
  border-radius: 14px;
  background: rgba(211,203,188,0.10); /* می‌تونه نیمه‌شفاف بمونه؛ شیشه‌ای نیست چون blur حذف شد */
}

.aps-tab .aps-ico{font-size:16px;}
.aps-tab .aps-label{font-size:13px;}
/* Hide center watermark/logo on Arkia landing */
body.apc-route-arkia .apc-hero-watermark,
body.apc-route-arkia .apc-watermark,
body.apc-route-arkia .hero-watermark,
body.apc-route-arkia .watermark,
body.apc-route-arkia .center-logo,
body.apc-route-arkia .hero-logo,
body.apc-route-arkia img[alt*="آرکیا"],
body.apc-route-arkia img[alt*="Arkia"],
body.apc-route-arkia img[src*="watermark"],


/* Social icon button: tight square around the icon */
.aps-socials{
  gap: 10px; /* اگر چندتا سوشال اضافه شد */
}

.aps-social.aps-social--icon{
  /* square button */
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;

  /* remove wide padding that makes the box too big */
  padding: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px; /* همون حس کارت‌ها */
}

/* icon size (bigger) */
.aps-social.aps-social--icon::before,
.aps-social-icon{
  width: 50px;
  height: 50px;
  background-size: 50px 50px;
  border-radius: 10px; /* برای PNGهای گوشه‌دار */
  display: block;
}


.aps-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.aps-logo img,
.aps-logo .custom-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
}

/* Fallback: حرف اول نام سایت */
.aps-logo--fallback a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

/* ===== هدر آرکیا - لوگو وسط + گوشه گرد + ثابت ===== */
/* ✅ نسخه ادغام‌شده - جایگزین هر دو بلوک */
.aps-topbar {
  width: 100%;
  max-width: var(--aps-maxw);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  min-height: 45px;
  padding: 10px 16px;
  box-sizing: border-box;
  overflow: visible;
  border-radius: 0 0 32px 32px;
  z-index: 9999;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  background: rgba(59,6,8);
  border-bottom: 3px solid var(--aps-border);
}

.aps-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.aps-top-actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.aps-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.aps-logo-img {
  height: 30px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.aps-logo--fallback span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}
/* Hide only Arkia logo inside hero video content */
body.apc-route-arkia .apc-hero-video .apc-hero-video__content img.apc-brand-logo {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* Licenses & badges box */
body.apc-route-arkia .apc-enamad-card {
  margin-top: 24px;
}

body.apc-route-arkia .apc-enamad__label {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-align: right;
}

body.apc-route-arkia .apc-enamad__box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

body.apc-route-arkia .apc-enamad__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

body.apc-route-arkia .apc-enamad__items a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 120px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.apc-route-arkia .apc-enamad__items a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.apc-route-arkia .apc-enamad__items img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

/* Mobile */
@media (max-width: 640px) {
  body.apc-route-arkia .apc-enamad__box {
    padding: 12px;
  }

  body.apc-route-arkia .apc-enamad__items {
    gap: 12px;
  }

  body.apc-route-arkia .apc-enamad__items a {
    width: 100px;
    min-height: 100px;
    padding: 6px;
  }

  body.apc-route-arkia .apc-enamad__items img {
    max-height: 84px;
  }
}
