/* Protextile — shared stylesheet (public site + admin panel) */

:root {
  /* Matches the original PROTEXTILE static prototype's exact palette. */
  --bg: #f8f5ef;
  --bg-alt: #e8ddca;
  --card: #fffdf9;
  --text: #202929;
  --text-muted: #687272;
  --brand: #174f50;
  --brand-dark: #103d3e;
  --border: rgba(23, 79, 80, 0.14);
  --danger: #b23b3b;
  --danger-bg: #fbeaea;
  --success: #2f7a4f;
  --success-bg: #e9f6ee;
  --radius: 10px;
  --radius-pill: 999px;
  --shadow: 0 2px 10px rgba(20, 30, 27, 0.06);
  --lang-switch-w: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(0.98); }
.btn--outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--secondary { background: var(--text); }
.btn--secondary:hover { background: #000; }
.btn--sm { padding: 0.5em 1.1em; font-size: 0.75rem; }
.btn--pill { border-radius: var(--radius-pill); }
.btn--block { width: 100%; justify-content: center; }
.btn--link { background: none; color: var(--brand); padding: 0; text-transform: none; letter-spacing: normal; font-weight: 600; }

/* ---------- Site header / nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 76px;
  position: relative;
  display: flex;
  align-items: center;
}
.site-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--brand);
}
.site-header .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.site-logo__mark {
  width: 36px;
  height: 36px;
  flex: none;
}
/* Positioned (not flex-distributed) so the header only ever has one child
   participating in flex layout — avoids a Chromium flex bug where the last
   item in a `justify-content: space-between` (or auto-margin) row can be
   laid out off-screen when it's the only other item besides the logo. */
.site-nav {
  position: absolute;
  inset-inline-end: calc(var(--lang-switch-w) + 1.25rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).is-active { color: var(--brand); }
.site-nav__contact { margin-inline-start: 0.5rem; }
.nav-toggle {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Up to 1060px the nav collapses into the hamburger menu (measured: the longest
   language, Spanish, needs ~1030px to sit beside the logo even when compact). */
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .site-nav {
    top: 76px;
    inset-inline: 0;
    transform: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem clamp(16px, 4vw, 48px) 1.75rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__contact { margin-inline-start: 0; }
}
@media (min-width: 1061px) and (max-width: 1280px) {
  .site-nav { gap: 1.1rem; }
  .site-nav a:not(.btn) { font-size: 0.74rem; letter-spacing: 0.03em; }
}

/* ---------- Language switcher (top right of the header) ---------- */
.lang-switch {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
}
.lang-switch > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--lang-switch-w);
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-switch > summary:hover,
.lang-switch[open] > summary { border-color: var(--brand); color: var(--brand); }
.lang-switch__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20, 30, 27, 0.14);
  z-index: 50;
}
.lang-switch__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
}
.lang-switch__menu a:hover { background: var(--bg); color: var(--brand); }
.lang-switch__menu a.is-active { background: var(--bg); color: var(--brand); font-weight: 700; }
.flag {
  width: 22px;
  height: 16px;
  flex: none;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Beside the hamburger button on narrow screens (after the base rule so it wins) */
@media (max-width: 1060px) {
  .lang-switch { inset-inline-end: 46px; }
}

/* ---------- Arabic (dir="rtl") ---------- */
/* Arabic glyphs come from Cairo (loaded only on Arabic pages); Latin stays Inter.
   Letter-spacing breaks the joins between Arabic letters, so it is switched off. */
html[lang="ar"] body { font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif; }
html[lang="ar"] .font-serif { font-family: 'Playfair Display', 'Cairo', serif; }
html[lang="ar"] body * { letter-spacing: 0 !important; }

/* ---------- Homepage: brand hero ---------- */
.brand-hero { padding: clamp(40px, 7vw, 72px) 0 0; }
.brand-hero__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.brand-hero__icon {
  width: 55px;
  height: 55px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
span.brand-hero__icon {
  /* Placeholder shown only when no real logo file has been uploaded yet. */
  background: conic-gradient(from -20deg, #ff3b30, #ff9500, #ffcc00, #34c759, #007aff, #af52de, #ff3b30);
}
.brand-hero__title h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--brand);
  letter-spacing: 0.01em;
}
.brand-hero__photo,
.about-section__photo,
.manufacturing-section__photo { margin: 0; min-width: 0; }
/* Matches the original site: hero photo is a wide 16:8 banner, cropped via
   object-fit:cover (not shown at its raw, much-taller natural ratio). */
.brand-hero__photo img,
.brand-hero__photo .content-photo {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0;
  display: block;
}

/* ---------- Homepage: About Us / Manufacturing (photo + text grid) ---------- */
.about-section, .manufacturing-section { padding: clamp(48px, 7vw, 88px) 0; }
.about-section__grid, .manufacturing-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-section__grid h2, .manufacturing-section__grid h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.about-section__grid p { color: var(--text-muted); margin-bottom: 1rem; }
.manufacturing-section__grid .eyebrow { margin-bottom: 0.3rem; }
/* Matches the original site's .image-box: 4:3, cropped via object-fit:cover. */
.about-section__photo img, .manufacturing-section__photo img,
.about-section__photo .content-photo, .manufacturing-section__photo .content-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0;
  display: block;
}
@media (max-width: 860px) {
  .about-section__grid, .manufacturing-section__grid { grid-template-columns: 1fr; }
  .about-section__photo { order: -1; }
}

/* ---------- About Us page ---------- */
.about-intro-section { padding: clamp(56px, 7vw, 96px) 0; }
.about-intro-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-intro-copy .eyebrow { margin-bottom: 1.25rem; }
.about-intro-text p { font-size: 1.05rem; line-height: 1.85; color: var(--text-muted); margin: 0 0 1.4rem; }
.about-intro-text p:last-child { margin-bottom: 0; }
.about-intro-media { margin: 0; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.about-intro-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .about-intro-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-values-section { padding: 0 0 clamp(56px, 7vw, 96px); }
.about-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.about-value-card { background: var(--bg-alt); padding: clamp(2rem, 4vw, 3rem) clamp(1.8rem, 4vw, 2.9rem); min-height: 320px; display: flex; flex-direction: column; border-radius: var(--radius); }
.about-value-card-dark { background: var(--brand); color: #fff; }
.about-value-card-dark .eyebrow { color: var(--bg-alt); }
.about-value-card-dark p { color: rgba(255, 255, 255, 0.85); }
.about-value-number { font-size: 0.7rem; letter-spacing: 0.12em; font-weight: 800; color: var(--brand); margin-bottom: 2.5rem; }
.about-value-card-dark .about-value-number { color: var(--bg-alt); }
.about-value-card h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; margin: 0.2rem 0 1rem; }
.about-value-card p { font-size: 0.95rem; line-height: 1.75; color: var(--text-muted); margin: 0; }
@media (max-width: 900px) { .about-values-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (catalog/about/etc top block) ---------- */
.page-header {
  padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 4vw, 40px);
}
.page-header__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.02;
}
.page-header__desc { color: var(--text-muted); max-width: 34ch; font-size: 1rem; }

/* ---------- Catalog toolbar ---------- */
.catalog-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.catalog-toolbar input[type="search"],
.catalog-toolbar select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7em 1em;
  color: var(--text);
}
.catalog-toolbar input[type="search"] { min-width: 220px; flex: 1 1 220px; }
.catalog-toolbar__count {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Product grid / cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.5rem;
  padding: 2.5rem 0 4rem;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__media {
  aspect-ratio: 1 / 1;
  background: #efe9db;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.product-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-card__title { font-size: 1rem; font-weight: 700; }
.product-card__meta { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__link { margin-top: auto; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand); padding-top: 0.6rem; }

.empty-state { padding: 3rem 0; text-align: center; color: var(--text-muted); }

/* ---------- Featured section (tan bg) ---------- */
.featured {
  background: var(--bg-alt);
  padding: clamp(48px, 7vw, 88px) 0;
}
.featured__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.featured__head h2 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; }
.featured__head p { color: var(--text-muted); max-width: 34ch; }
.featured .product-grid { padding: 0; }
.featured > .container > .btn--link { display: inline-block; margin-top: 2rem; }
.featured__head--solo { margin-bottom: 0; min-height: 60px; }
.featured .product-card { background: var(--card); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1.75rem 0 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .is-current { color: var(--text); font-weight: 600; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 1.5rem 0 5rem;
  align-items: start;
}
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

.product-gallery__main {
  aspect-ratio: 4 / 5;
  background: #efe9db;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.product-gallery__thumbs button {
  width: 68px; height: 68px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #efe9db;
}
.product-gallery__thumbs button.is-active { border-color: var(--brand); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info__category { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); }
.product-info h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 0.4rem; text-transform: uppercase; line-height: 1.05; }
.product-info__sku { color: var(--text-muted); margin-top: 0.9rem; font-size: 0.9rem; }
.product-info__row {
  display: flex; justify-content: space-between; padding: 0.9rem 0;
  border-top: 1px solid var(--border); font-size: 0.9rem;
}
.product-info__row dt { color: var(--text-muted); }
.product-info__row dd { margin: 0; font-weight: 600; }
.product-info__desc { margin: 1.2rem 0 1.6rem; color: var(--text-muted); }
.product-info__divider { border-top: 1px solid var(--border); margin: 1.4rem 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 20, 18, 0.92);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(900px, 90vw); max-height: 85vh; object-fit: contain; border-radius: 6px; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: none;
  border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.22); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Modal (inquiry form) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 18, 0.55);
  display: none; align-items: center; justify-content: center; z-index: 90; padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
}
.modal__close { position: absolute; top: 1rem; inset-inline-end: 1rem; background: none; border: none; font-size: 1.4rem; color: var(--text-muted); }
.modal h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.modal p.modal__subtitle { color: var(--text-muted); margin-bottom: 1.4rem; font-size: 0.9rem; }

/* ---------- Generic content sections (About, Production Process, References) ---------- */
.content-section { padding: clamp(32px, 6vw, 64px) 0; }
.content-section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; margin-bottom: 1rem; }
.content-section p { color: var(--text-muted); max-width: 70ch; margin-bottom: 1rem; }
.content-photo {
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #d8cead, #efe9db);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  margin: 1.5rem 0 2.5rem;
}
/* ---------- Production Process page ---------- */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }

.process-hero { background: #eef1ea; padding: clamp(40px, 6vw, 64px) 0; }
.process-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.process-hero__grid h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; color: var(--brand); margin: 0.3rem 0 1.1rem; }
.process-hero__divider { width: 46px; height: 2px; background: var(--brand); margin-bottom: 1.4rem; }
.process-hero__grid p { color: var(--text-muted); max-width: 46ch; }
.process-hero__photo { min-width: 0; }
.process-hero__photo img, .process-hero__photo .content-photo {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--radius); display: block;
}
@media (max-width: 860px) { .process-hero__grid { grid-template-columns: 1fr; } }

.steps-header { background: var(--bg); border-bottom: 1px solid var(--border); padding: clamp(40px, 6vw, 64px) 0; }
.steps-header h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--brand-dark); margin: 0.3rem 0 1rem; }
.steps-header p { color: var(--text-muted); max-width: 60ch; }

.process-steps { background: #fff; padding: clamp(32px, 5vw, 56px) 0; }
.process-steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step-card {
  min-width: 0;
  border: 1px solid var(--border); padding: 1.75rem 1.5rem; display: flex; flex-direction: column;
  margin: -1px 0 0 -1px;
}
.process-step-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.process-step-card__num { font-size: 0.85rem; font-weight: 800; color: var(--brand); letter-spacing: 0.05em; }
.process-step-card__icon { width: 20px; height: 20px; color: var(--brand); opacity: 0.7; }
.process-step-card__icon svg { width: 100%; height: 100%; }
.process-step-card h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.6rem; }
.process-step-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 1.5rem; flex: 1; }
.process-step-card__photo { margin-top: auto; }
.process-step-card__photo img, .process-step-card__photo .content-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; font-size: 0.7rem;
}
@media (max-width: 900px) { .process-steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps__grid { grid-template-columns: 1fr; } }

.commitment-section { background: var(--bg); padding: clamp(32px, 6vw, 56px) 0; }
.commitment-section__grid { display: grid; grid-template-columns: 1fr 1fr; }
.commitment-section__photo { min-width: 0; }
.commitment-section__photo img, .commitment-section__photo .content-photo {
  width: 100%; height: 100%; min-height: 320px; aspect-ratio: 4 / 5; object-fit: cover; display: block;
}
.commitment-card { background: var(--brand); color: #fff; padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.commitment-card .eyebrow { color: var(--bg-alt); }
.commitment-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0.4rem 0 1.4rem; }
.commitment-card p { color: rgba(255, 255, 255, 0.8); margin-bottom: 1.75rem; max-width: 42ch; }
.btn--outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); align-self: flex-start; }
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 860px) { .commitment-section__grid { grid-template-columns: 1fr; } .commitment-section__photo img { min-height: 260px; } }

.stats-strip { background: #fff; padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); }
.stats-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats-strip__item { border-inline-start: 2px solid var(--brand); padding-inline-start: 1rem; }
.stats-strip__item h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.3rem; }
.stats-strip__item span { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 780px) { .stats-strip__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats-strip__grid { grid-template-columns: 1fr; } }
.privacy-card {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 6vw, 4.5rem);
  margin-top: 2rem;
}
.privacy-card::after {
  content: "";
  position: absolute;
  top: -60px;
  inset-inline-end: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.privacy-card__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-alt);
  margin-bottom: 1.75rem;
}
.privacy-card__label span { display: inline-block; width: 20px; height: 1px; background: var(--bg-alt); }
.privacy-card h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 1.75rem;
  position: relative;
}
.privacy-card p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 62ch;
  margin: 0 0 1.1rem;
  position: relative;
}
.privacy-card p:last-child { margin-bottom: 0; }
.privacy-card__emphasis { color: #fff; font-weight: 700; }

/* ---------- Contact page / forms ---------- */
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; padding: 0.5rem 0 5rem; max-width: 760px; }
.contact-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .contact-form-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; text-align: start; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75em 0.9em; border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row .field { flex: 1 1 160px; }
.checkbox-row { display: flex; align-items: center; gap: 0.5em; font-size: 0.9rem; }

.flash { padding: 0.9rem 1.2rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.9rem; }
.flash--success { background: var(--success-bg); color: var(--success); }
.flash--error { background: var(--danger-bg); color: var(--danger); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--brand); color: #fff; border-radius: var(--radius);
  margin: 0 clamp(16px, 4vw, 48px) clamp(48px, 7vw, 88px);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0.8rem 0 1.5rem; }
.cta-banner .btn { background: var(--bg); color: var(--brand-dark); }
.cta-banner .btn:hover { background: #fff; }

/* ---------- Site footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.85); margin-top: auto; }
.site-footer__inner {
  max-width: 1280px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(16px, 4vw, 48px) 2rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
}
.site-footer__inner--social { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-logo--footer { color: #fff; margin-bottom: 0.6rem; }
.site-footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 32ch; }
.site-footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 0.9rem; }
.site-footer__col { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__contact-lines { display: flex; flex-direction: column; gap: 0.5rem; color: rgba(255,255,255,0.85); font-size: 0.9rem; line-height: 1.45; }
.site-footer__map {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 8px; filter: grayscale(0.2) brightness(0.95);
}
.site-footer__social { display: flex; gap: 0.6rem; }
.site-footer__icon-btn {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.site-footer__icon-btn:hover { background: rgba(255,255,255,0.2); }
.site-footer__icon-btn svg { width: 20px; height: 20px; fill: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); text-align: center; font-size: 0.78rem;
  color: rgba(255,255,255,0.5); padding: 1.2rem 0;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
body > main, body > .page-header, body > .hero { flex: none; }

/* =====================================================================
   Admin panel
   ===================================================================== */
body.is-admin { background: #f2f0ea; }

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { background: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 2.75rem); max-width: 380px; width: 100%; box-shadow: var(--shadow); }
.auth-card__logo { font-weight: 800; font-size: 1.3rem; color: var(--brand); text-align: center; margin-bottom: 1.5rem; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; flex: none; background: var(--brand-dark); color: rgba(255,255,255,0.85);
  display: flex; flex-direction: column; padding: 1.5rem 0;
}
.sidebar__brand { font-weight: 800; font-size: 1.1rem; color: #fff; padding: 0 1.5rem 1.5rem; }
.sidebar__nav { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar__nav a { display: block; padding: 0.7rem 1.5rem; font-size: 0.9rem; }
.sidebar__nav a:hover { background: rgba(255,255,255,0.06); }
.sidebar__nav a.is-active { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.sidebar__user { padding: 1rem 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1rem; }
.sidebar__user-name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.sidebar__logout { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.sidebar__logout:hover { color: #fff; }
.app-content { flex: 1; padding: clamp(1.5rem, 3vw, 2.5rem); overflow-x: auto; }

.app-content .page-header h1 { font-size: 1.6rem; text-transform: none; }
.app-content .page-header { padding: 0 0 1.5rem; }

.card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat-card__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.3rem; }

.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.wrap { white-space: normal; }
.table-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #efe9db; }

.badge { display: inline-block; padding: 0.25em 0.7em; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge--active { background: var(--success-bg); color: var(--success); }
.badge--inactive { background: #efe9db; color: var(--text-muted); }
.badge--featured { background: #fdf0d5; color: #96660f; }
.badge--unread { background: var(--danger-bg); color: var(--danger); }

.image-manager { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1rem 0; }
.image-manager__item { position: relative; width: 110px; }
.image-manager__item img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.image-manager__item label { display: flex; align-items: center; gap: 0.3em; font-size: 0.72rem; margin-top: 0.35rem; }

.toolbar-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.toolbar-form select, .toolbar-form input[type="search"] { padding: 0.6em 0.9em; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

.actions-cell { display: flex; gap: 0.5rem; }

/* ---------- Admin: per-language tabs (product name/description) ---------- */
/* CSS-only tabs: one hidden radio per language + labels. The selector lists
   below need one entry per language in LANGUAGES (app/lib/i18n.php). */
.lang-tabs { margin-bottom: 1.1rem; }
.lang-tabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.lang-tabs__bar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.lang-tabs__tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; margin-bottom: -1px;
  border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0;
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted); cursor: pointer;
}
.lang-tabs__tab:hover { color: var(--brand); }
.lang-tabs__tab.is-filled::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.lang-tabs__tab.has-error { color: var(--danger); }
.lang-tabs__tab.has-error::after { content: "!"; width: auto; height: auto; background: none; color: var(--danger); }
.lang-tabs__panel { display: none; }
.lang-tabs__hint { font-size: 0.8rem; color: var(--text-muted); margin: -0.4rem 0 0; }
#lang-tab-en:checked ~ .lang-tabs__panel--en,
#lang-tab-tr:checked ~ .lang-tabs__panel--tr,
#lang-tab-de:checked ~ .lang-tabs__panel--de,
#lang-tab-ru:checked ~ .lang-tabs__panel--ru,
#lang-tab-ar:checked ~ .lang-tabs__panel--ar,
#lang-tab-es:checked ~ .lang-tabs__panel--es { display: block; }
#lang-tab-en:checked ~ .lang-tabs__bar [for="lang-tab-en"],
#lang-tab-tr:checked ~ .lang-tabs__bar [for="lang-tab-tr"],
#lang-tab-de:checked ~ .lang-tabs__bar [for="lang-tab-de"],
#lang-tab-ru:checked ~ .lang-tabs__bar [for="lang-tab-ru"],
#lang-tab-ar:checked ~ .lang-tabs__bar [for="lang-tab-ar"],
#lang-tab-es:checked ~ .lang-tabs__bar [for="lang-tab-es"] { background: var(--card); border-color: var(--border); color: var(--brand); }
#lang-tab-en:focus-visible ~ .lang-tabs__bar [for="lang-tab-en"],
#lang-tab-tr:focus-visible ~ .lang-tabs__bar [for="lang-tab-tr"],
#lang-tab-de:focus-visible ~ .lang-tabs__bar [for="lang-tab-de"],
#lang-tab-ru:focus-visible ~ .lang-tabs__bar [for="lang-tab-ru"],
#lang-tab-ar:focus-visible ~ .lang-tabs__bar [for="lang-tab-ar"],
#lang-tab-es:focus-visible ~ .lang-tabs__bar [for="lang-tab-es"] { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Admin: category name translations ---------- */
.cat-translations { flex-basis: 100%; margin-top: 0.35rem; white-space: normal; }
.cat-translations > summary { cursor: pointer; font-size: 0.78rem; font-weight: 600; color: var(--brand); }
.cat-translations__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.45rem 0.75rem; margin-top: 0.6rem; }
.cat-translations__item { display: flex; align-items: center; gap: 0.45rem; }
.cat-translations__item input {
  flex: 1; min-width: 0; padding: 0.45em 0.6em; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; font: inherit; font-size: 0.85rem;
}
