﻿/* ============================================================
   بيت الفن - Bayt Al Fann
   Premium Design System v3
   ============================================================ */

:root {
  --iw: #f0f1fa;          /* light violet wash */
  --ink: #16131f;         /* deep ink */
  --ink-2: #4a4660;      /* soft ink */
  --gold: #6d3ef2;        /* brand violet */
  --gold-2: #8b5cf6;      /* light violet */
  --gold-3: #5230c4;      /* deep violet */
  --bg: #f5f6fb;          /* cool background */
  --paper: #ffffff;
  --muted: #7c7f94;
  --line: #e7e8f3;
  --clay: #7b4bf7;
  --clay-dark: #5230c4;
  --danger: #d94f45;
  --success: #2f9e63;
  --c-blue: #1f8efa;
  --c-green: #12a86b;
  --c-amber: #f2a51c;
  --c-pink: #e2508e;
  --shadow-xs: 0 1px 3px rgba(22,19,31,.06);
  --shadow-sm: 0 4px 18px rgba(22,19,31,.08);
  --shadow-md: 0 14px 40px rgba(22,19,31,.13);
  --shadow-lg: 0 28px 70px rgba(22,19,31,.22);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --grad-gold: linear-gradient(135deg, #7b4bf7 0%, #e2508e 100%);
  --grad-hero: linear-gradient(155deg, #241c4f 0%, #3b2b83 45%, #6538c9 100%);
  --grad-card: linear-gradient(160deg, #2a2260, #191437);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
  letter-spacing: .1px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-3)); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3); }

/* ---------- Selection ---------- */
::selection { background: var(--gold); color: #fff; }

/* ================= Top Bar ================= */
.topbar {
  background: var(--grad-hero);
  color: #ddd7f7;
  font-size: .83rem;
  padding: .5rem 0;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { opacity: .9; transition: color .2s; }
.topbar a:hover { opacity: 1; color: var(--gold-2); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .4rem; }

/* ================= Header ================= */
header.main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 24px rgba(22,19,31,.05);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.logo { display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.35rem; color: var(--ink-2); }
.logo .mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad-gold);
  display: grid; place-items: center; color: #fff; font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(123,75,247,.3);
  position: relative; overflow: hidden;
}
.logo .mark::after {
  content: ""; position: absolute; top: -40%; left: -40%; width: 60%; height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(25deg); animation: shine 4s ease-in-out infinite;
}
.logo .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
@keyframes shine { 0%, 85% { left: -60%; } 100% { left: 130%; } }
.logo small { display: block; font-size: .58rem; font-weight: 600; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

nav.desktop ul { display: flex; gap: .3rem; list-style: none; }
nav.desktop a {
  font-weight: 600; color: var(--ink-2); padding: .55rem 1.05rem; border-radius: 10px;
  transition: all .2s; position: relative; font-size: .95rem;
}
nav.desktop a:hover { background: var(--bg); color: var(--gold-3); }
nav.desktop a.active { color: var(--gold-3); background: #ece7fd; }

.actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.2rem; color: var(--ink-2); transition: all .2s; background: transparent;
}
.icon-btn:hover { background: var(--bg); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -4px; left: -4px; background: var(--danger); color: #fff;
  font-size: .65rem; min-width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; padding: 0 4px; font-weight: 700;
  box-shadow: 0 3px 8px rgba(217,79,69,.4); animation: pop .3s ease;
}
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
.cart-count.hidden { display: none; }

#menuToggle { display: none; background: var(--bg); border-radius: 12px; }

/* ================= Mobile Nav ================= */
.mobile-nav {
  display: none; flex-direction: column; gap: .3rem; padding: 0 0 1rem 0;
}
.mobile-nav.open { display: flex; animation: fadeInDown .25s ease; }
.mobile-nav a { padding: .75rem 1rem; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.mobile-nav a:hover { background: #ece7fd; color: var(--gold-3); }

/* ================= Hero ================= */
.hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(139,92,246,.22), transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(226,80,142,.16), transparent 45%),
    var(--grad-hero);
  color: #f1eeff;
  padding: 5.5rem 0 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: var(--grad-gold);
}
.hero .orb {
  position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.3), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.hero .orb.o1 { width: 260px; height: 260px; top: -60px; right: 8%; animation: float 9s ease-in-out infinite; }
.hero .orb.o2 { width: 200px; height: 200px; bottom: -40px; left: 6%; background: radial-gradient(circle, rgba(226,80,142,.28), transparent 70%); animation: float 12s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.hero .container { position: relative; z-index: 2; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: .4rem 1.1rem; border-radius: 50px; font-size: .82rem; font-weight: 700;
  color: var(--gold-2); margin-bottom: 1.4rem; letter-spacing: .5px;
}
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); margin-bottom: .7rem; font-weight: 800; letter-spacing: -1px; line-height: 1.25; }
.hero h1 .hl { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(1rem, 2.4vw, 1.22rem); opacity: .92; max-width: 620px; margin: 0 auto 2rem; color: #d5cff3; }
.hero .cta-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 2.1rem; border-radius: 50px; font-weight: 700; font-size: .98rem;
  transition: all .25s cubic-bezier(.2,.8,.3,1); background: var(--paper); color: var(--ink);
  position: relative; overflow: hidden; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }
.btn.primary {
  background: var(--grad-gold); color: #fff;
  box-shadow: 0 10px 26px rgba(123,75,247,.38);
}
.btn.primary::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn.primary:hover::before { left: 130%; }
.btn.outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn.outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn.dark { background: var(--grad-card); color: #fff; box-shadow: 0 8px 22px rgba(22,19,31,.28); }
.btn.dark:hover { box-shadow: var(--shadow-md); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ================= Sections ================= */
section { padding: 4.2rem 0; position: relative; }
.section-title { text-align: center; margin-bottom: 2.8rem; }
.section-title .kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-3); margin-bottom: .4rem;
}
.section-title h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--ink); margin-bottom: .4rem; font-weight: 800; }
.section-title p { color: var(--muted); max-width: 560px; margin-inline: auto; }
.section-title .orn {
  display: inline-grid; place-items: center; color: var(--gold);
  margin-top: .7rem; font-size: 1.35rem; animation: floaty 3.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(8deg); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.25,1); }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .orb { animation: none; }
}

/* ================= Features / Trust bar ================= */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.feature {
  background: var(--paper); border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center;
  box-shadow: var(--shadow-xs); transition: all .3s; border: 1px solid var(--line); position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: right; transition: transform .4s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .ico {
  width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 18px;
  background: linear-gradient(145deg, #eee8fd, #ddd1fb); display: grid; place-items: center;
  font-size: 1.8rem; transition: transform .3s;
}
.feature:hover .ico { transform: scale(1.12) rotate(-4deg); }
.feature:nth-child(1) .ico { background: linear-gradient(145deg, #eee8fd, #ddd1fb); }
.feature:nth-child(2) .ico { background: linear-gradient(145deg, #e2effe, #cbe0fc); }
.feature:nth-child(3) .ico { background: linear-gradient(145deg, #dbf5ea, #c2ecd8); }
.feature:nth-child(4) .ico { background: linear-gradient(145deg, #fdf0da, #f9e0b7); }
.feature h3 { font-size: 1.02rem; margin-bottom: .25rem; color: var(--ink-2); }
.feature p { font-size: .88rem; color: var(--muted); }

/* ================= Categories ================= */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.4rem; }
.cat-block {
  background: var(--paper); border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center;
  box-shadow: var(--shadow-xs); transition: all .32s cubic-bezier(.2,.8,.3,1);
  border: 1px solid var(--line); position: relative; overflow: hidden; display: block;
}
.cat-block::before {
  content: ""; position: absolute; bottom: -55px; right: calc(50% - 70px);
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,75,247,.16), transparent 70%);
  transition: transform .4s ease;
}
.cat-block:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold-2); }
.cat-block:hover::before { transform: scale(1.8); }
.cat-block .ico {
  width: 70px; height: 70px; margin: 0 auto .7rem; border-radius: 50%;
  background: var(--grad-gold); display: grid; place-items: center; font-size: 1.9rem;
  box-shadow: 0 10px 22px rgba(82,48,196,.32); transition: transform .3s; position: relative; z-index: 1;
}
.cat-block:nth-child(6n+1) .ico { background: linear-gradient(135deg, #8b5cf6, #6d3ef2); }
.cat-block:nth-child(6n+2) .ico { background: linear-gradient(135deg, #55b0fb, #1f8efa); }
.cat-block:nth-child(6n+3) .ico { background: linear-gradient(135deg, #3bd393, #12a86b); }
.cat-block:nth-child(6n+4) .ico { background: linear-gradient(135deg, #fbbe3e, #f2a51c); }
.cat-block:nth-child(6n+5) .ico { background: linear-gradient(135deg, #f778bd, #e2508e); }
.cat-block:nth-child(6n+6) .ico { background: linear-gradient(135deg, #2fd6c6, #16a8a0); }
.cat-block:hover .ico { transform: scale(1.1) rotate(-6deg); }
.cat-block .ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.cat-block h3 { font-size: 1.02rem; color: var(--ink-2); position: relative; z-index: 1; }
.cat-block small { color: var(--muted); font-size: .82rem; position: relative; z-index: 1; }

/* ================= Filters ================= */
.filters { display: flex; justify-content: center; gap: .55rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.filters button img.f-ico { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; vertical-align: middle; margin-inline-end: .3rem; }
.filters button {
  padding: .6rem 1.5rem; border-radius: 50px; background: var(--paper); border: 1.5px solid var(--line);
  font-weight: 700; color: var(--ink-2); transition: all .25s; font-size: .93rem;
}
.filters button:hover { border-color: var(--gold); color: var(--gold-3); transform: translateY(-2px); }
.filters button.active {
  background: var(--grad-gold); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(123,75,247,.32);
}

/* ================= Product Grid ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.7rem; }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s;
  border: 1px solid var(--line); position: relative;
}
.card:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .img-wrap { aspect-ratio: 1/1; overflow: hidden; background: #eef0f7; position: relative; }
.stretched { position: absolute; inset: 0; z-index: 2; }
.card .img-wrap img, .card .img-wrap .ph { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.card:hover .img-wrap img, .card:hover .img-wrap .ph { transform: scale(1.09); }
.card .badge {
  position: absolute; top: 12px; right: 12px; background: var(--danger); color: #fff;
  font-size: .7rem; padding: .3rem .7rem; border-radius: 50px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(217,79,69,.35);
  animation: pop .35s ease;
}
.card .badge.sale { background: var(--success); box-shadow: 0 6px 14px rgba(47,158,99,.35); }
.card .badge.sold { background: var(--ink-2); box-shadow: 0 6px 14px rgba(60,56,80,.35); }
.card .body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card .cat { font-size: .72rem; color: var(--gold-3); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.card h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
.card .price-row { display: flex; align-items: baseline; gap: .55rem; margin-top: auto; padding-top: .4rem; }
.card .price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.card .price .cur { font-size: .8rem; }
.card .old-price { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.card .btns { display: flex; gap: .6rem; margin-top: .8rem; }

.btn-mini {
  padding: .62rem .95rem; border-radius: 12px; font-weight: 700; font-size: .93rem; flex: 1;
  background: var(--grad-gold); color: #fff; transition: all .25s; position: relative; overflow: hidden;
}
.btn-mini:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(123,75,247,.32); }
.btn-mini.gray { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; }
.btn-mini.gray:hover { background: var(--iw); color: var(--gold-3); box-shadow: none; }
.btn-mini:disabled { background: var(--muted); opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-mini.secondary { background: var(--ink-2); }

/* Shop tools (بحث + فرز) */
.shop-tools { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: .6rem 0 1.2rem; }
.search-box {
  position: relative; flex: 1; min-width: 200px;
  display: flex; align-items: center;
}
.search-box .s-ico { position: absolute; right: .9rem; opacity: .6; }
.search-box input {
  width: 100%; padding: .75rem 2.6rem .75rem .9rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: inherit; font-size: .95rem; box-shadow: var(--shadow-xs);
}
.search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,189,84,.18); }
.sort-select {
  padding: .75rem 1rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
}
.shop-count { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }

/* حالة المخزون في صفحة المنتج */
.stock-note { display: inline-flex; align-items: center; gap: .4rem; font-size: .87rem; font-weight: 700; padding: .35rem .8rem; border-radius: 50px; margin-bottom: .4rem; }
.stock-note.ok { background: #e9f7ef; color: #1e7a44; border: 1px solid #b9e0c8; }
.stock-note.low { background: #fdf6e3; color: #8a6d1a; border: 1px solid #e5cd7f; }
.stock-note.out { background: #fdecec; color: #c0392b; border: 1px solid #e0b4b4; }

/* ================= Product Detail ================= */
.detail {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start;
  background: var(--paper); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-md);
  padding: 2.6rem;
}
.detail .img-wrap {
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: #eef0f7;
  box-shadow: inset 0 0 0 1px var(--line); position: relative;
}
.detail .img-wrap img, .detail .img-wrap .ph { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .7rem; }
.gallery .thumbs .th {
  width: 66px; height: 66px; border-radius: 10px; overflow: hidden; padding: 2px;
  border: 2px solid var(--line); background: #eef0f7; cursor: pointer; transition: all .2s;
}
.gallery .thumbs .th img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs .th.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(123,75,247,.22); }
.gallery .thumbs .th:hover { border-color: var(--gold-2); }
.detail .meta h1 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin: .35rem 0 .7rem; font-weight: 800; line-height: 1.3; }
.detail .meta .hl-line { width: 52px; height: 4px; border-radius: 4px; background: var(--grad-gold); margin-bottom: 1rem; }
.detail .cat { display: inline-block; color: var(--gold-3); font-weight: 800; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; background: #ece7fd; padding: .3rem .9rem; border-radius: 50px; }
.detail .price-big { font-size: 2.4rem; font-weight: 800; color: var(--gold-3); margin: 1.1rem 0 .4rem; }
.detail .desc { color: var(--muted); margin: 1rem 0; white-space: pre-line; line-height: 1.9; font-size: .97rem; }
.detail .qty { display: flex; align-items: center; gap: .5rem; margin: 1.3rem 0; }
.detail .qty .qty-lbl { font-weight: 700; color: var(--ink-2); font-size: .9rem; margin-inline-end: .3rem; }
.qty button {
  width: 42px; height: 42px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line);
  font-size: 1.25rem; font-weight: 700; transition: all .2s; color: var(--ink-2);
}
.qty button:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.qty span { width: 48px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.detail .actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.share-row { display: flex; gap: .5rem; margin-top: 1.4rem; align-items: center; }
.share-row .lbl { font-size: .85rem; color: var(--muted); }
.share-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); transition: all .2s; font-size: 1.05rem;
}
.share-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); }

/* ================= Cart ================= */
.cart-empty { text-align: center; padding: 3.5rem 1rem; }
.cart-empty .big {
  width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 30px;
  background: var(--grad-gold); display: grid; place-items: center; font-size: 2.8rem;
  box-shadow: 0 16px 34px rgba(82,48,196,.32);
}
.cart-empty h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center;
  background: var(--paper); border-radius: var(--radius); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-xs); border: 1px solid var(--line); transition: box-shadow .25s;
}
.cart-row:hover { box-shadow: var(--shadow-sm); }
.cart-row .thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #eef0f7; }
.cart-row .thumb img, .cart-row .thumb .ph { width: 100%; height: 100%; object-fit: contain; }
.cart-row .info h3 { font-size: 1rem; }
.cart-row .info .cat { font-size: .72rem; color: var(--gold-3); font-weight: 800; letter-spacing: 1px; }
.cart-row .info .price { color: var(--ink); font-weight: 800; margin-top: .2rem; font-size: 1.05rem; }
.cart-row .controls { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.cart-row .qty { margin: 0; }
.cart-row .remove { font-size: .84rem; font-weight: 700; color: var(--danger); opacity: .8; transition: all .2s; }
.cart-row .remove:hover { opacity: 1; text-decoration: underline; }

.cart-summary {
  background: linear-gradient(165deg, var(--paper), #f1edfe);
  border-radius: var(--radius); padding: 1.7rem; margin-top: 2rem;
  box-shadow: var(--shadow-md); max-width: 440px; margin-inline: auto; border: 1px solid var(--line);
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: .7rem; font-size: .96rem; color: var(--ink-2); }
.cart-summary .total {
  font-size: 1.4rem; font-weight: 800; color: var(--gold-3);
  border-top: 2px dashed var(--line); padding-top: .9rem; margin-top: .3rem;
  display: flex; justify-content: space-between; align-items: center;
}
.cart-summary .note { font-size: .8rem; color: var(--muted); margin-top: .7rem; }

/* ================= Forms ================= */
.form-wrap { max-width: 660px; margin-inline: auto; background: var(--paper); border-radius: var(--radius); padding: 2.1rem; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .45rem; font-size: .92rem; color: var(--ink-2); }
.form-group label .req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .85rem 1.05rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: var(--bg); transition: all .22s; color: var(--ink);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #afb0c6; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(109,62,242,.14);
}
.form-group small { color: var(--muted); font-size: .78rem; display: block; margin-top: .35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio-card { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 1.05rem 1.2rem; cursor: pointer; transition: all .22s; }
.radio-card:hover { border-color: var(--gold-2); }
.radio-card.selected { border-color: var(--success); background: linear-gradient(160deg, #f2fbf5, #e9f7ee); box-shadow: 0 6px 18px rgba(47,158,99,.12); }
.radio-card h4 { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.radio-card p { color: var(--muted); font-size: .86rem; margin-top: .25rem; }

/* Shipping result */
.ship-note {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(150deg, #f1edfe, #e9e2fd); border: 1.5px dashed var(--gold-2);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.1rem;
  font-size: .93rem; color: var(--ink-2); font-weight: 600; transition: opacity .25s;
}
.ship-note .p { color: var(--gold-3); font-weight: 800; font-size: 1.05rem; }

/* ================= Toast ================= */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 1rem 1.9rem; border-radius: 50px;
  z-index: 300; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .35s cubic-bezier(.2,.8,.3,1);
  border: 1px solid rgba(255,255,255,.08);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ================= Breadcrumb ================= */
.breadcrumb { padding: 1.3rem 0 .3rem; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-3); text-decoration: underline; }
.breadcrumb .sep { opacity: .55; }

/* ================= Trust strip ================= */
.trust-strip {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
  padding: 1.4rem 1rem; margin-top: -3.5rem; position: relative; z-index: 5; box-shadow: var(--shadow-md);
}
.trust-item { display: flex; align-items: center; gap: .7rem; justify-content: center; }
.trust-item .t-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #eef0f7, #e1e3f0); font-size: 1.25rem; flex-shrink: 0;
}
.trust-item b { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.3; }
.trust-item span { font-size: .76rem; color: var(--muted); }

/* ================= Floating actions ================= */
.float-actions { position: fixed; bottom: 20px; left: 20px; z-index: 200; display: flex; flex-direction: column; gap: .7rem; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem;
  box-shadow: var(--shadow-md); transition: all .25s; position: relative;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab.wa { background: #25d366; color: #fff; }
.fab.cart-float { background: var(--grad-gold); color: #fff; }
.fab .fc {
  position: absolute; top: -3px; right: -3px; background: var(--danger); color: #fff;
  font-size: .62rem; min-width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; padding: 0 4px; font-weight: 700;
}
.fab .fc.hidden { display: none; }
.toTop {
  width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s;
}
.toTop.show { opacity: 1; visibility: visible; transform: none; }
.toTop:hover { background: var(--gold-3); }

/* ================= Footer ================= */
footer { background: var(--grad-card); color: #d6d1f0; padding: 4rem 0 0; margin-top: 4rem; position: relative; }
footer::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--grad-gold); }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.4rem; padding-bottom: 2.4rem; }
footer h4 { color: #fff; margin-bottom: 1.1rem; font-size: 1.05rem; font-weight: 800; }
footer h4::after { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-gold); margin-top: .6rem; }
footer a { display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; color: #d6d1f0; font-size: .92rem; transition: all .2s; }
footer a:hover { color: var(--gold-2); transform: translateX(-4px); }
footer p { font-size: .92rem; color: #aba5d6; line-height: 1.9; }
footer ul { list-style: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; text-align: center; font-size: .85rem; color: #8f89b8; margin-top: .5rem; }
.footer-bottom a { display: inline; margin: 0; }

/* ================= Skeleton ================= */
.skeleton {
  background: linear-gradient(90deg, #e7e7f3 25%, #f2f2fa 37%, #e7e7f3 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ================= Animations ================= */
.fade-in { animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.5rem; }
}
@media (max-width: 800px) {
  nav.desktop { display: none; }
  #menuToggle { display: grid; place-items: center; width: 42px; height: 42px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; }
  section { padding: 3.2rem 0; }
  .hero { padding: 4rem 0 6rem; }
}
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 68px 1fr; }
  .cart-row .thumb { width: 68px; height: 68px; }
  .cart-row .controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .9rem; }
  .card .btns { flex-direction: column; }
  .card h3 { font-size: .9rem; }
  .card .price { font-size: 1.1rem; }
  .topbar .container { flex-direction: column; gap: .2rem; text-align: center; }
  .form-wrap { padding: 1.3rem; }
  .feature { padding: 1.4rem 1rem; }
  .float-actions { bottom: 14px; left: 14px; }
  .fab { width: 48px; height: 48px; font-size: 1.2rem; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .btn-mini { font-size: .82rem; padding: .55rem .5rem; }
  .logo { font-size: 1.12rem; }
  .logo .mark { width: 38px; height: 38px; }
  .card .body { padding: .8rem .7rem .9rem; }
}

.hidden { display: none !important; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-shell { min-height: 60vh; padding: 2.6rem 0; }
.admin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--grad-hero); color: #fff; padding: 1.2rem 1.5rem; border-radius: var(--radius);
  margin-bottom: 1.6rem; flex-wrap: wrap; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.admin-bar::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 3px; background: var(--grad-gold); }
.admin-bar h2 { font-size: 1.3rem; }
.admin-bar .sub { font-size: .85rem; opacity: .85; color: #d2ccf2; }
.admin-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.btn-sm {
  background: var(--grad-gold); color: #fff; border-radius: 10px; font-weight: 700;
  padding: .55rem 1.05rem; font-size: .85rem; transition: all .2s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
}
.btn-sm:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(123,75,247,.32); }
.btn-sm.ghost { background: rgba(255,255,255,.14); color: #fff; }
.btn-sm.ghost:hover { background: rgba(255,255,255,.22); box-shadow: none; }
.btn-sm.gray { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.btn-sm.gray:hover { background: var(--iw); box-shadow: none; color: var(--gold-3); }
.btn-sm.danger { background: var(--danger); color: #fff; }
.btn-sm.danger:hover { box-shadow: 0 8px 18px rgba(217,79,69,.32); }

.admin-login { max-width: 440px; margin: 3rem auto; }
.admin-msg { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 600; font-size: .92rem; }
.admin-msg.error { background: #fbeceb; color: var(--danger); border: 1px solid #f2c4bf; }
.admin-msg.success { background: #e8f5ec; color: var(--success); border: 1px solid #b9e0c8; }
.admin-msg.info { background: var(--iw); color: var(--ink-2); border: 1px solid var(--line); }

.admin-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.6rem; align-items: start; }
.admin-layout.stacked { grid-template-columns: 1fr; }

.admin-side {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.4rem; position: sticky; top: 90px; border: 1px solid var(--line);
}
.admin-side h3 { font-size: .92rem; color: var(--ink-2); margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .4rem; }
.admin-tabs { display: flex; flex-direction: column; gap: .3rem; list-style: none; }
.admin-tabs a {
  padding: .65rem .95rem; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: .92rem;
  transition: all .2s; display: flex; align-items: center; gap: .5rem;
}
.admin-tabs a:hover { background: var(--bg); color: var(--gold-3); }
.admin-tabs a.active {
  background: var(--grad-gold); color: #fff; box-shadow: 0 6px 16px rgba(123,75,247,.3);
}

.admin-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.7rem; border: 1px solid var(--line); }
.admin-card .head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.admin-card .head h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }

.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid var(--line); }
table.admin { width: 100%; border-collapse: collapse; min-width: 640px; }
table.admin th, table.admin td { padding: .8rem .9rem; text-align: right; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
table.admin th { background: var(--bg); color: var(--ink-2); font-weight: 800; white-space: nowrap; letter-spacing: .3px; }
table.admin tr:last-child td { border-bottom: none; }
table.admin td img, .thumb {
  width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #eef0f7;
  display: grid; place-items: center; font-size: 1.5rem; overflow: hidden;
}
table.admin tr:hover td { background: #f3f0fc; }
table.admin .actions-cell { display: flex; gap: .4rem; flex-wrap: wrap; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 50px; padding: .4rem 1rem; font-size: .85rem; font-weight: 700; color: var(--ink-2);
  transition: all .2s;
}
.chip:hover { border-color: var(--gold); }
.chip .count { background: var(--grad-gold); color: #fff; border-radius: 50px; font-size: .72rem; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat {
  background: linear-gradient(160deg, var(--paper), #f1edfe); border-radius: var(--radius-sm);
  padding: 1.3rem 1.2rem; box-shadow: var(--shadow-xs); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.stat .lbl { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat::after { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: var(--grad-gold); }

.field-inline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.field-inline input, .field-inline select { flex: 1; min-width: 120px; }

@media (max-width: 800px) {
  .admin-layout { grid-template-columns: 1fr; gap: 1rem; }
  .admin-side { position: static; padding: 1rem; }
  .admin-side h3 { font-size: .85rem; margin-bottom: .6rem; }
  .admin-tabs { flex-direction: row; flex-wrap: wrap; }
  .admin-tabs a { flex: 1 1 auto; text-align: center; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; gap: .9rem; }
  .admin-bar { padding: 1rem 1.1rem; }
  .admin-bar h2 { font-size: 1.1rem; }
  .admin-card { padding: 1.15rem; }
  .modal { padding: 1.2rem; }
  .admin-shell { padding: 1.4rem 0; }
  table.admin { min-width: 560px; }
}
@media (max-width: 700px) {
  .adm-stats, .adm-stats-chips { display: none; }
}

@media (max-width: 420px) {
  .admin-actions { width: 100%; justify-content: center; }
  .admin-tabs a { font-size: .82rem; padding: .5rem .4rem; }
  .field-inline input, .field-inline select { min-width: 100%; }
  .stat .num { font-size: 1.5rem; }
  .chip { font-size: .78rem; padding: .35rem .7rem; }
}

/* اللوحة على الجوال: الجداول تتحول لبطاقات مكومة بلا تمرير أفقي */
@media (max-width: 680px) {
  .admin-table-wrap { border: none; overflow: visible; }
  table.admin thead { display: none; }
  table.admin, table.admin tbody, table.admin tr, table.admin td { display: block; width: 100%; }
  table.admin tr {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .9rem 1.05rem; margin-bottom: .8rem; box-shadow: var(--shadow-xs);
  }
  table.admin td {
    border: none; padding: .45rem 0; display: flex; align-items: center;
    justify-content: space-between; gap: .8rem; font-size: .9rem;
  }
  table.admin td::before { content: attr(data-label); font-size: .76rem; color: var(--muted); font-weight: 700; flex: 0 0 auto; white-space: nowrap; }
  table.admin tr:hover td { background: transparent; }
  table.admin td img, table.admin .thumb { width: 56px; height: 56px; }
  table.admin .actions-cell { justify-content: flex-start; width: 100%; }
}

.admin select, .admin input[type=file] { font-family: inherit; }

/* Order details */
.od-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.od-block { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.od-block h4 { margin-bottom: .5rem; font-size: .92rem; color: var(--ink-2); display: flex; align-items: center; gap: .4rem; }
.od-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .9rem; }
.od-row.total { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .6rem; font-weight: 800; color: var(--ink); }
.od-meta { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* Order status */
.dot {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block; cursor: pointer;
  border: 2px solid var(--paper); box-shadow: 0 0 0 2px rgba(0,0,0,.06); vertical-align: middle;
}
.dot-new { background: #e74c3c; animation: dotPulse 1.6s infinite; }
.dot-done { background: #27ae60; }
.dot-cancel { background: #8e9a9f; }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(231,76,60,.45); }
  70% { box-shadow: 0 0 0 9px rgba(231,76,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}
.status {
  display: inline-block; padding: .2rem .65rem; border-radius: 50px; font-size: .8rem; font-weight: 700;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); vertical-align: middle;
}
.status.status-done { background: #e9f7ef; border-color: #2e9e5b; color: #1e7a44; }
.status.status-cancel { background: #fdecec; border-color: #e0b4b4; color: #c0392b; }
.status.status-new { background: #fdf6e3; border-color: #e5cd7f; color: #8a6d1a; }

/* Image previews in product form */
.img-previews { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .6rem; }
.img-previews .muted-sm { color: var(--muted); font-size: .85rem; }
.pre-thumb { position: relative; width: 76px; height: 76px; }
.pre-thumb img { width: 100%; height: 100%; object-fit: contain; background: #eef0f7; border: 1px solid var(--line); border-radius: 10px; }
.pre-thumb .pre-del {
  position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: #c0392b; color: #fff; border: 2px solid var(--paper); font-size: .7rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.pre-thumb .pre-del:hover { background: #a93226; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22,19,31,.55); backdrop-filter: blur(4px);
  z-index: 400; display: grid; place-items: center; padding: 1rem; animation: fadeIn .25s ease;
}
.modal {
  background: var(--paper); border-radius: var(--radius); max-width: 560px; width: 100%;
  padding: 1.8rem; box-shadow: var(--shadow-lg); animation: popIn .3s cubic-bezier(.2,.8,.3,1); max-height: 88vh; overflow: auto;
}
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.modal .modal-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.4rem; }

/* Lightbox (عرض وتكبير صورة المنتج) */
.lb {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(10, 8, 20, .94); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.lb.open { display: flex; }
.lb-img {
  max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg);
  transition: transform .25s ease; transform-origin: center; cursor: zoom-in; user-select: none;
  -webkit-user-drag: none;
}
.lb-x, .lb-arrow {
  position: absolute; z-index: 9991; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem; line-height: 1;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  transition: background .2s ease, transform .2s ease;
}
.lb-x:hover, .lb-arrow:hover { background: var(--gold); transform: scale(1.08); }
.lb-x { top: 18px; left: 18px; }
.lb-arrow { top: 50%; transform: translateY(-50%); }
.lb-arrow:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18);
  font-size: .85rem; padding: .25rem .9rem; border-radius: 50px; direction: ltr;
}
.lb-note { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem; }
@media (max-width: 640px) {
  .lb-x { top: 12px; left: 12px; width: 40px; height: 40px; }
  .lb-arrow { width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}