:root {
  --ink: #10201b;
  --muted: #65746f;
  --line: rgba(27, 111, 86, 0.18);
  --surface: rgba(255, 255, 255, 0.88);
  --soft: #f2f8f5;
  --soft-2: #e5f1ec;
  --red: #c43d32;
  --red-dark: #8f2b24;
  --gold: #d7f35f;
  --green: #0f8f68;
  --green-dark: #073f32;
  --green-soft: #ddf5ec;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(8, 50, 40, 0.54);
  --shadow: 0 18px 54px rgba(4, 53, 39, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(19, 160, 113, 0.18), transparent 34rem),
    linear-gradient(180deg, #f8fcfa 0%, #eef7f2 100%);
}

body.dialog-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(240px, 360px);
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(44, 142, 111, 0.2);
  background: rgba(248, 252, 250, 0.72);
  backdrop-filter: blur(22px) saturate(1.18);
  box-shadow: 0 12px 30px rgba(5, 71, 52, 0.08);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(10, 22, 19, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 12px 26px rgba(5, 71, 52, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.wordmark {
  display: inline-block;
  max-width: 100%;
  color: var(--green-dark);
  font-family: "Arial Black", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: none;
  transform: skewX(-4deg);
  transform-origin: left center;
  text-shadow:
    0.025em 0.025em 0 rgba(215, 243, 95, 0.35),
    0 8px 18px rgba(4, 53, 39, 0.12);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .wordmark {
    background: linear-gradient(100deg, #0a2c23 0%, #108a65 54%, #c4ec5f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.brand strong {
  line-height: 1.05;
  font-size: 1.28rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.category-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
}

.category-nav button,
.button,
.primary-link,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.category-nav button {
  white-space: nowrap;
  padding: 0 13px;
}

.category-nav button:hover,
.button:hover,
.primary-link:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 143, 104, 0.52);
  box-shadow: 0 10px 26px rgba(5, 71, 52, 0.12);
}

.search-box {
  position: relative;
  min-width: 0;
}

.search-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.search-wrap span {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(15, 143, 104, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(5, 71, 52, 0.18);
  backdrop-filter: blur(20px);
}

.suggestion-group + .suggestion-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.suggestion-heading {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-item {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus {
  outline: 0;
  background: var(--green-soft);
}

.suggestion-item strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.suggestion-item span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 700px);
  overflow: hidden;
  background: var(--green-dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 35, 29, 0.9) 0%, rgba(5, 57, 43, 0.7) 45%, rgba(8, 85, 60, 0.25) 100%),
    linear-gradient(0deg, rgba(2, 21, 17, 0.5), rgba(14, 138, 96, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: inherit;
  padding: 44px clamp(16px, 5vw, 72px);
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-logo {
  width: min(320px, 62vw);
  max-height: 150px;
  object-fit: contain;
  margin: 0 0 22px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.94;
}

.hero-wordmark {
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  text-shadow:
    0.025em 0.025em 0 rgba(215, 243, 95, 0.35),
    0 20px 38px rgba(0, 0, 0, 0.3);
}

.site-footer .wordmark {
  font-size: 1.45rem;
}

.hero-lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.25rem, 1.25rem);
  line-height: 1.6;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.hero-proof span {
  border: 1px solid rgba(220, 250, 235, 0.34);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.primary-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 116px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-link,
.button.dark {
  border-color: rgba(36, 211, 145, 0.5);
  background: linear-gradient(135deg, #33e09d, #b8f46b);
  color: #05251c;
  box-shadow: 0 12px 28px rgba(8, 118, 82, 0.24);
}

.button.ghost {
  background: var(--glass);
}

.finder-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(230, 255, 241, 0.48);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.1);
  box-shadow: var(--shadow);
}

.panel-heading p,
.panel-heading strong {
  display: block;
  margin: 0;
}

.panel-heading p {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.panel-heading strong {
  margin-top: 3px;
  font-size: 1.22rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 10px 12px;
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
  accent-color: var(--green);
}

.input-suffix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.input-suffix input {
  border: 0;
}

.input-suffix span {
  padding-right: 12px;
  color: var(--muted);
  font-weight: 800;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(15, 143, 104, 0.18);
  border-bottom: 1px solid var(--line);
}

.promise-strip div {
  padding: 24px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.promise-strip span,
.product-meta,
.summary-label {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.promise-strip strong {
  display: block;
  margin-top: 7px;
  line-height: 1.35;
}

.shop-section,
.articles-section,
.admin-shell {
  padding: 56px clamp(16px, 5vw, 72px) 76px;
  background: transparent;
}

.articles-section {
  background: rgba(255, 255, 255, 0.54);
  border-top: 1px solid var(--line);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.6rem, 2.6rem);
  line-height: 1;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.active-filters {
  min-height: 34px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.product-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(5, 71, 52, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 143, 104, 0.42);
  box-shadow: 0 22px 48px rgba(5, 71, 52, 0.14);
}

.product-media {
  position: relative;
  background: var(--green-soft);
}

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

.product-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 11px;
  min-width: 0;
  padding: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chip,
.part {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  color: var(--green);
}

.part {
  color: var(--muted);
}

.product-card h3 {
  min-height: 2.7em;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.32;
}

.description {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.feature-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #343b45;
  font-size: 0.88rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px;
  min-width: 0;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--green);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price {
  display: block;
  font-size: 1.34rem;
  font-weight: 900;
}

.install-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.strike {
  color: var(--muted);
  text-decoration: line-through;
}

.free {
  color: var(--green);
  font-weight: 850;
}

.order-button {
  min-width: 90px;
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px dashed #b7bec8;
  background: var(--glass);
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty-state.compact {
  min-height: 82px;
  padding: 12px;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(5, 71, 52, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 143, 104, 0.44);
  box-shadow: 0 20px 44px rgba(5, 71, 52, 0.13);
}

.article-card img {
  display: block;
  width: 100%;
  height: 180px;
  flex: none;
  object-fit: cover;
  background: var(--soft);
}

.article-card > div {
  background: #ffffff;
}

.article-card div {
  padding: 16px;
}

.article-card h3 {
  margin: 8px 0;
  font-size: 1.1rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, auto);
  gap: 24px;
  padding: 34px clamp(16px, 5vw, 72px);
  border-top: 1px solid rgba(126, 224, 177, 0.18);
  background:
    linear-gradient(135deg, rgba(4, 42, 33, 0.96), rgba(4, 78, 56, 0.94)),
    var(--green-dark);
  color: #fff;
}

.site-footer strong {
  display: block;
  font-size: 1.25rem;
}

.site-footer p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.site-footer address {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.article-header {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.article-page {
  padding: clamp(22px, 5vw, 72px);
  background: transparent;
}

.article-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(20px, 4vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
}

.article-detail-copy,
.article-content {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 34px);
  backdrop-filter: blur(18px);
}

.article-detail-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1.15;
}

.article-summary {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.article-detail-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  background: var(--soft-2);
}

.article-content {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  font-size: 1.04rem;
  line-height: 1.75;
}

.article-content p {
  margin: 0;
}

.order-dialog {
  width: min(960px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.order-dialog::backdrop {
  background: rgba(10, 12, 15, 0.64);
}

.dialog-close-wrap {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--glass);
  font-weight: 900;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 1px;
  background: var(--line);
}

.order-summary,
.order-form {
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
}

.order-summary img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
  margin-bottom: 18px;
}

.order-summary h2,
.order-form h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 900;
  font-size: 1.1rem;
}

.order-form form {
  display: grid;
  gap: 14px;
}

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

.full {
  grid-column: 1 / -1;
}

.notice {
  padding: 14px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  line-height: 1.45;
}

.success {
  min-height: 360px;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  padding: 38px;
}

.success strong {
  font-size: 1.8rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 252, 250, 0.76);
  backdrop-filter: blur(18px);
}

.admin-header h1 {
  margin: 0;
  font-size: 1.45rem;
}

.admin-login,
.admin-panel,
.admin-card {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(5, 71, 52, 0.08);
}

.admin-login {
  width: min(430px, 100%);
  margin: 56px auto;
  padding: 22px;
}

.admin-login form,
.settings-form,
.product-form {
  display: grid;
  gap: 14px;
}

.admin-layout {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-panel,
.admin-card {
  padding: clamp(16px, 2.6vw, 26px);
}

.admin-panel h2,
.admin-card h2 {
  margin: 0 0 16px;
}

.panel-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.admin-form-section {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-form-section h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.admin-tabs button.active,
.language-switch button.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.language-switch {
  display: flex;
  gap: 6px;
}

.language-switch .button {
  min-width: 52px;
}

.combo-field {
  display: grid;
  gap: 8px;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 0.9rem;
}

.choice-group input {
  width: auto;
  min-height: 0;
  accent-color: var(--green);
}

.pickup-contact {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(15, 143, 104, 0.22);
  background: var(--green-soft);
  color: var(--ink);
}

.pickup-contact[hidden] {
  display: none;
}

.pickup-contact strong {
  color: var(--green-dark);
}

.pickup-contact span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.fitment-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.fitment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.fitment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--green-soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.fitment-chip span {
  padding-left: 10px;
}

.fitment-chip b {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 32px;
  border-left: 1px solid var(--line);
}

.product-admin-list,
.order-list {
  display: grid;
  gap: 10px;
}

.article-form,
.media-upload-form {
  display: grid;
  gap: 14px;
}

.admin-list-spacer {
  height: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.media-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.media-thumb {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 116px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.media-thumb.selected {
  border-color: var(--green);
  outline: 2px solid rgba(51, 224, 157, 0.42);
}

.media-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
}

.media-thumb span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-item {
  display: grid;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.media-item div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.media-item .button {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
}

.media-item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-view[hidden] {
  display: none;
}

.admin-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
}

.admin-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--soft);
}

.admin-item strong,
.admin-item small {
  display: block;
}

.admin-item small {
  margin-top: 3px;
  color: var(--muted);
}

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

.status-text {
  min-height: 22px;
  color: var(--green);
  font-weight: 750;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .notice {
  border-left: 0;
  border-right: 4px solid var(--gold);
}

[dir="rtl"] .fitment-chip span {
  padding-left: 0;
  padding-right: 10px;
}

[dir="rtl"] .fitment-chip b {
  border-left: 0;
  border-right: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .category-nav {
    justify-content: start;
  }

  .hero-inner,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 4rem, 4rem);
  }

  .promise-strip,
  .product-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    min-height: 0;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .hero-inner,
  .shop-section,
  .admin-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero-wordmark {
    max-width: 100%;
    font-size: 3.25rem;
  }

  .hero-logo {
    width: min(210px, 58vw);
    max-height: 104px;
    margin-bottom: 16px;
  }

  .hero-inner {
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .hero-lede {
    margin-top: 16px;
  }

  .hero-proof {
    gap: 8px;
    margin: 18px 0 22px;
  }

  .hero-proof span {
    flex: 1 1 calc(50% - 8px);
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .finder-panel,
  .order-summary,
  .order-form,
  .admin-panel,
  .admin-card,
  .admin-login {
    padding: 16px;
  }

  .promise-strip,
  .product-grid,
  .article-grid,
  .media-grid,
  .article-detail,
  .site-footer,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .article-header {
    grid-template-columns: 1fr;
  }

  .article-detail-image {
    height: 260px;
    min-height: 0;
  }

  .fitment-builder {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .price-row,
  .summary-row {
    align-items: stretch;
    flex-direction: column;
  }

  .order-button,
  .button,
  .primary-link {
    width: 100%;
  }

  .admin-item {
    grid-template-columns: 52px 1fr;
  }

  .admin-item img {
    width: 52px;
    height: 52px;
  }

  .admin-item-actions {
    grid-column: 1 / -1;
  }
}

/* Featured slider */
.feature-slider {
  position: relative;
  margin: 26px clamp(16px, 4vw, 56px) 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slider-track {
  position: relative;
  min-height: 280px;
}

.feature-slide {
  display: none;
  grid-template-columns: minmax(200px, 380px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px clamp(18px, 3vw, 40px);
}

.feature-slide.active {
  display: grid;
}

.feature-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.feature-slide-body h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.feature-slide-body p {
  color: var(--muted);
  max-width: 60ch;
}

.feature-slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.feature-slide-actions strong {
  font-size: 1.3rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 16px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active {
  background: var(--green);
}

/* Star ratings */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d99a06;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.rating-stars small {
  color: var(--muted);
  letter-spacing: 0;
}

.rating-line {
  margin: 2px 0 6px;
}

@media (max-width: 720px) {
  .feature-slide {
    grid-template-columns: 1fr;
  }

  .feature-slide img {
    height: 180px;
  }
}
