/* ==========================================================================
   فروشگاه سایما — تم سفید/آبی سایما
   ========================================================================== */
@font-face { font-family: IRANSans; src: url(../fonts/IRANSansWeb_Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: IRANSans; src: url(../fonts/IRANSansWeb.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: IRANSans; src: url(../fonts/IRANSansWeb_Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: IRANSans; src: url(../fonts/IRANSansWeb_Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary: #1c23ba;
  --primary-2: #3949e0;
  --primary-rgb: 28, 35, 186;
  --primary-50: #f1f3ff;
  --primary-100: #e3e7ff;
  --primary-200: #c7ceff;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1b2033;
  --text-2: #465068;
  --muted: #8a93a8;
  --border: #e7eaf3;
  --success: #0fa37f;
  --success-50: #e6f7f2;
  --warning: #e08a00;
  --warning-50: #fff6e5;
  --danger: #e5484d;
  --danger-50: #fdeced;
  --info: #0b83d9;
  --info-50: #e7f3fd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(var(--primary-rgb), .07);
  --shadow-lg: 0 14px 40px rgba(var(--primary-rgb), .14);
  --dock-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: IRANSans, Tahoma, sans-serif; font-size: 14px; line-height: 1.8;
  color: var(--text); background: var(--bg); direction: rtl;
  -webkit-font-smoothing: antialiased;
}
body.has-dock { padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.5; font-weight: 700; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.bold { font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: embed; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.hidden { display: none !important; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 26px; height: 26px; } .ic.xl { width: 40px; height: 40px; }
.unit { font-size: .72em; font-weight: 400; color: var(--muted); }

/* ------------------------------ Layout ------------------------------ */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.page { padding: 18px 0 28px; }
.flex { display: flex; align-items: center; }
.flex-wrap { display: flex; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .m-0 { margin: 0; }
.g2, .g3, .g4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.layout-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .sticky { position: sticky; top: 84px; } }

/* ------------------------------ Card ------------------------------ */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(231, 234, 243, .7); }
.card-b { padding: 18px; }
.card-h { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-h h3, .card-h h2 { margin: 0; font-size: 1rem; }
.soft { background: var(--primary-50); border-radius: var(--radius-sm); padding: 12px 14px; }
.note { background: var(--warning-50); color: #7a4c00; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; }
.info-box { background: var(--info-50); color: #064d80; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: .92rem; font-weight: 500; cursor: pointer;
  transition: all .18s ease; white-space: nowrap; text-decoration: none; line-height: 1;
  background: var(--primary-50); color: var(--primary);
}
.btn:hover { background: var(--primary-100); color: var(--primary); }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .25); }
.btn-primary:hover { color: #fff; filter: brightness(1.07); background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.btn-outline { background: #fff; border-color: var(--primary-200); color: var(--primary); }
.btn-light { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-light:hover { background: var(--bg); color: var(--text); }
.btn-success { background: var(--success); color: #fff; } .btn-success:hover { background: #0c8a6b; color: #fff; }
.btn-danger { background: var(--danger-50); color: var(--danger); } .btn-danger:hover { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning-50); color: var(--warning); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: .78rem; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--text-2); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-family: inherit; font-size: inherit; }
.inline { display: inline; }

/* ------------------------------ Forms ------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: .85rem; font-weight: 500; color: var(--text-2); }
.field .hint, .hint { font-size: .78rem; color: var(--muted); }
input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], input[type=search], input[type=time], input[type=url], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px;
  background: #fff; font-family: inherit; font-size: .92rem; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.8; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .08); }
input[type=file] { font-family: inherit; font-size: .85rem; max-width: 100%; }
input.ltr, .ltr input { direction: ltr; text-align: left; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.input-group { display: flex; gap: 8px; }
.input-group > input, .input-group > select { flex: 1; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid.c3 { grid-template-columns: repeat(3, 1fr); } .form-grid .full { grid-column: 1 / -1; } }
fieldset { border: 1px dashed var(--primary-200); border-radius: var(--radius-sm); padding: 12px 16px 4px; margin: 0 0 16px; }
legend { padding: 0 8px; font-weight: 700; color: var(--primary); font-size: .9rem; }

/* ------------------------------ Badges / Chips ------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; line-height: 1.9; white-space: nowrap; }
.badge-muted { background: #eef0f5; color: #5f6880; }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-primary { background: var(--primary-100); color: var(--primary); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-2); font-size: .85rem; white-space: nowrap; }
.chip:hover { border-color: var(--primary-200); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ------------------------------ Alerts / Toast ------------------------------ */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: .9rem; display: flex; gap: 8px; align-items: flex-start; }
.alert-success { background: var(--success-50); color: #06694f; }
.alert-error { background: var(--danger-50); color: #a1262a; }
.alert-info { background: var(--info-50); color: #064d80; }
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: #1b2033; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .9rem; animation: toastIn .25s ease; display: flex; gap: 8px; align-items: center; }
.toast.success { background: #0c8a6b; } .toast.error { background: #c93a3f; } .toast.info { background: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ------------------------------ Topbar ------------------------------ */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span small { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); line-height: 1.2; }
.brand span { line-height: 1.35; }
.search-box { flex: 1; max-width: 560px; position: relative; margin: 0 auto; }
.search-box input { height: 44px; padding-right: 42px; background: var(--bg); border-color: transparent; border-radius: 14px; }
.search-box input:focus { background: #fff; }
.search-box .ic { position: absolute; right: 13px; top: 12px; color: var(--muted); }
.suggest { position: absolute; top: 50px; right: 0; left: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: var(--text); border-bottom: 1px solid var(--border); }
.suggest a:hover { background: var(--primary-50); }
.suggest img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.top-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.count-badge { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; font-weight: 700; }
.mobile-search { display: none; padding: 0 16px 10px; }
@media (max-width: 760px) {
  .topbar .search-box { display: none; }
  .mobile-search.open { display: block; }
  .mobile-search .search-box { display: block; max-width: none; }
  .brand span small { display: none; }
}
@media (min-width: 761px) { .only-mobile { display: none !important; } }
@media (max-width: 760px) { .only-desktop { display: none !important; } }
.user-menu { position: relative; }
.user-menu .menu { position: absolute; top: 48px; left: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; display: none; z-index: 70; }
.user-menu.open .menu { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text-2); border-radius: 10px; width: 100%; background: none; border: 0; font-family: inherit; font-size: .9rem; cursor: pointer; text-align: right; }
.menu a:hover, .menu button:hover { background: var(--primary-50); color: var(--primary); }
.menu .menu-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* ------------------------------ Bottom dock ------------------------------ */
.dock {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 60; height: calc(var(--dock-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: stretch; box-shadow: 0 -6px 24px rgba(var(--primary-rgb), .07);
}
.dock a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 500; position: relative; transition: color .2s; }
.dock a .dock-ic { width: 46px; height: 32px; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.dock a.active { color: var(--primary); }
.dock a.active .dock-ic { background: var(--primary-100); }
.dock a:hover { color: var(--primary); }
@media (min-width: 900px) {
  .dock { right: 50%; left: auto; transform: translateX(50%); bottom: 16px; width: 620px; border-radius: 22px; border: 1px solid var(--border); height: var(--dock-h); padding-bottom: 0; }
}

/* ------------------------------ Hero / banners ------------------------------ */
.hero { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, #6f7cff 100%); color: #fff; padding: 26px 24px; min-height: 160px; }
.hero h1 { font-size: 1.5rem; margin-bottom: 6px; }
.hero p { opacity: .9; margin: 0; }
.hero::after { content: ""; position: absolute; left: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero::before { content: ""; position: absolute; left: 90px; top: -70px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.banner-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 22px; scrollbar-width: none; }
.banner-slider::-webkit-scrollbar { display: none; }
.banner-slider a { scroll-snap-align: start; position: relative; display: block; aspect-ratio: 16 / 6; min-height: 150px; background: var(--primary-100); }
.banner-slider img { width: 100%; height: 100%; object-fit: cover; }
.banner-slider .cap { position: absolute; inset: auto 0 0 0; padding: 18px 20px; color: #fff; background: linear-gradient(0deg, rgba(10, 14, 60, .72), transparent); }
.banner-slider .cap b { font-size: 1.15rem; display: block; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(5, minmax(64px, 1fr)); overflow-x: auto; } }
.tile { background: #fff; border-radius: var(--radius); padding: 14px 8px; text-align: center; box-shadow: var(--shadow); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); color: var(--primary); }
.tile .tile-ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); }
.tone-live .tile-ic { background: #ffecef; color: #e0435a; } .tone-course .tile-ic { background: #eaf0ff; color: #3151e6; }
.tone-shop .tile-ic { background: #e8f8f1; color: #0f9f74; } .tone-buffet .tile-ic { background: #fff4e3; color: #de8a00; } .tone-food .tile-ic { background: #f3ebff; color: #7c4ddb; }

/* ------------------------------ Section header / carousels ------------------------------ */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; gap: 12px; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.sec-head h2 .ic { color: var(--primary); }
.sec-head a { font-size: .85rem; display: inline-flex; align-items: center; gap: 2px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.special-band { background: linear-gradient(135deg, #ff5a6e, #ff8a5c); border-radius: 22px; padding: 16px; color: #fff; }
.special-band .sec-head { margin: 0 0 12px; } .special-band .sec-head h2, .special-band .sec-head a { color: #fff; }
.special-band .sec-head h2 .ic { color: #fff; }

/* ------------------------------ Product card ------------------------------ */
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--text); transition: transform .2s, box-shadow .2s; position: relative; border: 1px solid rgba(231, 234, 243, .7); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.pcard-img { position: relative; aspect-ratio: 4 / 3; background: var(--primary-50); overflow: hidden; }
.pcard-img.wide { aspect-ratio: 16 / 10; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-tags { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard-tags .badge { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.off { background: var(--danger); color: #fff; font-weight: 700; }
.pcard-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-title { font-size: .92rem; font-weight: 700; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; margin: 0; }
.pcard-meta { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.price { display: flex; flex-direction: column; align-items: flex-end; margin-right: auto; line-height: 1.4; }
.price-old { font-size: .78rem; color: var(--muted); text-decoration: line-through; }
.price-new { font-size: 1rem; font-weight: 700; color: var(--text); }
.price-free { color: var(--success); font-weight: 700; }
.tier-note { font-size: .7rem; color: var(--success); }
.stars { color: #f5a524; font-size: .8rem; display: inline-flex; align-items: center; gap: 2px; }
.stars .ic { width: 14px; height: 14px; fill: #f5a524; stroke: #f5a524; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------ Product page ------------------------------ */
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-50); }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-main video { object-fit: contain; background: #000; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: .75; }
.thumbs img.active, .thumbs img:hover { border-color: var(--primary); opacity: 1; }
.buybox .big-price { font-size: 1.5rem; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 8px; align-items: flex-start; }
.feature-list li .ic { color: var(--success); margin-top: 3px; }
.prose { line-height: 2; color: var(--text-2); }
.prose img { border-radius: 12px; margin: 10px 0; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; margin-bottom: 16px; }
.tab { padding: 10px 16px; border: 0; background: none; font-family: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.tab-pane { display: none; } .tab-pane.active { display: block; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opts label { cursor: pointer; }
.variant-opts input { display: none; }
.variant-opts span { display: inline-block; padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .86rem; }
.variant-opts input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; height: 42px; }
.qty button { width: 38px; height: 100%; border: 0; background: #fff; cursor: pointer; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.qty input { width: 46px; height: 100%; border: 0; text-align: center; padding: 0; border-radius: 0; box-shadow: none !important; }
.syllabus details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.syllabus summary { padding: 12px 14px; cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary .ic.chev { margin-right: auto; transition: transform .2s; }
.syllabus details[open] summary .ic.chev { transform: rotate(180deg); }
.lesson-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-2); }
.lesson-row .grow { color: var(--text); }
.session-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.session-row:last-child { border-bottom: 0; }
.date-box { width: 56px; min-width: 56px; height: 60px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; font-weight: 700; }
.date-box small { font-size: .68rem; font-weight: 400; }
.seller-box { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--primary-100); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.avatar.sm { width: 36px; height: 36px; border-radius: 10px; font-size: .85rem; }
.review { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review .reply { background: var(--primary-50); border-radius: 10px; padding: 8px 12px; margin-top: 6px; font-size: .86rem; }
.mobile-buybar { position: fixed; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); right: 0; left: 0; background: #fff; border-top: 1px solid var(--border); padding: 10px 16px; display: flex; gap: 12px; align-items: center; z-index: 55; box-shadow: 0 -4px 16px rgba(0, 0, 0, .05); }
@media (min-width: 980px) { .mobile-buybar { display: none; } }

/* ------------------------------ Buffet / Food ------------------------------ */
.menu-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .menu-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .menu-list { grid-template-columns: repeat(3, 1fr); } }
.mitem { display: flex; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); align-items: center; }
.mitem img, .mitem .noimg { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; background: var(--primary-50); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary-200); }
.mitem h4 { margin: 0 0 2px; font-size: .95rem; }
.mitem .desc { font-size: .78rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex-shrink: 0; min-width: 76px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--border); text-align: center; color: var(--text-2); line-height: 1.5; }
.day b { display: block; font-size: 1.1rem; color: var(--text); }
.day.active { background: var(--primary); border-color: var(--primary); color: #fff; } .day.active b { color: #fff; }
.meal-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-weight: 700; color: var(--primary); }
.code-big { font-size: 1.6rem; font-weight: 700; letter-spacing: 4px; color: var(--primary); direction: ltr; font-variant-numeric: tabular-nums; }
.ticket { border: 2px dashed var(--primary-200); border-radius: var(--radius); padding: 14px; background: #fff; position: relative; }

/* ------------------------------ Tables ------------------------------ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; background: #fff; }
.table th { background: #f7f8fc; color: var(--text-2); font-weight: 500; text-align: right; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbff; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table img.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.table tfoot td { font-weight: 700; background: #f7f8fc; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------ Stats / charts ------------------------------ */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats.c3 { grid-template-columns: repeat(3, 1fr); } .stats.c5 { grid-template-columns: repeat(5, 1fr); } }
.stat { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.stat .stat-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.stat .stat-v { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.stat .stat-l { font-size: .78rem; color: var(--muted); }
.stat.green .stat-ic { background: var(--success-50); color: var(--success); } .stat.orange .stat-ic { background: var(--warning-50); color: var(--warning); }
.stat.red .stat-ic { background: var(--danger-50); color: var(--danger); } .stat.blue .stat-ic { background: var(--info-50); color: var(--info); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, var(--primary-2), var(--primary)); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; opacity: .85; transition: opacity .2s; }
.bars .bar:hover { opacity: 1; }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); right: 50%; transform: translateX(50%); background: #1b2033; color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; z-index: 5; }
.bars-labels { display: flex; gap: 4px; font-size: .62rem; color: var(--muted); margin-top: 4px; }
.bars-labels span { flex: 1; text-align: center; overflow: hidden; }
.progress { height: 8px; background: var(--primary-50); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 99px; }
.share-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #eef0f5; }
.share-bar span { display: block; height: 100%; }

/* ------------------------------ Panel layout ------------------------------ */
.panel { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1000px) { .panel { grid-template-columns: 260px minmax(0, 1fr); } }
.side { background: #fff; border-left: 1px solid var(--border); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: none; }
@media (min-width: 1000px) { .side { display: block; } }
.side.open { display: block; position: fixed; inset: 0 0 0 auto; width: 280px; z-index: 90; box-shadow: var(--shadow-lg); }
.side-backdrop { display: none; position: fixed; inset: 0; background: rgba(10, 14, 40, .35); z-index: 85; }
.side-backdrop.open { display: block; }
.side .brand { margin: 4px 8px 16px; }
.side-group { font-size: .72rem; color: var(--muted); margin: 14px 12px 6px; font-weight: 700; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text-2); font-size: .9rem; margin-bottom: 2px; }
.side a:hover { background: var(--bg); color: var(--text); }
.side a.active { background: var(--primary-50); color: var(--primary); font-weight: 700; }
.side a .count-badge { position: static; margin-right: auto; }
.pmain { min-width: 0; }
.pbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pbar .inner { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; }
.pbar h1 { font-size: 1.05rem; margin: 0; }
.pcontent { padding: 20px; max-width: 1400px; }
@media (max-width: 640px) { .pcontent { padding: 14px 12px; } .card-b { padding: 14px; } }
.seller-switch select { height: 36px; font-size: .84rem; border-radius: 10px; min-width: 160px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 140px; }
.filters input, .filters select { height: 40px; }

/* ------------------------------ Auth ------------------------------ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 20% 10%, var(--primary-100), transparent 45%), radial-gradient(circle at 80% 90%, #e2e7ff, transparent 40%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; margin-bottom: 18px; font-size: 1.1rem; }
.otp-input { letter-spacing: 12px; text-align: center; font-size: 1.4rem !important; font-weight: 700; direction: ltr; height: 54px !important; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ------------------------------ Player ------------------------------ */
.player-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .player-wrap { grid-template-columns: minmax(0, 1fr) 340px; } }
.video-box { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; }
.video-box video, .video-box audio { width: 100%; height: 100%; display: block; }
.video-box audio { height: 60px; margin-top: 40%; }
.watermark { position: absolute; pointer-events: none; color: rgba(255, 255, 255, .35); font-size: .82rem; font-weight: 700; text-shadow: 0 0 4px rgba(0, 0, 0, .6); transition: all 1.5s ease; white-space: nowrap; z-index: 3; direction: ltr; }
.pdf-box { background: #525659; border-radius: var(--radius); padding: 12px; max-height: 80vh; overflow: auto; position: relative; user-select: none; }
.pdf-box canvas { display: block; margin: 0 auto 12px; max-width: 100%; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.lesson-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-size: .86rem; }
.lesson-list a:hover { background: var(--bg); }
.lesson-list a.active { background: var(--primary-50); color: var(--primary); font-weight: 700; }
.lesson-list a.locked { opacity: .55; }
.lesson-list .done .ic { color: var(--success); }

/* ------------------------------ Misc ------------------------------ */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ic { width: 56px; height: 56px; color: var(--primary-200); margin: 0 auto 10px; stroke-width: 1.4; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0 6px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); color: var(--text-2); font-size: .85rem; }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--primary); }
.list-rows > * { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-rows > *:last-child { border-bottom: 0; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.summary-row.total { font-weight: 700; font-size: 1.05rem; border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 12px; }
.line-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--primary-50); flex-shrink: 0; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; margin-bottom: 8px; background: #fff; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.radio-card input { margin-top: 5px; accent-color: var(--primary); }
.uploader { border: 2px dashed var(--primary-200); border-radius: 14px; padding: 16px; text-align: center; background: var(--primary-50); }
.uploader .progress { margin-top: 10px; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 0 8px; }
.skeleton { background: linear-gradient(90deg, #eef0f6 25%, #f6f7fb 37%, #eef0f6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.att { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.att.present { background: var(--success-50); color: var(--success); } .att.absent { background: var(--danger-50); color: var(--danger); } .att.none { background: #eef0f5; color: var(--muted); }
/* تقویم شمسی — استایل فرم‌های سراسری نباید کنترل سال/ماه را خراب کند */
jdp-container { z-index: 200001; font-family: IRANSans, Tahoma, sans-serif; }
jdp-overlay { z-index: 200000; }
jdp-container select,
jdp-container input {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  line-height: inherit !important;
}
jdp-container .jdp-day,
jdp-container .jdp-day-name { line-height: 31px !important; }

@media print {
  .topbar, .dock, .side, .pbar, .no-print, .toasts { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .pcontent { padding: 0; }
}
