/* Marvela / Zaman Tejarat — haute horology portal */
:root {
  --ink: #1a1410;
  --ink-soft: #3a322c;
  --sea: #5c3d2e;
  --teal: #7a2e3a;
  --aqua: #c4a574;
  --foam: #f3ece3;
  --sand: #f7f1e8;
  --gold: #c4a574;
  --gold-soft: #e4d4b8;
  --mist: #6a5c52;
  --muted: #6e6258;
  --snow: #fffdf8;
  --ok: #3d6b4f;
  --ok-bg: #eaf4ee;
  --danger: #8b2e2e;
  --danger-bg: #f8eceb;
  --info-bg: #f4ece0;
  --line: rgba(26, 20, 16, 0.12);
  --panel: #fffdf9;
  --panel-border: rgba(92, 61, 46, 0.14);
  --radius: 18px;
  --shadow: 0 18px 44px rgba(26, 20, 16, 0.12);
  --font: "Vazirmatn", Tahoma, sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --tap: 48px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body.mv-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  direction: rtl;
  position: relative;
  overflow-x: hidden;
}

.mv-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 280px at 10% -6%, rgba(196, 165, 116, 0.28), transparent 58%),
    radial-gradient(480px 240px at 100% 0%, rgba(122, 46, 58, 0.22), transparent 55%),
    linear-gradient(168deg, #1a1410 0%, #2a211c 32%, #f3ece3 32.06%, #f7f1e8 100%);
}

.mv-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 0.85rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .mv-shell { padding: 1rem 1.25rem 2.5rem; }
}

.mv-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(228, 212, 184, 0.28);
  border-radius: 16px;
  background: rgba(26, 20, 16, 0.82);
  backdrop-filter: blur(14px);
  color: var(--snow);
}
@media (min-width: 760px) {
  .mv-nav {
    border-radius: 999px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.35rem;
  }
}
.mv-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #f7efdf;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.18em;
}
.mv-brand img {
  width: 34px; height: 34px; object-fit: contain; border-radius: 9px;
  background: rgba(255,255,255,0.1);
}
.mv-nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0; right: 0;
  flex-direction: column;
  gap: 0.2rem;
  background: #1a1410;
  border: 1px solid rgba(196, 165, 116, 0.22);
  border-radius: 14px;
  padding: 0.45rem;
  z-index: 40;
  box-shadow: var(--shadow);
}
.mv-nav-links.is-open { display: flex; }
.mv-nav-links a {
  color: #f7efdf;
  text-decoration: none;
  padding: 0.75rem 0.9rem;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
.mv-nav-links a:hover,
.mv-nav-links a:focus-visible {
  background: rgba(196, 165, 116, 0.16);
  color: #fff;
}
.mv-nav-toggle {
  display: inline-flex;
  width: var(--tap); height: var(--tap);
  border: 0; border-radius: 12px;
  background: rgba(255,255,255,0.1);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.mv-nav-toggle span {
  display: block; width: 18px; height: 2px; background: #f7efdf; border-radius: 2px;
}
@media (min-width: 760px) {
  .mv-nav-toggle { display: none; }
  .mv-nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 0.3rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .mv-nav-links a {
    min-height: auto;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 500;
    color: rgba(247, 239, 223, 0.94);
  }
}

.mv-main { flex: 1; width: 100%; }

.mv-hero {
  min-height: 38vh;
  display: grid;
  align-content: end;
  gap: 0.65rem;
  padding: 1.25rem 0 1.1rem;
  color: #fff;
  animation: mv-rise 0.7s ease both;
}
.mv-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.mv-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 12vw, 5.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.12em;
  color: #f7efdf;
  text-shadow: 0 2px 22px rgba(0,0,0,0.28);
}
.mv-hero p {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  color: rgba(247, 239, 223, 0.92);
  line-height: 1.75;
}
@media (min-width: 640px) {
  .mv-hero {
    min-height: min(58vh, 560px);
    padding: 2rem 0 1.75rem;
    gap: 0.85rem;
  }
  .mv-hero p { font-size: 1.05rem; }
}

.mv-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1rem;
  margin-top: 0.85rem;
  animation: mv-rise 0.65s ease 0.05s both;
}
@media (min-width: 640px) {
  .mv-panel { padding: 1.5rem 1.35rem; margin-top: 1rem; }
}
.mv-panel h2,
.product-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}
.mv-lead {
  margin: 0 0 1rem;
  color: var(--mist);
  line-height: 1.75;
  font-size: 0.98rem;
}
.serial-chip {
  color: var(--teal);
  background: var(--foam);
  padding: 0.15rem 0.55rem;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mv-field { margin-bottom: 1rem; }
.mv-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.mv-field input,
.mv-field select,
.mv-field textarea,
.modal-mv .form-control {
  width: 100%;
  min-height: var(--tap);
  border: 1.5px solid rgba(92, 61, 46, 0.22);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mv-field input::placeholder,
.modal-mv .form-control::placeholder {
  color: #8a7c70;
  opacity: 1;
}
.mv-field input:focus,
.mv-field select:focus,
.mv-field textarea:focus,
.modal-mv .form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 165, 116, 0.28);
}

.btn-mv,
.btn-dovix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap);
  border: 0;
  border-radius: 14px;
  padding: 0.8rem 1.15rem;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-mv:disabled,
.btn-dovix:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-mv:hover:not(:disabled),
.btn-dovix:hover:not(:disabled) { transform: translateY(-1px); }
.btn-mv-primary {
  background: linear-gradient(135deg, #8a3542, #5c2430);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(92, 36, 48, 0.32);
}
.btn-mv-ghost {
  background: #fff;
  color: var(--ink) !important;
  border: 1.5px solid rgba(92, 61, 46, 0.22);
}
.btn-mv-block { width: 100%; }

.mv-alert {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}
.mv-alert-info {
  background: var(--info-bg);
  color: #3d3228;
  border: 1px solid rgba(196, 165, 116, 0.35);
}
.mv-alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(139, 46, 46, 0.18);
}
.mv-alert-success {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(61, 107, 79, 0.18);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
.product-tile {
  background: #fff;
  border: 1.5px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: mv-rise 0.55s ease both;
}
.product-tile:hover,
.product-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(26, 20, 16, 0.14);
  border-color: rgba(196, 165, 116, 0.55);
  outline: none;
}
.product-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--foam);
}
.product-tile .body {
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
  flex: 1;
}
.product-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 800;
}
.product-tile .meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.product-tile .meta.code {
  color: var(--teal);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}
.product-tile .price {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
}
.product-tile .tile-cta { margin-top: 0.35rem; pointer-events: none; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 720px) {
  .product-hero {
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 1.25rem;
  }
}
.product-hero img {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 16px;
  background: var(--foam);
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
  font-size: 0.96rem;
}
.spec-table th {
  width: 40%;
  color: var(--muted);
  font-weight: 700;
}
.spec-table td {
  color: var(--ink);
  font-weight: 700;
}
.price-cell { color: var(--teal) !important; font-weight: 800 !important; }

.mv-actions { display: grid; gap: 0.65rem; margin-top: 1.1rem; }
.mv-actions-inline { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.certificate-banner {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  background: var(--ok-bg);
  border: 1px solid rgba(61, 107, 79, 0.16);
}
.celebrate-seal {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #c4a574, #7a2e3a);
  color: #fff; font-size: 1.45rem; font-weight: 800;
  box-shadow: 0 8px 20px rgba(122, 46, 58, 0.28);
  animation: mv-pop 0.55s cubic-bezier(.2,1.4,.4,1) both;
}
.celebrate-seal.seal-sm { width: 46px; height: 46px; font-size: 1.15rem; }
.celebrate-kicker {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.mv-footer {
  margin-top: 1.75rem;
  padding: 1.1rem 0 0.35rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  display: grid;
  gap: 0.25rem;
}

.modal-mv .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #fffdf9;
}
.modal-mv .modal-header { border: 0; padding: 1rem 1rem 0; }
.modal-mv .modal-title { color: var(--ink); font-weight: 800; }
.modal-mv .modal-body { padding: 1rem; }
.modal-mv .modal-footer {
  border: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem 1rem;
}
.modal-mv .modal-footer .btn-mv,
.modal-mv .modal-footer .btn-dovix { flex: 1 1 140px; }
#feedbackMessage,
#otpMessage {
  min-height: 1.35em;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}
#feedbackMessage.is-error,
#otpMessage.is-error { color: var(--danger); }
#feedbackMessage.is-info,
#otpMessage.is-info { color: var(--teal); }

@keyframes mv-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes mv-pop {
  from { opacity: 0; transform: scale(0.65); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.page-home .mv-hero { min-height: 34vh; }
@media (min-width: 640px) {
  body.page-home .mv-hero { min-height: min(52vh, 520px); }
}

.fill-panel .fill-header { margin-bottom: 0.35rem; }
.fill-kicker {
  color: var(--gold) !important;
  margin-bottom: 0.35rem !important;
}
.fill-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--foam);
  border: 1px solid rgba(92, 61, 46, 0.1);
}
@media (min-width: 560px) {
  .fill-meta {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.fill-meta-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.mobile-chip {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.fill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 0.9rem;
}
@media (min-width: 640px) {
  .fill-grid { grid-template-columns: 1fr 1fr; }
  .fill-span-2 { grid-column: 1 / -1; }
}
.fill-form .mv-field select { cursor: pointer; }
body.page-fill .mv-atmosphere {
  background:
    radial-gradient(640px 280px at 8% -8%, rgba(196, 165, 116, 0.22), transparent 58%),
    linear-gradient(165deg, #1a1410 0%, #2a211c 22%, #f3ece3 22.05%, #f7f1e8 100%);
}
