:root {
  --wine: #6B1E28;
  --wine-deep: #4A141C;
  --wine-ink: #2E0B11;
  --gold: #C9A55A;
  --gold-light: #E3C88E;
  --gold-pale: #EBD7A4;
  --ivory: #F6F0E6;
  --paper: #FFFBF4;
  --sand: #F3EADB;
  --line: #E2D5BF;
  --line-strong: #D9C9AE;
  --ink: #2B1D16;
  --ink-soft: #5C4B40;
  --muted: #6B5A4E;
  --accent-text: #8A2A36;
  --radius: 16px;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Amiri", "Times New Roman", serif;
  --font-latin: "Cormorant Garamond", Garamond, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--wine); }
a:hover { color: var(--wine-deep); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn, .btn-outline, .btn-gold, .btn-outline-gold, .btn-ghost, .btn-plain, .btn-wa {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn { background: var(--wine); color: #FBF4E8; }
.btn:hover { background: var(--wine-deep); color: #FBF4E8; }
.btn svg { stroke: #FBF4E8; fill: none; stroke-width: 2; }
.btn-outline { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn-outline:hover { background: var(--wine); color: #FBF4E8; }
.btn-gold { background: var(--gold-light); color: #3A1017; font-weight: 700; }
.btn-gold:hover { background: var(--gold-pale); }
.btn-outline-gold { border-color: var(--gold-light); color: #F3E3BF; background: transparent; }
.btn-outline-gold:hover { background: rgba(227,200,142,.12); }
.btn-ghost { min-height: 44px; padding: 8px 16px; border-color: var(--wine); color: var(--wine); background: transparent; font-size: 14px; }
.btn-ghost svg { fill: none; stroke: var(--wine); stroke-width: 2; }
.btn-ghost:hover { background: rgba(107,30,40,.06); }
.btn-plain { border-color: var(--line-strong); background: transparent; border-radius: 12px; font-weight: 500; }
.btn-wa { background: #1E7D45; color: #fff; }
.btn-wa:hover { background: #17633A; color: #fff; }
button[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.topbar { background: var(--ink); color: #EADBC0; text-align: center; font-size: 13px; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,240,230,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-ar { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--wine); }
.brand-ar.light { color: #F6EBD8; }
.brand-en { font-family: var(--font-latin); font-size: 14px; font-weight: 600; letter-spacing: 4px; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-weight: 500; font-size: 15px; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 10px 0; }
.main-nav a:hover { color: var(--wine); }
@media (max-width: 760px) {
  .main-nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); }
  .brand-seal { width: 46px; height: 46px; }
}

/* Hero */
.hero { padding-block: 56px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-text); letter-spacing: .5px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); }
.hero p { margin: 0; font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero-art { position: relative; }
.hero-frame { border-radius: 220px 220px 16px 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: #EADFCB; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-seal { position: absolute; bottom: -40px; inset-inline-start: -12px; transform: rotate(-12deg); filter: drop-shadow(0 8px 16px rgba(46,11,17,.25)); }
@media (max-width: 600px) { .hero-seal { width: 120px; height: 120px; bottom: -28px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.feature { background: var(--paper); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.feature svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--wine); stroke-width: 1.6; }
.feature strong { display: block; font-weight: 600; }
.feature span { font-size: 14px; color: var(--muted); }

/* Collection */
.collection { padding-block: 72px 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 40px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 16px; flex: 0 1 380px; min-width: min(280px, 100%); }
.search svg { fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 15px; outline: none; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #FBF4E8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid #E8DCC6; border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 14px 30px rgba(46,11,17,.10); transform: translateY(-2px); }
.card-media { position: relative; }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: #EADFCB; aspect-ratio: 4 / 5; overflow: hidden; }
.card-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-open img { transform: scale(1.04); }
.badge { position: absolute; top: 14px; inset-inline-start: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FBF4E8; color: #4A3A30; }
.badge.auction { background: var(--wine); color: #FBF4E8; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,251,244,.92); display: flex; align-items: center; justify-content: center; }
.heart svg { fill: none; stroke: var(--wine); stroke-width: 2; }
.heart[aria-pressed="true"] svg { fill: var(--wine); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 13px; color: var(--accent-text); font-weight: 600; }
.card-body h3 { font-size: 21px; line-height: 1.35; }
.card-price { font-size: 14px; color: var(--muted); }
.card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 10px; }
.card-actions button { min-height: 44px; padding: 8px 6px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.card-actions .primary { border: 0; background: var(--wine); color: #FBF4E8; }
.card-actions .primary:hover { background: var(--wine-deep); }
.card-actions .secondary { border: 1px solid var(--wine); background: transparent; color: var(--wine); }
.card-actions .secondary:hover { background: rgba(107,30,40,.06); }
.skeleton { background: linear-gradient(90deg, #EFE5D4 25%, #F7F0E3 50%, #EFE5D4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); aspect-ratio: 4 / 6.2; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); margin-bottom: 24px; }
.empty-title { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.empty .btn-outline { margin-top: 16px; }

/* Auction */
.auction { margin-top: 64px; background: var(--wine-deep); color: #F6EBD8; }
.auction-row { padding-block: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.auction-img { border-radius: var(--radius); overflow: hidden; border: 1px solid #7A3340; aspect-ratio: 1 / 1; }
.auction-img img { width: 100%; height: 100%; object-fit: cover; }
.auction-copy { display: flex; flex-direction: column; gap: 18px; }
.auction-copy h2 { font-size: clamp(32px, 4vw, 44px); color: #FBF4E8; }
.auction-copy p { margin: 0; color: #E6D3B6; font-size: 17px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--wine-deep); background: var(--gold-light); padding: 4px 14px; border-radius: 999px; }
.pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent-text); }
.auction-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 480px; }
.auction-facts div { border: 1px solid #7A3340; border-radius: 12px; padding: 12px; text-align: center; }
.auction-facts span { display: block; font-size: 13px; color: #D9BFA0; }
.auction-facts strong { color: #FBF4E8; font-weight: 600; }

/* Sell */
#sell { padding-block: 80px; }
.sell-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 40px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: center; }
.sell-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sell-copy h2 { font-size: clamp(30px, 3.5vw, 38px); }
.sell-copy p { margin: 0; color: var(--ink-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 8px; border-radius: var(--radius); background: var(--sand); font-size: 14px; font-weight: 600; }
.steps span { width: 40px; height: 40px; border-radius: 999px; background: var(--wine); color: #FBF4E8; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #E6D3B6; }
.footer-grid { padding-block: 56px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 16px; color: #F6EBD8; margin-bottom: 10px; }
.footer-grid p { margin: 12px 0 0; font-size: 14px; }
.plain { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--gold-light); }
.copyright { border-top: 1px solid #4A3A30; text-align: center; padding: 16px; font-size: 13px; color: #BFA98C; }

/* Modal */
.modal { width: min(900px, calc(100% - 32px)); max-height: 92vh; padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: auto; }
.modal::backdrop { background: rgba(32,20,14,.6); }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.modal-close svg { fill: none; stroke: var(--ink); stroke-width: 2; }
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.detail img { width: 100%; height: 100%; min-height: 320px; max-height: 620px; object-fit: cover; background: #EADFCB; }
.detail-body { padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.detail-body h2 { font-size: 32px; padding-inline-end: 40px; }
.detail-body p { margin: 0; color: var(--ink-soft); }
.meta { font-size: 13px; color: var(--accent-text); font-weight: 600; }
.note { background: var(--sand); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #4A3A30; }
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.detail-actions .btn, .detail-actions .btn-outline { border-radius: 12px; padding-inline: 8px; }
.link-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: transparent; color: var(--wine); font-weight: 600; padding: 0; }
.link-btn svg { fill: none; stroke: var(--wine); stroke-width: 2; }

.lead-form { padding: 36px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.form-head { display: flex; gap: 16px; align-items: center; padding-inline-end: 48px; }
.form-head img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.form-head h2 { font-size: 28px; }
.form-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=number], .lead-form textarea {
  min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; font-size: 16px; font-weight: 400; background: #fff;
}
.lead-form input[type=tel] { text-align: right; }
.lead-form textarea { resize: vertical; }
.lead-form input[type=file] { min-height: 48px; border: 1px dashed #B8923F; border-radius: 10px; padding: 12px 14px; font-size: 14px; background: #FBF4E8; font-weight: 400; }
.lead-form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.lead-form .check input { width: 20px; height: 20px; accent-color: var(--wine); }
.lead-form [aria-invalid="true"] { border-color: #A42A2A; }
.form-error { margin: 0; color: #A42A2A; font-weight: 600; font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { border-radius: 12px; }
.only-auction, .only-sell { display: none; flex-direction: column; gap: 14px; }
.lead-form[data-kind="auction"] .only-auction, .lead-form[data-kind="sell"] .only-sell { display: flex; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.sent { padding: 56px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.sent h2 { font-size: 30px; }
.sent p { margin: 0; color: var(--ink-soft); max-width: 460px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #F6EBD8; padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: 0 10px 24px rgba(0,0,0,.25); }

.fav-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--wine); color: #FBF4E8; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.brand-seal { filter: drop-shadow(0 3px 6px rgba(46,11,17,.22)); }
