/* ============================================================================
   إِدام (Idaam) — Artisanal Arabic Pantry Stylesheet
   Concept: "السُّفرة" (Warm Editorial Arabic Breakfast Table)
   Palette:
     - Tahini Cream : #F4ECDD
     - Deep Olive   : #33401F
     - Honey Amber  : #D8962A
     - Za'atar Sage : #8C9A5E
     - Clay Seal    : #B4532F
     - Ink Text     : #221C15
   ============================================================================ */

:root {
  --bg-cream: #F4ECDD;
  --bg-card: #FAF5EB;
  --bg-soft: #EDE1CA;
  --olive: #33401F;
  --olive-dark: #232D14;
  --honey: #D8962A;
  --honey-hover: #BF801B;
  --sage: #8C9A5E;
  --clay: #B4532F;
  --ink: #221C15;
  --muted: #5F5546;
  --border: #DFCFAF;
  --shadow-sm: 0 4px 14px rgba(34, 28, 21, 0.06);
  --shadow-md: 0 12px 32px rgba(34, 28, 21, 0.11);
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Amiri', 'Aref Ruqaa', serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.container {
  width: min(1220px, 92%);
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

/* ----------------------------------------------------------------------------
   Top Announcement Bar
   ---------------------------------------------------------------------------- */
.topbar {
  background-color: var(--olive);
  color: var(--bg-cream);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(216, 150, 42, 0.28);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-msg {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.drop-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--honey);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(216, 150, 42, 0.25);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-link:hover {
  color: var(--honey);
}

/* ----------------------------------------------------------------------------
   Site Header
   ---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 236, 221, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 62px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--olive);
  padding: 0.3rem 0.2rem;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clay);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--honey);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.search-box {
  position: relative;
  width: 245px;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  font-size: 0.86rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(51, 64, 31, 0.12);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.cart-trigger {
  background: var(--olive);
  color: var(--bg-cream);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.cart-trigger:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--honey);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.35rem;
}

/* ----------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(216, 150, 42, 0.28);
}

.btn-primary:hover {
  background: var(--honey-hover);
  transform: translateY(-1px);
}

.btn-olive {
  background: var(--olive);
  color: var(--bg-cream);
}

.btn-olive:hover {
  background: var(--olive-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--olive);
  color: var(--olive);
}

.btn-outline:hover {
  background: var(--olive);
  color: var(--bg-cream);
}

.btn-whatsapp {
  background: #1F7A4C;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #165B38;
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ----------------------------------------------------------------------------
   Hero Section ("السُّفرة")
   ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 3.25rem 0 3.75rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 2.75rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.3rem 0.85rem 0.3rem 0.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.eyebrow-seal {
  background: var(--clay);
  color: var(--bg-cream);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  line-height: 1.25;
  color: var(--olive);
  margin-bottom: 1rem;
}

.highlight-word {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.65rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding-top: 1.35rem;
  border-top: 1px dashed var(--border);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.trust-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.trust-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--olive);
}

.trust-item span {
  font-size: 0.76rem;
  color: var(--muted);
}

.sufra-frame {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.sufra-illustration,
.sufra-hero-photo {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.floating-wax-badge {
  position: absolute;
  top: -16px;
  left: -14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.wax-badge-text strong {
  display: block;
  font-size: 0.86rem;
  color: var(--clay);
  line-height: 1.1;
}

.wax-badge-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.sufra-caption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--olive);
  padding-top: 0.55rem;
}

/* ----------------------------------------------------------------------------
   Section Headings & Category Blob Tiles
   ---------------------------------------------------------------------------- */
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.5px;
  background: rgba(180, 83, 47, 0.1);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  color: var(--olive);
}

.section-desc {
  color: var(--muted);
  margin-top: 0.35rem;
}

.categories-section {
  padding: 2.75rem 0 1.5rem;
}

.category-blobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}

.category-blob-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 28px 18px 28px 18px;
  padding: 1.15rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.category-blob-btn:hover {
  border-color: var(--honey);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.category-blob-btn.active {
  background: var(--olive);
  color: var(--bg-cream);
  border-color: var(--olive);
  box-shadow: var(--shadow-sm);
}

.category-blob-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}

.category-blob-btn.active .category-blob-icon {
  background: rgba(244, 236, 221, 0.16);
}

.category-blob-name {
  font-weight: 700;
  font-size: 1rem;
}

.category-blob-sub {
  font-size: 0.76rem;
  opacity: 0.8;
}

/* ----------------------------------------------------------------------------
   Product Catalog Grid & Cards
   ---------------------------------------------------------------------------- */
.catalog-section {
  padding: 2rem 0 3.75rem;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.45rem;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--honey);
}

.card-seal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 3px 6px rgba(34, 28, 21, 0.22));
}

.card-origin-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(250, 245, 235, 0.94);
  border: 1px solid var(--border);
  color: var(--olive);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-visual {
  background: #EFE2C9;
  height: 245px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .card-photo {
  transform: scale(1.06);
}

.card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.card-category {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--olive);
  line-height: 1.3;
  cursor: pointer;
}

.card-title:hover {
  color: var(--clay);
}

.card-short-desc {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 2.6em;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.size-pill {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.size-pill.active {
  background: var(--olive);
  color: var(--bg-cream);
  border-color: var(--olive);
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--olive);
}

.compare-price {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: line-through;
}

.stock-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.stock-ok {
  background: rgba(140, 154, 94, 0.2);
  color: var(--olive);
}

.stock-low {
  background: rgba(216, 150, 42, 0.22);
  color: #8A5808;
}

.stock-out {
  background: rgba(180, 83, 47, 0.18);
  color: var(--clay);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* ----------------------------------------------------------------------------
   Bundles Section
   ---------------------------------------------------------------------------- */
.bundles-section {
  padding: 3rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.bundle-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.bundle-card-gold {
  border-color: var(--honey);
  background: linear-gradient(135deg, #FAF5EB 0%, #F5E8CE 100%);
}

.bundle-badge {
  align-self: flex-start;
  background: var(--olive);
  color: var(--bg-cream);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

.bundle-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--olive);
}

.bundle-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.bundle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.88rem;
  margin-left: 0.4rem;
}

.new-price {
  font-size: 1.35rem;
  color: var(--clay);
}

/* ----------------------------------------------------------------------------
   Palestinian Makhtoum Feature Section
   ---------------------------------------------------------------------------- */
.makhtoum-section {
  padding: 3.75rem 0;
  background: var(--olive);
  color: var(--bg-cream);
}

.makhtoum-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 2.5rem;
  align-items: center;
}

.makhtoum-photo-showcase {
  background: rgba(244, 236, 221, 0.08);
  border: 2px solid rgba(216, 150, 42, 0.45);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}

.makhtoum-feature-img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.makhtoum-tag {
  display: inline-block;
  background: rgba(216, 150, 42, 0.22);
  border: 1px solid var(--honey);
  color: #FFE4B0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.makhtoum-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  color: var(--honey);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.makhtoum-lead {
  font-size: 0.98rem;
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

.makhtoum-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pillar-card {
  background: rgba(244, 236, 221, 0.06);
  border: 1px solid rgba(244, 236, 221, 0.14);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pillar-num {
  color: var(--honey);
  font-weight: 700;
  font-size: 1.1rem;
}

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.25rem 0 0.4rem;
}

.pillar-card p {
  font-size: 0.86rem;
  opacity: 0.86;
}

/* ----------------------------------------------------------------------------
   Story & Governorate Shipping Calculator
   ---------------------------------------------------------------------------- */
.story-shipping-section {
  padding: 3.5rem 0;
}

.story-shipping-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

.story-box p {
  color: var(--muted);
  margin-top: 0.85rem;
  font-size: 1rem;
}

.shipping-calc-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.shipping-calc-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--olive);
  margin-bottom: 0.35rem;
}

.shipping-calc-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.calc-result {
  margin-top: 1rem;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.calc-result strong {
  color: var(--clay);
  margin-right: 0.35rem;
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 236, 221, 0.14);
}

.footer-logo-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--honey);
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.82;
  max-width: 44ch;
}

.footer-col h4 {
  color: var(--honey);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  opacity: 0.88;
}

.footer-bottom {
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.82rem;
  opacity: 0.72;
}

/* ----------------------------------------------------------------------------
   Modals & Slide-out Cart Drawer
   ---------------------------------------------------------------------------- */
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34, 28, 21, 0.58);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.modal-close {
  background: var(--bg-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.product-modal-card .modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.pm-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
}

.pm-visual {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 310px;
}

.pm-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-share-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.pm-share-row .btn {
  flex: 1;
  justify-content: center;
  text-decoration: none;
}

.pm-info h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--olive);
  margin: 0.25rem 0 0.5rem;
}

.pm-meta-box {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0.85rem 0;
  font-size: 0.88rem;
}

/* Slide-out Drawer (opens on the Left in RTL) */
.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.cart-drawer-panel {
  background: var(--bg-card);
  width: min(460px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.drawer-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-cream);
}

.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--olive);
}

.drawer-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.cart-items-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cart-item {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--olive);
}

.cart-item-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
}

.qty-btn {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--olive);
}

.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--olive);
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--olive);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.input-field {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.58rem 0.8rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.input-field:focus {
  outline: none;
  border-color: var(--olive);
}

.payment-options {
  display: grid;
  gap: 0.45rem;
}

.pay-radio {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-weight: 500 !important;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-cream);
}

.totals-breakdown {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.tot-row {
  display: flex;
  justify-content: space-between;
}

.tot-grand {
  font-size: 1.1rem;
  color: var(--clay);
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border);
}

.alert-error {
  background: rgba(180, 83, 47, 0.14);
  border: 1px solid var(--clay);
  color: var(--clay);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.order-success-card {
  text-align: center;
  max-width: 480px;
}

.order-Success-card h2 {
  font-family: var(--font-display);
  color: var(--olive);
  margin: 0.5rem 0;
}

.order-num-pill {
  display: inline-block;
  background: var(--bg-soft);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin: 0.5rem 0 0.85rem;
  color: var(--clay);
}

.conf-summary-text {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.conf-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--olive);
  color: var(--bg-cream);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 200;
}

/* ----------------------------------------------------------------------------
   Mobile Menu Button, Collapsible Drawer & Sticky Mobile Bottom Cart Bar
   ---------------------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--olive);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav-drawer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: var(--shadow-md);
}

.mobile-nav-drawer[hidden] {
  display: none !important;
}

.mobile-nav-link {
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--olive);
  background: var(--bg-cream);
  border: 1px solid transparent;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
  border-color: var(--honey);
}

.mobile-bottom-cart {
  display: none;
}

/* ----------------------------------------------------------------------------
   Tablet & Mobile Breakpoints
   ---------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .makhtoum-grid,
  .story-shipping-grid,
  .footer-grid,
  .pm-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 74px; /* space for sticky bottom cart bar */
  }

  .container {
    width: 92%;
  }

  /* Compact top announcement bar on phones */
  .topbar {
    font-size: 0.76rem;
    padding: 0.4rem 0;
  }
  .topbar-inner {
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
  }
  .hide-on-mobile {
    display: none !important;
  }

  /* Two-row mobile header: Row 1 = [Menu] [Logo] [Cart], Row 2 = [Full-width Search] */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.55rem 0;
  }
  .logo-svg {
    height: 50px;
  }
  .header-actions {
    flex: 1;
    justify-content: flex-end;
    gap: 0.5rem;
  }
  .search-box {
    order: 4;
    width: 100%;
    flex-basis: 100%;
  }
  .search-box input {
    font-size: 16px; /* prevents iOS Safari auto-zoom on focus */
    padding: 0.58rem 1rem 0.58rem 2.3rem;
  }
  .cart-trigger {
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
  }

  /* Hero section mobile tuning */
  .hero {
    padding: 1.65rem 0 2.2rem;
  }
  .hero-grid {
    gap: 1.6rem;
  }
  .hero-eyebrow {
    font-size: 0.76rem;
    padding: 0.25rem 0.65rem 0.25rem 0.4rem;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.94rem;
    margin-bottom: 1.25rem;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
  }
  .hero-cta-row .btn,
  .mobile-full-btn {
    width: 100%;
  }
  .hero-trust-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .sufra-frame {
    padding: 0.65rem;
  }
  .sufra-hero-photo {
    height: 235px;
    border-radius: 14px;
  }
  .floating-wax-badge {
    top: 14px;
    left: 14px;
    padding: 0.25rem 0.7rem 0.25rem 0.35rem;
  }
  .floating-wax-badge svg {
    width: 40px;
    height: 40px;
  }

  /* Horizontal swipeable category strip on phones */
  .categories-section {
    padding: 1.75rem 0 0.75rem;
  }
  .category-blobs {
    display: flex;
    overflow-x: auto;
    gap: 0.65rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .category-blob-btn {
    min-width: 138px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.75rem 0.7rem;
    border-radius: 18px;
  }
  .category-blob-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .category-blob-name {
    font-size: 0.88rem;
  }
  .category-blob-sub {
    display: none;
  }

  /* Catalog toolbar & product cards on phones */
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }
  .toolbar-controls {
    justify-content: space-between;
  }
  .sort-select {
    flex: 1;
    font-size: 16px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .card-visual {
    height: 225px;
  }
  .size-pill {
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    min-height: 36px;
  }
  .card-actions .btn {
    min-height: 44px;
    font-size: 0.9rem;
  }

  /* Palestinian Makhtoum & Bundles on phones */
  .makhtoum-section {
    padding: 2.25rem 0;
  }
  .makhtoum-feature-img {
    height: 245px;
  }
  .makhtoum-pillars {
    grid-template-columns: 1fr;
  }
  .bundles-grid {
    grid-template-columns: 1fr;
  }
  .bundle-card {
    padding: 1.2rem;
  }
  .bundle-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .bundle-footer .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Modals & Cart Drawer on phones (100dvh safe for mobile browser bars) */
  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .modal-card {
    padding: 1.25rem;
    max-height: 92dvh;
    border-radius: 20px 20px 14px 14px;
  }
  .pm-visual {
    height: 220px;
  }
  .cart-drawer-panel {
    width: 100%;
    height: 100dvh;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .input-field {
    font-size: 16px; /* prevents iOS zoom */
    min-height: 44px;
  }
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  /* Sticky Bottom Cart Bar for thumb reach */
  .mobile-bottom-cart:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--olive);
    color: var(--bg-cream);
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    z-index: 55;
    box-shadow: 0 -6px 20px rgba(34, 28, 21, 0.22);
    border-top: 2px solid var(--honey);
  }
  .mobile-bottom-cart-info {
    display: flex;
    flex-direction: column;
  }
  .mobile-cart-count {
    font-size: 0.76rem;
    opacity: 0.88;
  }
  .mobile-cart-total {
    font-size: 1.08rem;
    color: var(--honey);
  }

  .toast {
    bottom: 5rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}

