:root {
  --bg: #f7f1e8;
  --ink: #573c14;
  --ink-soft: #7a6240;
  --heading: #3f2a10;
  --gold: #a98352;
  --orange: #e87722;
  --orange-dark: #cf6416;
  --line: #e6d9c8;
  --white: #fffdf9;
  --sale: #b42318;
  --shadow: 0 10px 30px rgba(87, 60, 20, 0.08);
  --header: 78px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.35; margin: 0 0 0.4em; }

.wrap { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.wrap-wide { width: min(1360px, calc(100% - 28px)); margin-inline: auto; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 232, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(169, 131, 82, 0.18);
}
.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: none;
  border: 0;
}
.nav-link svg { width: 12px; height: 12px; }
.dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.dropdown a:hover { background: #f6efe6; }
.tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ink);
}
.icon-btn:hover { background: rgba(169, 131, 82, 0.12); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  background: var(--orange);
  color: white;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.burger { display: none; }

/* Hero */
.hero { position: relative; background: #efe4d6; }
.slides { position: relative; overflow: hidden; }
.slide { display: none; position: relative; }
.slide.active { display: block; }
.slide img { width: 100%; height: min(72vw, 640px); object-fit: cover; object-position: center; }
.slide-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 38%);
  text-align: center;
  color: var(--heading);
}
.slide-copy.right { right: 5%; }
.slide-copy.left { left: 5%; }
.slide-copy h2 {
  font-size: clamp(32px, 4.4vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 800;
  font-size: 16px;
  transition: 0.15s background;
}
.btn:hover { background: var(--orange-dark); }
.btn.block { width: 100%; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--gold);
}
.btn.ghost:hover { background: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dots {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(87, 60, 20, 0.28);
}
.dots button.on { background: var(--ink); }

.section { padding: 54px 0; }
.section h2.sec-title, .sec-title {
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  margin-bottom: 22px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.col-card { text-align: center; }
.col-card .art, .col-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f8efe7;
}
.best-art {
  display: grid;
  place-items: center;
  color: #e8701c;
  font-weight: 800;
  font-size: clamp(22px, 2vw, 40px);
  line-height: 1.2;
  padding: 12px;
}
.col-card span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
}
.tabs button.on { color: var(--heading); border-color: var(--orange); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pcard {
  background: transparent;
  text-align: center;
}
.pcard .thumb {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.pcard img { width: 100%; height: 100%; object-fit: contain; }
.pcard h3 { font-size: 16px; margin: 12px 0 4px; font-weight: 700; }
.price { font-weight: 700; }
.price s { color: var(--ink-soft); font-weight: 500; margin-inline-start: 8px; }
.price .now { color: var(--sale); }
.pcard .mini {
  margin-top: 8px;
  width: 100%;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.banner { display: block; position: relative; margin: 10px 0 0; }
.banner img { width: 100%; height: min(52vw, 520px); object-fit: cover; }
.banner .slide-copy h2 { font-size: clamp(26px, 3.4vw, 52px); }

.reviews { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.review-card {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 180px;
}
.review-card strong { display: block; color: var(--gold); }
.stars { color: var(--orange); letter-spacing: 2px; }
.rev-nav { display: flex; gap: 8px; margin-top: 12px; }
.rev-nav button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: white;
}

/* Footer */
.footer { background: #f3eadf; border-top: 1px solid var(--line); padding: 48px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; }
.footer h3 { font-size: 22px; font-weight: 700; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--orange-dark); }
.news { display: flex; gap: 8px; margin-top: 10px; }
.news input, .field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #ddcbb6;
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.copy { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 28px; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: white; border: 1px solid var(--line);
}

/* Pages */
.page-head { text-align: center; padding: 36px 0 10px; }
.crumbs { color: var(--ink-soft); font-size: 14px; margin-bottom: 8px; }
.crumbs a:hover { color: var(--orange-dark); }
.page { padding-bottom: 50px; }
.prose { max-width: 820px; margin: 0 auto; font-size: 17px; }
.prose p { margin: 0 0 14px; }

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}
.gallery { background: white; border-radius: 18px; padding: 16px; }
.gallery .main {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.gallery .main img { max-height: 520px; width: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { border: 1px solid transparent; background: #f6f1ea; padding: 4px; border-radius: 10px; }
.thumbs button.on { border-color: var(--gold); }
.thumbs img { width: 72px; height: 72px; object-fit: contain; }
.opt { margin: 14px 0; }
.opt label { font-weight: 800; display: block; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}
.choices button.on { border-color: var(--orange); background: #fff4ea; }
.choices button:disabled { opacity: 0.4; text-decoration: line-through; }
.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: white;
  margin: 8px 0 16px;
}
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; }
.qty span { min-width: 28px; text-align: center; line-height: 40px; font-weight: 800; }
.desc { margin-top: 22px; }
.desc h3 { font-size: 18px; margin-top: 16px; }
.badge {
  display: inline-block;
  background: #fde8d8;
  color: var(--orange-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 800;
}

.cart-table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-line { display: flex; gap: 12px; align-items: center; }
.cart-line img { width: 72px; height: 72px; object-fit: contain; background: #f7f1e8; border-radius: 10px; }
.summary {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
}
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; }
.field { margin-bottom: 12px; }
.field span { display: block; font-weight: 700; margin-bottom: 6px; }
.locations { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.loc {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 18px 20px;
}
.loc:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(169, 131, 82, 0.15); }
.loc h3 { color: var(--gold); font-size: 16px; }
.loc p { margin: 0 0 4px; font-size: 14px; }
.k { font-weight: 800; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.map-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--gold);
  color: white;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
}
.empty { text-align: center; padding: 40px 10px; color: var(--ink-soft); }

/* Overlays */
.overlay {
  position: fixed; inset: 0;
  background: rgba(40, 24, 8, 0.45);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.overlay.show { display: flex; }
.modal {
  background: var(--bg);
  width: min(460px, 100%);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
}
.modal .row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.search-box {
  width: min(680px, 100%);
  background: white;
  border-radius: 16px;
  padding: 16px;
  align-self: flex-start;
  margin-top: 10vh;
}
.search-box input { font-size: 18px; }
.search-hits { max-height: 50vh; overflow: auto; margin-top: 10px; }
.hit { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.hit:hover { background: #f7f1e8; }
.hit img { width: 52px; height: 52px; object-fit: contain; }

.drawer {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(400px, 100%);
  background: var(--bg);
  z-index: 70;
  transform: translateX(-110%);
  transition: 0.25s transform;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer.open { transform: translateX(0); }
.drawer header, .drawer footer { padding: 16px; }
.drawer header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer .body { flex: 1; overflow: auto; padding: 12px 16px; }
.drawer footer { border-top: 1px solid var(--line); }
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--heading);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 80;
  display: none;
}
.mobile-nav {
  display: none;
  background: white;
  border-top: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.mobile-nav a, .mobile-nav button {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 8px 0;
  font-weight: 700;
}
.sub { padding-inline-start: 12px; font-weight: 600; color: var(--ink-soft); }

@media (max-width: 1000px) {
  .cols { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid, .product, .checkout-grid, .reviews { grid-template-columns: 1fr; }
  .nav { display: none; }
  .burger { display: grid; }
  .slide-copy { width: min(280px, 46%); }
  .slide-copy h2 { font-size: clamp(24px, 5vw, 40px); }
}
@media (max-width: 680px) {
  .cols, .grid { grid-template-columns: repeat(2, 1fr); }
  .logo img { height: 46px; }
  .slide img, .banner img { height: 240px; }
  .slide-copy { position: static; transform: none; width: auto; padding: 16px; background: #f3e6d8; }
  .dots { display: none; }
}
