/* =========================================================
   ساعت‌فروشی مسعود (منفرد) — Luxury Watch Boutique Stylesheet
   ========================================================= */

:root {
  --bg-deep: #08090c;
  --bg-panel: #101216;
  --bg-panel-2: #16181e;
  --gold: #c9a34e;
  --gold-bright: #f0cf7a;
  --gold-dim: #8a713a;
  --text-main: #f4f1ea;
  --text-dim: #a7a49c;
  --border-soft: rgba(201, 163, 78, 0.18);
  --danger: #d9534f;
  --success: #4caf7d;
  --radius: 14px;
  --shadow-lift: 0 20px 60px rgba(0,0,0,0.55);
  --font-head: 'Playfair Display', 'Vazirmatn', serif;
  --font-body: 'Vazirmatn', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ریست دکمه‌ها برای جلوگیری از ظاهر پیش‌فرض سیستم (مرورگرهای موبایل/سافاری) */
button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  color: inherit;
}
button, a, .watch-card, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(201,163,78,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), #060708 60%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.8;
  min-height: 100vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,9,12,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.3px;
}

.logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(201,163,78,0.6));
  animation: logoPulse 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(201,163,78,0.5)); }
  50% { filter: drop-shadow(0 0 16px rgba(201,163,78,0.85)); }
}

.logo-text {
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; gap: 28px; align-items: center; }

.main-nav a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 2px;
}

.main-nav a:hover { color: var(--gold-bright); }

.main-nav a.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #10110a;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
}
.main-nav a.nav-cta:hover { filter: brightness(1.1); color: #10110a; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,163,78,0.14), transparent 55%);
  pointer-events: none;
}

.hero-eyebrow {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
  position: relative;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold-dim);
  vertical-align: middle;
  margin: 0 10px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  background: linear-gradient(100deg, #fff 0%, var(--gold-bright) 35%, var(--gold) 50%, var(--gold-bright) 65%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  animation: heroShine 7s ease-in-out infinite;
}

@keyframes heroShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Hero: پس‌زمینه قابل تنظیم مدیر ---------- */
.hero-bg-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg-slide.active { opacity: 0.5; }
.hero-bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,12,0.55), rgba(8,9,12,0.88));
}

/* ---------- Hero: چیدمان متن + ساعت سه‌بعدی ---------- */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: initial;
}
.hero-inner .hero-text { flex: 1 1 360px; text-align: center; }
.hero-inner .hero-text h1,
.hero-inner .hero-text p { margin-left: auto; margin-right: auto; }

/* ---------- ساعت سه‌بعدی تعاملی ---------- */
.hero-clock-stage {
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  perspective: 1400px;
  animation: heroClockFloat 5s ease-in-out infinite;
}
@keyframes heroClockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-clock-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.hero-clock-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
  transform: rotateY(100deg) scale(0.8);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}
.hero-clock-3d.active { opacity: 1; transform: rotateY(0deg) scale(1); pointer-events: auto; }

.hc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-dim), var(--gold-bright), var(--gold), var(--gold-dim));
  transform: translateZ(-24px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 60px rgba(201,163,78,0.25);
}
.hc-bezel {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-panel-2), var(--bg-panel) 60%, #060708);
  box-shadow: inset 0 0 0 2px var(--border-soft), inset 0 10px 24px rgba(0,0,0,0.6);
  transform: translateZ(0px);
}
.hc-face {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #1c1e24, #0a0b0d 78%);
  transform: translateZ(16px);
  box-shadow: inset 0 0 26px rgba(0,0,0,0.7);
}
.hc-glass {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.03) 38%, transparent 55%, rgba(255,255,255,0.08) 100%);
  transform: translateZ(32px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hc-tick {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  background: var(--gold);
  opacity: 0.75;
  transform-origin: 50% 89px;
}
.hc-tick-thin { height: 8px; width: 1px; opacity: 0.5; }
.hc-tick-block { height: 16px; width: 4px; margin-left: -2px; background: var(--gold-bright); border-radius: 2px; }
.hc-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
  transform: translateX(-50%) rotate(0deg);
}
.hc-hand-hour { width: 6px; height: 25%; }
.hc-hand-min { width: 4px; height: 36%; }
.hc-hand-sec { width: 2px; height: 40%; background: var(--danger); box-shadow: none; }
.hc-hand-sec-royal { background: var(--success); }
.hc-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: translate(-50%, -50%) translateZ(6px);
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
}
.hc-logo {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  opacity: 0.55;
}

/* رنگ‌بندی متفاوت طرح‌های «رویال» و «اسپرت» — با همان پالت رنگی سایت */
.hc-ring-royal { background: conic-gradient(from 90deg, var(--bg-panel-2), var(--gold-bright), var(--bg-panel-2), var(--gold)); }
.hc-bezel-royal { background: linear-gradient(145deg, #0a0b0d, var(--bg-panel-2) 60%, #060708); }
.hc-face-royal { background: radial-gradient(circle, #14151a, #060708 80%); }
.hc-ring-sport { background: conic-gradient(from 45deg, var(--gold-dim), var(--success), var(--gold-bright), var(--gold-dim)); }
.hc-bezel-sport { background: linear-gradient(145deg, var(--bg-panel), #0a0b0d 60%, #060708); }
.hc-face-sport { background: radial-gradient(circle, #1a1d1a, #08090a 78%); }

/* ---------- دکمه‌های سریع جنسیت (بخش‌بندی) ---------- */
.hero-gender-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}
.hero-gender-tab {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.hero-gender-tab:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.hero-gender-tab-all {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #10110a;
  font-weight: 700;
  border-color: transparent;
}
.hero-gender-tab-all:hover { color: #10110a; filter: brightness(1.1); }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 44px 0 10px;
}

.filter-bar input[type="text"],
.filter-bar select {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 220px;
}

.filter-bar input[type="text"]:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-bar button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border: none;
  color: #10110a;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.filter-bar button:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- Watch grid ---------- */
.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
  padding: 50px 0 90px;
}

.watch-card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cardRise 0.5s ease both;
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.watch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -10%, rgba(201,163,78,0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.watch-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.09), transparent);
  transform: skewX(-18deg);
  transition: right 0.75s ease;
  pointer-events: none;
}
.watch-card:hover::after { right: 130%; }

.watch-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(201,163,78,0.25), 0 0 40px rgba(201,163,78,0.12);
  border-color: var(--gold-dim);
}
.watch-card:hover::before { opacity: 1; }

.watch-card:nth-child(1) { animation-delay: 0.02s; }
.watch-card:nth-child(2) { animation-delay: 0.06s; }
.watch-card:nth-child(3) { animation-delay: 0.1s; }
.watch-card:nth-child(4) { animation-delay: 0.14s; }
.watch-card:nth-child(5) { animation-delay: 0.18s; }
.watch-card:nth-child(6) { animation-delay: 0.22s; }
.watch-card:nth-child(n+7) { animation-delay: 0.24s; }

.watch-face {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1c1e24, #0c0d10 75%);
  border-radius: 50%;
  border: 3px solid var(--gold-dim);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,163,78,0.15);
  margin: 0 auto;
  max-width: 150px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.watch-card:hover .watch-face {
  border-color: var(--gold);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,163,78,0.35), 0 0 26px rgba(201,163,78,0.25);
}

.watch-face svg { width: 62%; height: 62%; transition: transform 0.4s ease; }
.watch-card:hover .watch-face svg { transform: rotate(4deg) scale(1.04); }

.watch-face::after,
.watch-modal-face::after,
.product-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 22%, transparent 45%);
  pointer-events: none;
}

.watch-brand {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.watch-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  min-height: 2.6em;
}

.watch-price {
  text-align: center;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1.05rem;
}

.watch-stock {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.watch-stock.low { color: var(--danger); }
.watch-stock.ok { color: var(--success); }

.watch-card .card-link {
  margin-top: auto;
  text-align: center;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 10px;
  font-size: 0.9rem;
  width: 100%;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.watch-card .card-link:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #10110a;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(201,163,78,0.3);
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 80px 20px;
  font-size: 1.05rem;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  padding: 70px 0 100px;
  align-items: start;
}

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-face {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, #1c1e24, #0a0b0d 75%);
  border: 6px solid var(--gold-dim);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 50px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-face svg { width: 60%; height: 60%; }

.product-info .breadcrumb {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.product-info .breadcrumb a { color: var(--gold); }

.product-info .p-brand {
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.product-info h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 10px 0 18px;
}

.product-info .p-price {
  font-size: 1.7rem;
  color: var(--gold-bright);
  font-weight: 800;
  margin-bottom: 8px;
}

.product-info .p-stock { margin-bottom: 24px; font-size: 0.95rem; }

.product-info .p-desc {
  color: var(--text-dim);
  line-height: 2;
  max-width: 560px;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 30px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Login page ---------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.login-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(201,163,78,0.6));
}

.login-box h1 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.login-sub { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 28px; }

.login-box form { display: flex; flex-direction: column; gap: 14px; }

.login-box input {
  background: #0c0d10;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 13px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  text-align: center;
  font-size: 1rem;
}
.login-box input:focus { outline: none; border-color: var(--gold); }

.login-box button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border: none;
  color: #10110a;
  font-weight: 700;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: filter 0.2s ease;
}
.login-box button:hover { filter: brightness(1.1); }

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.back-link:hover { color: var(--gold); }

.alert-error {
  background: rgba(217,83,79,0.12);
  border: 1px solid rgba(217,83,79,0.4);
  color: #f19d9a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.alert-success {
  background: rgba(76,175,125,0.12);
  border: 1px solid rgba(76,175,125,0.4);
  color: #9be0bd;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 22px;
}

/* ---------- Admin layout ---------- */
.admin-header {
  background: rgba(8,9,12,0.9);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header .header-inner { height: 72px; }

.admin-badge {
  background: rgba(201,163,78,0.14);
  color: var(--gold-bright);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.admin-wrap { padding: 40px 0 90px; }

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.admin-title-row h1 {
  font-family: var(--font-head);
  font-size: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: filter 0.2s ease, transform 0.15s ease;
  font-family: var(--font-body);
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #10110a; }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border-soft); color: var(--text-main); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-danger { background: rgba(217,83,79,0.16); color: #f19d9a; border: 1px solid rgba(217,83,79,0.4); }
.btn-danger:hover { background: rgba(217,83,79,0.28); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

.admin-table-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

table.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
  text-align: right;
  background: var(--bg-panel-2);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  font-size: 0.92rem;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(201,163,78,0.04); }

.inline-form { display: flex; gap: 8px; align-items: center; }

.mini-input {
  background: #0c0d10;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  width: 110px;
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.mini-input:focus { outline: none; border-color: var(--gold); }

.row-actions { display: flex; gap: 8px; }

.desc-cell {
  max-width: 220px;
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.stock-tag.ok { background: rgba(76,175,125,0.14); color: #9be0bd; }
.stock-tag.low { background: rgba(217,83,79,0.14); color: #f19d9a; }
.stock-tag.zero { background: rgba(217,83,79,0.25); color: #ffb2af; }

/* ---------- Admin forms (add/edit) ---------- */
.form-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 640px;
}

.form-card h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-bottom: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: #0c0d10;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }

.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

@media (max-width: 600px) {
  .header-inner { height: 66px; }
  .main-nav { gap: 14px; }
  .admin-table-wrap { overflow-x: auto; }
  table.admin-table { min-width: 720px; }
}

/* ---------- Login/Register flow additions ---------- */
.login-box-wide { max-width: 440px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; text-align: right; }

.auth-form .field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.auth-form input {
  width: 100%;
  background: #0c0d10;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }

.auth-form button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border: none;
  color: #10110a;
  font-weight: 700;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: filter 0.2s ease;
  margin-top: 4px;
}
.auth-form button:hover { filter: brightness(1.1); }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-svg {
  width: 150px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.captcha-row input {
  flex: 1;
  min-width: 120px;
}

.owner-greet {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.customer-greet {
  color: var(--gold-bright);
  font-size: 0.9rem;
}

/* ---------- Watch card image / gender badge ---------- */
.watch-face-link { display: block; }

.watch-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}
.watch-card:hover .watch-face-img { transform: scale(1.08); }

.watch-gender-badge {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: rgba(201,163,78,0.12);
  color: var(--gold-bright);
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.product-gender-badge {
  margin: 10px 0 16px;
  display: inline-block;
}

/* ---------- Product image zoom ---------- */
.product-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.product-face[role="button"] { cursor: zoom-in; position: relative; }

.zoom-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,9,12,0.75);
  color: var(--gold-bright);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--border-soft);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb:hover { opacity: 1; }
.product-thumb.active { opacity: 1; border-color: var(--gold); }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,5,6,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  cursor: zoom-out;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.lightbox-overlay.active img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 28px;
  font-size: 2.2rem;
  color: var(--gold-bright);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Footer contact ---------- */
.footer-inner { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer-contact { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; color: var(--text-dim); font-size: 0.8rem; }

/* ---------- Admin thumbnails ---------- */
.admin-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  display: block;
}
.admin-thumb-empty {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--bg-panel-2);
}

.current-image-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  margin-bottom: 22px;
  display: block;
}

.admin-gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.admin-gallery-thumb {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.admin-gallery-thumb-wide { width: 130px; height: 100px; }
.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-gallery-thumb-remove {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(10,10,10,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
}
.admin-gallery-thumb-remove:hover { background: var(--danger); }

.admin-nav { flex-wrap: wrap; row-gap: 10px; }

/* ---------- Watch card as clickable trigger ---------- */
.watch-card { cursor: pointer; }
.watch-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

body.modal-open { overflow: hidden; }

/* ---------- Watch detail modal ---------- */
.watch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,5,6,0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.watch-modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.watch-modal {
  position: relative;
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 30px 30px;
  cursor: default;
  transform: scale(0.94) translateY(14px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
}
.watch-modal-overlay.active .watch-modal { transform: scale(1) translateY(0); opacity: 1; }

.watch-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.watch-modal-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--gold-bright);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.watch-modal-icon-btn:hover { border-color: var(--gold); background: rgba(201,163,78,0.1); transform: translateY(-1px); }
.watch-modal-close { font-size: 1.5rem; }

.watch-modal-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: start;
}

.watch-modal-face {
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, #1c1e24, #0a0b0d 75%);
  border: 6px solid var(--gold-dim);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 50px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
}
.watch-modal-face svg { width: 60%; height: 60%; }
.watch-modal-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 0.4s ease; }
.watch-modal-face { position: relative; grid-column: 1; grid-row: 1; }
.watch-modal-face.zoomable { cursor: zoom-in; }
.watch-modal-face.zoomable:hover .watch-modal-img { transform: scale(1.06); }

.watch-modal-thumbs {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}
.watch-modal-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--border-soft);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.watch-modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.watch-modal-thumb:hover { opacity: 1; }
.watch-modal-thumb.active { opacity: 1; border-color: var(--gold); }
.watch-modal-info { grid-column: 2; grid-row: 1 / span 2; }

.zoom-btn {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #10110a;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-body);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: zoom-in;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45), 0 0 0 3px var(--bg-panel);
  z-index: 3;
  transition: filter 0.2s ease, transform 0.15s ease;
  animation: zoomBtnPulse 2.4s ease-in-out infinite;
}
.zoom-btn:hover, .zoom-btn:focus-visible { filter: brightness(1.08); }
.zoom-btn:active { transform: translateX(-50%) scale(0.95); }

@keyframes zoomBtnPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,0.45), 0 0 0 3px var(--bg-panel), 0 0 0 0 rgba(201,163,78,0.5); }
  50% { box-shadow: 0 8px 20px rgba(0,0,0,0.45), 0 0 0 3px var(--bg-panel), 0 0 0 7px rgba(201,163,78,0); }
}

.watch-modal-brand {
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.watch-modal-name {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 6px 0 10px;
}
.watch-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.watch-modal-meta .watch-modal-stock {
  font-size: 0.85rem;
  font-weight: 600;
}
.watch-modal-price {
  font-size: 1.3rem;
  color: var(--gold-bright);
  font-weight: 800;
  margin: 0 0 14px;
}
.watch-modal-desc {
  color: var(--text-dim);
  line-height: 1.85;
  font-size: 0.92rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  margin-bottom: 18px;
  white-space: pre-line;
}

.watch-modal-order {
  background: rgba(201,163,78,0.06);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
}
.order-title {
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.order-text {
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order-btn {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: filter 0.2s ease, transform 0.15s ease;
  font-family: var(--font-body);
}
.order-btn:hover { transform: translateY(-1px); }
.order-btn.call { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #10110a; }
.order-btn.call:hover { filter: brightness(1.1); }
.order-btn.whatsapp { background: #25d366; color: #06210f; }
.order-btn.whatsapp:hover { filter: brightness(1.08); }
.order-btn.soroush { background: rgba(201,163,78,0.14); color: var(--gold-bright); border: 1px solid var(--border-soft); }
.order-btn.soroush:hover { border-color: var(--gold); }

.copy-toast {
  position: absolute;
  bottom: -14px;
  right: 20px;
  left: 20px;
  text-align: center;
  background: rgba(76,175,125,0.16);
  color: #9be0bd;
  border: 1px solid rgba(76,175,125,0.4);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.copy-toast.show { opacity: 1; transform: translateY(18px); }

@media (max-width: 720px) {
  .watch-modal-body { grid-template-columns: 1fr; gap: 24px; }
  .watch-modal-face, .watch-modal-thumbs, .watch-modal-info { grid-column: 1; }
  .watch-modal-face { grid-row: 1; }
  .watch-modal-thumbs { grid-row: 2; }
  .watch-modal-info { grid-row: 3; }
  .watch-modal-face { max-width: 200px; }
  .watch-modal { padding: 24px 22px 26px; }
}

/* ---------- Mobile responsiveness for auth / forms ---------- */
@media (max-width: 480px) {
  .login-box, .login-box-wide { padding: 34px 22px; max-width: 100%; }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-svg { width: 100%; height: 60px; }
  .filter-bar input[type="text"], .filter-bar select { min-width: 0; width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar button { width: 100%; }
  .admin-nav { justify-content: flex-start; gap: 12px 16px; }
  .row-actions { flex-direction: column; }
  .inline-form { flex-wrap: wrap; }
  .mini-input { width: 90px !important; }
}

/* ---------- General mobile layout fixes ---------- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .site-header { position: sticky; }
  .header-inner {
    height: auto;
    min-height: 62px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 11px 0;
  }
  .logo { font-size: 0.95rem; gap: 7px; min-width: 0; flex-shrink: 1; }
  .logo-icon { font-size: 1.25rem; flex-shrink: 0; }
  .logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 46vw;
    display: inline-block;
  }
  .main-nav { gap: 8px; flex-wrap: nowrap; flex-shrink: 0; }
  .main-nav a.nav-link-store { display: none; }
  .main-nav a.nav-cta { padding: 8px 16px; font-size: 0.82rem; white-space: nowrap; }
  .customer-greet { display: none; }

  .hero { padding: 40px 0 32px; }
  .hero-clock-stage { width: 170px; height: 170px; }
  .hc-tick { transform-origin: 50% 63px; }
  .hero-gender-tabs { margin-top: 22px; }
  .hero-gender-tab { padding: 7px 14px; font-size: 0.82rem; }
  .hero-eyebrow { font-size: 0.68rem; letter-spacing: 2px; margin-bottom: 12px; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 16px; margin: 0 6px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); margin-bottom: 12px; }
  .hero p { font-size: 0.88rem; line-height: 1.7; }

  .filter-bar { margin: 26px 0 4px; gap: 10px; }

  .watch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 26px 0 50px;
  }
  .watch-card {
    padding: 18px 12px 16px;
    gap: 8px;
    border-radius: 16px;
  }
  .watch-face { max-width: none; border-width: 2px; }
  .watch-brand { font-size: 0.68rem; letter-spacing: 1px; }
  .watch-name { font-size: 0.92rem; min-height: 2.3em; line-height: 1.3; }
  .watch-price { font-size: 0.92rem; }
  .watch-stock { font-size: 0.72rem; }
  .watch-card .card-link { padding: 8px; font-size: 0.8rem; }
  .watch-gender-badge { font-size: 0.65rem; padding: 2px 10px; }

  .empty-state { padding: 50px 16px; font-size: 0.95rem; }

  .footer-inner { padding: 0 6px; }
  .footer-contact { gap: 8px 14px; font-size: 0.74rem; }

  .watch-modal-overlay { padding: 0; align-items: flex-end; }
  .watch-modal {
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    padding: 22px 16px 24px;
    width: 100%;
  }
  .watch-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-soft);
    border-radius: 999px;
    margin: 0 auto 14px;
  }
  .watch-modal-close { font-size: 1.5rem; }
  .watch-modal-icon-btn { width: 32px; height: 32px; }
  .watch-modal-face { max-width: 190px; }
  .watch-modal-name { font-size: 1.3rem; }
  .watch-modal-price { font-size: 1.25rem; }
  .watch-modal-order { padding: 16px; }
  .order-actions { gap: 8px; }
  .order-btn { min-width: 100%; padding: 13px 14px; font-size: 0.85rem; }
  .copy-toast { left: 12px; right: 12px; }
  .zoom-btn { font-size: 0.72rem; padding: 7px 14px; }
}

@media (max-width: 380px) {
  .watch-grid { gap: 10px; }
  .watch-card { padding: 14px 10px 14px; }
  .logo-text { max-width: 38vw; font-size: 0.85rem; }
  .hero h1 { font-size: clamp(1.5rem, 9vw, 2rem); }
}

/* =========================================================
   تزئینات گرافیکی اضافه — Sparkles, Dividers, Extra Flourish
   ========================================================= */

/* --- ذرات درخشان شناور در پس‌زمینه کل سایت --- */
.bg-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bg-sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  box-shadow: 0 0 6px 1px rgba(240, 207, 122, 0.8);
  animation: sparkleFloat 9s ease-in-out infinite;
}
.bg-sparkles span:nth-child(1) { top: 12%; left: 6%;  animation-delay: 0s;   }
.bg-sparkles span:nth-child(2) { top: 24%; left: 88%;  animation-delay: 1.2s; }
.bg-sparkles span:nth-child(3) { top: 68%; left: 14%;  animation-delay: 2.4s; }
.bg-sparkles span:nth-child(4) { top: 80%; left: 92%;  animation-delay: 0.6s; }
.bg-sparkles span:nth-child(5) { top: 45%; left: 50%;  animation-delay: 3.1s; }
.bg-sparkles span:nth-child(6) { top: 8%;  left: 45%;  animation-delay: 4.4s; }
.bg-sparkles span:nth-child(7) { top: 34%; left: 20%;  animation-delay: 5.6s; }
.bg-sparkles span:nth-child(8) { top: 58%; left: 78%;  animation-delay: 1.9s; }
.bg-sparkles span:nth-child(9) { top: 90%; left: 40%;  animation-delay: 3.8s; }
.bg-sparkles span:nth-child(10){ top: 16%; left: 68%;  animation-delay: 6.2s; }
.bg-sparkles span:nth-child(11){ top: 72%; left: 55%;  animation-delay: 2.7s; }
.bg-sparkles span:nth-child(12){ top: 52%; left: 8%;   animation-delay: 7.1s; }

@keyframes sparkleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  10%  { opacity: 0.9; }
  50%  { opacity: 0.4; transform: translateY(-22px) scale(1.15); }
  90%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-40px) scale(0.6); }
}

.container, header, main, footer, section { position: relative; z-index: 2; }

/* --- درخشش عبوری روی عنوان اصلی هیرو --- */
.hero h1 {
  position: relative;
  background: linear-gradient(100deg, var(--gold-bright) 30%, #fff 50%, var(--gold-bright) 70%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShine 6s linear infinite;
}
@keyframes heroShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: -220% 50%; }
}

/* حلقهٔ درخشان اطراف بخش هیرو */
.hero {
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,163,78,0.16), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(201,163,78,0.12), transparent 40%);
  animation: heroGlowDrift 10s ease-in-out infinite alternate;
}
@keyframes heroGlowDrift {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.06); }
}

/* --- جداکنندهٔ تزئینی بین بخش‌ها --- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 32px;
  opacity: 0.85;
}
.section-divider span:not(.section-divider-diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.section-divider-diamond {
  color: var(--gold-bright);
  font-size: 0.8rem;
  filter: drop-shadow(0 0 6px rgba(240,207,122,0.6));
  animation: logoPulse 4s ease-in-out infinite;
}

/* --- گوشه‌های طلایی تزئینی روی کارت ساعت‌ها --- */
.watch-card { overflow: hidden; }
.watch-card .watch-face-link { position: relative; }
.watch-face::before {
  content: "";
  position: absolute;
  top: 6px; right: 6px; left: 6px; bottom: 6px;
  border: 1px dashed rgba(201,163,78,0.35);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: rotate(0deg) scale(0.9);
  transition: opacity 0.4s ease, transform 0.8s ease;
}
.watch-card:hover .watch-face::before {
  opacity: 1;
  transform: rotate(180deg) scale(1);
}

/* برچسب زاویه‌دار «جدید» روی چند کارت اول برای جلوه بصری بیشتر */
.watch-card-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #10110a;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  z-index: 3;
  pointer-events: none;
}

/* --- دکمه بازگشت به بالا --- */
.scroll-top-btn {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #10110a;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover { filter: brightness(1.1); transform: translateY(-3px); }

/* --- تزئین بالای فوتر --- */
.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 30px;
}
.footer-ornament span:not(.footer-ornament-icon) {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.footer-ornament-icon {
  font-size: 1.1rem;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(201,163,78,0.5));
  animation: logoPulse 4s ease-in-out infinite;
}

/* --- درخشش لطیف دور تصویر محصول در صفحه جزئیات و مودال --- */
.product-face, .watch-modal-face {
  position: relative;
}
.product-face::before, .watch-modal-face::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-bright), transparent 40%, var(--gold-dim), transparent 70%, var(--gold-bright));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderFlow 6s linear infinite;
  pointer-events: none;
}
@keyframes borderFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 300%; }
}

.watch-gender-badge { position: relative; overflow: hidden; }

/* موبایل: کاهش تعداد ذرات برای کارایی بهتر */
@media (max-width: 640px) {
  .bg-sparkles span:nth-child(n+7) { display: none; }
  .scroll-top-btn { bottom: 18px; left: 18px; width: 42px; height: 42px; }
}

/* =========================================================
   دور دوم تزئینات — پنل مدیریت + جزئیات بیشتر + برچسب جدید
   ========================================================= */

/* --- چک‌باکس «جدید» در فرم افزودن/ویرایش --- */
.field-checkbox {
  display: flex;
  align-items: center;
}
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(201,163,78,0.08);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: border-color 0.25s ease, background 0.25s ease;
  margin-bottom: 0 !important;
}
.checkbox-label:hover { border-color: var(--gold-dim); background: rgba(201,163,78,0.14); }
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* --- برچسب «جدید» کوچک کنار نام محصول در جدول پنل مدیریت --- */
.admin-new-badge {
  display: inline-block;
  margin-right: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #10110a;
}

/* --- شیشه‌ای‌کردن نوار فیلتر و فرم‌های پنل --- */
.filter-bar,
.form-card,
.admin-table-wrap,
.login-box {
  backdrop-filter: blur(10px);
  background-image: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 40%);
}

/* --- درخشش عبوری روی دکمه‌های طلایی --- */
.btn-gold, .main-nav a.nav-cta, .login-box button, .filter-bar button {
  position: relative;
  overflow: hidden;
}
.btn-gold::after, .main-nav a.nav-cta::after, .login-box button::after, .filter-bar button::after {
  content: "";
  position: absolute;
  top: 0;
  right: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  transition: right 0.6s ease;
  pointer-events: none;
}
.btn-gold:hover::after, .main-nav a.nav-cta:hover::after, .login-box button:hover::after, .filter-bar button:hover::after { right: 130%; }

/* --- عقربهٔ ثانیه‌شمار متحرک روی آیکون‌های ساعت طرح‌دار (placeholder) --- */
.watch-face svg, .watch-modal-face svg, .product-face svg {
  overflow: visible;
}
.watch-tick-hand {
  transform-box: fill-box;
  transform-origin: center;
  animation: tickRotate 60s linear infinite;
}
@keyframes tickRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- درخشش لطیف دور آیکون لوگو در هدر پنل مدیریت --- */
.admin-header .logo-icon { animation: logoPulse 4s ease-in-out infinite; }

/* --- سایه و درخشش کمی قوی‌تر روی هدر چسبان --- */
.site-header, .admin-header {
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* =========================================================
   تم‌های رنگی متغیر — هر بار بازدید یکی به‌صورت تصادفی انتخاب می‌شود
   ========================================================= */
[data-theme="emerald"] {
  --gold: #4fa382;
  --gold-bright: #7fd9b3;
  --gold-dim: #2f6b52;
  --border-soft: rgba(79, 163, 130, 0.22);
}
[data-theme="sapphire"] {
  --gold: #5b8fd1;
  --gold-bright: #9dc4f5;
  --gold-dim: #345a86;
  --border-soft: rgba(91, 143, 209, 0.22);
}
[data-theme="platinum"] {
  --gold: #b9bdc7;
  --gold-bright: #eef0f4;
  --gold-dim: #74777f;
  --border-soft: rgba(185, 189, 199, 0.24);
}

/* هماهنگ‌کردن رنگ آیکون‌های SVG ساعت (پلیس‌هولدر) با تم فعال */
.watch-face svg, .watch-modal-face svg, .product-face svg {
  --svg-scope: 1;
}
.watch-face svg circle[stroke],
.watch-modal-face svg circle[stroke],
.product-face svg circle[stroke] { stroke: var(--gold); }

.watch-face svg circle[fill],
.watch-modal-face svg circle[fill],
.product-face svg circle[fill] { fill: var(--gold-bright); }

.watch-face svg line,
.watch-modal-face svg line,
.product-face svg line { stroke: var(--gold); }

.watch-face svg line[stroke-width="3"],
.watch-modal-face svg line[stroke-width="3"],
.product-face svg line[stroke-width="3"],
.watch-face svg line.watch-tick-hand,
.watch-modal-face svg line.watch-tick-hand,
.product-face svg line.watch-tick-hand { stroke: var(--gold-bright); }

/* =========================================================
   دور سوم تزئینات — ورود نرم صفحه، هدر هوشمند، کارت‌های متحرک
   ========================================================= */

/* --- محو شدن نرم کل صفحه هنگام بارگذاری ---
   نکته مهم: هرگز روی body ترنسفورم (translateY) انیمیت نکن؛ این کار باعث می‌شود
   position:fixed در همهٔ فرزندان (پنجره جزئیات، دکمه بازگشت به بالا، ذرات پس‌زمینه)
   به‌جای صفحه، نسبت به body مچاله و جابه‌جا شود. فقط opacity را انیمیت می‌کنیم. */
body { animation: pageFadeIn 0.5s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- هدر هنگام اسکرول کمی فشرده‌تر و پررنگ‌تر می‌شود --- */
.site-header, .admin-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled, .admin-header.is-scrolled {
  background: rgba(8,9,12,0.97);
  box-shadow: 0 10px 34px rgba(0,0,0,0.5);
}

/* --- ورود پلکانی کارت‌های ساعت هنگام ظاهر شدن در صفحه --- */
.watch-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.watch-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   دور چهارم — نوار موجودی، افکت لمس روی کارت‌ها
   ========================================================= */

/* --- نوار سطح موجودی زیر بج جنسیت/موجودی --- */
.stock-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 14px;
}
.stock-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.2,.8,.2,1);
}

/* --- افکت موج لمس روی کارت ساعت (بدون تاثیر روی ثابت‌ماندن عناصر fixed) --- */
.watch-card {
  position: relative;
  isolation: isolate;
}
.watch-card .tap-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,207,122,0.45), transparent 70%);
  transform: scale(0);
  animation: tapRippleAnim 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 5;
}
@keyframes tapRippleAnim {
  to { transform: scale(1); opacity: 0; }
}
