/* ==========================================================================
   Cadeau Malak - storefront stylesheet
   Palette taken from the shop logo: warm cream, charcoal grey, gold accent.
   Written with logical properties so one sheet serves both RTL and LTR.
   ========================================================================== */

:root {
  --cream: #f4ede1;
  --cream-soft: #faf6ee;
  --charcoal: #4a4a4a;
  --charcoal-dark: #2e2c2b;
  --gold: #b8925a;
  --gold-light: #d9b98a;
  --gold-soft: rgb(184 146 90 / 12%);
  --white: #fff;
  --danger: #b3453a;
  --success: #3f7d58;
  --whatsapp: #1f8f4e;
  --line: rgb(184 146 90 / 25%);
  --shadow-sm: 0 4px 14px rgb(46 44 43 / 6%);
  --shadow: 0 10px 30px rgb(46 44 43 / 8%);
  --shadow-lg: 0 18px 48px rgb(46 44 43 / 14%);
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Playfair Display", "Amiri", serif;
  --sans: "Cairo", "Tajawal", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal-dark);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .5em;
}

.lang-en h1,
.lang-en h2,
.lang-en h3 { letter-spacing: .01em; }

p { margin: 0 0 1em; }

button { font-family: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted { color: var(--charcoal); font-weight: 400; font-size: .85em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgb(184 146 90 / 30%);
}

.btn-gold:hover { box-shadow: 0 10px 24px rgb(184 146 90 / 38%); }

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--charcoal-dark);
}

.btn-outline:hover { background: var(--gold-soft); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgb(31 143 78 / 28%);
}

.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }

.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }

.btn-block { display: flex; width: 100%; }

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.link-danger {
  background: none;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  font-size: .85rem;
  padding: 0;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Promo bar and header
   -------------------------------------------------------------------------- */
.promo-bar {
  background: var(--charcoal-dark);
  color: var(--cream);
  font-size: .84rem;
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.promo-messages {
  position: relative;
  flex: 1;
  min-height: 1.6em;
}

.promo-message {
  position: absolute;
  inset-inline-start: 0;
  opacity: 0;
  transition: opacity .4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.promo-message.is-visible { opacity: 1; }

.lang-switch {
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
}

.lang-switch:hover { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(250 246 238 / 94%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-en {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal-dark);
}

.brand-ar {
  font-size: .72rem;
  color: var(--gold);
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: .95rem;
}

.main-nav a {
  position: relative;
  padding-block: .3rem;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-nav a:hover::after { transform: scaleX(1); }

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

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal-dark);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.icon-btn:hover { background: var(--gold-soft); border-color: var(--line); }

.cart-count {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 2px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.lang-switch-inline {
  display: none;
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--charcoal-dark);
}

.nav-toggle { display: none; }

/* Search panel */
.search-panel {
  border-top: 1px solid var(--line);
  background: var(--cream-soft);
  padding-block: 1rem;
}

.search-form {
  display: flex;
  gap: .6rem;
}

.search-form input {
  flex: 1;
  padding: .75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.search-form input:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
}

.search-results {
  margin-top: .8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-result {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--line);
}

.search-result:last-child { border-bottom: 0; }

.search-result:hover { background: var(--gold-soft); }

.search-result img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-result-name { font-weight: 600; font-size: .92rem; }

.search-result-price { color: var(--gold); font-size: .82rem; }

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: .5rem 4%;
}

.mobile-nav li { border-bottom: 1px solid var(--line); }

.mobile-nav li:last-child { border-bottom: 0; }

.mobile-nav a {
  display: block;
  padding: .85rem .2rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */
.flash-stack { margin-top: 1rem; }

.flash {
  padding: .8rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: .6rem;
  font-weight: 600;
  border: 1px solid;
}

.flash-success {
  background: rgb(63 125 88 / 10%);
  border-color: rgb(63 125 88 / 35%);
  color: var(--success);
}

.flash-error {
  background: rgb(179 69 58 / 10%);
  border-color: rgb(179 69 58 / 35%);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;

  /* Branded fallback so a banner with no image is still readable: the slide
     text is always light, so the ground behind it must always be dark. */
  background-color: var(--charcoal-dark);
  background-image: linear-gradient(135deg, #2e2c2b 0%, #4a4a4a 55%, #8a6a34 100%);
  align-items: center;
}

.hero-slide.is-active { display: flex; }

/* Vertical scrim: works the same in Arabic and English, unlike a
   left-to-right one which flips meaning between the two directions. */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(46 44 43 / 20%), rgb(46 44 43 / 62%));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem;
  max-width: 640px;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white);
  text-shadow: 0 2px 18px rgb(46 44 43 / 45%);
}

.hero-content p {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 12px rgb(46 44 43 / 45%);
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: .5rem;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 55%);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active { background: var(--gold-light); width: 26px; border-radius: 999px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: 3.2rem; }

.section-deals { background: var(--cream); }

.section-testimonials { background: var(--cream); }

.section-title {
  position: relative;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 1.6rem;
  padding-bottom: .6rem;
}

.section-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-link {
  color: var(--gold);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

.page-head {
  background: var(--cream);
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.page-head h1 { margin-bottom: .2rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }

.page-head-desc { color: var(--charcoal); margin-bottom: .3rem; }

.page-head-meta { color: var(--gold); font-size: .9rem; margin: 0; }

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--charcoal);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Category circles
   -------------------------------------------------------------------------- */
.category-circles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
}

.category-circle { text-align: center; }

.circle-media {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin-inline: auto;
  margin-bottom: .6rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-circle:hover .circle-media {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.circle-media img { width: 100%; height: 100%; object-fit: cover; }

.circle-icon {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
}

.circle-name { display: block; font-weight: 700; font-size: .95rem; }

.circle-count { display: block; font-size: .78rem; color: var(--charcoal); }

/* --------------------------------------------------------------------------
   Product grid and cards
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease, transform .4s ease;
}

.card-media-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.card-media:hover .card-media-hover { opacity: 1; }

.card-media:hover img { transform: scale(1.04); }

.badges {
  position: absolute;
  inset-block-start: .6rem;
  inset-inline-start: .6rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}

.badge {
  padding: .18rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gold);
}

.badge-sale { background: var(--danger); }

.badge-new { background: var(--charcoal-dark); }

.badge-out { background: var(--charcoal); }

.badge-lg { font-size: .85rem; padding: .3rem .9rem; position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .9rem 1rem 1.1rem;
  flex: 1;
}

.card-title {
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price { margin: 0; display: flex; align-items: baseline; gap: .5rem; }

.price-now { font-size: 1.1rem; font-weight: 800; color: var(--charcoal-dark); }

.price-was { color: var(--charcoal); text-decoration: line-through; font-size: .88rem; }

.card-price-lbp { margin: 0; font-size: .8rem; color: var(--gold); }

.card-body .btn { margin-top: auto; }

.is-sold-out .card-media img { filter: grayscale(60%); opacity: .75; }

/* --------------------------------------------------------------------------
   Countdown
   -------------------------------------------------------------------------- */
.countdown {
  margin-top: .6rem;
  padding: .5rem .8rem;
  background: var(--charcoal-dark);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.countdown-value { font-weight: 700; color: var(--gold-light); white-space: nowrap; }

.countdown-inline { margin-block: 1rem; }

/* --------------------------------------------------------------------------
   Listing layout
   -------------------------------------------------------------------------- */
.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-block: 2.2rem;
  align-items: start;
}

.listing-filters {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

/* Shown only on narrow screens, where the sidebar collapses behind it. */
.filter-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  padding: .75rem 1.1rem;
  margin-bottom: .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: var(--charcoal-dark);
  cursor: pointer;
}

.filter-toggle:hover { background: var(--gold-soft); }

.filter-toggle-icon {
  transition: transform .2s ease;
  color: var(--gold);
  font-size: .8rem;
}

.filter-toggle[aria-expanded="true"] .filter-toggle-icon { transform: rotate(180deg); }

.filter-block { margin-bottom: 1.3rem; }

.filter-title {
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: var(--charcoal-dark);
}

.filter-list { list-style: none; margin: 0; padding: 0; }

.filter-list li { margin-bottom: .35rem; }

.filter-list a { color: var(--charcoal); font-size: .92rem; }

.filter-list a:hover { color: var(--gold); }

.filter-range { display: flex; gap: .6rem; }

.filter-range label { flex: 1; display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; }

.filter-form input[type="number"],
.filter-form select {
  width: 100%;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: .9rem;
}

.filter-check { display: flex; align-items: center; gap: .5rem; font-size: .92rem; cursor: pointer; }

.filter-form .btn { margin-bottom: .5rem; }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-block: 1.2rem .4rem;
  font-size: .85rem;
  color: var(--charcoal);
}

.breadcrumb a:hover { color: var(--gold); }

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  padding-block: 1.5rem 2.5rem;
  align-items: start;
}

.gallery-main {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 1 / 1;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: .55rem;
  margin-top: .7rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
}

.gallery-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.product-rating { display: inline-block; margin-bottom: .6rem; }

.product-short { color: var(--charcoal); }

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .7rem;
  padding-block: .8rem;
  border-block: 1px solid var(--line);
  margin-block: 1rem;
}

.product-price .price-now { font-size: 1.7rem; }

.price-lbp { color: var(--gold); font-weight: 700; }

.product-stock { font-weight: 700; font-size: .92rem; }

.product-stock.is-in { color: var(--success); }

.product-stock.is-out { color: var(--danger); }

.product-actions {
  display: flex;
  gap: .8rem;
  align-items: stretch;
  margin-block: 1.2rem;
  flex-wrap: wrap;
}

.qty-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.qty-btn {
  width: 42px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--charcoal-dark);
}

.qty-btn:hover { background: var(--gold-soft); }

.qty-picker input {
  width: 54px;
  height: 46px;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-picker input::-webkit-outer-spin-button,
.qty-picker input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.qty-picker-sm .qty-btn { width: 32px; height: 36px; }

.qty-picker-sm input { width: 42px; height: 36px; font-size: .9rem; }

.whatsapp-ask { margin-top: .4rem; }

.product-sku { margin-top: 1rem; font-size: .82rem; color: var(--charcoal); }

.product-tabs { padding-block: 1.5rem; }

.tab-buttons {
  display: flex;
  gap: .4rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.tab-btn {
  padding: .7rem 1.3rem;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--charcoal);
}

.tab-btn.is-active {
  background: var(--white);
  border-color: var(--line);
  color: var(--charcoal-dark);
}

.tab-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 1.4rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.product-reviews { padding-block: 2rem; }

.review-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }

.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

.review-body { margin: .4rem 0 .5rem; }

.review-author { margin: 0; font-weight: 700; font-size: .9rem; }

.review-date { color: var(--charcoal); font-weight: 400; font-size: .8rem; margin-inline-start: .5rem; }

.stars { color: var(--gold); letter-spacing: .1em; font-size: .95rem; }

.star { color: rgb(184 146 90 / 30%); }

.star.is-on { color: var(--gold); }

.stars-count { color: var(--charcoal); font-size: .8rem; margin-inline-start: .3rem; }

.review-form,
.contact-form,
.order-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }

.form-row label { font-weight: 700; font-size: .9rem; }

.form-row input,
.form-row select,
.form-row textarea {
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .98rem;
  background: var(--cream-soft);
  color: var(--charcoal-dark);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
  background: var(--white);
}

.field-error { color: var(--danger); font-size: .82rem; font-weight: 600; }

.hp-field { position: absolute; inset-inline-start: -9999px; opacity: 0; }

.sticky-add {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 4%;
  background: rgb(250 246 238 / 97%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(46 44 43 / 8%);
}

.sticky-price { font-weight: 800; font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  padding-block: 2.2rem;
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: .8rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  vertical-align: middle;
}

.cart-table thead th {
  background: var(--cream);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cart-table tbody tr:last-child td { border-bottom: 0; }

.cart-product { display: flex; align-items: center; gap: .8rem; }

.cart-product img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.cart-name { font-weight: 700; }

.cart-table-wrap .btn { margin-top: 1rem; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .4rem;
}

.summary-total {
  border-top: 1px solid var(--line);
  margin-top: .5rem;
  padding-top: .8rem;
  font-size: 1.1rem;
}

.summary-total strong { color: var(--gold); }

.summary-note { font-size: .8rem; color: var(--charcoal); margin: .3rem 0 0; }

.payment-note {
  margin-top: .9rem;
  font-size: .82rem;
  color: var(--charcoal);
  text-align: center;
}

.cart-loading { text-align: center; color: var(--charcoal); padding: 2rem; }

/* --------------------------------------------------------------------------
   Order confirmation
   -------------------------------------------------------------------------- */
.order-done { padding-block: 3rem; }

.order-done-card {
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.order-done-lead { color: var(--charcoal); }

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.8rem 1rem;
  text-align: start;
}

.order-table th,
.order-table td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  font-size: .92rem;
}

.order-total-row { font-size: 1.05rem; font-weight: 800; }

.order-total-row td { color: var(--gold); }

/* --------------------------------------------------------------------------
   Contact and static pages
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  padding-block: 2.2rem;
  align-items: start;
}

.contact-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .9rem; }

.contact-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold);
  font-weight: 700;
}

.contact-social { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }

.contact-social a { color: var(--charcoal-dark); font-weight: 700; text-decoration: underline; }

.contact-map iframe { width: 100%; min-height: 240px; border: 0; border-radius: var(--radius); }

.static-page { padding-block: 2.2rem; }

.rich-text {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  max-width: 820px;
}

.rich-text h2 { font-size: 1.3rem; margin-top: 1.4rem; }

.rich-text ul, .rich-text ol { padding-inline-start: 1.4rem; }

.error-page { padding-block: 4rem; text-align: center; }

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--gold-light);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: 2rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 700;
  font-size: .9rem;
}

.page-link:hover { background: var(--gold-soft); }

.page-link.is-current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.page-gap { align-self: center; color: var(--charcoal); }

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */
.section-contact-cta { background: var(--charcoal-dark); color: var(--cream); }

.section-contact-cta h2 { color: var(--white); margin-bottom: .3rem; }

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

.site-footer { background: var(--cream); border-top: 1px solid var(--line); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-block: 2.8rem 2rem;
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .8rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.footer-col a:hover { color: var(--gold); }

.footer-brand img { width: 76px; height: 76px; border-radius: 50%; margin-bottom: .8rem; }

.footer-note { font-size: .8rem; color: var(--charcoal); }

.footer-social { display: flex; gap: .8rem; flex-wrap: wrap; }

.footer-social a { font-weight: 700; color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
  font-size: .84rem;
  color: var(--charcoal);
  text-align: center;
}

.wa-float {
  position: fixed;
  inset-block-end: 1.1rem;
  inset-inline-end: 1.1rem;
  z-index: 65;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 22px rgb(31 143 78 / 35%);
  transition: transform .2s ease;
}

.wa-float:hover { transform: scale(1.06); }

/* On a phone the button would otherwise sit on top of whatever you scroll
   past, so it slides away while reading downwards and comes back the moment
   you scroll up or reach the top. */
.wa-float {
  transition: transform .25s ease, opacity .25s ease;
}

.wa-float.is-tucked {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (width <= 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .listing-layout { grid-template-columns: 220px 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (width <= 860px) {
  .main-nav { display: none; }

  .nav-toggle { display: inline-flex; }

  .lang-switch-inline { display: inline-flex; }

  .promo-bar .lang-switch { display: none; }

  .mobile-nav.is-open { display: block; }

  .product-layout,
  .cart-layout,
  .contact-layout { grid-template-columns: 1fr; }

  .listing-layout { grid-template-columns: 1fr; }

  .listing-filters { position: static; }

  .hero-slide { min-height: 320px; }

  .sticky-add { display: flex; }

  body { padding-bottom: 76px; }

  .wa-float { inset-block-end: 5.6rem; }

  /* Filters collapse behind a button so the shop opens on products, not on a
     form. The button is hidden on desktop, where the sidebar is always shown. */
  .filter-toggle { display: flex; }

  .listing-filters {
    display: none;
    margin-bottom: 1.2rem;
  }

  .listing-filters.is-open { display: block; }
}

@media (width <= 620px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .card-body { padding: .7rem .8rem 1rem; }

  .section { padding-block: 2.2rem; }

  .section-title { margin-bottom: 1.2rem; }

  /* --- Header: keep everything on one comfortable row ------------------- */
  .header-inner { padding-block: .5rem; gap: .4rem; }

  .brand { gap: .5rem; min-width: 0; flex-shrink: 1; }

  .brand img { width: 40px; height: 40px; }

  .brand-en { font-size: .98rem; }

  .brand-ar { display: none; }

  .header-actions { gap: .1rem; }

  .icon-btn { width: 38px; height: 38px; }

  .lang-switch-inline { padding: .25rem .5rem; font-size: .75rem; }

  /* --- Category circles: three per row instead of two ------------------- */
  .category-circles {
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
  }

  .circle-media { width: 84px; height: 84px; margin-bottom: .4rem; }

  .circle-icon { font-size: 1.7rem; }

  .circle-name { font-size: .82rem; line-height: 1.4; }

  .circle-count { font-size: .7rem; }

  /* --- Hero: shorter, so products are closer to the top ---------------- */
  .hero-slide { min-height: 260px; }

  .hero-content { padding-block: 2.2rem; }

  .hero-content p { font-size: .95rem; margin-bottom: 1.1rem; }

  /* --- Product page ---------------------------------------------------- */
  .gallery-main { aspect-ratio: 4 / 5; }

  .gallery-thumb { width: 60px; height: 60px; }

  .product-price .price-now { font-size: 1.45rem; }

  .product-actions { gap: .6rem; }

  .product-actions .btn-lg { flex: 1; padding-inline: 1rem; }

  .tab-btn { padding: .6rem .9rem; font-size: .86rem; }

  .tab-panel { padding: 1.1rem; }

  /* --- Cart: each row becomes a card that still names every number ------ */
  .cart-table thead { display: none; }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td { display: block; width: 100%; }

  .cart-table {
    border: 0;
    background: transparent;
  }

  .cart-table tr {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    margin-bottom: .8rem;
  }

  .cart-table td {
    border: 0;
    padding: .18rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  /* The column name travels with the value instead of living in a header. */
  .cart-table td[data-label]::before {
    content: attr(data-label);
    color: var(--charcoal);
    font-size: .8rem;
    font-weight: 600;
  }

  .cart-table td.cart-product {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: .7rem;
    align-items: center;
    padding-bottom: .6rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--line);
  }

  .cart-table td.cart-product::before { content: none; }

  .cart-name { font-size: .95rem; line-height: 1.5; }

  .cart-table td:last-child { justify-content: flex-end; padding-top: .5rem; }

  .cart-summary { padding: 1.1rem; }

  .order-form { padding: 1.2rem; }

  /* --- Static content --------------------------------------------------- */
  .rich-text { padding: 1.2rem; }

  .order-done-card { padding: 1.4rem; }

  .breadcrumb { font-size: .78rem; }

  /* Smaller floating button, with a ring so it reads as hovering above the
     content it passes over rather than being part of it. */
  .wa-float {
    width: 46px;
    height: 46px;
    box-shadow: 0 0 0 3px var(--cream-soft), 0 6px 16px rgb(31 143 78 / 35%);
  }

  .wa-float svg { width: 22px; height: 22px; }

  /* Keep "add to cart" on one line inside a half-width card. */
  .card-body .btn {
    font-size: .82rem;
    padding: .6rem .5rem;
    white-space: nowrap;
  }

  .card-title { font-size: .9rem; }
}

/* Very small phones (older Androids, 320-360px) */
@media (width <= 380px) {
  .brand-en { font-size: .88rem; }

  .brand img { width: 36px; height: 36px; }

  .icon-btn { width: 34px; height: 34px; }

  .product-grid { gap: .7rem; }

  .price-now { font-size: 1rem; }
}

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