:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #757575;
  --gold: #b8976a;
  --gold-dark: #a48356;
  --gold-soft: #d4b37f;
  --card: #f4f1ea;
  --line: rgba(26, 26, 26, 0.1);
  --dark: #151515;
  --danger: #b44141;
  --success: #2f7d57;
}

html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
.text-gold { color: var(--gold) !important; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ---------- Header ---------- */
.main-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--ink); }
.header-brand-row { padding: 20px 0 14px; position: relative; }
.brand-name {
  display: inline-block; color: var(--ink); font-family: Georgia, serif; font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem); letter-spacing: .2rem; text-decoration: none; transition: color .3s;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { height: 52px; width: auto; display: block; }
.brand-lockup .brand-name { text-align: right; line-height: 1.15; }
.brand-lockup:hover .brand-name { color: var(--gold); }
.brand-sub { display: block; font-family: "Vazirmatn", system-ui, sans-serif; font-size: .72rem; letter-spacing: 0; color: var(--gold); margin-top: 6px; }
@media (max-width: 575.98px) {
  .brand-mark { height: 40px; }
  .brand-lockup { gap: 10px; }
}
.header-nav-row { min-height: 54px; border-top: 1px solid rgba(26, 26, 26, .08); position: relative; display: flex; align-items: center; justify-content: center; }
.main-nav { gap: clamp(14px, 1.8vw, 32px); align-items: center; }
/* The icons sit absolutely on the left; equal padding on both sides keeps the menu centred and clear of them. */
@media (min-width: 992px) {
  .header-nav-row { padding-inline: 112px; }
}
/* Laptop widths: the logo already links home and «درباره ما» is in the footer, so they step aside. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-link-item { font-size: .86rem; }
  .nav-wide-only { display: none; }
}
.nav-dropdown { position: relative; }
.nav-caret { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-left: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-3px) rotate(-45deg); transition: transform .25s; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: translateY(0) rotate(135deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 10px); right: -18px; min-width: 210px; padding: 10px; z-index: 50;
  background: #fff; border: 1px solid #ece7de; border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dropdown-panel::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown-panel a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .88rem; }
.nav-dropdown-panel a:hover { background: var(--card); color: var(--gold-dark); }
.nav-dropdown-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px !important; color: var(--gold-dark) !important; font-weight: 600; }
.nav-link-item { position: relative; padding: 8px 0; color: var(--ink); font-size: .92rem; text-decoration: none; white-space: nowrap; transition: color .25s; }
.nav-link-item::after { content: ""; position: absolute; right: 0; bottom: 2px; width: 0; height: 1.5px; background: var(--gold); transition: width .3s; }
.nav-link-item:hover, .nav-link-item.active { color: var(--gold); }
.nav-link-item:hover::after, .nav-link-item.active::after { width: 100%; }
.header-icons { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 16px; }
.header-icon-link { display: inline-flex; align-items: center; color: var(--ink); background: none; border: 0; padding: 0; position: relative; text-decoration: none; transition: color .25s, transform .25s; }
.header-icon-link:hover { color: var(--gold); transform: translateY(-2px); }
.header-admin-link { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--dark); color: #fff; font-size: .85rem; text-decoration: none; white-space: nowrap; transition: background .25s; }
.header-admin-link:hover { background: var(--gold-dark); color: #fff; }
@media (max-width: 575.98px) {
  .header-admin-link { padding: 8px; }
  .header-admin-link span { display: none; }
}
.cart-badge {
  position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; border-radius: 9px;
  background: var(--gold); color: #fff; font-size: .65rem; line-height: 1; transition: transform .25s cubic-bezier(.175, .885, .32, 1.275);
}
.cart-badge[data-count="0"] { display: none; }
.cart-badge.bump { transform: scale(1.35); }
.menu-toggle { position: absolute; right: 0; display: flex; flex-direction: column; gap: 5px; padding: 6px; border: 0; background: transparent; cursor: pointer; z-index: 1001; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; padding: 130px 28px 30px; background: var(--bg); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .35s, visibility .3s;
}
.mobile-menu.active { opacity: 1; visibility: visible; transform: none; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.05rem; text-decoration: none; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav a.mobile-admin { color: var(--gold-dark); font-weight: 700; }
.mobile-install { margin-top: 16px; padding: 13px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; }
.mobile-install[hidden] { display: none; }
.mobile-nav a.mobile-sub { padding: 11px 18px 11px 0; font-size: .92rem; color: var(--muted); }
.search-panel { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.search-panel.open { display: block; }
.search-form { display: flex; max-width: 560px; margin: 0 auto; border: 1px solid var(--line); background: #fff; }
.search-form input { flex: 1; border: 0; padding: 11px 14px; outline: none; background: transparent; font: inherit; }
.search-form button { border: 0; background: var(--ink); color: #fff; padding: 0 20px; }
@media (max-width: 991.98px) {
  .header-brand-row { padding: 16px 0 10px; }
  .header-nav-row { min-height: 48px; }
}

/* ---------- Buttons & forms ---------- */
.btn-gold { background: var(--gold); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 600; transition: background .2s; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); color: #fff; }
.btn-gold:disabled { background: #cfc6b8; }
.btn-ink { background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; transition: background .2s, color .2s; }
.btn-ink:hover { background: var(--gold); color: var(--ink); }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 10px 18px; transition: border-color .2s, color .2s; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.form-label { font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form-control, .form-select {
  background: var(--card); border: 1px solid #e0dbce; border-radius: 8px; padding: 11px 14px; font-size: .95rem; color: var(--ink);
}
.form-control:focus, .form-select:focus { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 151, 106, .2); }
.form-control::placeholder { color: #a8a8a8; font-size: .85rem; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: .82rem; }
/* CTA pill: the dark dial on the side grows into the whole button on hover */
.cta-pill {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 24px 7px 7px; border: 1px solid rgba(26, 26, 26, .16); border-radius: 999px;
  color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .35s .05s, border-color .35s;
}
.cta-pill::before {
  content: ""; position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: 38px; border-radius: 999px;
  background: var(--ink); transition: width .5s cubic-bezier(.7, 0, .2, 1);
}
.cta-pill:hover, .cta-pill:focus-visible { color: #fff; border-color: var(--ink); }
.cta-pill:hover::before, .cta-pill:focus-visible::before { width: calc(100% - 12px); }
.cta-icon { order: 2; width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; color: var(--gold); margin-right: auto; }
.cta-icon svg { transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.cta-pill:hover .cta-icon svg { transform: translateX(-4px); }
.cta-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-dark::before { background: var(--gold); }
.cta-dark .cta-icon { color: var(--ink); }
.cta-dark:hover { color: var(--ink); }
.cta-small { font-size: .82rem; padding: 4px 16px 4px 4px; gap: 10px; }
.cta-small::before { top: 4px; bottom: 4px; left: 4px; width: 30px; }
.cta-small .cta-icon { width: 30px; height: 30px; }
.cta-small:hover::before { width: calc(100% - 8px); }


.btn-logout {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  background: #fdf0f0; color: #c0392b; border: 1px solid #f3c9c9; transition: background .2s, color .2s, border-color .2s;
}
.btn-logout:hover { background: #c0392b; border-color: #c0392b; color: #fff; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 20px; left: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast-msg {
  background: var(--dark); color: #f2efe9; padding: 13px 18px; border-radius: 8px; font-size: .9rem; min-width: 260px;
  border-right: 3px solid var(--gold); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); animation: toastIn .3s ease;
}
.toast-msg.error { border-right-color: #e06a6a; }
.toast-msg.warning { border-right-color: #e0b04d; }
.toast-msg.success { border-right-color: #5cb88a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Page chrome ---------- */
.page-head { padding: 34px 0 18px; }
.page-title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; margin: 0; }
.page-intro { color: #555; line-height: 2; max-width: 820px; margin-top: 12px; font-size: .95rem; }
.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.section-kicker { font-size: .8rem; letter-spacing: 2px; color: var(--gold); font-weight: 700; display: block; margin-bottom: .5rem; }
.section-heading { font-size: 1.7rem; font-weight: 800; }
.gold-divider { width: 45px; height: 2px; background: var(--gold); }
.panel { background: var(--surface); border: 1px solid #e5e0d8; border-radius: 14px; padding: 24px; }
.panel-soft { background: var(--card); border: 1px solid #e0dbce; border-radius: 14px; padding: 24px; }

/* ---------- Product card ---------- */
.product-brand { font-size: .72rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.old-price { display: block; font-size: .78rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; }
.pcard-media {
  position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5;
  background: radial-gradient(120% 90% at 50% 30%, #fbfaf7 0%, #efeae1 100%);
}
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; }
.pcard-img-alt { opacity: 0; }
.pcard:hover .pcard-img { transform: scale(1.045); }
.pcard.has-alt:hover .pcard-img-alt { opacity: 1; }
.pcard-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .05); pointer-events: none; }
.pcard.is-soldout .pcard-img { filter: grayscale(.9) contrast(.9); opacity: .75; }

.pcard-tags { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.pcard-tag {
  padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 600; line-height: 1;
  background: rgba(255, 255, 255, .88); color: var(--ink); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.pcard-tag.is-sale { background: var(--ink); color: var(--gold-soft); }

.pcard-cart { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; transform: translateY(calc(100% + 16px)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-cart, .pcard:focus-within .pcard-cart { transform: none; }
.pcard-cart-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 12px;
  background: rgba(21, 21, 21, .92); color: #fff; font-size: .85rem; font-weight: 600; backdrop-filter: blur(8px); transition: background .25s;
}
.pcard-cart-btn:hover { background: var(--gold-dark); }
.pcard-cart-btn.is-done { background: var(--success); }

.pcard-body { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.pcard-brand { font-family: Georgia, serif; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.pcard-title { font-size: .95rem; font-weight: 600; line-height: 1.75; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) no-repeat 100% 100% / 0 1px; transition: background-size .45s cubic-bezier(.2, .7, .2, 1); }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard:hover .pcard-title a { background-size: 100% 1px; }
.pcard-price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.pcard-price strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.pcard-price small { font-size: .75rem; color: var(--muted); }
.pcard-price del { font-size: .78rem; color: #a3a3a3; margin-right: 4px; }
.pcard-notify { font-size: .8rem; color: var(--muted); }

@media (hover: none) {
  .pcard-cart { left: auto; right: auto; bottom: 10px; left: 10px; transform: none; }
  .pcard-cart-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .pcard-cart-btn span { display: none; }
}

/* ---------- Shop listing ---------- */
.filter-box { background: #fff; border: 1px solid #e5e0d8; border-radius: 12px; padding: 20px; position: sticky; top: 150px; }
.filter-box h3 { font-size: .9rem; font-weight: 700; margin: 0 0 12px; }
.filter-group + .filter-group { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.filter-group .form-check { font-size: .88rem; margin-bottom: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; color: var(--ink); background: #fff; transition: all .2s; }
.chip:hover, .chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.subcat-row { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.subcat-row a { position: relative; padding-bottom: 10px; font-size: .88rem; color: var(--muted); text-decoration: none; }
.subcat-row a.active, .subcat-row a:hover { color: var(--ink); }
.subcat-row a.active::after { content: ""; position: absolute; right: 0; left: 0; bottom: -1px; height: 2px; background: var(--gold); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.toolbar .form-select { width: auto; padding: 7px 36px 7px 12px; font-size: .85rem; background-color: #fff; }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed #e0dbce; border-radius: 12px; }
.pagination-wrap { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: #fff; font-size: .9rem;
}
.pagination-wrap .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination-wrap a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 991.98px) { .filter-box { position: static; } }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: start; margin-top: 18px; }
.pd-gallery { position: relative; min-width: 0; }
.pd-main {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; max-height: max(420px, calc(100vh - 350px)); cursor: zoom-in;
  background: radial-gradient(120% 90% at 50% 30%, #fbfaf7 0%, #ece6db 100%); touch-action: pan-y;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.pd-main img.is-fading { opacity: 0; }
.pd-main:hover img { transform: scale(1.03); }
.pd-zoom {
  position: absolute; left: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--ink); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.pd-main:hover .pd-zoom, .pd-main:focus-visible .pd-zoom { opacity: 1; transform: none; }
.pd-count {
  position: absolute; right: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: .78rem;
  background: rgba(21, 21, 21, .66); color: #fff; backdrop-filter: blur(6px);
}
.pd-thumbs-wrap { position: relative; margin-top: 12px; }
.pd-thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; padding: 3px; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
  flex: 0 0 76px; height: 95px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; scroll-snap-align: start; background: var(--card);
  opacity: .55; outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity .25s, outline-color .25s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: .9; }
.pd-thumb.is-active { opacity: 1; outline-color: var(--gold); }
.pd-thumbs-arrow {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; border: 1px solid #ece7de; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  transition: background .2s, color .2s;
}
.pd-thumbs-arrow[hidden] { display: none; }
.pd-thumbs-arrow:hover { background: var(--ink); color: #fff; }
.pd-thumbs-arrow.is-prev { right: -8px; }
.pd-thumbs-arrow.is-next { left: -8px; }
@media (max-width: 991.98px) {
  .pd-main { border-radius: 18px; aspect-ratio: 4 / 5; max-height: none; }
  .pd-zoom { opacity: 1; transform: none; width: 34px; height: 34px; }
  .pd-thumb { flex-basis: 62px; height: 78px; border-radius: 10px; }
  .pd-thumbs-arrow { display: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 60px 80px;
  background: rgba(12, 11, 10, .98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-stage img { max-width: min(100%, 980px); max-height: 100%; object-fit: contain; border-radius: 10px; transition: opacity .25s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.lb-stage img.is-swapping { opacity: 0; transform: scale(.985); }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb-close { top: 20px; left: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { right: 20px; }
.lb-next { left: 20px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: .85rem; }
.lb-count b { color: #fff; }
@media (max-width: 767.98px) {
  .lightbox { padding: 70px 0; }
  .lb-stage img { border-radius: 0; }
  .lb-nav { top: auto; bottom: 14px; transform: none; width: 42px; height: 42px; }
  .lb-prev { right: 16px; }
  .lb-next { left: 16px; }
}

.pd-info { position: sticky; top: 150px; padding-top: 8px; }
.pd-brand { font-family: Georgia, serif; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); text-decoration: none; }
.pd-brand:hover { color: var(--ink); }
.pd-title { font-size: clamp(1.45rem, 2.4vw, 2.05rem); font-weight: 800; line-height: 1.55; margin: 12px 0 6px; }
.pd-model { display: block; font-size: .8rem; color: var(--muted); }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin: 26px 0 8px; }
.pd-price strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
.pd-price small { font-size: .85rem; color: var(--muted); }
.pd-price del { font-size: .95rem; color: #a8a8a8; margin-right: 8px; }
.pd-off { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--gold-soft); }
.pd-stock { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin: 0 0 22px; color: var(--muted); }
.pd-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pd-stock.is-out::before { background: #b9b9b9; }
.pd-lead { color: #555; line-height: 2.1; font-size: .95rem; margin: 0 0 26px; max-width: 520px; }
.pd-buy { display: flex; gap: 12px; align-items: stretch; }
.pd-colors { border: 0; padding: 0; margin: 0 0 18px; }
.pd-colors legend { font-size: .92rem; color: var(--muted); margin-bottom: 10px; float: none; width: auto; }
.pd-colors legend b { color: var(--ink); font-weight: 700; }
.pd-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-color { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid #e2ddd3; border-radius: 999px; background: #fff; font-size: .9rem; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pd-color input { position: absolute; opacity: 0; pointer-events: none; }
.pd-color:hover { border-color: var(--gold); }
.pd-color:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pd-color:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pd-color.is-out { color: var(--muted); cursor: not-allowed; text-decoration: line-through; opacity: .6; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex-shrink: 0; }
.line-color { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.pd-buy .qty-pill { padding: 5px; }
.pd-cta {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transition: background .25s, transform .1s;
}
.pd-cta:hover { background: var(--gold-dark); color: #fff; }
.pd-cta:active { transform: scale(.99); }
.pd-cta.is-done { background: var(--success); }
.pd-cta-ghost { background: transparent; color: var(--ink); border: 1px solid #d9d3c7; }
.pd-cta-ghost:hover { background: var(--ink); color: #fff; }
.pd-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 34px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-keys div { padding: 16px 4px; }
.pd-keys div + div { border-right: 1px solid var(--line); padding-right: 16px; }
.pd-keys dt { font-size: .72rem; font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.pd-keys dd { margin: 0; font-weight: 700; font-size: .95rem; }
.pd-keys dd small { font-weight: 400; color: var(--muted); font-size: .72rem; }

.pd-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.pd-details h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.pd-about .rich-text { max-width: 640px; }
.pd-specs dl { margin: 0; }
.pd-specs dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pd-specs dt { font-weight: 400; color: var(--muted); }
.pd-specs dd { margin: 0; font-weight: 600; text-align: left; }
.pd-related { margin-top: 80px; }
@media (max-width: 991.98px) {
  .pd { grid-template-columns: 1fr; gap: 26px; }
  .pd-info { position: static; }
  .pd-details { grid-template-columns: 1fr; gap: 40px; margin-top: 50px; padding-top: 36px; }
}
@media (max-width: 575.98px) {
  .pd-keys { grid-template-columns: 1fr 1fr; }
  .pd-keys div:nth-child(odd) { border-right: 0; padding-right: 4px; }
  .pd-keys div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.rich-text { line-height: 2.1; color: #333; font-size: .97rem; }
.rich-text img { height: auto; border-radius: 8px; }
.rich-text h2, .rich-text h3 { font-weight: 800; margin: 1.6em 0 .7em; font-size: 1.25rem; }

/* ---------- Cart & checkout flow ---------- */
.steps { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 10px auto 30px; max-width: 560px; counter-reset: step; }
.steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .8rem; color: #a3a3a3; }
.steps li::before { content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 1px; background: #e2ddd3; z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li span { position: relative; z-index: 1; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid #d9d3c7; font-weight: 700; font-size: .82rem; }
.steps li.is-current { color: var(--ink); font-weight: 700; }
.steps li.is-current span { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); box-shadow: 0 0 0 5px rgba(21, 21, 21, .07); }
.steps li.is-done { color: var(--ink); }
.steps li.is-done span { background: var(--gold); border-color: var(--gold); color: #fff; }
.steps li.is-done::before, .steps li.is-current::before { background: var(--gold); }

.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.flow-count { font-size: .82rem; color: var(--muted); background: #fff; border: 1px solid #ece7de; border-radius: 999px; padding: 5px 14px; }
.flow-alert { background: #fdf0f0; color: var(--danger); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: .88rem; }

.bag { background: #fff; border: 1px solid #ece7de; border-radius: 18px; padding: 6px 22px; }
.bag-line { display: grid; grid-template-columns: 104px 1fr auto; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid #f1ede5; }
.bag-line:last-child { border-bottom: 0; }
.bag-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: radial-gradient(120% 90% at 50% 30%, #fbfaf7 0%, #efeae1 100%); }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bag-thumb:hover img { transform: scale(1.05); }
.bag-info { display: flex; flex-direction: column; min-width: 0; }
.bag-title { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.7; }
.bag-title:hover { color: var(--gold-dark); }
.bag-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.bag-meta span { font-size: .72rem; color: var(--muted); background: var(--card); border-radius: 999px; padding: 3px 10px; }
.bag-warn { color: var(--danger); font-size: .78rem; margin: 0 0 8px; }
.bag-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 2px; }
.qty-pill { display: inline-flex; align-items: center; border: 1px solid #e2ddd3; border-radius: 999px; padding: 3px; background: #fff; }
.qty-pill button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; font-size: 1rem; color: var(--ink); transition: background .2s; }
.qty-pill button:hover { background: var(--card); }
.qty-pill input { width: 34px; border: 0; text-align: center; font-weight: 700; background: transparent; outline: none; -moz-appearance: textfield; }
.qty-pill input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bag-remove { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; color: #9a9a9a; font-size: .8rem; transition: color .2s; }
.bag-remove:hover { color: var(--danger); }
.bag-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.bag-price strong { font-size: 1.05rem; font-weight: 800; }
.bag-price small { font-size: .72rem; color: var(--muted); }
.bag-price del { font-size: .78rem; color: #a3a3a3; }
.bag-unit { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.bag-continue { display: inline-block; margin-top: 16px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.bag-continue:hover { color: var(--ink); }
@media (max-width: 575.98px) {
  .bag { padding: 4px 14px; }
  .bag-line { grid-template-columns: 84px 1fr; gap: 14px; }
  .bag-price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
}

.summary { background: #fff; border: 1px solid #ece7de; border-radius: 18px; padding: 22px; position: sticky; top: 150px; }
.summary h2 { font-size: 1rem; font-weight: 800; margin: 0 0 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 11px; }
.summary-line span:first-child { color: var(--muted); }
.summary-line.is-save span { color: var(--success) !important; font-weight: 600; }
.summary-total-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #e2ddd3; padding-top: 14px; margin: 14px 0 18px; font-weight: 700; }
.summary-total-line strong { font-size: 1.35rem; font-weight: 800; }
.summary-total-line small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.summary-cta {
  display: block; width: 100%; text-align: center; padding: 14px; border: 0; border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none; transition: background .25s, transform .1s;
}
.summary-cta:hover { background: var(--gold-dark); color: #fff; }
.summary-cta:active { transform: scale(.99); }
.summary-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: .75rem; color: var(--muted); }
.summary-note a { color: var(--gold-dark); }
.summary-info { background: #f6f1e7; color: #7a6440; border-radius: 12px; padding: 12px 14px; font-size: .8rem; line-height: 1.9; margin: 0 0 14px; }
.summary-items { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.summary-items li { display: flex; gap: 12px; align-items: center; }
.summary-items img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--card); }
.summary-items div { display: flex; flex-direction: column; font-size: .85rem; min-width: 0; }
.summary-items span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-items small { color: var(--muted); font-size: .75rem; }
@media (max-width: 991.98px) { .summary { position: static; } }

.form-card { background: #fff; border: 1px solid #ece7de; border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.form-card h2 { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 800; margin: 0 0 16px; }
.form-card h2 span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--gold-dark); font-size: .78rem; }
.form-card h2 small { font-weight: 400; color: var(--muted); font-size: .8rem; }

.bag-empty { text-align: center; padding: 60px 20px 30px; }
.bag-empty-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #ece7de; color: var(--gold-dark); }
.bag-empty p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- Auth ---------- */
.auth-container { display: flex; align-items: center; justify-content: center; padding: 50px 15px; }
.auth-card { background: #fff; border: 1px solid #e5e0d8; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .04); width: 100%; max-width: 440px; padding: 36px 30px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-card .lead-text { color: var(--muted); font-size: .9rem; text-align: center; margin-bottom: 26px; }
.otp-input { text-align: center; font-size: 1.5rem !important; letter-spacing: .6em; font-weight: 700; }
.auth-switch { display: block; margin-top: 16px; text-align: center; color: var(--gold-dark); font-size: .9rem; font-weight: 600; text-decoration: none; }
.auth-switch:hover { text-decoration: underline; color: var(--gold-dark); }
.link-gold { color: var(--gold); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; }
.link-gold:hover { text-decoration: underline; color: var(--gold-dark); }
.link-gold:disabled { color: var(--muted); text-decoration: none; }

/* ---------- Orders ---------- */
.status-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.status-pending { background: #fff3dc; color: #946313; }
.status-paid, .status-processing { background: #e9eefb; color: #3b4fb8; }
.status-shipped { background: #dff1f5; color: #1f7486; }
.status-delivered { background: #e3f3e8; color: var(--success); }
.status-canceled { background: #fbe9e9; color: var(--danger); }

.order-cards { display: flex; flex-direction: column; gap: 12px; }
.order-card { display: block; background: #fff; border: 1px solid #ece7de; border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .25s, box-shadow .25s, transform .25s; }
.order-card:hover { border-color: var(--gold); box-shadow: 0 12px 26px rgba(0, 0, 0, .05); transform: translateY(-2px); color: var(--ink); }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-card-head strong { display: block; font-size: .95rem; }
.order-card-head small { color: var(--muted); font-size: .78rem; }
.order-card-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; }
.order-thumbs { display: flex; gap: 6px; }
.order-thumbs img, .order-thumb-empty, .order-thumb-more { width: 44px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--card); }
.order-thumb-more { display: grid; place-items: center; font-size: .75rem; color: var(--muted); }
.order-card-total { text-align: left; }
.order-card-total > small { display: block; color: var(--muted); font-size: .72rem; }
.order-card-total strong small { font-size: .72rem; color: var(--muted); font-weight: 400; }
.order-card-total strong { font-size: 1rem; }
.order-empty { text-align: center; padding: 36px 16px; background: #fff; border: 1px dashed #e2ddd3; border-radius: 16px; color: var(--muted); }

.order-timeline { list-style: none; display: flex; padding: 0; margin: 4px 0 6px; }
.order-timeline li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .78rem; color: #a3a3a3; text-align: center; }
.order-timeline li::before { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: #ece7de; }
.order-timeline li:first-child::before { display: none; }
.order-timeline li span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #ddd6c9; }
.order-timeline li.is-done { color: var(--ink); }
.order-timeline li.is-done span { background: var(--gold); border-color: var(--gold); }
.order-timeline li.is-done::before, .order-timeline li.is-current::before { background: var(--gold); }
.order-timeline li.is-current { color: var(--ink); font-weight: 700; }
.order-timeline li.is-current span { border-color: var(--ink); box-shadow: 0 0 0 5px rgba(184, 151, 106, .18); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 9px rgba(184, 151, 106, .06); } }
.order-canceled { margin: 0; color: var(--danger); font-weight: 600; }
.tracking-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--card); font-size: .85rem; }
.tracking-box strong { font-size: 1rem; letter-spacing: .04em; }
.order-lines { list-style: none; padding: 0; margin: 0; }
.order-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1ede5; }
.order-lines li:last-child { border-bottom: 0; }
.order-lines img, .order-lines .order-thumb-empty { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; display: block; }
.order-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-line-info a, .order-line-info span { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.order-line-info small { color: var(--muted); font-size: .78rem; }
.address-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: .86rem; line-height: 1.9; margin-bottom: 8px; color: #444; }

.result-card { text-align: center; background: #fff; border: 1px solid #ece7de; border-radius: 22px; padding: 44px 28px; }
.result-mark { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; }
.is-success .result-mark { background: #e3f3e8; color: var(--success); box-shadow: 0 0 0 10px rgba(47, 125, 87, .06); }
.is-failed .result-mark { background: #fbe9e9; color: var(--danger); box-shadow: 0 0 0 10px rgba(180, 65, 65, .06); }
.result-card h1 { font-size: 1.45rem; font-weight: 800; margin-bottom: 10px; }
.result-card > p { color: var(--muted); line-height: 2; max-width: 460px; margin: 0 auto 22px; }
.result-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 24px; }
.result-facts div { background: var(--bg); border-radius: 12px; padding: 12px; }
.result-facts dt { font-size: .75rem; color: var(--muted); font-weight: 400; }
.result-facts dd { margin: 4px 0 0; font-weight: 800; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; margin: 0 auto; }

/* ---------- Home ---------- */
.hero-banners { padding-top: 22px; }
.banner { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 4.6; max-height: 420px; width: 100%; background: var(--dark); isolation: isolate; }
.banner picture, .banner img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner img { object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.swiper-slide-active .banner img, .banner-single img, .swiper-slide-active.banner img { transform: scale(1); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.banner.tone-dark::after { background: linear-gradient(270deg, rgba(10, 10, 12, .78) 0%, rgba(10, 10, 12, .45) 38%, transparent 70%); }
.banner.tone-light::after { background: linear-gradient(270deg, rgba(249, 249, 249, .9) 0%, rgba(249, 249, 249, .55) 38%, transparent 70%); }
.banner-copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 44%; padding: 0 48px; }
.tone-dark .banner-copy { color: #fff; }
.banner-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: var(--gold-soft); margin-bottom: 14px; }
.banner-kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.tone-light .banner-kicker { color: var(--gold-dark); }
.banner-title { font-size: clamp(1.2rem, 2.3vw, 1.9rem); font-weight: 800; line-height: 1.55; margin: 0 0 8px; }
.banner-copy p { font-size: .88rem; line-height: 1.9; opacity: .85; margin: 0 0 18px; }
.swiper-slide-active .banner-copy > *, .banner-single .banner-copy > * { animation: bannerIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.swiper-slide-active .banner-copy > :nth-child(2) { animation-delay: .08s; }
.swiper-slide-active .banner-copy > :nth-child(3) { animation-delay: .16s; }
.swiper-slide-active .banner-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(18px); } }
.cta-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.cta-light::before { background: #fff; }
.cta-light .cta-icon { color: var(--ink); }
.cta-light:hover { color: var(--ink); border-color: #fff; }
.banner-controls { position: absolute; z-index: 2; left: 28px; bottom: 24px; display: flex; align-items: center; gap: 14px; color: #fff; font-size: .8rem; }
.banner-count b { font-weight: 700; }
.banner-progress { width: 90px; height: 2px; background: rgba(255, 255, 255, .25); border-radius: 2px; overflow: hidden; }
.banner-progress i { display: block; height: 100%; width: 100%; background: var(--gold-soft); transform-origin: right; transform: scaleX(0); }
.banner-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .2); color: #fff; display: grid; place-items: center; padding: 0; transition: background .25s, border-color .25s; }
.banner-arrow .cta-icon { width: auto; height: auto; color: inherit; margin: 0; }
.banner-arrow:not(.is-next) svg { transform: rotate(180deg); }
.banner-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 767.98px) {
  .banner { aspect-ratio: 1 / 1; max-height: none; border-radius: 14px; }
  .banner.tone-dark::after { background: linear-gradient(0deg, rgba(10, 10, 12, .85) 0%, rgba(10, 10, 12, .35) 50%, transparent 75%); }
  .banner.tone-light::after { background: linear-gradient(0deg, rgba(249, 249, 249, .92) 0%, rgba(249, 249, 249, .5) 50%, transparent 75%); }
  .banner-copy { max-width: 100%; justify-content: flex-end; padding: 0 20px 70px; }
  .banner-controls { left: 50%; transform: translateX(-50%); bottom: 20px; }
}

.home-intro { padding-top: 56px; }
.section-lead { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }

.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.rail-tabs { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.rail-tab { position: relative; background: none; border: 0; padding: 0 0 14px; font-size: 1.05rem; font-weight: 700; color: #9a9a9a; white-space: nowrap; transition: color .25s; }
.rail-tab::after { content: ""; position: absolute; right: 0; bottom: -1px; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.7, 0, .2, 1); }
.rail-tab:hover { color: var(--ink); }
.rail-tab.active { color: var(--ink); }
.rail-tab.active::after { transform: scaleX(1); }
.rail-head .cta-pill { margin-bottom: 10px; }
.rail-panel:not([hidden]) { animation: bannerIn .5s ease both; }

.featured-band { padding: 56px 0 10px; background: linear-gradient(180deg, transparent, #f1ede5 30%, #f1ede5 70%, transparent); }

.budget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.budget-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: 22px; border-radius: 14px;
  background: #fff; border: 1px solid #ece7de; text-decoration: none; color: var(--ink); transition: border-color .3s, transform .3s, box-shadow .3s;
}
.budget-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .06); color: var(--ink); }
.budget-label { font-size: 1.05rem; font-weight: 800; }
.budget-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); }
.budget-meta .cta-icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ece7de; margin: 0; transition: background .3s, color .3s, border-color .3s; }
.budget-card:hover .cta-icon { background: var(--ink); border-color: var(--ink); }
@media (max-width: 767.98px) { .budget-grid { grid-template-columns: repeat(2, 1fr); } }

.not-found { padding: 80px 0 40px; text-align: center; }
.not-found-code { display: block; font-family: Georgia, serif; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 18px; }
.luxury-swiper { width: 100%; overflow: hidden !important; padding-top: 30px; padding-bottom: 60px; }
.luxury-swiper .swiper-slide {
  width: 280px; height: 400px; border-radius: 20px; overflow: hidden; position: relative; background: var(--card);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .15); border: 1px solid rgba(184, 151, 106, .2);
}
.luxury-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .85)); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; text-decoration: none; }
.slide-overlay small { color: var(--gold-soft); letter-spacing: .15em; font-size: .72rem; }
.slide-overlay strong { font-size: 1rem; margin: 4px 0; }
.luxury-swiper .swiper-pagination { bottom: 18px; left: 0; width: 100%; display: flex; justify-content: center; gap: 8px; }
.swiper-pagination-bullet { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 4px; background: #ccc; opacity: .7; cursor: pointer; transition: width .3s, background .3s; }
.swiper-pagination-bullet-active { background: var(--gold) !important; width: 22px; border-radius: 6px; opacity: 1; }
.category-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--dark); text-decoration: none; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: transform .5s, opacity .3s; }
.category-tile:hover img { transform: scale(1.05); opacity: .55; }
.category-tile.is-empty { background: radial-gradient(120% 100% at 50% 30%, #2a2622 0%, #141312 100%); display: grid; place-items: center; }
.category-tile .category-tile-mark { width: 46%; height: auto; opacity: .22; object-fit: contain; transition: opacity .4s, transform .6s; }
.category-tile.is-empty:hover .category-tile-mark { opacity: .35; transform: scale(1.04); }
.category-tile-text { position: absolute; bottom: 18px; right: 20px; left: 20px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; }
.category-tile-text strong { font-size: 1.2rem; }
.category-tile-text strong::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-top: 8px; transition: width .3s; }
.category-tile:hover .category-tile-text strong::after { width: 56px; }
.category-tile-text small { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.process-section { background: #1a1a1a; color: #e0e0e0; padding: 80px 0; position: relative; overflow: hidden; }
.process-header { text-align: center; margin-bottom: 60px; }
.process-header .sub-title { display: block; letter-spacing: .3em; font-size: .8rem; color: #888; }
.process-header .title { font-size: 3rem; font-weight: 300; margin-top: 10px; color: #fff; font-family: Georgia, serif; }
.process-left-image { position: absolute; left: 20px; top: 130px; width: 35%; z-index: 2; }
.process-left-image img { width: 100%; height: auto; border-radius: 4px; }
.process-timeline { position: relative; max-width: 500px; margin-left: auto; margin-right: 50px; padding-left: 40px; }
/* Timeline: the line fills with gold as you scroll; each step marker is a small dial that wakes up */
.timeline-line { position: absolute; left: 0; top: 14px; bottom: 60px; width: 1px; background: #333; }
.timeline-progress { position: absolute; top: 0; left: 0; width: 1px; height: calc(var(--progress, 0) * 100%); background: linear-gradient(180deg, transparent, var(--gold) 20%, #e3c895); box-shadow: 0 0 10px rgba(212, 179, 127, .6); }
.process-item { position: relative; margin-bottom: 54px; transition: opacity .6s, transform .6s; }
.step-dial {
  position: absolute; left: -51px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: #1a1a1a; border: 1.5px solid #4a4a4a; transition: border-color .5s, box-shadow .5s;
}
.step-dial::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.step-dial i { position: absolute; left: 50%; bottom: 50%; width: 1.5px; height: 7px; margin-left: -.75px; border-radius: 2px; background: #6a6a6a; transform-origin: bottom center; transition: background .5s; }
.step-dial::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #6a6a6a; transition: background .5s; }
.process-item.is-active .step-dial { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(184, 151, 106, .1), 0 0 18px rgba(184, 151, 106, .35); }
.process-item.is-active .step-dial i, .process-item.is-active .step-dial::before { background: var(--gold); }
.process-item.is-active .step-dial i { animation: dialTurn 1.4s cubic-bezier(.6, 0, .3, 1) forwards; }
.process-item.is-active .step-dial::after { animation: dialPing 1.6s ease-out 1; }
@keyframes dialTurn { from { transform: rotate(-180deg); } to { transform: rotate(0); } }
@keyframes dialPing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
.step-number {
  font-family: Georgia, serif; font-size: 2.1rem; line-height: 1; margin-bottom: 10px; color: transparent;
  -webkit-text-stroke: 1px #6a6a6a; transition: color .6s, -webkit-text-stroke-color .6s;
}
.process-item.is-active .step-number { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.js .process-item:not(.is-active) { opacity: .45; }
.step-title { font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.step-desc { font-size: .95rem; line-height: 1.8; color: #aaa; }
@media (max-width: 992px) {
  .process-left-image { position: static; width: 100%; margin-bottom: 40px; }
  .process-timeline { margin: 0 auto; max-width: 100%; }
}
.brand-marquee { overflow: hidden; padding: 60px 0; border-bottom: 1px solid var(--ink); }
.marquee-wrapper { display: flex; overflow: hidden; direction: ltr; }
.marquee-content { display: flex; gap: 30px; flex-shrink: 0; padding-right: 30px; animation: marqueeMove 25s linear infinite; }
.marquee-wrapper:hover .marquee-content { animation-play-state: paused; }
.brand-box {
  flex: 0 0 200px; height: 130px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #333;
  font-family: Georgia, serif; font-size: 2rem; border: 1px solid rgba(0, 0, 0, .08); text-decoration: none; transition: .3s;
}
.brand-box:hover { border-color: var(--gold); color: var(--gold); }
@keyframes marqueeMove { to { transform: translateX(-100%); } }
@media (max-width: 768px) { .brand-box { flex: 0 0 140px; height: 100px; font-size: 1.4rem; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .marquee-content { animation: none; } }
.post-card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #ece7de; border-radius: 12px; overflow: hidden; height: 100%; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .06); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 18px; }
.post-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.7; margin: 6px 0; }
.post-card p { color: var(--muted); font-size: .85rem; line-height: 1.9; margin: 0; }
.post-meta { font-size: .78rem; color: var(--muted); }

.category-call {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #f2efe9; text-decoration: none; font-size: .88rem; transition: background .25s;
}
.category-call b { color: var(--gold-soft); font-size: 1rem; }
.category-call:hover { background: #2a2622; color: #fff; }

/* ---------- Contact ---------- */
.contact-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.contact-channel {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #ece7de;
  text-decoration: none; color: var(--ink); transition: border-color .25s, transform .25s, box-shadow .25s;
}
.contact-channel:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .05); color: var(--ink); }
.contact-label { font-size: .78rem; color: var(--muted); }
.contact-channel strong { font-size: 1.1rem; font-weight: 800; align-self: flex-start; }
.branch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.branch-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid #ece7de; }
.branch-badge { font-size: .78rem; font-weight: 700; color: var(--gold-dark); background: var(--card); border-radius: 999px; padding: 4px 12px; }
.branch-address { margin: 0; line-height: 2; font-size: .92rem; color: #333; flex: 1; }
.branch-lines { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.branch-lines a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.branch-lines a span { color: var(--muted); }
.branch-lines a:hover b { color: var(--gold-dark); }
@media (max-width: 991.98px) { .branch-cards { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.heritage-tag { font-size: .8rem; letter-spacing: 3px; color: var(--gold); font-weight: 700; }
.luxury-image-frame { position: relative; padding: 12px; background: #fff; border: 2px solid rgba(0, 0, 5, .08); }
.luxury-img { display: block; object-fit: cover; height: 380px; width: 100%; }
.frame-corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); }
.corner-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.founder-quote { font-style: italic; color: #333; font-size: .95rem; background: rgba(197, 168, 128, .06); border-right: 3px solid var(--gold); }
.stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.stat-title { font-size: .85rem; color: #666; }
.heritage-pillar-card { background: #fff; border: 1px solid rgba(0, 0, 0, .08); transition: all .3s; }
.heritage-pillar-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, .04); }
.pillar-roman { font-size: 1.2rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: .75rem; font-family: Georgia, serif; }
.pillar-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.pillar-text { font-size: .9rem; color: #666; line-height: 1.8; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #f2efe9; padding: 80px 0 24px; border-top: 1px solid rgba(184, 151, 106, .25); margin-top: 70px; }
.footer-main { padding-bottom: 60px; }
.footer-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #f2efe9; text-decoration: none; margin-bottom: 22px; }
.footer-logo img { height: 64px; width: auto; }
.footer-logo-fa { color: var(--gold); font-size: .85rem; }
.footer-about { max-width: 330px; margin: 0 0 22px; color: #a8a8a8; font-size: .9rem; line-height: 2; }
.footer-collection-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 7px; color: var(--gold-soft); border-bottom: 1px solid rgba(212, 179, 127, .55); font-size: .9rem; text-decoration: none; transition: gap .25s, color .25s; }
.footer-collection-link:hover { gap: 16px; color: #fff; }
.footer-heading { position: relative; margin: 0 0 24px; padding-bottom: 12px; color: var(--gold-soft); font-size: .85rem; font-weight: 400; }
.footer-heading::after { content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 1px; background: var(--gold); }
.footer-links li { margin-bottom: 13px; }
.footer-links a { color: #a9a9a9; font-size: .88rem; text-decoration: none; transition: color .25s, padding-right .25s; }
.footer-links a:hover { padding-right: 6px; color: #f2efe9; }
.footer-contact p { margin-bottom: 15px; color: #a9a9a9; font-size: .88rem; }
.footer-contact span { display: inline-block; min-width: 85px; color: var(--gold-soft); }
.footer-contact a { color: #e8e1d5; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 36px; }
.footer-branch { border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 18px; background: rgba(255, 255, 255, .02); }
.footer-branch-name { display: inline-block; font-size: .75rem; color: var(--gold-soft); border: 1px solid rgba(212, 179, 127, .35); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.footer-branch p { color: #b9b9b9; font-size: .85rem; line-height: 2; margin: 0 0 10px; }
.footer-branch-phones { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; }
.footer-branch-phones a { color: #e8e1d5; text-decoration: none; }
.footer-branch-phones a:hover { color: var(--gold-soft); }
.footer-branch-map { color: var(--gold-soft) !important; margin-right: auto; }
@media (max-width: 991.98px) { .footer-branches { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p, .footer-bottom a { margin: 0; color: #737373; font-size: .77rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-bottom-links { display: flex; gap: 20px; }
/* eNamad's own image; a white card keeps it legible on the dark footer. */
.footer-enamad a { display: inline-flex; padding: 6px; border-radius: 12px; background: #fff; }
.footer-enamad img { display: block; width: 84px; height: auto; }
.footer-credit { display: flex; justify-content: center; padding-top: 22px; margin-top: 22px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.made-by { display: inline-flex; align-items: center; gap: 8px; color: #8a8a8a; font-size: .8rem; text-decoration: none; transition: color .3s; }
.made-by strong { color: var(--gold-soft); font-weight: 600; }
.made-by:hover { color: #f2efe9; }

/* ---------- Little extras ---------- */
::selection { background: var(--gold); color: #fff; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .process-item.is-active .step-dial i { animation: none; }
  .js .process-item:not(.is-active) { opacity: 1; }
}

@media (max-width: 767.98px) {
  .site-footer { padding-top: 55px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Bootstrap's g-5 gutter is wider than the mobile container padding and pushes rows off-screen. */
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
