.apc-root{
  width:100%;
  /* Leave breathing room at the bottom so the fixed bottom navigation
     doesn't cover the last items on mobile.
     JS updates --apc-nav-h based on the real nav height. */
  padding-bottom: calc(var(--apc-nav-h, 82px) + 18px + env(safe-area-inset-bottom));
}

/* ----------------------------
   Theme accent v2
   Secondary brand color: #d3cbbc
   Goal: make all form fields cream (#d3cbbc) with black text,
   while keeping the existing burgundy background.
---------------------------- */
:root{
  --apc-cream2: #d3cbbc;
  --apc-ink: #0b0b0b;
}

.apc-card{
  border:1px solid var(--aps-border);
  background: var(--aps-card);
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
}

.apc-h1{font-size:18px;margin:0 0 8px;font-weight:800}
.apc-muted{color: var(--aps-text);font-size:13px;line-height:1.6}

.apc-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}

.apc-item{
  border:1px solid var(--aps-border);
  background: rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 12px;
}

.apc-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.apc-title{font-weight:800}
.apc-badge{
  font-size:12px;
  padding:3px 8px;
  border-radius: 999px;
  border:1px solid rgba(124,77,255,0.35);
  background: rgba(211,203,188,0.12);
}
.apc-price{font-weight:900}
.apc-desc{margin-top:6px;color:var(--aps-text);font-size:13px;line-height:1.6}

.apc-btn{
  appearance:none;border:none;cursor:pointer;
  padding: 10px 12px;border-radius: 14px;
  background: rgba(211,203,188,0.14);
  border: 1px solid rgba(211,203,188,0.24);
  color: var(--aps-text);
  font-weight: 800;
}
.apc-input{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--aps-border);
  background: rgba(0,0,0,0.14);
  color: var(--aps-text);
}
.apc-form{display:grid;gap:10px}
.apc-success{
  border:1px solid rgba(211,203,188,0.22);
  background: rgba(211,203,188,0.10);
}

.apc-input::placeholder{color:var(--aps-text);opacity:0.85}

/* -------- Arkia brand page -------- */
.apc-arkia{
  width:100%;
}

/* Full-screen hero video (Rolex-like) */
.apc-hero-video{
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: rgba(0,0,0,0.22);
}

.apc-hero-video__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: contrast(1.02) saturate(0.95);
}

.apc-hero-video__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.55) 100%),
    radial-gradient(800px 400px at 50% 20%, rgba(211,203,188,0.10), transparent 70%);
}

.apc-hero-video__content{
  position:absolute;
  left:0; right:0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  padding: calc(16px + env(safe-area-inset-top)) 16px;
}

.apc-kicker{
  font-size:12px;
  letter-spacing: 0.28em;
  opacity: 0.92;
}

.apc-hero-title{
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 900;
}

.apc-hero-slogan{
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
}

.apc-hero-sub{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--aps-text);
  opacity: 0.92;
  max-width: 44ch;
}

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

.apc-cta--hero{
  margin-top: 16px;
}

.apc-btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
}

.apc-btn-primary{
  background: rgba(211,203,188,0.18);
  border: 1px solid rgba(211,203,188,0.30);
}

.apc-btn-secondary{
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(211,203,188,0.24);
}

.apc-hero-video__hint{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 10px;
  font-size: 11px;
  opacity: 0.80;
  letter-spacing: 0.12em;
}

/* Sections spacing */
.apc-arkia__section{
  margin-top: 12px;
}

  .apc-slide__img{height: 320px}
  .apc-hero-title{font-size: 34px}
}



.apc-full-slider{
  display:block;
  margin-top: 18px;
  z-index: 0;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: rgba(0,0,0,0.22);
}

.apc-full-slider__track{
  position:absolute;
  inset:0;
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
}

.apc-full-slide{
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align:start;
}

.apc-full-slide__img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
  transform: scale(1.01);
  filter: contrast(1.02) saturate(0.95);
}

.apc-full-slider__overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.48) 100%),
    radial-gradient(900px 420px at 50% 18%, rgba(211,203,188,0.10), transparent 70%);
}

.apc-full-slider__ui{
  position:absolute;
  left:0; right:0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.apc-full-slider__title{
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.90;
  white-space: nowrap;
}

.apc-full-slider__dots{
  display:flex;
  justify-content:center;
  gap:8px;
}


.apc-full-slider::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:0;
  height: 18px;
  background: linear-gradient(180deg, rgba(59,6,8,1) 0%, rgba(59,6,8,0) 100%);
  pointer-events:none;
  z-index:2;
}


/* -------- Menu layout (3 sections + categories + sticky glass) -------- */
.apc-sections3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 10px;
}

.apc-cats{
  margin-top: 10px;
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

/* generic flex row for chips (hours, filters, etc.) */
.apc-chip-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.apc-chip{
  border: 1px solid rgba(211,203,188,0.20);
  background: rgba(211,203,188,0.08);
  color: var(--aps-text);
  /* Chips are sometimes rendered as <a> (tabs). Prevent default underline. */
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  cursor:pointer;
  white-space: nowrap;
}

/* Safety: ensure tab links never show underlines even if browser defaults apply */
.apc-dash-nav a.apc-chip,
.apc-dash-nav a.apc-chip:visited,
.apc-dash-nav a.apc-chip:hover,
.apc-dash-nav a.apc-chip:active{
  text-decoration: none !important;
}

.apc-chip.is-active{
  background: rgba(245,232,208,0.38);
  border-color: rgba(245,232,208,0.70);
}

.apc-chip.is-disabled,
.apc-chip:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(20%);
}

/* Disabled chips: make them visually distinct (cream + red border) */
.apc-chip.is-disabled,
.apc-chip:disabled{
  background: rgba(245,232,208,0.55);
  border-color: rgba(190,40,40,0.70);
}

.apc-chip--sec{
  min-height: 44px;
}

.apc-sticky-glass{
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(211,203,188,0.22);
background: rgba(59,6,8,0.58);
  color: #d3cbbc;
backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.26);
}

.apc-sticky-title{
  font-size: 14px;
  font-weight: 900;
}

.apc-sticky-sub{
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.92;
}

.apc-items-wrap{
  margin-top: 12px;
}

.apc-item-img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--aps-border);
  margin-bottom:10px;
  background:rgba(0,0,0,0.12);
}



/* -------- Item card redesign (thumb left + add button) -------- */
.apc-item--row{
  display:flex;
  gap:12px;
  align-items:stretch;
  background: #d3cbbc; /* cream */
  border: 1px solid rgba(59,6,8,0.25);
  color: #2a1718; /* readable on cream */
}

.apc-item--row .apc-item-left{
  width: 110px;
  flex: 0 0 110px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
}

.apc-thumb{
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(59,6,8,0.25);
  background: rgba(0,0,0,0.08);
}

.apc-thumb--ph{
  display:block;
}

.apc-add{
  width: 110px;
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(59,6,8,0.30);
  background: rgba(59,6,8,0.92);
  color: rgba(211,203,188,0.98);
}

/* Disabled/Unavailable add buttons: cream background with red border */
.apc-add:disabled,
.apc-add[disabled]{
  background: rgba(245,232,208,0.95);
  border-color: rgba(190,40,40,0.90);
  color: rgba(130,20,20,0.95);
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

.apc-add.is-added{
  transform: scale(0.98);
  opacity: 0.9;
}

.apc-item--row .apc-item-right{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-top: 2px;
}

.apc-item-title{
  font-size: 14px;
  font-weight: 900;
  color: #2a1718;
}

.apc-item-desc{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.9;
  color: #2a1718;
}

.apc-item-price{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 900;
  color: #2a1718;
}


/* -------- Item card layout v2: image left, content middle, button right -------- */
.apc-item--row{
  direction: ltr;              /* keep layout LTR so image truly sits on the left */
  display:flex;
  gap:12px;
  align-items:stretch;
  background: #d3cbbc;
  border: 1px solid rgba(59,6,8,0.25);
  color: #2a1718;
}

.apc-item-imgcol{
  flex: 0 0 96px;
  width: 96px;
  display:flex;
  align-items:center;
}

.apc-item-content{
  direction: rtl;              /* text stays Persian/RTL */
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:stretch;
}

.apc-item-cta{
  direction: rtl;
  text-align: right;
  flex: 0 0 96px;
  width: 96px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
}

.apc-thumb{
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(59,6,8,0.25);
  background: rgba(0,0,0,0.08);
}

.apc-add{
  width: 96px;
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(59,6,8,0.30);
  background: rgba(59,6,8,0.92);
  color: rgba(211,203,188,0.98);
}


/* -------- Item card layout v3: content aligned to button edge -------- */
.apc-item--row{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: stretch;
}

.apc-item-imgcol{ width:96px; display:flex; align-items:center; }

.apc-item-content{
  direction: rtl;
  text-align: right !important;
  align-items: stretch;
}

.apc-item-title,
.apc-item-desc,
.apc-item-price{
  text-align: right !important;
}

.apc-item-bottom{
  margin-top: 12px;
  display:flex;
  justify-content: flex-end; /* everything hugs the right side (same as button) */
  align-items:center;
  gap: 10px;
}

.apc-item-bottom .apc-item-price{
  margin: 0;
}


/* -------- Item card layout v4: thin add button under image; price right -------- */
.apc-item-imgcol{
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.apc-add--thin{
  width: 96px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 12px;
}

.apc-item-content{
  display:flex;
  flex-direction:column;
}

.apc-item-price{
  margin-top: auto;           /* push price to bottom */
  text-align: right !important;
}


/* -------- Item card layout v5: add button under price (right) -------- */
.apc-item-bottom{
  margin-top: auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end; /* right aligned */
  gap: 8px;
}

.apc-item-bottom .apc-item-price{
  margin: 0;
  text-align: right !important;
}

.apc-item-bottom .apc-add--thin{
  width: 120px;         /* a bit wider than thumb, still slim */
}


/* ===== Item card final layout (image left, content right, price+add bottom-right) ===== */
.apc-item--row{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: stretch;
  direction: ltr;
  background: #d3cbbc;
  border: 1px solid rgba(59,6,8,0.25);
  color: #2a1718;
}

.apc-item-imgcol{
  width: 96px;
  display:flex;
  align-items:center;
}

.apc-thumb{
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(59,6,8,0.25);
  background: rgba(0,0,0,0.08);
}

.apc-item-content{
  direction: rtl;
  text-align: right;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.apc-item-title,.apc-item-desc,.apc-item-price{ text-align:right; color:#2a1718; }

.apc-item-desc{ margin-top:6px; font-size:12px; line-height:1.55; opacity:.9; }

.apc-item-bottom{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.apc-add--thin{
  width: 120px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 12px;
  cursor:pointer;
  border: 1px solid rgba(59,6,8,0.30);
  background: rgba(59,6,8,0.92);
  color: rgba(211,203,188,0.98);
}


/* -------- Fix: force price + add button to the right edge -------- */
.apc-item-content{
  text-align: right !important;
}

.apc-item-bottom{
  width: 100% !important;
  margin-top: auto !important;
  display:flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;   /* stick to right */
  justify-content: flex-end !important;
  gap: 8px !important;
}

.apc-item-bottom .apc-item-price{
  width: 100% !important;
  text-align: right !important;
}

.apc-item-bottom .apc-add,
.apc-item-bottom .apc-add--thin{
  align-self: flex-end !important;
}


/* -------- Fix2: RTL flex cross-axis start is right; use flex-start -------- */
.apc-item-bottom{
  direction: rtl !important;
  align-items: flex-start !important; /* right edge in RTL */
}

.apc-item-bottom .apc-add,
.apc-item-bottom .apc-add--thin{
  align-self: flex-start !important;
}


/* -------- Two-line prices -------- */
.apc-prices{
  width: 100%;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.apc-price-row{
  width: 100%;
  display:flex;
  justify-content: space-between;
  gap: 10px;
}

.apc-price-label{
  opacity: 0.9;
  font-weight: 800;
}

.apc-price-val{
  font-weight: 900;
}


/* -------- FIX: clean menu item layout (no duplicates, RTL aligned) -------- */
.apc-item--row{
  background:#d3cbbc;
  border: 1px solid rgba(59,6,8,0.25);
  color:#2a1718;
  display:grid;
  grid-template-columns: 96px 1fr;
  gap:12px;
  align-items:stretch;
}

.apc-item-imgcol{ width:96px; display:flex; align-items:flex-start; }

.apc-item-content{
  direction: rtl;
  text-align: right !important;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.apc-item-title,
.apc-item-desc{
  text-align:right !important;
}

.apc-item-bottom{
  margin-top:auto;
  width:100%;
  direction: rtl;
  display:flex;
  flex-direction:column;
  align-items:flex-start; /* right in RTL */
  gap:10px;
}

.apc-prices{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.apc-price-row{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  direction: rtl;
}

.apc-price-label{
  font-weight:900;
  opacity:0.95;
}

.apc-price-val{
  font-weight:900;
}

.apc-add--thin{
  width: 120px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 12px;
  align-self:flex-start; /* right in RTL */
}


/* -------- Two-price items: add a small sub-card under main card -------- */
.apc-item-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.apc-item-sub{
  background: rgba(211,203,188,0.85);
  border: 1px solid rgba(59,6,8,0.20);
  border-radius: 16px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  direction: rtl;
}

.apc-item-sub-row{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width: 0;
}

.apc-item-sub-title{
  font-weight: 900;
  color:#2a1718;
  font-size: 13px;
}

.apc-item-sub-price{
  font-weight: 900;
  color:#2a1718;
  font-size: 13px;
}

.apc-add--sub{
  width: 110px;
}


/* -------- Sub-card attached + button right, text/price left -------- */
.apc-item-wrap--has2{
  gap: 0 !important;
}

.apc-item-wrap--has2 .apc-item--row{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.apc-item-wrap--has2 .apc-item-sub{
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin-top: -1px; /* attach borders */
  border-top: 0;
}

/* Layout: left info, right button */
.apc-item-sub{
  direction: ltr; /* makes first child left, last child right */
  justify-content: space-between;
}

.apc-item-sub-row{
  direction: rtl;   /* keep Persian shaping */
  text-align: left; /* but align to left as requested */
}

.apc-item-sub-title,
.apc-item-sub-price{
  text-align: left;
}

.apc-item-sub .apc-add--sub{
  margin-left: 12px;
  align-self: center;
}


/* -------- Sticky glass section/category bar -------- */
.apc-stickybar{
  position: sticky;
  top: calc(var(--apc-sticky-top, 64px) + env(safe-area-inset-top));
  z-index: 25;
  margin: 12px 0 10px;
  padding: 10px 10px 8px;
  border-radius: 18px;
  background: rgba(59,6,8,0.62);
  color: #d3cbbc;
border: 2px solid rgba(211,203,188,0.22);
backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
}

.apc-stickybar .apc-sections3,
.apc-stickybar .apc-cats{
  margin: 0;
}

.apc-stickybar .apc-cats{
  margin-top: 10px;
}

/* Ensure sticky bar text stays readable */
.apc-stickybar, .apc-sticky-glass{
  color: #d3cbbc;
}
.apc-stickybar * , .apc-sticky-glass *{
  color: inherit;
}

/* Sticky bar chip colors (sections & categories) */
.apc-stickybar .apc-chip{
  color: rgba(211,203,188,0.96);
  background: rgba(59,6,8,0.38);
  border-color: rgba(211,203,188,0.26);
}

/* Active chips: a bit more creamy for better recognition */
.apc-stickybar .apc-chip.is-active{
  background: rgba(245,232,208,0.22);
  border-color: rgba(245,232,208,0.55);
  color: rgba(245,232,208,0.98);
}

/* Disabled chips inside sticky bar: cream with red border */
.apc-stickybar .apc-chip.is-disabled,
.apc-stickybar .apc-chip:disabled{
  opacity: 0.75;
  background: rgba(245,232,208,0.70);
  border-color: rgba(190,40,40,0.80);
  color: rgba(130,20,20,0.92);
}


/* -------- Qty control (+ / - / number) -------- */
.apc-qty{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(59,6,8,0.85);
  border: 1px solid rgba(211,203,188,0.22);
  color: #d3cbbc;
}

.apc-qty-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(211,203,188,0.22);
  background: rgba(59,6,8,0.55);
  color: #d3cbbc;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* Disabled add / qty buttons: cream background + red border (distinct from active) */
.apc-add[disabled],
.apc-add:disabled,
.apc-qty-btn[disabled],
.apc-qty-btn:disabled{
  background: rgba(245,232,208,0.92) !important;
  border-color: rgba(190,40,40,0.90) !important;
  color: rgba(130,20,20,0.95) !important;
  opacity: 1 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.apc-qty-num{
  min-width: 22px;
  text-align:center;
  font-weight: 900;
  font-size: 14px;
}

/* Slightly smaller in sub-card */
.apc-qty--sub{
  padding: 7px 9px;
}
.apc-qty--sub .apc-qty-btn{
  width: 32px;
  height: 32px;
}

/* -------- Sticky order CTA (above bottom nav) -------- */
.apc-order-cta{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--apc-nav-h, 82px) + 12px);
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(211,203,188,0.25);
  background: rgba(211,203,188,0.92);
  color: #3b0608;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* -------- Qty control: keep order LTR so + stays on the right -------- */
.apc-qty, .apc-qty--sub{
  direction: ltr !important;
}


/* -------- Order mode modal -------- */
.apc-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  direction: rtl;
}
.apc-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.apc-modal__panel{
  position: relative;
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 18px;
  background: rgba(59,6,8,0.92);
  border: 1px solid rgba(211,203,188,0.22);
  box-shadow: 0 26px 70px rgba(0,0,0,0.40);
  color: #d3cbbc;
}
.apc-modal__title{
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}
.apc-modal__text{
  font-size: 13px;
  opacity: 0.95;
  margin-bottom: 12px;
}
.apc-modal__actions{
  display:flex;
  gap: 10px;
}
.apc-modal__row{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}
.apc-input{
  flex: 1 1 auto;
  border-radius: 14px;
  border: 1px solid rgba(211,203,188,0.22);
  background: rgba(211,203,188,0.10);
  color: #d3cbbc;
  padding: 10px 12px;
  outline: none;
}
.apc-input::placeholder{
  color: rgba(211,203,188,0.65);
}
.apc-modal__error{
  margin-top: 8px;
  font-size: 12px;
  color: #ffd6d6;
}
.apc-btn{
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 900;
  border: 1px solid rgba(211,203,188,0.22);
  cursor: pointer;
  flex: 1 1 0;
}
.apc-btn--cream{
  background: rgba(211,203,188,0.95);
  color: #3b0608;
}
.apc-btn--dark{
  background: rgba(59,6,8,0.92);
  color: rgba(211,203,188,0.98);
}

/* -------- Busy popup (receipt upload) -------- */
.apc-busy{
  position: fixed;
  inset: 0;
  z-index: 20000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  direction: rtl;
}
.apc-busy__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.apc-busy__panel{
  position: relative;
  width: min(360px, 100%);
  border-radius: 22px;
  padding: 16px 16px;
  background: rgba(59,6,8,0.92);
  border: 1px solid rgba(211,203,188,0.22);
  box-shadow: 0 26px 70px rgba(0,0,0,0.40);
  color: #d3cbbc;
}
.apc-busy__row{
  display:flex;
  align-items:center;
  gap: 10px;
}
.apc-busy__text{
  font-size: 14px;
  font-weight: 900;
}
.apc-busy__sub{
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
}
.apc-spinner{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(211,203,188,0.45);
  border-top-color: rgba(211,203,188,0.0);
  animation: apc-spin 1s linear infinite;
}
@keyframes apc-spin{
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* -------- Tiny table badge -------- */
.apc-table-badge{
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9998;
  padding: 6px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(59,6,8,0.65);
  border: 1px solid rgba(211,203,188,0.20);
  color: rgba(211,203,188,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* Dashboard */
.apc-dash-nav{
  position: sticky;
  top: 54px;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 12px;
  margin: -8px -12px 0;
  backdrop-filter: blur(300px);
  -webkit-backdrop-filter: blur(300px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  background: rgba(59,6,8,0.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.apc-chip.is-active{
  background: rgba(245,232,208,0.38);
  border-color: rgba(245,232,208,0.70);
}

.apc-grid-2, .apc-grid-3{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 520px){
  .apc-grid-2{ grid-template-columns: 1fr 1fr; }
  .apc-grid-3{ grid-template-columns: 1fr 1fr 1fr; }
}

.apc-progress{
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  overflow: hidden;
}
.apc-progress-bar{
  height: 100%;
  border-radius: 999px;
  background: rgba(90,18,18,.9);
}
.apc-progress-labels{
  display:flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  margin-top: 8px;
  color: rgba(255,255,255,.68);
}
.apc-progress-labels span.is-on{
  color: rgba(255,255,255,.98);
  font-weight: 700;
}

/* Beautiful 3-step delivery tracker */
.apc-stepper{
  position: relative;
  padding-top: 2px;
}
.apc-stepper-track{
  position: absolute;
  left: 10px;
  right: 10px;
  top: 9px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.10);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
  overflow: hidden;
}
.apc-stepper-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(90,18,18,.95), rgba(140,28,28,.95));
  width: 0;
  transition: width .35s ease;
  position: relative;
}
.apc-stepper-fill:after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0));
  transform: translateX(-60%);
  animation: apcShine 1.8s infinite;
}
@keyframes apcShine{
  0%{ transform: translateX(-60%); }
  100%{ transform: translateX(160%); }
}
.apc-stepper-steps{
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.apc-stepper-step{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.apc-stepper-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: 2px solid rgba(0,0,0,.18);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.apc-stepper-step.is-on .apc-stepper-dot{
  background: rgba(90,18,18,.95);
  border-color: rgba(90,18,18,.95);
  box-shadow: 0 2px 7px rgba(90,18,18,.25);
}
.apc-stepper-label{
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.68);
  line-height: 1.25;
}
.apc-stepper-step.is-on .apc-stepper-label{
  color: rgba(255,255,255,.98);
  font-weight: 800;
}
@media (max-width: 380px){
  .apc-stepper-label{ font-size: 10px; }
}

.apc-table-wrap{
  overflow-x: auto;
}
.apc-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.apc-table th, .apc-table td{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-align: right;
  white-space: nowrap;
}
.apc-table th{
  font-weight: 800;
  color: rgba(255,255,255,.86);
}

.apc-label{
  display:block;
  font-size: 12px;
  margin-top: 4px;
  color: rgba(255,255,255,.76);
}
.apc-textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 10px 12px;
  outline: none;
  background: rgba(255,255,255,.45);
  color: rgba(0,0,0,.85);
}

.apc-hide{ display:none !important; }

.apc-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.apc-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.apc-modal-card{
  position: relative;
  width: min(480px, 100%);
  max-height: min(80vh, 620px);
  overflow: auto;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  padding: 14px;
}

/* High-contrast modal content (mobile-friendly) */
.apc-modal-card, .apc-modal-card *{ color: rgba(0,0,0,.92); }
.apc-modal-card .apc-muted{ color: rgba(0,0,0,.68); }
.apc-modal-card .apc-input,
.apc-modal-card .apc-textarea,
.apc-modal-card select.apc-input{
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.18);
  color: rgba(0,0,0,.92);
}
.apc-modal-card .apc-input::placeholder{ color: rgba(0,0,0,.55); }
.apc-modal-card .apc-btn{ color: rgba(0,0,0,.92); }
.apc-modal-card .apc-alert{
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.86);
}

/* Finance cards */
.apc-inv-list{ display:flex; flex-direction:column; gap:12px; }
.apc-inv-card{
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  color: rgba(20,10,10,0.92);
}

.apc-inv-card .apc-muted{
  color: rgba(20,10,10,0.70);
}

.apc-inv-card a{
  color: rgba(107,31,42,0.95);
  font-weight: 900;
}

/* Stronger primary action in finance cards (better contrast) */
.apc-inv-card .apc-btn-primary{
  background: rgba(107,31,42,0.95);
  border: 1px solid rgba(107,31,42,0.95);
  color: #fff;
}
.apc-inv-card .apc-btn-primary:active{ transform: translateY(1px); }

/* Pay modal helpers */
.apc-pay-summary{
  border:1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.apc-pay-cardinfo{
  border:1px dashed rgba(0,0,0,.18);
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.apc-pre{
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
}


.apc-alert{
  border:1px solid rgba(211,203,188,0.25);
  background: rgba(0,0,0,0.20);
  padding:10px 12px;
  border-radius: 14px;
  color: var(--aps-text);
  font-size: 13px;
}

.apc-seg{
  display:flex;
  gap:8px;
  padding:6px;
  border-radius: 999px;
  border:1px solid rgba(211,203,188,0.22);
  background: rgba(0,0,0,0.14);
}
.apc-seg-btn{
  appearance:none;
  border:0;
  background: transparent;
  color: var(--aps-text);
  padding:8px 12px;
  border-radius: 999px;
  font-weight:800;
  cursor:pointer;
}
.apc-seg-btn.is-active{
  background: rgba(211,203,188,0.14);
  border:1px solid rgba(211,203,188,0.25);
}


/* Checkout priority buttons */
.apc-btn-xs{padding:6px 10px;font-size:12px;line-height:1;border-radius:12px;}


/* ----------------------------
   Reservation UI
---------------------------- */

.apc-h2{font-size:15px;margin:0}

.apc-date-strip{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:6px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type:x mandatory;
}
.apc-date-box{
  flex:0 0 auto;
  width:92px;
  height:92px;
  border:1px solid rgba(211,203,188,0.30);
  border-radius:18px;
  background:rgba(211,203,188,0.08);
  scroll-snap-align:start;
  padding:10px 8px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.apc-date-box.is-active{
  background:rgba(211,203,188,0.20);
  border-color:rgba(211,203,188,0.52);
  box-shadow:0 10px 26px rgba(0,0,0,0.12);
}
.apc-date-weekday{font-size:12px; opacity:0.88; line-height:1.15}
.apc-date-day{font-size:22px; font-weight:800; line-height:1; margin-top:6px}
.apc-date-month{font-size:12px; opacity:0.82; line-height:1.1; margin-top:8px}
.apc-date-weekday, .apc-date-month{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.apc-alert{
  border:1px solid rgba(255,0,0,0.25);
  background:rgba(255,0,0,0.06);
  border-radius:12px;
  padding:10px 12px;
}

.apc-legend{display:flex; flex-wrap:wrap; gap:8px}
.apc-leg{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
}
.apc-leg::before{
  content:'';
  width:10px;
  height:10px;
  border-radius:3px;
  display:inline-block;
  border:1px solid rgba(0,0,0,0.18);
}
.apc-leg.is-available::before{background:rgba(34,197,94,0.22);}
.apc-leg.is-selected::before{background:rgba(211,203,188,0.55);}
/* unify unavailable states (reserved/disabled/ineligible) to a single color */
.apc-leg.is-reserved::before,
.apc-leg.is-disabled::before,
.apc-leg.is-ineligible::before{background:rgba(148,163,184,0.28);}

.apc-map-wrap{
  width:100%;
  border:1px solid rgba(0,0,0,0.10);
  border-radius:16px;
  padding:10px;
  overflow:hidden;
  background:#fff;
}
.apc-map{
  width:100%;
  position:relative;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.04), rgba(0,0,0,0.01));
  border-radius:14px;
  overflow:hidden;
}
.apc-table-box{
  position:absolute;
  border:2.5px solid rgba(0,0,0,0.65);
  border-radius:clamp(10px, 1.6vw, 14px);
  background:#fff;
  padding:clamp(7px, 1.25vw, 11px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:clamp(4px, 0.9vw, 8px);
  cursor:pointer;
  user-select:none;
  touch-action:manipulation;
  color:#000;
}
.apc-table-box .apc-table-no{font-size:clamp(12px, 1.9vw, 16px); line-height:1.05; font-weight:900; color:#000; white-space:nowrap}
.apc-table-box .apc-table-cap{font-size:clamp(10px, 1.5vw, 13px); line-height:1.05; opacity:1; color:#000; white-space:nowrap}
.apc-table-box .apc-table-zone{font-size:10px; opacity:0.65}

.apc-table-box.is-available{background:rgba(34,197,94,0.16);}
.apc-table-box.is-selected{
  background:rgba(211,203,188,0.62);
  border-color: rgba(59,6,8,0.85);
  box-shadow: 0 0 0 3px rgba(59,6,8,0.14), 0 12px 22px rgba(0,0,0,0.14);
}
/* unify unavailable states (reserved/disabled/ineligible) */
.apc-table-box.is-reserved,
.apc-table-box.is-disabled,
.apc-table-box.is-ineligible{background:rgba(148,163,184,0.22); opacity:0.70; cursor:not-allowed;}

.apc-table-box[aria-disabled="true"]{pointer-events:none}

/* -----------------------------
   Support / Tickets
------------------------------ */
.apc-ticket-list{display:flex;flex-direction:column;gap:10px}
.apc-ticket-item{display:block;text-decoration:none;color:inherit;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.10);border-radius:18px;padding:12px 12px}
.apc-ticket-item:active{transform:scale(0.99)}
.apc-ticket-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.apc-ticket-subject{font-weight:900;letter-spacing:-0.2px;line-height:1.25}
.apc-ticket-id{font-size:12px;opacity:0.75;white-space:nowrap}
.apc-ticket-meta{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font-size:12px;opacity:0.85}

.apc-chat{display:flex;flex-direction:column;gap:10px}
.apc-msg{max-width:92%;border:1px solid rgba(255,255,255,0.10);border-radius:18px;padding:10px 12px;background:rgba(255,255,255,0.06)}
.apc-msg.is-user{align-self:flex-end;border-top-right-radius:8px}
.apc-msg.is-admin{align-self:flex-start;border-top-left-radius:8px;background:rgba(255,255,255,0.09)}
.apc-msg-meta{font-size:11px;opacity:0.75;margin-bottom:6px}
.apc-msg-body{white-space:pre-wrap;line-height:1.6}
.apc-msg-att{margin-top:8px;display:flex;gap:10px;flex-wrap:wrap}
.apc-msg-att a{font-size:12px;text-decoration:none;border:1px solid rgba(255,255,255,0.14);padding:6px 10px;border-radius:12px}



/* Brand logo (hero/menu header) */
.apc-brand-logo{
  display:block;
  width:128px;
  max-width:60vw;
  height:auto;
  margin:0 auto 10px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}


/* -----------------------------
   Pro redesign: cream inputs + black text
   (Requested: all fields background #d3cbbc, typed text black)
------------------------------ */

.apc-input,
select.apc-input,
textarea.apc-input,
.apc-textarea{
  background: var(--apc-cream2) !important;
  color: var(--apc-ink) !important;
  caret-color: var(--apc-ink);
  border: 1px solid rgba(0,0,0,0.18) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.apc-input::placeholder,
.apc-textarea::placeholder{
  color: rgba(0,0,0,0.55) !important;
  opacity: 1;
}

.apc-input:focus,
.apc-textarea:focus,
select.apc-input:focus,
textarea.apc-input:focus{
  outline: none;
  border-color: rgba(0,0,0,0.32) !important;
  box-shadow:
    0 0 0 3px rgba(211,203,188,0.45),
    0 12px 26px rgba(0,0,0,0.18);
}

.apc-input:disabled,
.apc-textarea:disabled,
select.apc-input:disabled,
textarea.apc-input:disabled{
  opacity: 0.70;
  background: rgba(211,203,188,0.75) !important;
  color: rgba(0,0,0,0.55) !important;
  cursor: not-allowed;
}

/* Labels: keep readable on burgundy */
.apc-label{
  color: rgba(211,203,188,0.92);
  font-weight: 800;
}

/* Auth card: slightly more premium */
.apc-auth{
  display:flex;
  justify-content:center;
}
.apc-auth .apc-card{
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(211,203,188,0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Segmented tabs: active becomes cream */
.apc-seg{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(211,203,188,0.22);
}
.apc-seg-btn{
  color: rgba(211,203,188,0.92);
}
.apc-seg-btn.is-active{
  background: rgba(211,203,188,0.95);
  border: 1px solid rgba(0,0,0,0.14);
  color: rgba(0,0,0,0.90);
}

/* Primary buttons: cream + dark text for better contrast */
.apc-btn-primary,
.apc-btn--cream{
  background: rgba(211,203,188,0.96) !important;
  color: rgba(0,0,0,0.90) !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
}
.apc-btn-primary:disabled{
  opacity: 0.70;
}

/* Ghost buttons: keep subtle */
.apc-btn-ghost{
  background: rgba(0,0,0,0.10) !important;
  border: 1px solid rgba(211,203,188,0.22) !important;
  color: rgba(211,203,188,0.92) !important;
}


/* --- Auth password eye --- */
.apc-pass-wrap{position:relative;}
.apc-input-pass{padding-left:44px;}
.apc-pass-eye{position:absolute;left:10px;top:50%;transform:translateY(-50%);border:1px solid rgba(120,0,0,.45);background:var(--apc-cream2);color:var(--apc-ink);border-radius:12px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.apc-pass-eye.is-on{border-color:rgba(120,0,0,.9);}

/* Stock badge */
.apc-stock{
  display:inline-block;
  margin-right:6px;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid #f0d7a1;
  background:#fff7e6;
}
/* =========================
   Order Button (Red, classy)
   Paste at END of app.css
========================= */
:root{
  --apc-order-red: #8f1d2c;        /* زرشکی اصلی */
  --apc-order-red-dark: #5c0f18;   /* حاشیه/هاور تیره‌تر */
  --apc-order-cream: #fff3e6;      /* کرم روشن برای هماهنگی */
  --apc-order-text: #ffffff;       /* متن سفید */
}

/* دکمه اصلی ثبت سفارش (CTA پایین منو) */
#apc-order-cta,
.apc-order-cta,
.apc-btn-order,
button[data-apc="order-submit"]{
  background: linear-gradient(180deg, var(--apc-order-red) 0%, #7a1724 100%) !important;
  border: 2px solid var(--apc-order-red-dark) !important;
  color: var(--apc-order-text) !important;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 18px 44px rgba(92,15,24,.28);
}

/* حالت هاور/فوکوس برای دیده‌شدن بهتر */
#apc-order-cta:hover,
.apc-order-cta:hover,
.apc-btn-order:hover,
button[data-apc="order-submit"]:hover{
  filter: brightness(1.05);
  box-shadow: 0 22px 54px rgba(92,15,24,.34);
}

#apc-order-cta:focus,
#apc-order-cta:focus-visible,
.apc-order-cta:focus-visible,
.apc-btn-order:focus-visible,
button[data-apc="order-submit"]:focus-visible{
  outline: 3px solid rgba(255,243,230,.85);
  outline-offset: 2px;
}

/* اگر دکمه غیرفعال شد (ناموجود/بیرون‌بر بسته) */
#apc-order-cta:disabled,
.apc-order-cta:disabled,
.apc-btn-order:disabled,
button[data-apc="order-submit"]:disabled{
  background: var(--apc-order-cream) !important;
  color: var(--apc-order-red-dark) !important;
  border: 2px solid var(--apc-order-red) !important;
  box-shadow: none;
  opacity: 1;
}
/* =========================
   Bottom Navigation Only
   Paste at END of app.css
========================= */

:root{
  --apc-bnav-bg: rgba(255,248,240,.97);  /* کرم روشن */
  --apc-bnav-br: rgba(92,15,24,.22);     /* زرشکی ملایم */
  --apc-bnav-tx: #3a2a2a;                /* متن */
  --apc-bnav-active: #fff3e6;            /* کرم پررنگ‌تر */
  --apc-bnav-active-tx: #5c0f18;         /* زرشکی تیره */
}

/* فقط نوار پایین */
.apc-bottom-nav,
#apc-bottom-nav,
nav.apc-bottom-nav{
  background: var(--apc-bnav-bg) !important;
  border: 1px solid var(--apc-bnav-br) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 10px 12px;
  margin: 0 12px 12px;
}

/* آیتم‌ها */
.apc-bottom-nav a,
.apc-bottom-nav button{
  color: var(--apc-bnav-tx) !important;
  font-weight: 800;
  opacity: 1 !important;
}

/* حالت فعال */
.apc-bottom-nav a.active,
.apc-bottom-nav a.is-active,
.apc-bottom-nav button.active,
.apc-bottom-nav button.is-active{
  background: var(--apc-bnav-active) !important;
  color: var(--apc-bnav-active-tx) !important;
  border: 1px solid rgba(92,15,24,.35) !important;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(92,15,24,.14);
  padding: 10px 12px;
}

/* آیکن‌ها اگر هست */
.apc-bottom-nav svg{
  opacity: .95;
}

/* =========================
   Bottom Navigation Only (v2)
   Thinner + no glass blur
========================= */
:root{
  --apc-bnav-bg-solid: #fff3e6;              /* solid cream */
  --apc-bnav-br-strong: rgba(92,15,24,.28);  /* burgundy border */
}

/* ONLY bottom nav */
.apc-bottom-nav,
#apc-bottom-nav,
nav.apc-bottom-nav{
  background: var(--apc-bnav-bg-solid) !important;
  border: 1px solid var(--apc-bnav-br-strong) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.12) !important;
  border-radius: 14px !important;
  padding: 6px 8px !important;     /* thinner */
  margin: 0 10px 10px !important;

  /* remove glass */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* items */
.apc-bottom-nav a,
.apc-bottom-nav button{
  color: #2f2323 !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  font-size: 12px !important;
  padding: 8px 10px !important;    /* a bit slimmer */
  border-radius: 12px !important;
}

/* active item */
.apc-bottom-nav a.active,
.apc-bottom-nav a.is-active,
.apc-bottom-nav button.active,
.apc-bottom-nav button.is-active{
  background: #fffaf2 !important;  /* slightly lighter cream */
  color: #5c0f18 !important;
  border: 1px solid rgba(92,15,24,.35) !important;
  box-shadow: 0 8px 16px rgba(92,15,24,.12) !important;
}
/* ----------------------------------------
   Sub Items (Child rows) – Luxury compact style
---------------------------------------- */
.apc-card--subitem{
  position: relative;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--aps-border, rgba(211,203,188,0.18));
  background: var(--aps-card2, rgba(211,203,188,0.14));
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  overflow: hidden;
}

/* Accent rail (RTL-friendly: right side) */
.apc-card--subitem::before{
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--aps-accent, rgba(211,203,188,0.9));
  opacity: 0.35;
}

.apc-subitem-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.apc-subitem-info{
  min-width: 0;
  padding-right: 12px; /* keep distance from accent rail */
}

.apc-subitem-title{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  color: var(--aps-text, #d3cbbc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apc-subitem-desc{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--aps-muted, rgba(211,203,188,0.85));
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apc-subitem-actions{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Price tighter */
.apc-card--subitem .apc-price-row--single{
  gap: 8px;
  align-items: baseline;
}
.apc-card--subitem .apc-price-label{
  font-size: 11px;
  opacity: 0.85;
}
.apc-card--subitem .apc-price-val{
  font-size: 13px;
  font-weight: 800;
}

/* Buttons compact */
.apc-card--subitem .apc-add--thin{
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0;
}

/* Qty compact */
.apc-card--subitem .apc-qty{
  height: 32px;
  border-radius: 999px;
  padding: 0 6px;
}
.apc-card--subitem .apc-qty-btn{
  width: 30px;
  height: 30px;
  border-radius: 999px;
}
.apc-card--subitem .apc-qty-num{
  min-width: 28px;
  font-size: 12px;
}

/* Badge in title */
.apc-subitem-badge{
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--aps-border, rgba(211,203,188,0.18));
  color: var(--aps-text, #d3cbbc);
  opacity: 0.9;
}
/* =========================
   Sub item as TAB (old price2 style)
   Narrow bar attached to bottom of main item card
========================= */

.apc-item-wrap--has2{
  gap: 0 !important;
}

/* main card: remove bottom radius so tab attaches perfectly */
.apc-item-wrap--has2 .apc-item--row{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* TAB itself */
.apc-item-wrap--has2 .apc-item-sub{
  margin-top: -1px;            /* attach borders */
  border-top: 0;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;

  padding: 8px 10px;           /* narrow */
  min-height: 44px;            /* tab height */
  background: rgba(47, 5, 6, 0.72);   /* different color than card */
  border: 1px solid rgba(59,6,8,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;              /* left info, right button */
}

/* left info in tab */
.apc-item-wrap--has2 .apc-item-sub-row{
  direction: rtl;
  text-align: right;
  display:flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.apc-item-wrap--has2 .apc-item-sub-title{
  font-size: 12px;
  font-weight: 900;
  color: rgba(211,203,188,0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apc-item-wrap--has2 .apc-item-sub-price{
  font-size: 12px;
  font-weight: 900;
  color: rgba(211,203,188,0.95);
  opacity: 0.95;
  white-space: nowrap;
}

/* tab button/qty — slightly smaller and fits tab */
.apc-item-wrap--has2 .apc-add--sub{
  width: 110px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(211,203,188,0.95);
  color: #3b0608;
  border: 1px solid rgba(211,203,188,0.22);
}

.apc-item-wrap--has2 .apc-qty--sub{
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(211,203,188,0.14);
  border: 1px solid rgba(211,203,188,0.22);
  color: rgba(211,203,188,0.98);
}

.apc-item-wrap--has2 .apc-qty--sub .apc-qty-btn{
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(59,6,8,0.55);
  border: 1px solid rgba(211,203,188,0.22);
  color: rgba(211,203,188,0.98);
}

/* Ordering disabled status button: "موجود" */
.apc-add.apc-status-ok,
.apc-add.apc-status-ok:disabled,
.apc-add.apc-status-ok[disabled]{
  color: #0A6A4A !important; /* سبز یشمی تیره */
  border-color: rgba(10, 106, 74, 0.45) !important;
  background: rgba(10, 106, 74, 0.10) !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: not-allowed;
}

/* =========================
   Sub Item FINAL (Luxury Tab)
   Paste at END of app.css
========================= */
:root{
  --apc-sub-bg: rgba(211,203,188,0.84);
  --apc-sub-bg2: rgba(59,6,8,0.11);
  --apc-sub-br: rgba(59,6,8,0.20);
  --apc-sub-tx: rgba(211,203,188,0.98);
  --apc-sub-muted: rgba(211,203,188,0.82);
  --apc-sub-accent: rgba(211,203,188,0.65);
}

/* attach mode */
.apc-item-wrap--has2{ gap:0 !important; }
.apc-item-wrap--has2 .apc-item--row{
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* tab */
.apc-item-wrap--has2 .apc-item-sub{
  position: relative;
  margin-top: -1px;
  border-top: 0;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;

  min-height: 46px;
  padding: 8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  direction:ltr; /* info left, actions right */
  background:
    linear-gradient(180deg, var(--apc-sub-bg) 0%, rgba(47,5,6,0.82) 100%);
  border: 1px solid var(--apc-sub-br);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  overflow:hidden;
}

/* subtle shine */
.apc-item-wrap--has2 .apc-item-sub::after{
  content:"";
  position:absolute;
  inset:-40% -20%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0));
  transform: rotate(12deg);
  opacity: .35;
  pointer-events:none;
}

/* accent rail (right side of tab) */
.apc-item-wrap--has2 .apc-item-sub::before{
  content:"";
  position:absolute;
  top: 10px;
  bottom: 10px;
  right: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--apc-sub-accent);
  opacity: .45;
  pointer-events:none;
}

/* info side */
.apc-item-wrap--has2 .apc-item-sub-row{
  direction: rtl;
  text-align: right;
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  padding-right: 12px; /* distance from accent rail */
}

.apc-item-wrap--has2 .apc-item-sub-title{
  font-size: 12.5px;
  font-weight: 900;
  color: var(--apc-sub-tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

.apc-item-wrap--has2 .apc-item-sub-price{
  font-size: 12.5px;
  font-weight: 900;
  color: var(--apc-sub-tx);
  opacity: .95;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(211,203,188,0.18);
  background: rgba(0,0,0,0.14);
}

/* actions */
.apc-item-wrap--has2 .apc-add--sub{
  width: 112px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(211,203,188,0.96);
  color: #3b0608;
  border: 1px solid rgba(211,203,188,0.22);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}
.apc-item-wrap--has2 .apc-add--sub:active{ transform: translateY(1px); }

.apc-item-wrap--has2 .apc-qty--sub{
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(211,203,188,0.18);
  color: var(--apc-sub-tx);
}
.apc-item-wrap--has2 .apc-qty--sub .apc-qty-btn{
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(211,203,188,0.18);
  color: var(--apc-sub-tx);
}

/* disabled consistency */
.apc-item-wrap--has2 .apc-add--sub:disabled,
.apc-item-wrap--has2 .apc-qty--sub .apc-qty-btn:disabled{
  background: rgba(245,232,208,0.92) !important;
  border-color: rgba(190,40,40,0.90) !important;
  color: rgba(130,20,20,0.95) !important;
  box-shadow: none !important;
}
/* =========================
   Sub Item TAB – Color override (keep Patch#1 layout)
   Paste at END of app.css
========================= */

/* اگر پچ سوم (cream dark) رو زدی، اینا همه‌شو بی‌اثر می‌کنه */
.apc-item-wrap--has2 .apc-item-sub{
  /* classy burgundy gradient + subtle depth */
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(211,203,188,0.14), transparent 60%),
    linear-gradient(180deg, rgba(78,12,16,0.92) 0%, rgba(47,5,6,0.92) 100%) !important;

  border-color: rgba(211,203,188,0.22) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.24) !important;
}

/* قیمت-چیپ داخل تب: یکم لوکس‌تر و هماهنگ */
.apc-item-wrap--has2 .apc-item-sub-price{
  background: rgba(0,0,0,0.18) !important;
  border-color: rgba(211,203,188,0.18) !important;
  color: rgba(211,203,188,0.98) !important;
}

/* اگر عنوان/متن‌ها قبلاً تیره شده بودن، برگرده به کرم */
.apc-item-wrap--has2 .apc-item-sub-title{
  color: rgba(211,203,188,0.98) !important;
}

/* دکمه ساب داخل تب: همون کرمِ لوکس، با کمی گرادیانت */
.apc-item-wrap--has2 .apc-add--sub{
  background: linear-gradient(180deg, rgba(211,203,188,0.98) 0%, rgba(245,232,208,0.95) 100%) !important;
  color: #3b0608 !important;
  border-color: rgba(211,203,188,0.24) !important;
}
/* =========================
   Sub Item TAB – Lighter Gradient (override)
   Paste at END of app.css
========================= */

.apc-item-wrap--has2 .apc-item-sub{
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(245,232,208,0.18), transparent 62%),
    linear-gradient(180deg, rgba(110,22,28,0.86) 0%, rgba(72,12,16,0.86) 100%) !important;

  border-color: rgba(211,203,188,0.26) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22) !important;
}

.apc-item-wrap--has2 .apc-item-sub-title{
  color: rgba(245,232,208,0.98) !important;
}

.apc-item-wrap--has2 .apc-item-sub-price{
  background: rgba(0,0,0,0.14) !important;
  border-color: rgba(245,232,208,0.18) !important;
  color: rgba(245,232,208,0.98) !important;
}

/* دکمه هم کرم روشن‌تر */
.apc-item-wrap--has2 .apc-add--sub{
  background: linear-gradient(180deg, rgba(255,250,242,0.98) 0%, rgba(245,232,208,0.96) 100%) !important;
  color: #3b0608 !important;
  border-color: rgba(245,232,208,0.26) !important;
}

.apc-item-wrap--has2 .apc-item-sub::before{ display:none !important; }

/* ─── Long-Press Image Preview ─── */
.apc-img-preview {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.apc-img-preview--active {
  display: flex;
  animation: apc-prev-in 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.apc-img-preview__img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@keyframes apc-prev-in {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}
/* ─── Long-Press Image Preview ─── */

/* جلوگیری از انتخاب متن در کل منو */
#apc-menu-root {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* جلوگیری از انتخاب متن روی تصاویر */
.apc-thumb {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

.apc-img-preview {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* جلوگیری از انتخاب متن روی overlay */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.apc-img-preview--active {
  display: flex;
  animation: apc-prev-in 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.apc-img-preview__img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

@keyframes apc-prev-in {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body.aps-body,
main.aps-app,
.apc-app,
.apc-shell,
.apc-page,
.apc-menu,
.apc-menu-wrap,
.apc-list,
.apc-items,
.apc-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* category strips / tabs */
.apc-cats,
.apc-date-strip,
.apc-tabbar,
.apc-tabs,
.apc-subcats,
.apc-filters {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
}

/* every child inside those horizontal strips */
.apc-cats > *,
.apc-date-strip > *,
.apc-tabbar > *,
.apc-tabs > *,
.apc-subcats > *,
.apc-filters > * {
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* item cards */
.apc-item-row,
.apc-item-wrap,
.apc-item-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
