:root {
  --green: #053827;
  --green-2: #0a4a35;
  --green-3: #12614a;
  --green-deep: #032a1d;
  --cream: #f4efe4;
  --cream-2: #ebe3d3;
  --sand: #e3cf9f;
  --sand-2: #d6bd80;
  --ink: #0f1a15;
  --muted: #5d6b64;
  --white: #ffffff;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Permanent Marker", "Archivo", cursive;
}

html[lang="ar"] {
  --font: "Tajawal", "Archivo", system-ui, sans-serif;
  --font-script: "Tajawal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--sand); color: var(--green); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal-right { transform: translateX(40px); }
html[dir="rtl"].js .reveal-right { transform: translateX(-40px); }
.js .reveal-zoom { transform: scale(.92) rotate(-2deg); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Announcement + header ---------- */

.announce {
  background: var(--sand);
  color: var(--green);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 9px 16px;
}
html[lang="ar"] .announce { letter-spacing: 0; font-size: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--green);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .35s, box-shadow .35s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  transition: height .35s var(--ease);
}
.scrolled .header-inner { height: 64px; }

.brand img { height: 46px; width: auto; transition: height .35s var(--ease), transform .3s var(--ease); }
.scrolled .brand img { height: 38px; }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }

.nav { display: flex; gap: 30px; }
.nav a {
  position: relative;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: .82;
  padding-block: 6px;
  transition: opacity .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
html[dir="rtl"] .nav a::after { transform-origin: left; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
html[dir="rtl"] .nav a:hover::after, html[dir="rtl"] .nav a.active::after { transform-origin: right; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-btn, .bag-btn, .menu-btn {
  border: 1px solid rgba(244,239,228,.3);
  background: transparent;
  color: var(--cream);
  border-radius: 4px;
  height: 42px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  transition: background .25s, border-color .25s, transform .2s;
}
.lang-btn:hover, .bag-btn:hover, .menu-btn:hover { background: rgba(255,255,255,.08); border-color: var(--cream); }
.lang-btn:active, .bag-btn:active { transform: scale(.96); }
.lang-btn { font-family: "Tajawal", var(--font); }
html[lang="ar"] .lang-btn { font-family: "Archivo", sans-serif; }

.bag-btn { display: inline-flex; align-items: center; gap: 8px; padding-inline: 14px 6px; }
.bag-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.bag-count.bump { animation: bump .5s var(--ease-back); }
@keyframes bump { 40% { transform: scale(1.45); } }

.menu-btn { display: none; width: 42px; padding: 0; position: relative; }
.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), padding .45s var(--ease);
}
.mobile-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244,239,228,.1);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.menu-open .mobile-nav { max-height: 420px; padding-block: 8px 20px; }
.menu-open .mobile-nav a { opacity: 1; transform: none; }
.menu-open .mobile-nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .mobile-nav a:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-nav a:nth-child(6) { transition-delay: .2s; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.99); }
.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .3s var(--ease);
}
html[dir="rtl"] .btn-arrow::after { content: "←"; }
.btn-arrow:hover::after { transform: translateX(4px); }
html[dir="rtl"] .btn-arrow:hover::after { transform: translateX(-4px); }

.btn-light { background: var(--sand); color: var(--green); }
.btn-light:hover { background: var(--cream); }
.btn-ghost { border-color: rgba(244,239,228,.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--green); color: var(--cream); }
.btn-dark:hover { background: var(--green-3); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero { background: var(--green); color: var(--cream); overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 114px);
  padding-block: 72px 104px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow.dark { color: var(--green-3); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }

.hero h1 { font-size: clamp(38px, 4.8vw, 64px); font-weight: 800; }
.hero h1 .hero-line { display: block; }
.hero h1 .accent { color: var(--sand); }

.js .hero-line { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop-in { from { opacity: 0; translate: 0 30px; scale: .9; } }

.hero-sub {
  max-width: 480px;
  margin: 24px 0 36px;
  font-size: 18px;
  color: rgba(244,239,228,.75);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* The first products from the admin page, shown beside the headline */
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-2);
  color: var(--ink);
  text-decoration: none;
}
.hero-tile:nth-child(even) { translate: 0 36px; }
.js .hero-tile { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 300ms); }
.hero-tile.skeleton { background: rgba(255,255,255,.06); }
.hero-tile-media { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-tile-media svg { width: 66%; transition: transform .6s var(--ease); }
.hero-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-tile:hover .hero-tile-media :is(img, svg) { transform: scale(1.04); }
.hero-tile-info {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.94);
  font-size: 13px;
}
.hero-tile-info b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tile-info span { font-weight: 700; color: var(--green); white-space: nowrap; }

/* Photo uploaded in the admin page: fills the top of the page, darkened so the text stays readable */
.hero.has-photo {
  background:
    linear-gradient(rgba(3, 42, 29, .62), rgba(3, 42, 29, .62)),
    var(--hero-img) center / cover no-repeat,
    var(--green);
}
.hero.has-photo .hero-inner { grid-template-columns: 1fr; }
.hero.has-photo .hero-art { display: none; }
.hero.has-photo .hero-sub { color: rgba(244,239,228,.9); }

/* ---------- Section heads ---------- */

.section-head { margin-bottom: 36px; }
.section-head h2,
.custom-copy h2,
.about-copy h2,
.contact-copy h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }

/* ---------- Collection ---------- */

.collection { padding-block: 104px; }

.filters {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(5,56,39,.14);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  position: relative;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
}
.filter::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.filter:hover { color: var(--ink); }
.filter[aria-selected="true"] { color: var(--green); }
.filter[aria-selected="true"]::after { transform: scaleX(1); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px 20px;
}
.grid-empty { grid-column: 1 / -1; margin: 0; padding: 56px 16px; text-align: center; color: var(--muted); border: 1px dashed rgba(5,56,39,.2); border-radius: 6px; }

.card { display: flex; flex-direction: column; }
.js .card.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media svg { width: 66%; transition: transform .6s var(--ease); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media :is(svg, img) { transform: scale(1.04); }

/* Front and back photos: the Front / Back switch under the photo shows the back */
.face { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .35s var(--ease); }
.face-back { opacity: 0; }
.show-back .face-back { opacity: 1; }
.show-back .face-front { opacity: 0; }

/* The photo and name open the product pop-up */
.card-media[data-open], .card h3[data-open] { cursor: pointer; }
.card h3[data-open]:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-media[data-open]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.view-toggle {
  display: flex;
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 4px;
  overflow: hidden;
}
.view-toggle button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.view-toggle button + button { border-inline-start: 1px solid rgba(0,0,0,.14); }
.view-toggle button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.card-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
html[lang="ar"] .card-badge { letter-spacing: 0; font-size: 12px; }

.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.card-color { margin: 3px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.color-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.color-pick {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--c); border: 1px solid rgba(0,0,0,.2);
  outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color .15s var(--ease);
}
.color-pick:hover { outline-color: var(--line, rgba(0,0,0,.25)); }
.color-pick[aria-pressed="true"] { outline-color: var(--green); }
.price { font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: 3px;
  border: 1px solid rgba(5,56,39,.2);
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.size:hover { border-color: var(--green); }
.size[aria-pressed="true"] { background: var(--green); color: var(--cream); border-color: var(--green); }

.add-btn {
  margin-top: auto;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.add-btn:hover { background: var(--green); color: var(--cream); }
.add-btn.added { background: var(--green); color: var(--cream); }
.add-btn.need-size { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.card.skeleton .card-media,
.card.skeleton i {
  background: linear-gradient(100deg, var(--cream-2) 30%, #f7f2e8 50%, var(--cream-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.card.skeleton i { display: block; height: 14px; border-radius: 3px; }
.card.skeleton i:nth-child(1) { width: 70%; }
.card.skeleton i:nth-child(2) { width: 40%; }
.card.skeleton i:nth-child(3) { height: 44px; margin-top: 8px; }
@keyframes shimmer { to { background-position: -150% 0; } }

.size-note { margin: 40px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

.fly {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  will-change: transform, opacity;
}
.fly svg { width: 100%; }

/* ---------- Custom school wear ---------- */

.custom { background: var(--cream-2); padding-block: 104px; }
.custom-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.custom-sub { margin: 18px 0 36px; font-size: 17px; color: #34433c; max-width: 540px; }

.custom-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgba(5,56,39,.14); }
.custom-steps li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(5,56,39,.14);
}
.custom-steps li > span { flex: none; width: 24px; font-weight: 700; font-size: 14px; color: var(--green-3); }
.custom-steps strong { display: block; font-size: 16px; color: var(--ink); }
.custom-steps p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.quote-form {
  position: sticky;
  top: 96px;
  background: var(--green);
  color: var(--cream);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  gap: 16px;
}
.quote-form h3 { font-size: 24px; font-weight: 800; }
.quote-form > p { margin: -6px 0 4px; color: rgba(244,239,228,.72); font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }

:is(.contact-form, .quote-form) label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
:is(.contact-form, .quote-form) :is(input, textarea, select) {
  font: inherit;
  font-weight: 400;
  color: var(--cream);
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(244,239,228,.2);
  border-radius: 4px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  width: 100%;
  min-width: 0;
  transition: border-color .2s;
}
:is(.contact-form, .quote-form) :is(input, textarea, select):focus { border-color: var(--sand); }
:is(.contact-form, .quote-form) ::placeholder { color: rgba(244,239,228,.4); }
.quote-form select option { color: var(--ink); }

/* ---------- How ---------- */

.how { background: var(--green); color: var(--cream); padding-block: 104px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps li { border-top: 1px solid rgba(244,239,228,.25); padding-top: 24px; }
.step-num { font-size: 14px; font-weight: 700; color: var(--sand); letter-spacing: .1em; }
.steps h3 { font-size: 20px; font-weight: 700; margin: 14px 0 8px; }
.steps p { margin: 0; color: rgba(244,239,228,.72); }

/* ---------- Customer feedback ---------- */

.reviews { background: var(--green); color: var(--cream); padding-block: 104px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-grid:empty { display: none; }
.review {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review blockquote {
  margin: 0;
  font-size: 16px;
  color: #34433c;
  white-space: pre-line;
  flex: 1;
}
.review figcaption {
  display: grid;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(5, 56, 39, .1);
  font-size: 14px;
}
.review figcaption b { color: var(--green); }
.review figcaption span { color: var(--muted); }
.review-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 239, 228, .2);
}
.review-grid:empty + .review-ask { margin-top: 0; }
.review-ask p { margin: 0; font-size: 17px; color: rgba(244, 239, 228, .8); }

/* ---------- About ---------- */

.about { padding-block: 112px; }
.about-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.about-logo img { border-radius: 8px; width: 100%; height: auto; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: #34433c; font-size: 17px; margin: 0 0 16px; max-width: 520px; }
.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--green-3); }

/* ---------- Contact ---------- */

.contact { background: var(--green); color: var(--cream); padding-block: 104px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy > p { color: rgba(244,239,228,.75); font-size: 17px; margin: 18px 0 32px; max-width: 440px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgba(244,239,228,.14); }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(244,239,228,.14);
}
.contact-list span { color: rgba(244,239,228,.6); }
.contact-list a, .contact-list b { font-weight: 700; text-decoration: none; direction: ltr; transition: color .2s; }
.contact-list a:hover { color: var(--sand); }

.contact-form {
  background: var(--green-2);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  gap: 18px;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--green); border-top: 1px solid rgba(244,239,228,.1); color: rgba(244,239,228,.62); font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 40px;
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-brand p { margin: 0; max-width: 320px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { color: var(--cream); font-size: 13px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 6px; }
html[lang="ar"] .footer-col h4 { letter-spacing: 0; font-size: 15px; }
.footer-col a { text-decoration: none; width: fit-content; transition: color .2s, transform .3s var(--ease); }
.footer-col a:hover { color: var(--sand); transform: translateX(4px); }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-4px); }
#footWa { direction: ltr; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  padding-inline-end: 96px;
  border-top: 1px solid rgba(244,239,228,.08);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.to-top { text-decoration: none; }
.to-top:hover { color: var(--sand); }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  z-index: 50;
  bottom: 22px;
  inset-inline-end: 22px;
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 0 17px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.js .wa-float { animation: pop-in .8s var(--ease-back) 1.6s both; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: ring 2.6s ease-out infinite 2.4s;
}
@keyframes ring { 70%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .45s var(--ease), margin .45s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float:hover .wa-float-label { max-width: 160px; margin-inline-start: 10px; }

/* ---------- Product pop-up ---------- */

.pop {
  width: min(900px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.pop::backdrop { background: rgba(3,20,14,.6); }
.pop[open] { animation: pop-in .3s var(--ease); }
.pop[open]::backdrop { animation: pop-fade .3s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop-fade { from { opacity: 0; } }

.pop-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  padding: 28px;
}
.pop-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; background: var(--cream); }
.pop-gallery { min-width: 0; }
.pop-info { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; min-width: 0; }
.pop-cat { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .pop-cat { letter-spacing: 0; text-transform: none; }
.pop h2 { margin: -8px 0 0; font-size: 28px; font-weight: 900; line-height: 1.15; letter-spacing: 0; }
.pop-price { margin: -6px 0 0; font-size: 22px; font-weight: 700; color: var(--green); }
.pop .card-color { margin: 0; font-size: 15px; }
.pop .color-picks { margin-top: 10px; }
.pop .color-pick { width: 26px; height: 26px; }
.pop-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.pop .size { min-width: 46px; height: 40px; font-size: 14px; }
.pop-hint { margin: -6px 0 0; color: #a3322b; font-size: 14px; font-weight: 600; }
.pop-add { margin-top: 4px; height: 50px; background: var(--green); color: var(--cream); font-size: 15px; }
.pop-add:hover { background: var(--green-2); }
/* "Find my size" inside the pop-up */
.fit { margin-top: 12px; }
.fit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.fit-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.fit-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.fit-panel {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(5,56,39,.12);
  border-radius: 6px;
}
.fit-panel[hidden] { display: none; }
.fit-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fit-inputs label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fit-inputs input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(5,56,39,.25);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.fit-inputs input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.fit-result { display: grid; gap: 8px; }
.fit-answer { margin: 0; font-size: 15px; font-weight: 600; }
.fit-answer b { margin-inline-start: 4px; font-size: 22px; color: var(--green); }
.fit-msg { margin: 0; font-size: 14px; color: var(--muted); }
.fit-pick {
  justify-self: start;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.fit-pick:hover, .fit-pick.done { background: var(--green); color: var(--cream); }
.fit-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.fit-table caption { caption-side: top; text-align: start; padding-bottom: 6px; font-size: 13px; font-weight: 700; }
.fit-table th { padding: 6px 4px; border-bottom: 1px solid rgba(5,56,39,.15); color: var(--muted); font-size: 12px; font-weight: 600; }
.fit-table td { padding: 7px 4px; border-bottom: 1px solid rgba(5,56,39,.08); font-variant-numeric: tabular-nums; }
.fit-table td:first-child { font-weight: 700; }
.fit-table tr.is-match td { background: rgba(5,56,39,.08); color: var(--green); font-weight: 700; }
.fit-note { margin: 0; font-size: 12px; color: var(--muted); }

.pop-ask { align-self: center; font-size: 14px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .pop {
    width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 10px 10px 0 0;
  }
  .pop[open] { animation: pop-up .35s var(--ease); }
  @keyframes pop-up { from { transform: translateY(40px); opacity: 0; } }
  .pop-inner { grid-template-columns: 1fr; gap: 18px; padding: 16px 16px 28px; }
  .pop-info { padding-top: 0; gap: 14px; }
  .pop h2 { margin: 0; font-size: 22px; }
  .pop-close { top: 24px; inset-inline-end: 24px; }
}

/* ---------- Drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3,20,14,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 60;
  opacity: 0;
  transition: opacity .3s;
}
.drawer-backdrop.open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.4);
  transition: transform .45s var(--ease), visibility 0s .45s;
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open, html[dir="rtl"] .drawer.open {
  transform: none;
  visibility: visible;
  transition: transform .45s var(--ease);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(5,56,39,.12);
}
.drawer-head h2 { font-size: 24px; font-weight: 900; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(5,56,39,.2);
  background: transparent;
  color: var(--green);
  font-size: 16px;
  transition: transform .35s var(--ease), border-color .2s;
}
.icon-btn:hover { border-color: var(--green); transform: rotate(90deg); }

.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag-empty { text-align: center; color: var(--muted); padding: 64px 12px; }
.bag-empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

.bag-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(5,56,39,.1);
}
.drawer.open .bag-item { animation: slide-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } }
html[dir="rtl"] .drawer.open .bag-item { animation-name: slide-in-rtl; }
@keyframes slide-in-rtl { from { opacity: 0; transform: translateX(-24px); } }
.bag-thumb { background: var(--cream-2); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.bag-thumb svg { width: 78%; }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-item h4 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.bag-item p { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(5,56,39,.2); border-radius: 4px; }
.qty button { width: 30px; height: 28px; border: 0; background: none; color: var(--green); font-weight: 800; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.bag-item-end { text-align: end; display: grid; gap: 6px; justify-items: end; }
.bag-item-end strong { color: var(--green); }
.remove { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.remove:hover { color: #a3322b; }

.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid rgba(5,56,39,.12); background: var(--white); }
.total-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 16px; }
.total-row strong { color: var(--green); font-weight: 900; }
.drawer-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.drawer-foot .btn + .btn { margin-top: 10px; }
.btn-outline { border-color: rgba(5,56,39,.35); color: var(--green); background: transparent; }
.btn-outline:hover { border-color: var(--green); }

/* Cash on delivery checkout */
.checkout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.checkout[hidden], .order-done[hidden] { display: none; }
.checkout .drawer-body { padding-block: 16px 8px; }
.back-link {
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.checkout label { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.checkout :is(input, textarea) {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(5,56,39,.25);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.checkout :is(input, textarea):focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,97,74,.15); }
.checkout .invalid { border-color: #a3322b; }
html[dir="rtl"] .checkout input[type="tel"] { text-align: right; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.checkout .total-row { margin: 10px 0 8px; }
.pay-line { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--green); }
.order-done { padding-block: 32px; }
#whishBtn[hidden] { display: none; }

.whish-box { margin: 0 0 24px; padding: 18px 16px 4px; background: var(--cream-2); border-radius: 4px; }
.whish-box[hidden] { display: none; }
.whish-box h3 { font-size: 18px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.order-done .whish-box p { margin: 0 0 14px; font-size: 15px; }
.whish-box .order-code-box { margin-bottom: 10px; }
.order-done .whish-box .whish-name { font-size: 14px; color: var(--muted); }

.order-code-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid rgba(5,56,39,.18);
  border-radius: 4px;
}
.order-code-box span { grid-column: 1; font-size: 13px; color: var(--muted); }
.order-code-box strong {
  grid-column: 1;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--green);
  user-select: all;
  -webkit-user-select: all;
}
html[dir="rtl"] .order-code-box strong { text-align: right; }
.copy-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--green);
  border-radius: 4px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
}
.copy-btn:hover, .copy-btn.copied { background: var(--green); color: var(--cream); }
.order-done p { margin: 0 0 24px; color: #34433c; font-size: 16px; }
.order-done .btn + .btn { margin-top: 10px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 200%);
  opacity: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  z-index: 80;
  transition: transform .35s var(--ease), opacity .3s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-nav { display: flex; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 48px; padding-block: 48px 72px; }
  .hero-art { max-width: 560px; width: 100%; }
  .about-inner, .contact-inner, .custom-inner { grid-template-columns: 1fr; gap: 48px; }
  .quote-form { position: static; }
  .about-logo { max-width: 360px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .announce { font-size: 11px; letter-spacing: .1em; padding-inline: 12px; }
  .header-inner { height: 64px; gap: 12px; }
  .brand img { height: 36px; }
  .scrolled .header-inner { height: 58px; }
  .scrolled .brand img { height: 32px; }
  .bag-label { display: none; }
  .lang-btn, .bag-btn, .menu-btn { height: 40px; }
  .menu-btn { width: 40px; }
  .menu-btn span { left: 11px; right: 11px; }
  .menu-btn span:first-child { top: 15px; }
  .menu-btn span:last-child { top: 23px; }
  .menu-open .menu-btn span:first-child, .menu-open .menu-btn span:last-child { top: 19px; }
  .mobile-nav { padding-inline: 16px; }
  .hero-inner { padding-block: 40px 80px; gap: 40px; }
  .hero-sub { font-size: 16px; margin: 18px 0 28px; }
  .hero-art { gap: 8px; }
  .hero-tile:nth-child(even) { translate: 0 20px; }
  .hero-tile-info { inset-inline: 6px; bottom: 6px; padding: 6px 8px; font-size: 12px; }
  .collection, .custom, .how, .contact, .reviews { padding-block: 72px; }
  .review { padding: 22px; }
  .review-ask .btn { width: 100%; }
  .about { padding-block: 80px; }
  .filters { gap: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card h3 { font-size: 14px; }
  .price { font-size: 14px; }
  .card-color { font-size: 13px; }
  .card-title-row { flex-direction: column; gap: 4px; }
  .size { min-width: 32px; height: 30px; font-size: 12px; padding: 0 6px; }
  .add-btn { height: 40px; font-size: 13px; }
  .quote-form, .contact-form { padding: 22px; }
  .footer-grid { padding-block: 48px 32px; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; padding-inline-end: 16px; padding-bottom: 88px; }
  .wa-float { height: 54px; padding: 0 15px; bottom: 16px; inset-inline-end: 16px; }
}

@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
