:root {
  --ink: #17211e;
  --muted: #68746f;
  --line: #dfe6e2;
  --surface: #f7f9f7;
  --paper: #ffffff;
  --deep: #0e1715;
  --accent: #2f7661;
  --accent-soft: #dcece5;
  --silver: #aeb8b3;
  --shadow: 0 22px 60px rgba(16, 33, 29, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.is-locked {
  overflow: hidden;
}

body[data-page="login"] {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 14%, rgba(47, 118, 97, 0.16), transparent 32%),
    linear-gradient(120deg, #ffffff, #eef5f1);
}

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

.image-fallback {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 260px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 74% 22%, rgba(47, 118, 97, 0.14), transparent 34%),
    repeating-linear-gradient(90deg, rgba(23, 33, 30, 0.035) 0 1px, transparent 1px 18px),
    #f7f9f7;
  color: transparent;
  padding: 24px;
  overflow: hidden;
  text-indent: -9999px;
}

.image-fallback::before {
  content: "D";
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(47, 118, 97, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(23, 33, 30, 0.38);
  font-size: 20px;
  font-weight: 760;
  text-indent: 0;
}

.image-fallback::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: max(4px, calc(var(--radius) - 2px));
  pointer-events: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(223, 230, 226, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 242px;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--deep);
  color: var(--paper);
  font-size: 22px;
  font-weight: 760;
  line-height: 1;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark.has-logo {
  border-color: rgba(23, 33, 30, 0.12);
  background: var(--paper);
  padding: 5px;
}

.brand-mark img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark.has-logo .brand-letter {
  display: none;
}

.brand-mark.has-logo img {
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: #33403b;
  font-size: 14px;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover,
body[data-page="home"] .site-nav a[href="index.html"],
body[data-page="products"] .site-nav a[href="products.html"],
body[data-page="detail"] .site-nav a[href="product-detail.html"],
body[data-page="about"] .site-nav a[href="about.html"],
body[data-page="videos"] .site-nav a[href="videos.html"],
body[data-page="contact"] .site-nav a[href="contact.html"] {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select {
  width: auto;
  min-width: 118px;
  max-width: 148px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  background: var(--deep);
  color: var(--paper);
  padding: 0 22px;
  font-weight: 650;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #22322e;
}

.button-small {
  min-height: 38px;
  padding-inline: 16px;
}

.button-ghost {
  background: transparent;
  color: var(--deep);
  border-color: var(--line);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--silver);
}

.whatsapp-link {
  border-color: #128c7e;
  background: #128c7e;
  color: #fff;
}

.whatsapp-link:hover {
  border-color: #0f786c;
  background: #0f786c;
}

.button-dark {
  background: var(--accent);
  border-color: var(--accent);
}

.admin-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(14, 23, 21, 0.82);
  color: var(--paper);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 18px 38px rgba(14, 23, 21, 0.18);
  backdrop-filter: blur(14px);
}

.admin-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 84px;
}

.admin-hero {
  padding: clamp(52px, 8vw, 96px) 0 36px;
}

.admin-hero h1 {
  max-width: 960px;
  font-size: clamp(36px, 5vw, 64px);
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.admin-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.admin-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.admin-inline-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.admin-inline-controls label,
.admin-card label,
.text-field {
  display: grid;
  gap: 8px;
}

.admin-inline-controls span,
.admin-card label span,
.text-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-inline-controls select,
.admin-card input,
.text-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.admin-card-preview {
  min-height: 220px;
  background: var(--surface);
}

.admin-card-preview img,
.admin-card-preview video,
.admin-media-empty {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.admin-media-empty {
  background:
    radial-gradient(circle at 74% 22%, rgba(47, 118, 97, 0.14), transparent 34%),
    repeating-linear-gradient(90deg, rgba(23, 33, 30, 0.035) 0 1px, transparent 1px 18px),
    var(--surface);
}

.admin-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-card-body h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.admin-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-editor {
  display: grid;
  gap: 14px;
}

.text-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
}

.text-group h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.text-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.text-field textarea {
  min-height: 48px;
  resize: vertical;
}

.admin-help {
  max-width: 760px;
  margin: -10px 0 18px;
  color: var(--muted);
}

.admin-table {
  display: grid;
  gap: 14px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px;
}

.product-admin-row {
  grid-template-columns: 150px minmax(0, 1fr) auto;
}

.admin-row-grid {
  display: grid;
  gap: 12px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px;
}

.admin-settings-grid label {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.admin-settings-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-settings-grid input,
.admin-settings-grid select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
}

.admin-settings-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-category-grid {
  grid-template-columns: 92px minmax(90px, 0.4fr) minmax(180px, 1fr) minmax(90px, 0.4fr) 90px minmax(220px, 1.2fr);
}

.admin-product-grid {
  grid-template-columns: 92px 110px 90px minmax(180px, 0.7fr) minmax(240px, 1fr);
}

.admin-row label {
  display: grid;
  gap: 7px;
}

.admin-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-row input,
.admin-row select,
.admin-row textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 12px;
}

.admin-row textarea {
  resize: vertical;
}

.admin-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  align-self: center;
  accent-color: var(--accent);
}

.wide-field {
  grid-column: 1 / -1;
}

.admin-product-preview {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-product-preview img,
.admin-product-preview .admin-media-empty {
  display: block;
  width: 100%;
  height: 150px;
  min-height: 150px;
  object-fit: contain;
  object-position: center;
}

.admin-row-actions {
  display: flex;
  justify-content: end;
}

.import-button {
  cursor: pointer;
}

.admin-status {
  color: var(--muted);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: clamp(26px, 5vw, 72px);
  width: min(1180px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
  align-items: center;
  padding: 42px 0;
}

.auth-brand {
  margin-bottom: 58px;
}

.auth-panel h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
}

.auth-panel p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.auth-security-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.auth-security-list span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0 14px;
  color: #33423d;
  font-size: 13px;
  font-weight: 720;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: var(--surface);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 720;
}

.auth-tabs button.is-active {
  background: var(--deep);
  color: var(--paper);
}

.auth-form {
  display: none;
  gap: 16px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 720;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
}

.auth-message {
  min-height: 44px;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  overflow: hidden;
  background: linear-gradient(90deg, #fbfcfb 0%, #eef5f1 100%);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.62fr);
  gap: clamp(22px, 4vw, 72px);
  align-items: end;
  width: min(var(--max), calc(100% - 44px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) 0 clamp(42px, 5vw, 76px);
}

.hero-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.hero-copy h1 {
  margin-bottom: 0;
}

.hero-copy > p:not(.eyebrow),
.hero-actions {
  grid-column: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 0.98;
  font-weight: 720;
}

h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy p:not(.eyebrow),
.section p,
.page-hero p,
.detail-copy p,
.contact-layout p {
  color: var(--muted);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-stage {
  position: relative;
  order: -1;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 0;
  background: #eaf3ef;
}

.carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 650ms ease;
}

.carousel .slide.is-active {
  opacity: 1;
}

.carousel .image-fallback {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.02), rgba(14, 23, 21, 0.06));
  pointer-events: none;
}

.carousel-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(14, 23, 21, 0.56);
  color: var(--paper);
  cursor: pointer;
}

.band,
.metrics,
.specs-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.metrics div,
.specs-band div {
  padding: 28px clamp(20px, 5vw, 56px);
  background: var(--deep);
  color: var(--paper);
}

.metrics strong,
.specs-band strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.metrics span,
.specs-band span {
  color: rgba(255, 255, 255, 0.7);
}

.section.specs-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px clamp(54px, 7vw, 92px);
  background: transparent;
}

.section.specs-band div {
  min-height: 150px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.section.specs-band div:last-child {
  border-right: 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 126px) 22px;
}

.intro-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading > h2 {
  grid-column: 1;
  margin-bottom: 0;
}

.section-heading > .text-link {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

.text-link {
  justify-self: end;
  color: var(--accent);
  font-weight: 700;
}

.category-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-behavior: smooth;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-grid:active {
  cursor: grabbing;
}

.category-tile {
  position: relative;
  flex: 0 0 clamp(230px, 28vw, 330px);
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbf9 0%, #edf4f0 100%);
  scroll-snap-align: start;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 22px;
  transition: transform 320ms ease;
}

@media (min-width: 900px) {
  .category-tile {
    flex-basis: calc((100% - 42px) / 4);
  }
}

.category-tile:hover img {
  transform: scale(1.035);
}

.category-tile .image-fallback {
  min-height: 0;
  height: 100%;
}

.category-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  min-height: 80px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  font-weight: 750;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  max-height: 620px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f4f8f6;
}

.media-frame .image-fallback {
  aspect-ratio: 4 / 3;
}

.about-banner-frame {
  align-self: stretch;
  display: flex;
  height: clamp(260px, 34vw, 420px);
  min-height: 0;
  background: #f4f8f6;
}

.about-banner-frame img {
  align-self: center;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.content-panel {
  padding: clamp(26px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.check-list,
.timeline {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.timeline li {
  position: relative;
  padding-left: 26px;
  color: #34423d;
}

[dir="rtl"] .check-list li,
[dir="rtl"] .timeline li {
  padding-left: 0;
  padding-right: 26px;
}

.check-list li::before,
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

[dir="rtl"] .check-list li::before,
[dir="rtl"] .timeline li::before {
  left: auto;
  right: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  display: grid;
  grid-template-rows:
    clamp(220px, 18vw, 300px)
    34px
    78px
    168px
    42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center bottom;
  padding: 0;
  background: #f8faf8;
}

.product-card-media {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.product-card-media:focus-visible {
  outline: 3px solid rgba(47, 118, 97, 0.34);
  outline-offset: -3px;
}

.product-card .image-fallback,
.thumb-row .image-fallback {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.product-card h3,
.product-card p,
.product-card a:not(.product-card-media),
.product-card .tag {
  margin-left: 20px;
  margin-right: 20px;
}

.product-card .tag {
  display: flex;
  align-items: end;
  margin-top: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.product-card h3 {
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.product-card p {
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.product-card a:not(.product-card-media) {
  display: inline-flex;
  align-items: center;
  align-self: end;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 750;
}

.video-feature,
.application-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.video-poster,
.video-canvas {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.video-poster img,
.video-canvas img {
  width: 100%;
  max-height: 500px;
  aspect-ratio: 16 / 5;
  object-fit: contain;
  object-position: center;
  opacity: 0.82;
  background: #eef5f1;
}

.video-poster .image-fallback,
.video-canvas .image-fallback {
  aspect-ratio: 16 / 5;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--deep);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.application-band {
  max-width: none;
  background: var(--surface);
  padding-inline: max(22px, calc((100vw - var(--max)) / 2));
}

.application-band img {
  width: 100%;
  height: clamp(320px, 34vw, 470px);
  max-height: 470px;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f4f8f6;
}

.application-band .image-fallback {
  aspect-ratio: 16 / 10;
}

.cta-section {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 420px;
  padding: 80px 22px;
  background: var(--deep);
  color: var(--paper);
}

.cta-section h2 {
  color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 44px clamp(22px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #fbfcfb;
}

.site-footer p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: start;
  color: var(--muted);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(68px, 8vw, 118px) 22px;
}

.page-hero.compact {
  max-width: 900px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about-hero h1 {
  max-width: 660px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
}

.about-hero img {
  border-radius: var(--radius);
  width: 100%;
  height: min(420px, 48vh);
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #f4f8f6;
  box-shadow: var(--shadow);
}

.visual-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.visual-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
}

.visual-hero img {
  width: 100%;
  border-radius: var(--radius);
  height: min(450px, 52vh);
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #f4f8f6;
  box-shadow: var(--shadow);
}

.neck-paper-hero img {
  aspect-ratio: 16 / 6;
  object-fit: contain;
  background: #eaf5fb;
}

.waxing-hero-image {
  background: #f7faf8;
}

.application-band h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 16px;
  color: var(--ink);
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--deep);
  color: var(--paper);
  border-color: var(--deep);
}

.product-card.is-hidden {
  display: none;
}

.detail-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(58px, 7vw, 108px) 22px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 104px;
}

.main-product-image {
  width: 100%;
  border-radius: var(--radius);
  height: clamp(360px, 36vw, 520px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center bottom;
  padding: 0;
  background: #f8faf8;
  box-shadow: var(--shadow);
}

.detail-gallery > .image-fallback {
  height: clamp(360px, 36vw, 520px);
  box-shadow: var(--shadow);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb-row button {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  aspect-ratio: 16 / 10;
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  padding: 0;
  background: #f8faf8;
}

.spec-table {
  display: grid;
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.spec-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-table span {
  color: var(--muted);
}

.detail-rich-text {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-rich-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
}

.detail-more-section {
  padding-top: 22px;
}

.detail-product-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.detail-product-link {
  flex: 0 0 clamp(210px, 24vw, 290px);
  display: grid;
  grid-template-rows: 174px 26px 48px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px;
  scroll-snap-align: start;
}

.detail-product-link.is-active {
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(47, 118, 97, 0.12);
}

.detail-product-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  border-radius: calc(var(--radius) - 2px);
  background: #f8faf8;
  padding: 0;
}

.detail-product-link span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.detail-product-link strong {
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-weight: 800;
}

.video-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 24px;
}

.video-canvas {
  align-self: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-list p {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(14, 23, 21, 0.74);
}

.video-modal[hidden] {
  display: none;
}

.video-dialog {
  position: relative;
  width: min(980px, 100%);
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--paper);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper);
  cursor: pointer;
}

.video-placeholder {
  position: relative;
}

.video-placeholder img,
.video-placeholder video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #15201d;
}

.video-placeholder .image-fallback {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 72% 22%, rgba(47, 118, 97, 0.22), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
    #15201d;
  color: rgba(255, 255, 255, 0.72);
}

.video-placeholder .image-fallback::before {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.video-placeholder p {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

[dir="rtl"] .site-header,
[dir="rtl"] .hero,
[dir="rtl"] .intro-grid,
[dir="rtl"] .section-heading,
[dir="rtl"] .split-section,
[dir="rtl"] .video-feature,
[dir="rtl"] .application-band,
[dir="rtl"] .about-hero,
[dir="rtl"] .visual-hero,
[dir="rtl"] .detail-layout,
[dir="rtl"] .contact-layout,
[dir="rtl"] .video-page-layout {
  direction: rtl;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .site-header.nav-open .site-nav {
    flex-wrap: wrap;
    padding-top: 10px;
  }

  .hero,
  .about-hero,
  .visual-hero,
  .detail-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 36px));
  }

  .hero-copy > p:not(.eyebrow),
  .hero-actions {
    grid-column: 1;
  }

  .hero-stage {
    min-height: 0;
    aspect-ratio: 16 / 8;
    order: -1;
  }

  .catalog-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .split-section,
  .video-feature,
  .application-band,
  .video-page-layout {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    position: static;
  }

  .admin-grid,
  .text-group-grid,
  .admin-row,
  .product-admin-row,
  .admin-category-grid,
  .admin-product-grid,
  .admin-settings-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .admin-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 78px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 38px;
    line-height: 1.03;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    padding: 16px 0 36px;
  }

  .hero-stage {
    min-height: 0;
    aspect-ratio: 16 / 5.2;
  }

  .hero-copy .eyebrow {
    margin-bottom: 8px;
  }

  .hero-copy h1 {
    margin-bottom: 14px;
  }

  .hero-actions,
  .admin-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .admin-card-actions .button,
  .header-actions .button {
    width: 100%;
  }

  .metrics,
  .specs-band,
  .intro-grid,
  .section-heading,
  .catalog-grid,
  .process-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .section {
    padding: 58px 18px;
  }

  .category-grid {
    margin-right: -18px;
    padding-right: 18px;
  }

  .category-tile {
    flex-basis: 76vw;
    max-width: 340px;
  }

  .detail-product-link {
    flex-basis: 72vw;
    grid-template-rows: 164px 26px 48px;
  }

  .product-card {
    grid-template-rows:
      240px
      34px
      74px
      142px
      42px;
  }

  .page-hero {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .about-hero img,
  .visual-hero img {
    height: min(300px, 38vh);
  }

  .neck-paper-hero img {
    height: min(240px, 32vh);
  }

  .about-banner-frame {
    height: min(260px, 38vh);
  }

  .main-product-image,
  .detail-gallery > .image-fallback {
    height: min(360px, 72vw);
  }

  .thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card p {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }

  .spec-table div,
  .contact-list p {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-section-head {
    display: grid;
    align-items: start;
  }

  .admin-inline-controls {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-inline-controls label,
  .admin-inline-controls .button {
    width: 100%;
  }

  .admin-fab {
    right: 12px;
    bottom: 12px;
  }

  .auth-layout {
    width: min(100% - 32px, 1180px);
    padding: 26px 0;
  }

  .auth-brand {
    margin-bottom: 38px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .auth-card,
  .admin-card-body,
  .text-group {
    padding: 16px;
  }

  .video-placeholder p {
    position: static;
    padding: 16px;
    background: var(--deep);
  }
}
