/* ─────────────────────────────
   زیورآلات رنگارنگ — تم دخترونه صورتی
   ───────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --pink-soft: #fce7f3;
  --pink-softer: #fdf2f8;
  --fuchsia: #d946ef;
  --bg: #fff6fa;
  --card: #ffffff;
  --text: #4a2b3a;
  --muted: #9d7a8c;
  --border: #f9d5e5;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --violet: #8b5cf6;
  --shadow: 0 10px 30px -12px rgba(236, 72, 153, .25);
  --radius: 18px;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg) url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 24c-3-4-9-3-10 2-1 4 3 8 10 12 7-4 11-8 10-12-1-5-7-6-10-2z' fill='%23fbd0e2' fill-opacity='.35'/%3E%3Cpath d='M95 80c-2.5-3.5-8-2.5-9 1.7-.8 3.5 2.5 7 9 10.5 6.5-3.5 9.8-7 9-10.5-1-4.2-6.5-5.2-9-1.7z' fill='%23f9c4da' fill-opacity='.3'/%3E%3C/svg%3E");
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 16px; }

/* ── نوار اعلان ── */
.announce {
  background: linear-gradient(90deg, var(--pink), var(--fuchsia), var(--pink));
  color: #fff; text-align: center; padding: 9px 14px; font-size: 13.5px; font-weight: 600;
}

/* ── هدر ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; color: var(--pink-dark); }
.logo .heart {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--fuchsia));
  color: #fff; font-size: 20px; box-shadow: var(--shadow);
}
.logo small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav a { padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .2s; }
.nav a:hover, .nav a.active { background: var(--pink-soft); color: var(--pink-dark); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; font-size: 18px; transition: .2s; color: var(--pink-dark);
}
.icon-btn:hover { background: var(--pink-soft); transform: translateY(-2px); }
.cart-badge {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: linear-gradient(135deg, var(--pink), var(--fuchsia));
  color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 13px;
  border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 700; color: var(--pink-dark);
  cursor: pointer; transition: .2s;
}
.user-chip:hover { background: var(--pink-soft); }
.user-chip .avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--fuchsia)); color: #fff; display: grid; place-items: center; font-size: 12px; }

/* منوی کاربر */
.user-menu {
  position: absolute; top: 58px; inset-inline-end: 0; width: 210px; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding: 8px; display: none; z-index: 60;
}
.user-menu.open { display: block; animation: pop .18s ease; }
.user-menu a, .user-menu button {
  display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: 0;
  border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); text-align: right;
}
.user-menu a:hover, .user-menu button:hover { background: var(--pink-softer); color: var(--pink-dark); }
.user-wrap { position: relative; }

/* ── دکمه‌ها ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; border: 0; font-size: 14.5px; font-weight: 800;
  transition: .2s; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--fuchsia)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(217, 70, 239, .45); }
.btn-primary:disabled { opacity: .6; transform: none; cursor: not-allowed; }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--pink-dark); }
.btn-ghost:hover { background: var(--pink-soft); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ── هیرو ── */
.hero {
  margin: 22px 0; border-radius: 26px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #fbcfe8 0%, #f5d0fe 50%, #fbcfe8 100%);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center;
  padding: 40px 44px; box-shadow: var(--shadow);
}
.hero::before, .hero::after {
  content: '💗'; position: absolute; font-size: 40px; opacity: .3; animation: float 5s ease-in-out infinite;
}
.hero::before { top: 18px; inset-inline-start: 24px; }
.hero::after { bottom: 18px; inset-inline-end: 24px; animation-delay: 1.5s; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; line-height: 1.5; color: #831843; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--pink), var(--fuchsia));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin-top: 12px; color: #9d174d; font-size: 15.5px; line-height: 2; font-weight: 500; }
.hero-img { border-radius: 20px; box-shadow: 0 20px 40px -18px rgba(131, 24, 67, .4); transform: rotate(-2deg); transition: .3s; }
.hero-img:hover { transform: rotate(0) scale(1.02); }

/* ── بخش‌ها ── */
.section { margin: 38px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.sec-head h2::before { content: '🌸'; font-size: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 700; color: var(--muted); transition: .2s;
}
.chip:hover, .chip.active { background: linear-gradient(135deg, var(--pink), var(--fuchsia)); color: #fff; border-color: transparent; box-shadow: var(--shadow); }

/* ── کارت محصول ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.pcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column; position: relative;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #f0a8ca; }
.pcard .imgbox { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--pink-softer); }
.pcard .imgbox img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.pcard:hover .imgbox img { transform: scale(1.07); }
.pcard .off {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
}
.pcard .feat {
  position: absolute; top: 10px; inset-inline-end: 10px; background: linear-gradient(135deg, var(--pink), var(--fuchsia));
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.pcard .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .cat { font-size: 11px; color: var(--fuchsia); font-weight: 700; }
.pcard h3 { font-size: 15px; font-weight: 800; line-height: 1.6; }
.pcard .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-size: 15.5px; font-weight: 900; color: var(--pink-dark); }
.price small { font-size: 11px; font-weight: 600; }
.compare { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.add-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 0; font-size: 18px;
  background: linear-gradient(135deg, var(--pink), var(--fuchsia)); color: #fff; transition: .2s;
  display: grid; place-items: center;
}
.add-btn:hover { transform: scale(1.12) rotate(8deg); }
.add-btn:disabled { background: #e5e7eb; cursor: not-allowed; transform: none; }

/* ── نوار ویژگی‌ها ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 40px 0; }
.feat-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; gap: 12px; transition: .2s;
}
.feat-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feat-item .ic { font-size: 26px; }
.feat-item b { font-size: 14px; display: block; }
.feat-item span { font-size: 12px; color: var(--muted); }

/* ── فوتر ── */
.footer { margin-top: 50px; background: #fff; border-top: 1px solid var(--border); padding: 34px 0 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer h4 { font-size: 15px; font-weight: 900; color: var(--pink-dark); margin-bottom: 12px; }
.footer p, .footer a { font-size: 13px; color: var(--muted); line-height: 2.1; display: block; }
.footer a:hover { color: var(--pink); }
.footer .socials { display: flex; gap: 8px; margin-top: 10px; }
.footer .socials a {
  width: 38px; height: 38px; border-radius: 12px; background: var(--pink-soft); display: grid; place-items: center; font-size: 17px;
}
.copy { text-align: center; font-size: 12px; color: var(--muted); margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--border); }

/* ── کشوی سبد خرید ── */
.overlay {
  position: fixed; inset: 0; background: rgba(74, 43, 58, .45); backdrop-filter: blur(3px);
  z-index: 90; opacity: 0; pointer-events: none; transition: .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 92vw); background: var(--bg);
  z-index: 95; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s .3s;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.15); visibility: hidden;
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.open { transform: translateX(0) !important; visibility: visible; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.drawer-head { padding: 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 0 0 0 0; }
.drawer-head b { font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.drawer-foot { padding: 16px; background: #fff; border-top: 1px solid var(--border); }
.cart-item { display: flex; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item .info { flex: 1; }
.cart-item h4 { font-size: 13.5px; font-weight: 800; }
.cart-item .p { font-size: 13px; color: var(--pink-dark); font-weight: 800; margin-top: 2px; }
.qty-ctl { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-ctl button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-weight: 900; color: var(--pink-dark); }
.qty-ctl span { min-width: 22px; text-align: center; font-weight: 800; font-size: 13px; }
.cart-item .del { border: 0; background: 0; color: var(--red); font-size: 15px; align-self: flex-start; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--muted); }
.sum-row.total { font-size: 15.5px; font-weight: 900; color: var(--pink-dark); border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 6px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ic { font-size: 52px; margin-bottom: 12px; }

/* ── مودال ورود ── */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal.open { display: flex; }
.modal-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 28px;
  box-shadow: 0 30px 70px -20px rgba(131, 24, 67, .45); animation: pop .25s ease; position: relative;
}
.modal-card .close { position: absolute; top: 14px; inset-inline-start: 14px; border: 0; background: var(--pink-softer); width: 32px; height: 32px; border-radius: 10px; font-size: 15px; color: var(--muted); }
.modal-card h3 { font-size: 19px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.modal-card .sub { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.9; }
.demo-box {
  background: linear-gradient(135deg, var(--pink-soft), #fdf4ff); border: 1px dashed var(--pink);
  border-radius: 14px; padding: 12px; text-align: center; margin-top: 14px; font-size: 13px; color: var(--pink-dark); font-weight: 700;
}
.demo-box b { font-size: 20px; letter-spacing: 6px; display: block; margin-top: 4px; }

/* ── فرم‌ها ── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.input, textarea.input, select.input {
  width: 100%; padding: 11px 14px; border-radius: 13px; border: 1.5px solid var(--border);
  background: #fff; font-size: 14px; transition: .2s; color: var(--text);
}
.input:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
textarea.input { resize: vertical; min-height: 74px; }
.otp-input {
  width: 100%; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: 14px;
  padding: 13px; border-radius: 14px; border: 2px solid var(--border); direction: ltr;
}
.otp-input:focus { border-color: var(--pink); outline: 0; box-shadow: 0 0 0 4px var(--pink-soft); }

/* ── توست ── */
.toasts { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #4a2b3a; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: pop .25s ease; max-width: 90vw;
}
.toast.ok { background: linear-gradient(135deg, var(--green), #34d399); }
.toast.err { background: linear-gradient(135deg, var(--red), #f87171); }

/* ── صفحه محصول ── */
.product-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; margin: 26px 0; }
.product-page .imgbox { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.product-page .imgbox img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-cat { color: var(--fuchsia); font-weight: 800; font-size: 13px; }
.pd-title { font-size: 26px; font-weight: 900; margin: 8px 0; line-height: 1.6; }
.pd-price { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.pd-price .now { font-size: 27px; font-weight: 900; color: var(--pink-dark); }
.pd-price .was { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pd-desc { line-height: 2.1; color: #6b4a5a; font-size: 14.5px; margin: 14px 0; }
.qty-big { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 6px; }
.qty-big button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--pink-soft); color: var(--pink-dark); font-size: 18px; font-weight: 900; }
.qty-big span { min-width: 34px; text-align: center; font-weight: 900; font-size: 16px; }
.stock-ok { color: var(--green); font-weight: 700; font-size: 13.5px; }
.stock-no { color: var(--red); font-weight: 700; font-size: 13.5px; }

/* ── چک‌اوت ── */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin: 26px 0; align-items: start; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.panel h3 { font-size: 16.5px; font-weight: 900; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 14px; padding: 13px; cursor: pointer; transition: .2s; }
.pay-method.selected { border-color: var(--pink); background: var(--pink-softer); box-shadow: 0 0 0 3px var(--pink-soft); }
.pay-method .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--pink-soft); display: grid; place-items: center; font-size: 19px; }
.pay-method b { font-size: 14px; display: block; }
.pay-method span { font-size: 11.5px; color: var(--muted); }
.pay-method .radio { margin-inline-start: auto; width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--border); }
.pay-method.selected .radio { border-color: var(--pink); background: radial-gradient(circle, var(--pink) 45%, #fff 50%); }

/* ── درگاه پرداخت ── */
.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: linear-gradient(140deg, #831843, #be185d 45%, #a21caf); }
.gate {
  width: 100%; max-width: 430px; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0,0,0,.5);
}
.gate-head { background: linear-gradient(135deg, var(--pink), var(--fuchsia)); color: #fff; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.gate-head b { font-size: 16px; }
.gate-head span { font-size: 11px; opacity: .85; display: block; }
.gate-amount { text-align: center; padding: 26px 20px 18px; }
.gate-amount .t { font-size: 13px; color: var(--muted); }
.gate-amount .a { font-size: 30px; font-weight: 900; color: #831843; margin-top: 6px; }
.gate-body { padding: 0 22px 22px; }
.gate-merchant { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); background: var(--pink-softer); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.card-inputs { display: grid; gap: 10px; }
.card-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr; }
.card-num input { text-align: center; font-size: 16px; font-weight: 800; letter-spacing: 2px; }
.gate-success { text-align: center; padding: 40px 24px; }
.gate-success .ic { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: #d1fae5; color: var(--green); font-size: 40px; display: grid; place-items: center; animation: pop .4s ease; }
.gate-fail .ic { background: #fee2e2; color: var(--red); }
.ref { background: var(--pink-softer); border: 1px dashed var(--pink); border-radius: 12px; padding: 10px; margin: 14px 0; font-size: 14px; font-weight: 800; color: var(--pink-dark); letter-spacing: 2px; direction: ltr; }

/* ── پنل مدیریت ── */
.admin-head {
  background: linear-gradient(120deg, #831843, #be185d, #a21caf); color: #fff;
  padding: 22px 0 74px; margin-bottom: -52px;
}
.admin-head h1 { font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.admin-head .sub { font-size: 12.5px; opacity: .8; margin-top: 5px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs a {
  padding: 10px 18px; border-radius: 13px; background: rgba(255,255,255,.14); color: #fff;
  font-size: 13.5px; font-weight: 700; transition: .2s; backdrop-filter: blur(4px);
}
.admin-tabs a:hover { background: rgba(255,255,255,.26); }
.admin-tabs a.active { background: #fff; color: var(--pink-dark); box-shadow: var(--shadow); }
.admin-back { font-size: 13px; color: rgba(255,255,255,.85); margin-inline-start: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 6px 20px -10px rgba(236,72,153,.2);
}
.stat .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--pink-soft); display: grid; place-items: center; font-size: 21px; }
.stat b { font-size: 19px; display: block; color: var(--pink-dark); }
.stat span { font-size: 12px; color: var(--muted); }
.table-panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.table-panel h3 { padding: 16px 18px 10px; font-size: 15.5px; font-weight: 900; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { background: var(--pink-softer); padding: 11px 12px; text-align: right; font-size: 12px; color: var(--muted); font-weight: 800; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-top: 1px solid #fdeef5; vertical-align: middle; }
.tbl tr:hover td { background: #fffafc; }
.tbl .prod-cell { display: flex; align-items: center; gap: 9px; }
.tbl .prod-cell img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.badge.green { background: #d1fae5; color: #047857; }
.badge.amber { background: #fef3c7; color: #b45309; }
.badge.pink { background: var(--pink-soft); color: var(--pink-dark); }
.badge.red { background: #fee2e2; color: #b91c1c; }
.badge.violet { background: #ede9fe; color: #6d28d9; }
.badge.emerald { background: #a7f3d0; color: #065f46; }
.badge.gray { background: #f3f4f6; color: #4b5563; }
.actions { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-btn { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--border); background: #fff; font-size: 12px; font-weight: 700; color: var(--text); transition: .15s; white-space: nowrap; }
.mini-btn:hover { background: var(--pink-soft); color: var(--pink-dark); border-color: var(--pink); }
.mini-btn.danger:hover { background: #fee2e2; color: #b91c1c; border-color: var(--red); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 10px 6px 0; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 46px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--fuchsia), var(--pink)); min-height: 5px; transition: .3s; }
.chart .bar:hover { filter: brightness(1.1); }
.chart .lbl { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.chart .val { font-size: 10px; color: var(--pink-dark); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { position: relative; display: inline-flex; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #e5e7eb; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; inset-inline-start: 3px; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.switch input:checked + i { background: linear-gradient(135deg, var(--pink), var(--fuchsia)); }
.switch input:checked + i::after { transform: translateX(-20px); }
.flash {
  background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; border-radius: 14px;
  padding: 12px 16px; font-size: 13.5px; font-weight: 700; margin-bottom: 16px; animation: pop .3s ease;
}
.img-preview { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border); }

/* ── صفحه موفقیت ── */
.success-card { max-width: 520px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow); }
.success-card .ic { width: 90px; height: 90px; border-radius: 50%; background: #d1fae5; color: var(--green); font-size: 44px; display: grid; place-items: center; margin: 0 auto 18px; animation: pop .4s ease; }
.success-card h2 { font-size: 21px; font-weight: 900; }
.success-card .onum { background: var(--pink-softer); border: 1px dashed var(--pink); border-radius: 12px; padding: 10px; margin: 16px auto; font-weight: 900; color: var(--pink-dark); direction: ltr; font-size: 16px; letter-spacing: 1px; }

/* ── انیمیشن‌ها ── */
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fade-in { animation: pop .35s ease; }

/* ── جلوگیری از انفجار گرید با تصاویر بزرگ ── */
.hero > *, .product-page > *, .checkout-grid > *, .footer-grid > * { min-width: 0; }
.hero-img { width: 100%; max-width: 460px; height: auto; }

/* ── ریسپانسیو ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .hero-img { max-width: 420px; margin: 0 auto; }
  .product-page, .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard .body { padding: 10px; }
  .pcard h3 { font-size: 13px; }
  .price { font-size: 13.5px; }
  .add-btn { width: 34px; height: 34px; }
  .header-in { gap: 8px; }
  .logo { font-size: 15px; }
  .logo .heart { width: 34px; height: 34px; font-size: 17px; }
  .tbl-wrap { overflow-x: auto; }
  .tbl { min-width: 640px; }
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--pink-softer); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--pink), var(--fuchsia)); border-radius: 99px; }
