@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Kufi+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --emerald: #123c31;
  --emerald-deep: #09271f;
  --emerald-soft: #2d5a4e;
  --ivory: #f7f2e8;
  --paper: #fffdf8;
  --charcoal: #1e211f;
  --muted: #77766e;
  --gold: #b99552;
  --gold-light: #d8bd7a;
  --burgundy: #6e2734;
  --line: rgba(30, 33, 31, .13);
  --shadow: 0 22px 70px rgba(9, 39, 31, .12);
  --shell: min(1380px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--paper); font-family: "Noto Kufi Arabic", sans-serif; font-size: 14px; line-height: 1.85; }
html[dir="ltr"] body { font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
.store-shell { width: var(--shell); margin-inline: auto; }
.announcement { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 6px 24px; color: #f4ead6; background: var(--emerald-deep); font-size: 10px; letter-spacing: .04em; }
.announcement-divider { width: 1px; height: 12px; background: rgba(255,255,255,.35); }
.site-header { position: relative; z-index: 40; background: rgba(255,253,248,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.site-header.is-sticky { position: sticky; top: 0; box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.header-main { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ivory); background: var(--emerald); border: 1px solid var(--gold); border-radius: 50%; font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 27px; }
.brand-words { display: grid; line-height: 1.1; letter-spacing: .14em; font-family: "Cormorant Garamond", serif; }
.brand-words strong { font-size: 19px; }
.brand-words small { color: var(--gold); font-size: 9px; margin-top: 4px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 32px); }
.main-nav a { position: relative; font-size: 12px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 50% 50%; bottom: -10px; height: 1px; background: var(--gold); transition: .25s ease; }
.main-nav a:hover::after { inset-inline: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.branch-switcher { min-width: 180px; }
.branch-switcher label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; line-height: 1.2; }
.branch-switcher select { max-width: 190px; padding: 2px 0; color: var(--charcoal); background: transparent; border: 0; outline: 0; font-size: 11px; cursor: pointer; }
.pin-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(185,149,82,.16); }
.language-link { padding: 5px; color: var(--muted); font-size: 10px; }
.bag-link { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-size: 21px; }
.bag-link b, .mobile-bottom-nav b { position: absolute; top: -3px; inset-inline-end: -3px; width: 17px; height: 17px; display: grid; place-items: center; color: #fff; background: var(--burgundy); border-radius: 50%; font-size: 8px; }
.icon-button { border: 0; background: transparent; cursor: pointer; }
.menu-toggle { display: none; font-size: 22px; }
.message-stack { position: fixed; z-index: 80; top: 128px; left: 50%; transform: translateX(-50%); }
.store-message { margin: 8px 0; padding: 13px 18px; background: #fff; border-inline-start: 3px solid var(--emerald); border-radius: 3px; box-shadow: var(--shadow); }
.store-message.error { border-color: var(--burgundy); }

.hero-section { position: relative; min-height: min(74vh, 780px); display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--emerald-deep); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(5,27,21,.22), rgba(5,27,21,.84) 72%, rgba(5,27,21,.95)); }
html[dir="ltr"] .hero-overlay { background: linear-gradient(270deg, rgba(5,27,21,.18), rgba(5,27,21,.84) 72%, rgba(5,27,21,.95)); }
.hero-content { position: relative; z-index: 2; padding-block: 100px; }
.eyebrow { margin: 0 0 14px; color: var(--gold-light); font-size: 10px; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.hero-content h1 { margin: 0; max-width: 700px; font-size: clamp(68px, 10vw, 148px); line-height: .9; font-weight: 400; letter-spacing: -.055em; }
html[dir="ltr"] .hero-content h1 { font-family: "Cormorant Garamond", serif; }
.hero-content > p:not(.eyebrow) { max-width: 530px; margin: 30px 0 36px; color: rgba(255,255,255,.82); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 25px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: var(--emerald-deep); background: var(--gold-light); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-dark { color: #fff; background: var(--emerald); }
.btn-outline { color: var(--emerald); border-color: var(--emerald); background: transparent; }
.btn-danger { color: #fff; background: var(--burgundy); }
.btn-block { width: 100%; }
.hero-branch { position: absolute; z-index: 3; bottom: 34px; inset-inline-end: 4%; color: rgba(255,255,255,.62); font-family: "Cormorant Garamond", serif; font-size: 14px; letter-spacing: .16em; }

.store-section { padding-block: 92px; }
.section-heading { margin-bottom: 36px; }
.section-heading h1, .section-heading h2 { margin: 0; color: var(--emerald-deep); font-size: clamp(29px, 4vw, 52px); line-height: 1.35; font-weight: 500; }
.section-heading.centered { text-align: center; }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading.split > a, .text-link { color: var(--emerald); border-bottom: 1px solid var(--gold); font-size: 11px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-tile { position: relative; min-height: 440px; overflow: hidden; background: #ddd; }
.category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,27,21,.8), transparent 55%); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.category-tile:hover img { transform: scale(1.045); }
.category-tile span { position: absolute; z-index: 2; inset-inline: 24px; bottom: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: #fff; }
.category-tile small { color: var(--gold-light); }
.category-tile strong { font-size: 15px; font-weight: 500; }
.category-tile em { font-style: normal; font-size: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.product-card { position: relative; min-width: 0; }
.product-image-wrap { position: relative; display: block; aspect-ratio: .78; overflow: hidden; background: #f0ede7; }
.product-image-wrap img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-badges { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: grid; gap: 5px; }
.product-badge { width: max-content; padding: 4px 8px; color: var(--emerald-deep); background: rgba(255,253,248,.9); font-size: 8px; }
.product-badge.sale { color: #fff; background: var(--burgundy); }
.product-info { padding: 15px 4px 0; }
.product-info h3 { margin: 0 0 2px; font-size: 13px; font-weight: 500; }
.product-info p { margin: 0; color: var(--muted); font-size: 10px; }
.product-price { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--emerald); font-weight: 600; }
.product-price del { color: #aaa; font-weight: 400; font-size: 10px; }
.availability { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald-soft); font-size: 9px; }
.availability::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4c8a63; }
.editorial-panel { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 610px; background: var(--emerald-deep); color: #fff; }
.editorial-image { min-height: 540px; overflow: hidden; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 110px); }
.editorial-copy h2 { margin: 0 0 28px; font-size: clamp(38px, 5vw, 68px); line-height: 1.18; font-weight: 400; }
.editorial-copy > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.editorial-copy .text-link { width: max-content; margin-top: 20px; color: #fff; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 48px max(32px, calc((100% - 1316px)/2)); color: #fff; background: var(--emerald); }
.service-strip > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 13px; padding: 10px 42px; border-inline-end: 1px solid rgba(255,255,255,.18); }
.service-strip > div:last-child { border: 0; }
.service-strip span { grid-row: span 2; color: var(--gold-light); font-size: 23px; }
.service-strip strong { font-size: 12px; }
.service-strip small { color: rgba(255,255,255,.62); font-size: 9px; }

.page-hero { padding: 70px 0 42px; background: var(--ivory); }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.page-hero h1 { margin: 0; color: var(--emerald-deep); font-size: clamp(38px, 6vw, 74px); font-weight: 500; }
.page-hero p { max-width: 680px; color: var(--muted); }
.category-children { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.category-children a { padding: 8px 14px; background: #fff; border: 1px solid var(--line); font-size: 10px; }
.empty-state { padding: 80px 30px; text-align: center; background: var(--ivory); }
.empty-state h2 { color: var(--emerald); }

.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 100px); padding-block: 70px 100px; }
.product-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.product-gallery img { aspect-ratio: .78; object-fit: cover; background: #eee; }
.product-gallery img:first-child { grid-column: span 2; }
.product-summary { position: sticky; top: 115px; align-self: start; padding-top: 18px; }
.product-summary h1 { margin: 8px 0; color: var(--emerald-deep); font-size: clamp(34px, 5vw, 62px); line-height: 1.25; font-weight: 500; }
.product-summary .lead { color: var(--muted); }
.detail-price { display: flex; gap: 13px; align-items: center; margin: 24px 0; color: var(--emerald); font-size: 20px; font-weight: 600; }
.detail-price del { color: #aaa; font-size: 13px; font-weight: 400; }
.variant-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.variant-option { position: relative; }
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-option label { display: block; min-width: 52px; padding: 9px 12px; text-align: center; border: 1px solid var(--line); cursor: pointer; }
.variant-option input:checked + label { color: #fff; background: var(--emerald); border-color: var(--emerald); }
.quantity-row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; margin: 20px 0; }
.quantity-row input { width: 100%; padding: 10px; border: 1px solid var(--line); }
.detail-accordion { margin-top: 34px; border-top: 1px solid var(--line); }
.detail-block { padding: 19px 0; border-bottom: 1px solid var(--line); }
.detail-block h3 { margin: 0 0 8px; font-size: 12px; }
.detail-block p { margin: 0; color: var(--muted); font-size: 11px; }
.other-branch-box { margin: 22px 0; padding: 17px; color: var(--emerald); background: var(--ivory); border: 1px solid rgba(185,149,82,.45); }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; padding-block: 70px 100px; }
.cart-list { border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 120px; aspect-ratio: .8; object-fit: cover; }
.cart-row h3 { margin: 0; font-size: 15px; }
.cart-row p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.cart-row input { width: 74px; padding: 7px; border: 1px solid var(--line); }
.link-button { padding: 0; color: var(--burgundy); background: transparent; border: 0; cursor: pointer; font-size: 10px; }
.summary-card { position: sticky; top: 115px; align-self: start; padding: 30px; background: var(--ivory); border: 1px solid var(--line); }
.summary-card h2 { margin-top: 0; color: var(--emerald); font-size: 21px; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.summary-line.total { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; }

.store-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 600; }
.store-input, .store-form input, .store-form select, .store-form textarea { width: 100%; padding: 12px 13px; background: #fff; border: 1px solid var(--line); outline: 0; }
.store-form input:focus, .store-form select:focus, .store-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,149,82,.11); }
.field-error { color: var(--burgundy); font-size: 9px; }
.provider-card { padding: 14px; background: var(--ivory); }
.order-success { max-width: 780px; margin: 70px auto 100px; padding: 54px; text-align: center; background: var(--ivory); border: 1px solid var(--line); }
.order-number { color: var(--emerald); font-family: "Cormorant Garamond", serif; font-size: 30px; letter-spacing: .08em; }
.status-pill { display: inline-flex; padding: 5px 10px; color: var(--emerald); background: rgba(18,60,49,.09); border-radius: 20px; font-size: 9px; }

.content-page { max-width: 900px; padding-block: 75px 110px; }
.content-page h1 { color: var(--emerald-deep); font-size: clamp(40px, 6vw, 68px); font-weight: 500; }
.content-page h2 { margin-top: 35px; color: var(--emerald); }
.content-page p, .content-page li { color: #5f625e; }
.staff-shell { min-height: 100vh; padding: 50px 0; background: #f2f0ea; }
.staff-card { max-width: 520px; margin: 50px auto; padding: 40px; background: #fff; box-shadow: var(--shadow); }
.staff-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.order-table { width: 100%; border-collapse: collapse; background: #fff; }
.order-table th, .order-table td { padding: 13px 15px; text-align: start; border-bottom: 1px solid var(--line); font-size: 11px; }
.order-table th { color: var(--muted); background: var(--ivory); }
.staff-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.staff-filters a { padding: 7px 13px; background: #fff; border: 1px solid var(--line); }

.site-footer { padding-top: 70px; color: rgba(255,255,255,.72); background: #071e18; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 70px; padding-bottom: 60px; }
.brand-light .brand-mark { color: var(--emerald-deep); background: var(--gold-light); }
.brand-light .brand-words strong { color: #fff; }
.footer-brand p { max-width: 320px; }
.footer-grid h3 { margin: 0 0 16px; color: var(--gold-light); font-size: 12px; }
.footer-grid a, .footer-grid p { display: block; margin: 7px 0; font-size: 10px; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); font-family: "Cormorant Garamond", serif; font-size: 12px; }
.mobile-bottom-nav { display: none; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 38px, 1000px); }
  .header-main { grid-template-columns: auto auto 1fr; gap: 18px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; inset-inline: 0; display: none; align-items: stretch; padding: 18px 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 9px 0; }
  .header-actions { justify-content: end; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-tile { min-height: 390px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 28px); }
  body { padding-bottom: 66px; }
  .announcement { justify-content: center; min-height: 30px; font-size: 8px; }
  .announcement > *:not(:first-child) { display: none; }
  .header-main { min-height: 68px; }
  .brand-mark { width: 35px; height: 35px; font-size: 22px; }
  .brand-words strong { font-size: 15px; }
  .brand-words small { font-size: 7px; }
  .branch-switcher { min-width: 0; max-width: 115px; }
  .branch-switcher label { display: none; }
  .branch-switcher select { max-width: 115px; font-size: 9px; }
  .language-link { display: none; }
  .bag-link { display: none; }
  .hero-section { min-height: 68vh; }
  .hero-overlay { background: linear-gradient(0deg, rgba(5,27,21,.93), rgba(5,27,21,.18)); }
  .hero-content { display: flex; min-height: 68vh; flex-direction: column; justify-content: end; padding-block: 60px 78px; }
  .hero-content h1 { font-size: 68px; }
  .hero-content > p:not(.eyebrow) { margin: 20px 0 25px; font-size: 12px; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .hero-branch { bottom: 20px; font-size: 10px; }
  .store-section { padding-block: 60px; }
  .category-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .category-tile { min-width: 78vw; min-height: 410px; scroll-snap-align: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 9px; }
  .product-info h3 { font-size: 11px; }
  .editorial-panel { grid-template-columns: 1fr; }
  .editorial-image { min-height: 420px; }
  .editorial-copy { padding: 45px 24px 60px; }
  .service-strip { grid-template-columns: 1fr; padding: 22px 16px; }
  .service-strip > div { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 18px 8px; }
  .section-heading.split { align-items: start; flex-direction: column; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; padding-block: 24px 70px; }
  .product-summary { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; padding-block: 35px 70px; }
  .summary-card { position: static; }
  .cart-row { grid-template-columns: 82px 1fr; gap: 14px; }
  .cart-row img { width: 82px; }
  .cart-row > :last-child { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .order-success { margin: 35px 14px 70px; padding: 35px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { font-size: 9px; }
  .mobile-bottom-nav { position: fixed; z-index: 70; bottom: 0; inset-inline: 0; height: 66px; display: grid; grid-template-columns: repeat(3,1fr); color: var(--emerald-deep); background: rgba(255,253,248,.97); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-bottom-nav a { position: relative; display: grid; place-items: center; align-content: center; font-size: 8px; line-height: 1.4; }
  .mobile-bottom-nav span { font-size: 18px; }
  .mobile-bottom-nav b { top: 7px; inset-inline-end: calc(50% - 22px); }
  .order-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
