:root {
  color-scheme: light;
  --ink: #242923;
  --muted: #777b71;
  --olive: #68735b;
  --olive-dark: #4b5742;
  --cream: #f8f6f1;
  --sand: #eeebe3;
  --line: #e9e6de;
  --white: #fffefa;
  --font: "IBM Plex Sans Arabic", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.page-shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }

.announcement {
  min-height: 35px;
  display: grid;
  place-items: center;
  padding: 5px 16px;
  background: #485442;
  color: #f8f7ef;
  text-align: center;
  font-size: 11px;
  letter-spacing: .02em;
}
.announcement p { margin: 0; }
.announcement span { margin: 0 7px; color: #bec4ae; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid rgba(40, 45, 38, .07); }
.header-inner {
  width: min(1320px, calc(100% - 80px));
  height: 84px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; color: var(--olive-dark); }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { display: flex; flex-direction: column; font-size: 23px; font-weight: 700; line-height: 1; letter-spacing: -.07em; }
.brand-name small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 35px; margin-inline-start: auto; }
.nav-link { color: #696c64; font-size: 13px; transition: color .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--olive-dark); }
.nav-link.is-active { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.search-box {
  width: 194px;
  height: 39px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #e7e5dd;
  border-radius: 4px;
  color: #777b71;
}
.search-box svg, .cart-button svg, .icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #999b93; }
.cart-button, .icon-button { border: 0; background: transparent; cursor: pointer; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 12px; }
.cart-count { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e9e8df; color: var(--olive-dark); font-size: 10px; }
.menu-toggle { display: none; padding: 7px; }

.hero {
  position: relative;
  min-height: 510px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 66px;
  padding-block: 47px 67px;
}
.hero-copy { padding: 0 26px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--olive); font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.eyebrow-line { width: 23px; height: 1px; background: #9ca28f; }
.hero h1 { margin: 19px 0 15px; font-size: clamp(42px, 5vw, 64px); font-weight: 500; letter-spacing: -.075em; line-height: 1.35; }
.hero h1 span, .section-heading h2 span, .story-copy h2 span { color: var(--olive); }
.hero-copy > p { max-width: 370px; margin: 0; color: var(--muted); font-size: 14px; line-height: 2.1; }
.primary-button {
  width: max-content;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 28px;
  padding: 0 19px;
  background: var(--olive-dark);
  color: white;
  font-size: 12px;
  transition: background .2s, transform .2s;
}
.primary-button:hover { background: #384333; transform: translateY(-2px); }
.primary-button span, .text-link span { font-size: 17px; line-height: 1; }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 38px; }
.hero-note p { color: var(--muted); font-size: 10px; }
.hero-note strong { color: var(--ink); }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span { width: 26px; height: 26px; display: grid; place-items: center; margin-left: -7px; border: 2px solid var(--cream); border-radius: 50%; background: #d5bba3; color: #554538; font-size: 9px; }
.avatar-stack span:nth-child(2) { background: #afba9f; }
.avatar-stack span:nth-child(3) { background: #d5c8ae; }
.hero-visual { position: relative; min-width: 0; height: 400px; }
.hero-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 55%; }
.hero-image-wash { position: absolute; inset: 48% 0 0; background: linear-gradient(0deg, rgba(28, 31, 25, .4), transparent); pointer-events: none; }
.hero-caption { position: absolute; inset-inline-start: 22px; bottom: 22px; display: flex; align-items: center; gap: 11px; color: white; }
.caption-dot { width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; }
.hero-caption div { display: flex; flex-direction: column; gap: 3px; }
.hero-caption strong { font-size: 12px; font-weight: 500; }
.hero-caption small { color: rgba(255,255,255,.77); font-size: 9px; }
.hero-stamp { position: absolute; inset-inline-end: -25px; top: 28px; width: 82px; height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #e9e8df; color: var(--olive-dark); line-height: 1.5; transform: rotate(-8deg); }
.hero-stamp span { font-size: 8px; }
.hero-stamp strong { font-size: 12px; }
.hero-pagination { position: absolute; inset-inline-end: 0; bottom: 31px; display: flex; align-items: center; gap: 9px; color: #9b9d94; direction: ltr; font-size: 9px; }
.hero-pagination span { width: 23px; height: 2px; background: var(--olive); }
.hero-pagination i { width: 18px; height: 1px; background: #d9d8d1; }

.trust-strip { border-block: 1px solid var(--line); background: #f4f2ec; }
.trust-inner { width: min(1110px, calc(100% - 80px)); min-height: 94px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; margin-inline: auto; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; }
.trust-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #dcded4; border-radius: 50%; color: var(--olive); font-size: 16px; }
.trust-item > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.trust-item strong { font-size: 10px; font-weight: 600; }
.trust-item small { color: var(--muted); font-size: 9px; }

.collection-section { padding-block: 90px 95px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; }
.section-heading h2, .story-copy h2 { margin: 12px 0 0; font-size: clamp(31px, 3.2vw, 43px); font-weight: 500; letter-spacing: -.065em; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--olive-dark); font-size: 11px; }
.text-link:hover { color: #242923; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 28px 23px; }
.category-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border: 1px solid #e6e4dc; border-radius: 99px; background: transparent; color: #777b71; cursor: pointer; font-size: 10px; transition: .2s; }
.category-tab:hover, .category-tab.is-selected { border-color: var(--olive-dark); background: var(--olive-dark); color: white; }
.category-tab span { color: #cbd1c5; font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
.product-card { min-width: 0; }
.product-image-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1.13; background: #eeece5; }
.product-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-image { transform: scale(1.045); }
.product-badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 9px; background: rgba(255,254,250,.9); color: var(--olive-dark); font-size: 9px; }
.add-to-cart { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--white); color: var(--olive-dark); cursor: pointer; font-size: 21px; box-shadow: 0 3px 14px #2222; transition: background .2s, color .2s, transform .2s; }
.add-to-cart:hover { background: var(--olive-dark); color: white; transform: scale(1.07); }
.add-to-cart:disabled { opacity: .55; cursor: wait; }
.product-info { padding: 12px 2px 0; }
.product-category { color: #89907e; font-size: 9px; }
.product-info h3 { margin: 4px 0 7px; font-size: 13px; font-weight: 500; }
.product-price { color: var(--olive-dark); font-family: "DM Sans", var(--font); font-size: 12px; font-weight: 600; direction: rtl; }
.product-price del { margin-inline-start: 7px; color: #9a9a91; font-size: 10px; font-weight: 400; }
.no-results { padding-block: 35px; color: var(--muted); text-align: center; font-size: 13px; }

.story-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 85px; padding-block: 24px 105px; }
.story-image-wrap { position: relative; height: 380px; }
.story-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.story-image-label { position: absolute; bottom: 17px; inset-inline-start: 17px; padding: 8px 12px; background: var(--cream); color: var(--olive-dark); font-size: 10px; }
.story-copy h2 { margin-top: 17px; line-height: 1.55; }
.story-copy > p { max-width: 450px; margin: 15px 0 19px; color: var(--muted); font-size: 12px; line-height: 2.1; }
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 60px; padding: 35px 42px; background: #ecebe2; }
.newsletter h2 { margin: 8px 0 3px; font-size: 22px; font-weight: 500; }
.newsletter p { margin: 0; color: var(--muted); font-size: 10px; }
.newsletter-notice { display: inline-flex; align-items: center; gap: 10px; color: var(--olive-dark); font-size: 11px; }
.newsletter-notice span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d2d5c8; border-radius: 50%; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand .brand-mark { width: 31px; height: 31px; }
.footer-brand .brand-name { font-size: 19px; }
.footer-inner > p, .footer-copy { color: var(--muted); font-size: 10px; }
.footer-copy { direction: rtl; }

.cart-backdrop { position: fixed; z-index: 19; inset: 0; background: rgba(24, 27, 23, .38); opacity: 0; transition: opacity .25s; }
.cart-backdrop.is-visible { opacity: 1; }
.cart-backdrop[hidden] { display: none; }
.cart-drawer { position: fixed; z-index: 20; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%); display: flex; flex-direction: column; padding: 27px 25px 22px; background: var(--cream); box-shadow: 0 0 35px #1112; transform: translateX(105%); transition: transform .3s ease; visibility: hidden; }
.cart-drawer.is-open { transform: translateX(0); visibility: visible; }
.cart-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 5px 0 0; font-size: 21px; font-weight: 500; }
.close-cart { width: 34px; height: 34px; font-size: 27px; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; }
.cart-empty { display: grid; place-items: center; min-height: 220px; color: var(--muted); text-align: center; font-size: 13px; }
.cart-line { display: grid; grid-template-columns: 70px 1fr auto; gap: 13px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cart-line img { width: 70px; height: 78px; object-fit: cover; }
.cart-line-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.cart-line-info strong { font-size: 12px; font-weight: 500; }
.cart-line-info small { color: var(--muted); font-size: 10px; }
.quantity-controls { display: flex; align-items: center; gap: 9px; margin-top: 3px; direction: ltr; }
.quantity-controls button { width: 23px; height: 23px; border: 1px solid #ddded4; border-radius: 50%; background: transparent; cursor: pointer; }
.quantity-controls span { font-family: "DM Sans", sans-serif; font-size: 10px; }
.remove-item { align-self: center; border: 0; background: transparent; color: #8b8b80; cursor: pointer; font-size: 18px; }
.cart-footer { padding-top: 15px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 13px; }
.cart-total strong { font-family: "DM Sans", var(--font); color: var(--olive-dark); }
.cart-footer > p { margin: 10px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.checkout-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; background: var(--olive-dark); color: white; cursor: pointer; font-size: 12px; }
.checkout-button:disabled { opacity: .5; cursor: not-allowed; }
.toast { position: fixed; z-index: 30; inset-inline-start: 50%; bottom: 25px; padding: 12px 18px; background: #30392d; color: white; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s; font-size: 11px; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 900px) {
  .page-shell, .header-inner { width: min(100% - 48px, 760px); }
  .header-inner { height: 74px; gap: 20px; }
  .main-nav { gap: 20px; }
  .search-box { width: 155px; }
  .hero { min-height: 465px; grid-template-columns: .9fr 1.1fr; gap: 30px; }
  .hero-copy { padding-right: 5px; }
  .hero-visual { height: 350px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px; }
  .story-section { gap: 40px; }
}

@media (max-width: 640px) {
  .page-shell, .header-inner { width: calc(100% - 36px); }
  .announcement { min-height: 32px; font-size: 9px; }
  .header-inner { position: relative; height: 68px; gap: 9px; }
  .menu-toggle { display: block; order: 0; }
  .brand { order: 1; gap: 6px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 20px; }
  .brand-name small { font-size: 8px; }
  .header-actions { order: 2; gap: 13px; }
  .search-box { width: 34px; height: 36px; justify-content: center; padding: 0; border: 0; }
  .search-box input { position: absolute; top: 57px; inset-inline: 0; z-index: 8; display: none; width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); background: var(--cream); }
  .search-box:focus-within input { display: block; }
  .cart-button { gap: 6px; }
  .cart-button > span:nth-child(2) { display: none; }
  .main-nav { position: absolute; top: 68px; inset-inline: 0; z-index: 9; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 5px 14px; border: 1px solid var(--line); background: var(--cream); box-shadow: 0 12px 18px #1111; }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .nav-link:last-child { border: 0; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 35px 46px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin-block: 12px 10px; font-size: 44px; }
  .hero-copy > p { max-width: 330px; font-size: 12px; }
  .primary-button { min-height: 43px; margin-top: 18px; }
  .hero-note { display: none; }
  .hero-visual { height: 275px; margin-inline: 6px; }
  .hero-stamp { inset-inline-end: -12px; top: 15px; width: 70px; height: 70px; }
  .hero-pagination { bottom: 20px; }
  .trust-inner { width: calc(100% - 28px); grid-template-columns: 1fr 1fr; gap: 18px 7px; padding-block: 18px; }
  .trust-item { justify-content: flex-start; gap: 8px; }
  .trust-icon { width: 29px; height: 29px; flex: 0 0 auto; font-size: 14px; }
  .trust-item strong { font-size: 9px; }
  .trust-item small { font-size: 8px; }
  .collection-section { padding-block: 55px 60px; }
  .section-heading { align-items: flex-end; gap: 10px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > .text-link { gap: 5px; font-size: 9px; white-space: nowrap; }
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; margin-block: 20px 15px; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { flex: 0 0 auto; min-height: 32px; padding-inline: 12px; }
  .product-grid { gap: 20px 10px; }
  .product-image-wrap { aspect-ratio: 1 / 1.08; }
  .product-badge { top: 8px; inset-inline-start: 8px; padding: 4px 6px; font-size: 8px; }
  .add-to-cart { inset-inline-end: 8px; bottom: 8px; width: 34px; height: 34px; }
  .product-info { padding-top: 9px; }
  .product-info h3 { font-size: 11px; }
  .product-category { font-size: 8px; }
  .story-section { grid-template-columns: 1fr; gap: 25px; padding-block: 0 60px; }
  .story-image-wrap { height: 260px; }
  .story-copy h2 { font-size: 34px; }
  .story-copy > p { font-size: 11px; }
  .newsletter { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 35px; padding: 25px 20px; }
  .newsletter h2 { font-size: 19px; }
  .newsletter-notice { font-size: 10px; }
  .footer-inner { min-height: 100px; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; padding-block: 17px; }
  .footer-inner > p { order: 2; width: 100%; margin: 0; }
  .footer-copy { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
