:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #141210;
  --muted: #6f6a63;
  --line: #e4ddd2;
  --gold: #a8844f;
  --gold-soft: #efe5d3;
  --dark: #0f0e0d;
  --danger: #b3261e;
  --ok: #2e7d4f;
  --radius: 14px;
  --font: "Tajawal", system-ui, sans-serif;
  --display: "Cormorant Garamond", "Tajawal", serif;
}
html[dir="rtl"] { --display: "Tajawal", serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Header */
.topbar { background: var(--dark); color: #d9cdb8; font-size: 13px; text-align: center; padding: 7px 16px; letter-spacing: .3px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,239,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }
.brand-mark { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 500; letter-spacing: 1px; line-height: 1; display: flex; align-items: center; gap: 6px; }
.brand-mark .bar { width: 1px; height: 30px; background: var(--ink); }
.brand-text { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; line-height: 1.3; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { font-size: 15px; position: relative; padding: 4px 0; }
.nav a.active, .nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.icon-btn svg { width: 19px; height: 19px; }
.badge { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--gold); color: #fff; font-size: 11px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.lang-btn { font-size: 14px; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 40px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 15px; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); }
.btn-wa { background: #1f9d55; border-color: #1f9d55; }
.btn-wa:hover { background: #157a41; border-color: #157a41; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; min-height: 560px; padding-block: 60px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.15; margin: 0 0 18px; }
.hero p { color: #cfc6b8; font-size: 18px; max-width: 520px; margin: 0 0 32px; }
.hero .eyebrow { color: var(--gold); }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn { border-color: #fff; background: #fff; color: var(--ink); }
.hero .btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.hero .btn-outline { background: transparent; color: #fff; }

.eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }

/* Sections */
.section { padding-block: 80px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2, .page-title { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); margin: 0; line-height: 1.2; }
.section-head p { color: var(--muted); margin: 10px auto 0; max-width: 560px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: #ddd; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .cat-info { position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.cat-card h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; }
.cat-card span { font-size: 14px; color: #e5dccd; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: 0 18px 40px -22px rgba(0,0,0,.35); transform: translateY(-3px); }
.product-card .thumb { position: relative; aspect-ratio: 1; background: #f1eee9; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 11px; border-radius: 20px; }
.tag.sale { background: var(--gold); }
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat { font-size: 13px; color: var(--muted); }
.product-card h3 { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.4; }
.product-card .notes { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; font-size: 17px; }
.price del { color: var(--muted); font-weight: 400; font-size: 14px; margin-inline-start: 6px; }
.price.on-request { font-weight: 500; font-size: 15px; color: var(--gold); }
.add-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.add-btn:hover { background: var(--gold); }
.add-btn svg { width: 18px; height: 18px; }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.feature .ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h4 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Story band */
.story { background: var(--dark); color: #fff; }
.story .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.story img { border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.story p { color: #cfc6b8; white-space: pre-line; }

/* Shop */
.page-head { padding: 50px 0 30px; text-align: center; border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-top: 8px; }
.breadcrumbs a:hover { color: var(--gold); }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-block: 40px 80px; }
.filters h4 { margin: 0 0 12px; font-size: 16px; }
.filters ul { list-style: none; margin: 0 0 28px; padding: 0; }
.filters li a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.filters li a.active, .filters li a:hover { color: var(--ink); font-weight: 700; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); }
.input:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.search-box { display: flex; gap: 8px; margin-bottom: 28px; }

/* Product page */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 50px 80px; }
.gallery-main { border-radius: 20px; overflow: hidden; background: #f1eee9; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 46px); margin: 6px 0 12px; line-height: 1.2; }
.product-info .price { font-size: 24px; }
.product-info .desc { color: var(--muted); white-space: pre-line; }
.notes-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.notes-box strong { display: block; margin-bottom: 6px; color: var(--gold); }
.meta-list { list-style: none; padding: 0; margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.meta-list li { padding: 4px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 40px; background: var(--surface); overflow: hidden; }
.qty button { width: 40px; height: 46px; border: none; background: none; font-size: 20px; cursor: pointer; }
.qty input { width: 46px; text-align: center; border: none; font: inherit; font-size: 16px; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.buy-row .btn { flex: 1; min-width: 160px; }

/* Cart & checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; padding-block: 40px 80px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 90px; height: 90px; border-radius: 10px; object-fit: cover; }
.cart-item h4 { margin: 0 0 4px; font-weight: 500; }
.remove-link { background: none; border: none; color: var(--danger); cursor: pointer; font: inherit; font-size: 14px; padding: 0; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 18px; }
.note { font-size: 14px; color: var(--muted); background: var(--gold-soft); padding: 10px 14px; border-radius: 10px; margin: 12px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.lbl { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.empty { text-align: center; padding: 70px 20px; }
.empty h2 { font-family: var(--display); font-weight: 500; }

/* Flash */
.flash { padding: 12px 18px; border-radius: 10px; margin: 18px auto 0; width: min(1200px, 100% - 32px); }
.flash.success { background: #e6f4ec; color: var(--ok); }
.flash.error { background: #fbe9e7; color: var(--danger); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding-block: 50px 80px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.contact-list svg { width: 20px; height: 20px; }

/* Footer */
.footer { background: var(--dark); color: #bdb3a4; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h5 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer a:hover { color: var(--gold); }
.footer .brand-mark { color: #fff; }
.footer .brand-mark .bar { background: #fff; }
.footer .brand-text { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3a352f; display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.copy { border-top: 1px solid #2a2622; margin-top: 40px; padding-top: 20px; font-size: 13px; text-align: center; }

.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.pagination .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { opacity: .4; }

/* Responsive */
@media (max-width: 960px) {
  .hero .container, .story .container, .product-page, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero .container { min-height: 0; padding-block: 50px; }
  .shop-layout { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 74px; inset-inline: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .section { padding-block: 56px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .body { padding: 12px; }
  .product-card h3 { font-size: 15px; }
  .product-card .notes { display: none; }
  .price { font-size: 15px; }
  .add-btn { width: 36px; height: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item img { width: 70px; height: 70px; }
  .cart-item > :last-child { grid-column: 1 / -1; }
  .brand-text { display: none; }
  .lang-btn { padding: 7px 10px; }
}
