/* =============================================================
   sskoon — main stylesheet v1.3.0
   Mobile-first, fully responsive.
   Navigation: desktop inline flex / mobile dropdown panel.
   ============================================================= */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --sskoon-bg:           #f7f2ea;
  --sskoon-bg-soft:      #f0e9dd;
  --sskoon-card:         #fbf7f0;
  --sskoon-ink:          #1f1d1b;
  --sskoon-ink-soft:     #5c544a;
  --sskoon-muted:        #8a8075;
  --sskoon-line:         #e7ddcd;
  --sskoon-accent:       #c9a071;
  --sskoon-accent-dark:  #b08851;
  --sskoon-white:        #ffffff;
  --sskoon-shadow:       0 10px 30px rgba(40,28,14,.06);
  --font-serif:          "Playfair Display","Cormorant Garamond",Georgia,serif;
  --font-sans:           "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --radius-lg:           20px;
  --radius-md:           14px;
  --radius-sm:           10px;
  --container:           1200px;
  --gap:                 28px;
  --header-h:            88px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sskoon-bg);
  color: var(--sskoon-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--sskoon-accent-dark); }
button { font: inherit; cursor: pointer; }

/* ─── Accessibility ──────────────────────────────────────────── */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto;
  background: var(--sskoon-ink); color: #fff;
  padding: 8px 14px; border-radius: 8px;
  z-index: 9999; clip: auto;
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ─── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--sskoon-ink);
  margin: 0 0 .4em;
}
p { margin: 0 0 1em; color: var(--sskoon-ink-soft); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--sskoon-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--sskoon-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--sskoon-ink);
  border-color: var(--sskoon-line);
}
.btn--ghost:hover {
  border-color: var(--sskoon-accent);
  color: var(--sskoon-accent-dark);
}
.btn--sm { padding: 9px 22px; font-size: 14px; }

/* ════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════ */
.site-header {
  background: rgba(247,242,234,.96);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(231,221,205,.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* ─── Logo ───────────────────────────────────────────────────── */
.site-branding { flex: 0 0 auto; }
.site-branding .custom-logo-link img { max-height: 48px; width: auto; }
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--sskoon-ink);
}
.site-logo__mark { width: 44px; height: 44px; }
.site-logo__text { display: none; }

/* ─── Desktop Primary Nav ─────────────────────────────────────
   Visible on ≥ 1025px, hidden on ≤ 1024px (mobile panel used instead)
   ──────────────────────────────────────────────────────────── */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.primary-nav__list > li { position: relative; }

.primary-nav__list > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--sskoon-ink);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}

.primary-nav__list > li > a:hover,
.primary-nav__list > li.current-menu-item > a,
.primary-nav__list > li.current-menu-ancestor > a {
  color: var(--sskoon-accent-dark);
  background: rgba(201,160,113,.1);
}

/* Arrow indicator for parent items */
.primary-nav__list .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: .72em;
  opacity: .65;
  margin-inline-start: 2px;
}

/* ─── Desktop Sub-menus (dropdown) ───────────────────────────── */
.primary-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--sskoon-white);
  border: 1px solid var(--sskoon-line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(40,28,14,.12);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 300;
}

[dir="rtl"] .primary-nav__list .sub-menu { left: auto; right: 0; }

.primary-nav__list > li:hover > .sub-menu,
.primary-nav__list > li:focus-within > .sub-menu { display: block; }

.primary-nav__list .sub-menu li { position: relative; }

.primary-nav__list .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .9rem;
  color: var(--sskoon-ink);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.primary-nav__list .sub-menu a:hover {
  color: var(--sskoon-accent-dark);
  background: rgba(201,160,113,.08);
}

/* ─── Site Icons (lang + search + hamburger) ─────────────────── */
.site-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--sskoon-ink);
  transition: background .18s;
}
.icon-btn:hover { background: rgba(201,160,113,.14); color: var(--sskoon-accent-dark); }
.icon-btn svg { width: 20px; height: 20px; }

/* ─── Language pill ──────────────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--sskoon-card);
  border: 1px solid var(--sskoon-line);
  border-radius: 999px;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sskoon-ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  transition: background .18s, color .18s;
}
.lang-switch__btn:hover { color: var(--sskoon-ink); background: rgba(201,160,113,.1); }
.lang-switch__btn.is-active { background: var(--sskoon-accent); color: #fff; }
.lang-switch__btn.is-active:hover { background: var(--sskoon-accent-dark); color: #fff; }
.lang-switch__flag {
  width: 20px; height: 14px;
  border-radius: 2px; overflow: hidden;
  display: block; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.site-icons__lang { display: inline-flex; margin-right: 4px; }

/* ─── Hamburger button ──────────────────────────────────────── */
.menu-toggle {
  display: none;            /* hidden on desktop */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--sskoon-line);
  border-radius: 10px;
  padding: 0;
  z-index: 210;
  transition: background .18s, border-color .18s;
}
.menu-toggle:hover { background: rgba(201,160,113,.1); border-color: var(--sskoon-accent); }

.menu-toggle__bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--sskoon-ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, background .18s;
}

/* Animated X when open */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION PANEL
   Dropdown that appears below the header on mobile (≤ 1024px).
   Hidden on desktop.
   ════════════════════════════════════════════════════════════════ */
.mobile-nav-panel {
  display: none;             /* hidden on desktop */
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--sskoon-bg);
  border-top: 2px solid var(--sskoon-accent);
  border-bottom: 1px solid var(--sskoon-line);
  box-shadow: 0 12px 32px rgba(40,28,14,.12);
  z-index: 190;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Slide-down animation */
  animation: none;
}

.mobile-nav-panel.is-open {
  display: block;
  animation: slideDown .28s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile nav list */
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
}

.mobile-nav__list li { position: relative; }

.mobile-nav__list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--sskoon-ink);
  border-bottom: 1px solid rgba(231,221,205,.6);
  transition: color .18s, background .18s;
}
.mobile-nav__list > li > a:hover,
.mobile-nav__list > li.current-menu-item > a {
  color: var(--sskoon-accent-dark);
  background: rgba(201,160,113,.06);
}

/* Sub-menu toggle arrow for mobile */
.mobile-nav__list .menu-item-has-children > a::after {
  content: '▾';
  font-size: .8em;
  opacity: .6;
  transition: transform .2s;
  margin-inline-start: 8px;
  flex-shrink: 0;
}
.mobile-nav__list .menu-item-has-children.sub-open > a::after {
  transform: rotate(180deg);
}

/* Mobile sub-menus */
.mobile-nav__list .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(201,160,113,.05);
}
.mobile-nav__list .sub-menu.sub-open { display: block; }

.mobile-nav__list .sub-menu a {
  display: block;
  padding: 12px 40px;
  font-size: 15px;
  color: var(--sskoon-ink-soft);
  border-bottom: 1px solid rgba(231,221,205,.5);
  transition: color .18s;
}
.mobile-nav__list .sub-menu a:hover { color: var(--sskoon-accent-dark); }

/* Language switcher in mobile panel */
.mobile-nav__lang {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--sskoon-line);
}

/* Overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31,29,27,.45);
  z-index: 180;
  cursor: pointer;
}
.nav-overlay.is-visible { display: block; }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg,#f6efe3 0%,#efe5d3 100%);
  overflow: hidden;
}

/* Full-width hero — photo fills width, text overlays on top */
.hero--with-image {
  position: relative;
  overflow: hidden;
  background: #1a1008;
  display: block;
}
/* Photo in normal flow — section height = photo height */
.hero--with-image .hero__bg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 500px;
  object-fit: cover;
  position: relative;
  z-index: 0;
  vertical-align: bottom;
}
/* Full dark overlay — covers entire photo */
.hero--with-image .hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: rgba(0,0,0,.58) !important;
  pointer-events: none;
}
/* Text layer — sits on top of overlay */
.hero--with-image .hero__inner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 64px;
  grid-template-columns: unset !important;
}
/* Force white text — no exceptions */
.hero--with-image .hero__title,
.hero--with-image .hero__copy h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.6) !important;
  max-width: 700px;
  margin-bottom: 16px;
}
.hero--with-image .hero__subtitle,
.hero--with-image .hero__copy p {
  color: #f5f5f5 !important;
  text-shadow: 0 1px 12px rgba(0,0,0,.7) !important;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero--with-image .btn--primary {
  background: var(--sskoon-accent);
  box-shadow: 0 4px 20px rgba(201,160,113,.4);
  position: relative;
  z-index: 4;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 24px 120px;
  min-height: 520px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px,5.2vw,72px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 17px;
  color: var(--sskoon-ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__art svg, .hero__art img {
  width: 100%; max-width: 620px;
  height: auto; border-radius: 18px;
}

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--categories { padding-bottom: 40px; }
.section--products   { padding-top: 40px; padding-bottom: 72px; }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__head h1, .section__head h2 {
  font-size: clamp(28px,3.4vw,44px);
  font-weight: 500;
  margin-bottom: 10px;
}
.section__head p { color: var(--sskoon-ink-soft); }
.section__cta { display: flex; justify-content: center; margin-top: 40px; }

.empty-note {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  background: var(--sskoon-card);
  border-radius: var(--radius-lg);
  color: var(--sskoon-ink-soft);
}

/* ─── Grid ───────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4,1fr); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--sskoon-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sskoon-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(40,28,14,.1); }

.card__media {
  aspect-ratio: 1/1;
  background: linear-gradient(145deg,#efe5d3 0%,#e7ddcd 100%);
  display: block;
  overflow: hidden;
}
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 22px 20px 26px; text-align: center; }
.card__title { font-family: var(--font-serif); font-size: 18px; margin-bottom: 12px; color: var(--sskoon-ink); }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--sskoon-accent-dark); }
.card__price { font-family: var(--font-serif); color: var(--sskoon-accent-dark); font-size: 17px; margin: 0; }
.card--product .card__media { background: linear-gradient(180deg,#f5ede0 0%,#ece1cd 100%); }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(180deg,#ede3d2 0%,#e7dcc7 100%); padding: 70px 0; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner__copy { max-width: 720px; }
.cta-banner__copy h2 { font-size: clamp(22px,2.6vw,34px); font-weight: 500; margin-bottom: 8px; }
.cta-banner__copy p { margin: 0; color: var(--sskoon-ink-soft); }

/* ─── Features Strip ─────────────────────────────────────────── */
.features-strip { background: var(--sskoon-bg-soft); padding: 48px 0; border-top: 1px solid var(--sskoon-line); }
.features-strip__inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature svg { width: 40px; height: 40px; flex-shrink: 0; color: var(--sskoon-accent-dark); }
.feature h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--sskoon-ink); margin: 0 0 4px; }
.feature p { font-size: 13px; color: var(--sskoon-muted); margin: 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--sskoon-bg); padding: 64px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sskoon-ink);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--sskoon-ink-soft); font-size: 14px; }
.footer-list a:hover { color: var(--sskoon-accent-dark); }

.footer-col--meta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sskoon-ink); color: #fff;
  border-radius: 999px;
}
.footer-social a:hover { background: var(--sskoon-accent-dark); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.social-hint { font-size: 12px; color: var(--sskoon-muted); }

.site-footer__bottom {
  border-top: 1px solid var(--sskoon-line);
  margin-top: 40px; padding-top: 24px;
  color: var(--sskoon-muted); font-size: 13px;
}

/* ─── Blog / page / 404 ──────────────────────────────────────── */
.section--blog .post-list { display: grid; gap: 32px; grid-template-columns: repeat(2,1fr); }
.post-card { background: var(--sskoon-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sskoon-shadow); }
.post-card__media img { width: 100%; height: 260px; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__title { font-family: var(--font-serif); font-size: 22px; margin: 0 0 8px; }
.post-card__meta { font-size: 13px; color: var(--sskoon-muted); margin-bottom: 12px; }
.post-card__excerpt { color: var(--sskoon-ink-soft); margin-bottom: 16px; }

.page-content__head { margin-bottom: 28px; }
.page-content__head h1 { font-size: clamp(32px,3.6vw,46px); }
.page-content__body { font-size: 17px; color: var(--sskoon-ink-soft); }
.page-content__body h2,.page-content__body h3,.page-content__body h4 { color: var(--sskoon-ink); margin-top: 1.6em; }

.pagination { display: flex; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 6px; color: var(--sskoon-ink); }
.pagination .current { background: var(--sskoon-accent); color: #fff; }

/* ─── Single product ─────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--sskoon-card); }
.product-detail__media img { width: 100%; height: auto; }
.product-detail__body h1 { font-size: clamp(28px,3.4vw,42px); }
.product-detail__price { font-family: var(--font-serif); color: var(--sskoon-accent-dark); font-size: 26px; margin-bottom: 16px; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

/* ── Tablet + Mobile: ≤ 1024px ── */
@media (max-width: 1024px) {

  /* Show hamburger */
  .menu-toggle { display: flex; }

  /* Show mobile panel slot */
  .mobile-nav-panel { display: none; }  /* shown via .is-open class */

  /* Hide desktop nav */
  .primary-nav { display: none; }

  /* Hide desktop lang pill */
  .site-icons__lang { display: none; }

  /* Responsive grids */
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .features-strip__inner { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .site-footer__grid { grid-template-columns: repeat(2,1fr); }

  /* Hero stacks */
  .hero__inner { grid-template-columns: 1fr; padding: 60px 24px 72px; }
  .hero__art { margin-top: 8px; order: -1; }
  .hero--with-image .hero__inner { padding: 40px 24px; }

  /* Product detail stacks */
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {
  :root { --header-h: 72px; --gap: 18px; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .hero__inner { padding: 48px 20px 64px; gap: 32px; min-height: 0; }
  .hero__subtitle { font-size: 16px; }
  .container { padding: 0 20px; }
  .cta-banner__inner { flex-direction: column; text-align: center; gap: 18px; }
  .site-header__inner { gap: 8px; }
  .site-icons { gap: 4px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ── Small Mobile: ≤ 560px ── */
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .section--blog .post-list { grid-template-columns: 1fr; }
  .features-strip__inner { grid-template-columns: 1fr; gap: 20px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .card__body { padding: 14px 10px 18px; }
  .card__title { font-size: 14px; margin-bottom: 8px; }
  .btn { padding: 12px 20px; font-size: 15px; }
  .btn--sm { padding: 7px 16px; font-size: 13px; }
}

/* ── Extra small: ≤ 380px ── */
@media (max-width: 380px) {
  .grid--4 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   RTL OVERRIDES  (also in rtl.css — WP loads that automatically)
   ════════════════════════════════════════════════════════════════ */
[dir="rtl"] body {
  font-family: "Tajawal","Cairo","Segoe UI","Inter",system-ui,sans-serif;
}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4 {
  font-family: "Tajawal","Cairo","Playfair Display",Georgia,serif;
  letter-spacing: 0;
}
[dir="rtl"] .site-header__inner { flex-direction: row-reverse; }
[dir="rtl"] .site-icons { flex-direction: row-reverse; }
[dir="rtl"] .lang-switch { flex-direction: row-reverse; }
[dir="rtl"] .site-icons__lang { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .hero__inner { direction: rtl; }
[dir="rtl"] .hero__title, [dir="rtl"] .hero__subtitle { text-align: right; }
[dir="rtl"] .hero--with-image .hero__inner { align-items: flex-end; text-align: right; padding: 60px 64px; }
[dir="rtl"] .hero--with-image .hero__title,
[dir="rtl"] .hero--with-image .hero__copy h1 { text-align: right; }
[dir="rtl"] .hero--with-image .hero__subtitle,
[dir="rtl"] .hero--with-image .hero__copy p { text-align: right; }
[dir="rtl"] .primary-nav__list .sub-menu { left: auto; right: 0; }
[dir="rtl"] .cta-banner__inner { flex-direction: row-reverse; }
[dir="rtl"] .footer-list { padding-right: 0; }
[dir="rtl"] .mobile-nav__list > li > a { flex-direction: row-reverse; }

/* ================================================================
   3D EFFECTS — Cards, Sections, Buttons
   ================================================================ */

/* 3D Card tilt on hover */
.card--3d {
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s;
  will-change: transform;
}
.card--3d:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-6deg) translateY(-6px);
  box-shadow: 8px 18px 40px rgba(40,28,14,.14);
}
[dir="rtl"] .card--3d:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(6deg) translateY(-6px);
}

/* 3D lift on all cards */
.card {
  transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(40,28,14,.1);
}

/* Product/category image zoom inside card */
.card__media {
  overflow: hidden;
}
.card__media img, .card__media svg {
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}
.card:hover .card__media img,
.card:hover .card__media svg {
  transform: scale(1.06);
}

/* 3D press effect on buttons */
.btn {
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: 0 2px 8px rgba(40,28,14,.1);
}

/* Hero title entrance animation */
.hero__title {
  animation: heroSlideUp .7s cubic-bezier(.25,.46,.45,.94) both;
}
.hero__subtitle {
  animation: heroSlideUp .7s .15s cubic-bezier(.25,.46,.45,.94) both;
}
.hero__copy .btn {
  animation: heroSlideUp .7s .28s cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section entrance (fade+rise) */
.section__head {
  animation: sectionFade .6s .1s cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes sectionFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Feature strip items stagger */
.feature {
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(40,28,14,.08);
}

/* CTA banner 3D button */
.cta-banner .btn--primary {
  transition: transform .2s ease, box-shadow .2s ease, background .18s;
}
.cta-banner .btn--primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(201,160,113,.4);
}

/* Stock info on cards */
.card__stock {
  font-size: 12px;
  color: #854f0b;
  background: #faeeda;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}


/* Hide duplicate shortcode heading when WordPress page title already shows it */
.shop-page-title { display: none; }
