/* =====================================================
   style.css — متجر Watsons 🎀
   ألوان مأخوذة من اللوگو: وردي ناعم + أخضر فاتح + رمادي
   ===================================================== */
:root {
  --pink: #ffd3d4;
  --pink-soft: #fff1f1;
  --pink-deep: #e79aa0;
  --green: #cee2c9;
  --green-soft: #eef6ec;
  --green-deep: #5f8e6c;
  --green-dark: #4b7657;
  --text: #4a4e47;
  --muted: #8b8f87;
  --line: #efe7e6;
  --bg: #fffdfc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(180, 120, 125, 0.12);
  --shadow-sm: 0 3px 12px rgba(180, 120, 125, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- Announcement ---------- */
.announce {
  background: var(--green);
  color: var(--green-dark);
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  padding: 7px 12px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 252, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand span:not(.bow) { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.3rem; color: #3f5a45; }
.bow { font-size: 1.1rem; animation: sway 3s ease-in-out infinite; display: inline-block; }
@keyframes sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink-soft); color: var(--text);
  transition: background .2s, transform .2s;
}
.cart-btn:hover { background: var(--pink); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -3px; left: -3px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--green-deep); color: #fff;
  font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.4); } 60% { transform: scale(.9); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--green-deep); color: #fff;
  padding: 12px 28px; border: 0; border-radius: 99px;
  font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(95, 142, 108, .25);
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.outline { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green-deep); box-shadow: none; }
.btn.outline:hover { background: var(--green-soft); }
.btn.small { padding: 8px 20px; font-size: .92rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--pink-deep); font-size: .88rem; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Banner slider ---------- */
.slider-wrap { margin-top: 18px; margin-bottom: 30px; }
.slider { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--pink-soft); }
.slides { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 2 / 1; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; display: block; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; transition: transform 6s ease; }
.slide:hover img { transform: scale(1.03); }
.slide-text {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  max-width: min(420px, 55%);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px);
  padding: 22px 26px; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(180, 120, 125, .15);
}
.slide-text h2 { font-size: clamp(1.1rem, 3vw, 2rem); font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
.slide-text p { color: #6f736b; font-size: clamp(.85rem, 1.6vw, 1.05rem); margin-bottom: 12px; }
.slide-btn { display: inline-block; background: var(--green-deep); color: #fff; font-weight: 700; padding: 8px 20px; border-radius: 99px; font-size: .92rem; transition: background .2s; }
.slide:hover .slide-btn { background: var(--green-dark); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: var(--text); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .25s, background .2s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { right: 14px; }
.slider-arrow.next { left: 14px; }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: all .3s; }
.dot.active { width: 24px; background: var(--pink-deep); }

/* ---------- Hero (old, unused) ---------- */
.hero {
  background: linear-gradient(160deg, var(--pink) 0%, var(--pink-soft) 55%, var(--green-soft) 100%);
  padding: 60px 0;
  margin-bottom: 36px;
  overflow: hidden;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-kicker { display: inline-block; background: rgba(255,255,255,.7); padding: 4px 14px; border-radius: 99px; font-size: .88rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.hero p { color: #6f736b; font-size: 1.1rem; margin-bottom: 24px; max-width: 460px; }
.hero-logo img {
  width: clamp(150px, 24vw, 250px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 20px 50px rgba(200, 130, 135, .25);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; border: 1px solid var(--line); background: var(--white);
  padding: 7px 18px; border-radius: 99px; color: var(--text); transition: all .2s;
}
.chip:hover { border-color: var(--pink-deep); }
.chip.active { background: var(--pink); border-color: var(--pink); font-weight: 700; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 99px;
  padding: 0 16px; min-width: 240px; color: var(--muted);
}
.search input { border: 0; outline: 0; background: none; padding: 10px 0; width: 100%; font: inherit; color: var(--text); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; margin-bottom: 60px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pc-img { position: relative; aspect-ratio: 1; background: var(--pink-soft); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--pink-deep); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
}
.badge.muted { background: #9a9d96; }
.badge.inline { position: static; }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { color: var(--green-dark); font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.pc-swatches { display: flex; gap: 4px; margin-top: 4px; }
.pc-swatches i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; direction: ltr; color: #e6dcda; font-size: 1.15rem; letter-spacing: 1px; }
.stars.sm { font-size: .85rem; }
.star { position: relative; display: inline-block; }
.star-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f3b43f; white-space: nowrap; }

/* ---------- Product page ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin: 22px 0; display: flex; gap: 6px; }
.crumbs a:hover { color: var(--pink-deep); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.gallery { position: sticky; top: 90px; }
.main-img {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; direction: ltr;
  border-radius: 24px; background: var(--pink-soft); aspect-ratio: 1; scrollbar-width: none;
}
.main-img::-webkit-scrollbar { display: none; }
.main-img img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex: 0 0 72px; height: 72px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--pink-soft); opacity: .6; transition: all .2s; }
.thumb.active { border-color: var(--pink-deep); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.info h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.4; margin: 8px 0; }
.tag { display: inline-block; background: var(--green-soft); color: var(--green-dark); padding: 3px 12px; border-radius: 99px; font-size: .82rem; font-weight: 500; }
.rating-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.rating-link:hover span { text-decoration: underline; }
.price-row.big { margin: 18px 0 6px; }
.price-row.big .price { font-size: 1.7rem; }
.stock { font-size: .92rem; color: var(--green-deep); font-weight: 500; }
.stock.out { color: var(--pink-deep); }

.opt { margin-top: 20px; }
.opt-label { margin-bottom: 8px; font-size: .95rem; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c);
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px var(--pink-deep); transform: scale(1.1); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--white); overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.2rem; color: var(--text); transition: background .2s; }
.qty button:hover { background: var(--pink-soft); }
.qty span { min-width: 36px; text-align: center; font-weight: 700; }
.qty.sm button { width: 32px; height: 32px; font-size: 1rem; }

.actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 150px; }
.actions.center { justify-content: center; }
.actions.center .btn { flex: 0 1 auto; }
.perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.perks span { background: var(--pink-soft); padding: 6px 12px; border-radius: 12px; font-size: .85rem; }
.desc { margin-top: 30px; padding-top: 24px; border-top: 1px dashed var(--line); }
.desc h2 { font-size: 1.15rem; margin-bottom: 8px; }
.desc p { white-space: pre-line; color: #62665f; }

/* ---------- Reviews ---------- */
.section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.reviews { margin-top: 64px; }
.reviews-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-summary { text-align: center; position: sticky; top: 90px; }
.big-rating { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.bars { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.bar { height: 8px; background: var(--pink-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #f3b43f; border-radius: 99px; }

.review-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; background: linear-gradient(180deg, var(--pink-soft), var(--white)); }
.review-form h3 { font-size: 1.05rem; }
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 4px; direction: ltr; }
.star-picker input { display: none; }
.star-picker label { font-size: 1.9rem; color: #e6dcda; cursor: pointer; transition: color .15s, transform .15s; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #f3b43f; }
.star-picker label:hover { transform: scale(1.15); }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.review-form { position: relative; }

.review { padding: 16px 4px; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-head .date { margin-inline-start: auto; font-size: .8rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--green-dark); display: grid; place-items: center; font-weight: 700; }
.review p { color: #62665f; white-space: pre-line; }

/* ---------- Related ---------- */
.related { margin: 64px 0; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 18px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; }
.row-scroll > * { scroll-snap-align: start; }

/* ---------- Forms ---------- */
input, textarea, select {
  width: 100%; font: inherit; color: var(--text);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--pink-deep); box-shadow: 0 0 0 3px rgba(231, 154, 160, .18); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { font-size: 1.15rem; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .94rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { min-height: 1.4em; font-size: .92rem; }
.form-msg.success { color: var(--green-deep); }
.form-msg.error { color: #d35d6b; }
.pay-note { background: var(--green-soft); color: var(--green-dark); padding: 10px 14px; border-radius: 12px; font-weight: 500; }

/* ---------- Cart / Checkout ---------- */
.page-title { font-size: 1.7rem; font-weight: 800; margin: 28px 0 20px; }
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-bottom: 60px; }
.checkout > div { display: flex; flex-direction: column; gap: 20px; }
.cart-list { padding: 6px 20px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--pink-soft); }
.ci-info { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.ci-name { font-weight: 700; font-size: 1rem; }
.ci-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.summary { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.summary h2 { font-size: 1.15rem; }
.sum-row { display: flex; justify-content: space-between; }
.sum-row.total { border-top: 1px dashed var(--line); padding-top: 12px; font-weight: 800; font-size: 1.15rem; }
.hint { background: var(--pink-soft); padding: 8px 12px; border-radius: 10px; font-size: .86rem; }

.done { padding: 60px 0; }
.done-card { max-width: 520px; margin: auto; text-align: center; padding: 40px 28px; background: linear-gradient(180deg, var(--pink-soft), var(--white)); }
.done-icon { font-size: 3.5rem; animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.done-card h1 { font-size: 1.8rem; margin: 8px 0; }
.done-card p { margin-bottom: 8px; }

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px 10px; grid-column: 1 / -1; }
.empty.big { padding: 90px 10px; font-size: 1.2rem; line-height: 2.4; }
.loader { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--pink); border-top-color: var(--pink-deep); animation: spin .8s linear infinite; margin: 30px auto; }
.loader.page { margin: 120px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-enter { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--text); color: #fff; padding: 11px 24px; border-radius: 99px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 50; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: var(--pink-soft); margin-top: 40px; padding: 34px 0 18px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.footer-brand strong { font-family: "Poppins", sans-serif; font-size: 1.1rem; color: #3f5a45; }
.footer-brand p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 10px; }
.footer-links a { background: var(--white); padding: 8px 16px; border-radius: 99px; font-size: .92rem; transition: transform .2s; }
.footer-links a:hover { transform: translateY(-2px); }
.copy { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .reviews-wrap { grid-template-columns: 1fr; }
  .review-summary { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .slider-wrap { width: 94%; margin-top: 12px; margin-bottom: 22px; }
  .slider { border-radius: 18px; }
  .slides { aspect-ratio: 16 / 10; }
  .slide-text { right: 4%; left: auto; max-width: 62%; top: auto; bottom: 26px; transform: none; padding: 9px 12px; border-radius: 12px; }
  .slide-text h2 { font-size: .95rem; }
  .slide-text p { display: none; }
  .slide-text h2 { margin-bottom: 6px; }
  .slide-btn { padding: 3px 12px; font-size: .75rem; }
  .slider-arrow { display: none; }
  .dots { bottom: 10px; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero p { margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-body { padding: 10px 12px 12px; }
  .pc-body h3 { font-size: .92rem; }
  .search { min-width: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .ci-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .row-scroll { grid-auto-columns: 46%; }
}

/* =====================================================
   لوحة التحكم (Admin)
   ===================================================== */
.admin-body { background: #faf6f5; min-height: 100vh; }
.login-box { max-width: 380px; margin: 12vh auto; text-align: center; }
.login-box img { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 10px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 12px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.admin-top h1 img { width: 40px; height: 40px; border-radius: 50%; }
.admin-top .actions { margin: 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; }
.tab { white-space: nowrap; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); color: var(--text); }
.tab.active { background: var(--pink); border-color: var(--pink); font-weight: 700; }
.tab .count { background: var(--green-deep); color: #fff; font-size: .75rem; padding: 0 7px; border-radius: 99px; margin-inline-start: 4px; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.admin-item img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--pink-soft); }
.admin-item .meta { font-size: .85rem; color: var(--muted); }
.admin-item .row-actions { display: flex; gap: 6px; }
.icon-btn { border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 6px 12px; font-size: .88rem; color: var(--text); }
.icon-btn:hover { background: var(--pink-soft); }
.icon-btn.danger { color: #d35d6b; }

.modal { position: fixed; inset: 0; background: rgba(60, 50, 50, .35); display: grid; place-items: start center; padding: 30px 12px; overflow-y: auto; z-index: 40; }
.modal-box { width: min(760px, 100%); background: var(--white); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); animation: fadeUp .25s ease; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { font-size: 1.2rem; }
.close-btn { border: 0; background: var(--pink-soft); width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.check input { width: auto; }

.img-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-item { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .main-tag { position: absolute; bottom: 4px; right: 4px; background: var(--green-deep); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 6px; }
.img-item .img-btns { position: absolute; top: 4px; left: 4px; display: flex; gap: 4px; }
.img-item .img-btns button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: .75rem; }
.upload-box { width: 96px; height: 96px; border-radius: 14px; border: 2px dashed var(--pink-deep); display: grid; place-items: center; color: var(--pink-deep); cursor: pointer; text-align: center; font-size: .82rem; }
.upload-box input { display: none; }
.color-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.color-row input[type="color"] { padding: 2px; height: 42px; cursor: pointer; }

.order-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.order-head strong { font-size: 1.05rem; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .92rem; }
.order-items div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.order-foot select { width: auto; }
.status { padding: 2px 12px; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.status.s-جديد { background: var(--pink); }
.status.s-قيد { background: #fde9c7; }
.status.s-تم { background: var(--green); }
.status.s-ملغي { background: #eee; color: var(--muted); }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .order-grid { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 50px 1fr; }
  .admin-item img { width: 50px; height: 50px; }
  .admin-item .row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- Admin: banners ---------- */
.interval { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.interval input { width: 70px; padding: 6px 10px; }
.banner-item { grid-template-columns: 150px 1fr auto; }
.banner-item img { width: 150px; height: 75px; }
.banner-item.off { opacity: .55; }
.banner-preview { margin-bottom: 16px; }
.banner-preview .preview-img { position: relative; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; background: var(--pink-soft); }
.banner-preview .preview-img img { width: 100%; height: 100%; object-fit: cover; }
.banner-preview .preview-img .change { position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,.92); padding: 6px 14px; border-radius: 99px; font-size: .85rem; cursor: pointer; }
.banner-preview .preview-img .change input { display: none; }
.upload-box.wide { width: 100%; height: auto; aspect-ratio: 2 / 1; font-size: .95rem; }
@media (max-width: 560px) {
  .banner-item { grid-template-columns: 90px 1fr; }
  .banner-item img { width: 90px; height: 45px; }
}

/* ---------- Admin: categories ---------- */
.toolbar-group { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cat-filter { width: auto; min-width: 150px; border-radius: 99px; padding: 9px 14px; }
.cat-add { display: flex; gap: 10px; padding: 14px; }
.cat-add input { flex: 1; }
.cat-item { grid-template-columns: 46px 1fr auto; }
.cat-item.off { opacity: .6; }
.cat-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--pink-soft); display: grid; place-items: center; font-size: 1.3rem; }
.cat-item.off .cat-icon { background: #eee; }
.cat-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.count-badge { background: var(--green-soft); color: var(--green-dark); font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; cursor: pointer; border: 0; }
.count-badge:hover { background: var(--green); }
.count-badge.zero { background: #f3f0ef; color: var(--muted); }
.hidden-badge { background: #eee; color: var(--muted); font-size: .78rem; padding: 2px 10px; border-radius: 99px; }
.cat-edit { display: flex; gap: 6px; align-items: center; }
.cat-edit input { padding: 6px 10px; max-width: 220px; }
.cat-item.uncat { border-style: dashed; }
@media (max-width: 560px) {
  .cat-item { grid-template-columns: 40px 1fr; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-add { flex-direction: column; }
}
