:root {
  --primary: #0f3b33;
  --primary-dark: #092b25;
  --primary-light: #1e5b4f;
  --background: #f7f4ee;
  --surface: #ffffff;
  --surface-alt: #efe9df;
  --accent: #c8793f;
  --accent-dark: #a85d2c;
  --text-primary: #171a18;
  --text-secondary: #6d706c;
  --border: #e5e0d7;
  --success: #2e7d55;
  --bg: var(--background);
  --ink: var(--text-primary);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border);
  --brand: var(--primary);
  --brand-2: var(--accent);
  --soft: #edf2ef;
  --danger: #b42318;
  --ok: #0f766e;
  --shadow: 0 18px 50px rgba(24, 24, 22, 0.1);
  --shadow-sm: 0 8px 24px rgba(24, 24, 22, 0.07);
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(12, 38, 32, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(8, 28, 23, 0.16);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: 76px;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.lang-switch {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brand-name {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wholesale-badge {
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}
.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.site-nav a,
.admin-sidebar nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.site-header .site-nav a {
  color: rgba(255, 255, 255, 0.78);
}
.site-header .site-nav a.active,
.site-header .site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.site-nav a.active,
.site-nav a:hover,
.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: var(--soft);
  color: var(--brand);
}
.header-search {
  height: 40px;
  width: min(190px, 15vw);
  display: flex;
  align-items: center;
  margin-inline-start: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.header-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 8px 11px;
  background: transparent;
  color: #fff;
  outline: 0;
}
.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}
.header-search button {
  width: 38px;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 22px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-dark {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(23, 63, 54, 0.18);
}
.btn-dark:hover {
  background: var(--primary-dark);
}
.btn-light {
  background: var(--surface);
  color: var(--ink);
}
.btn-whatsapp {
  background: #167d63;
  color: #fff;
  border-color: #167d63;
}
.btn-whatsapp:hover {
  background: #106c55;
  box-shadow: 0 8px 20px rgba(22, 125, 99, 0.2);
}
.full {
  width: 100%;
}
.hero {
  padding: 30px 0 24px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(520px, 48vw, 640px);
  gap: 0;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e2d5c5;
  border-radius: 24px;
  background: #e9dcc9;
  box-shadow: var(--shadow);
}
.hero-grid::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 25%,
    rgba(238, 224, 204, 0.18) 48%,
    rgba(245, 234, 218, 0.97) 100%
  );
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  padding: clamp(32px, 5vw, 74px);
}
.hero-copy h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: var(--primary-dark);
}
.hero-copy p {
  color: var(--muted);
  max-width: 540px;
  font-size: 18px;
  margin-bottom: 26px;
}
.hero-actions,
.detail-actions,
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: #d9c6aa;
}
.hero-image img {
  height: 100%;
  width: 100%;
  object-position: center center;
}
.eyebrow {
  color: var(--brand-2);
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.benefits-strip {
  padding: 0 0 28px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.benefits-grid > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 20px;
}
.benefits-grid > div + div {
  border-inline-start: 1px solid var(--border);
}
.benefits-grid span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--soft);
  font-size: 18px;
  font-weight: 800;
}
.benefits-grid strong,
.benefits-grid small {
  display: block;
}
.benefits-grid small {
  line-height: 1.5;
}
.section {
  padding: 60px 0;
}
.muted-band {
  background: transparent;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2,
.page-title h1 {
  margin: 0;
  line-height: 1.2;
}
.section-head h2 {
  font-size: 30px;
}
.section-link {
  color: var(--primary);
  font-weight: 800;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(24, 24, 22, 0.065);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #d4ccbf;
  box-shadow: 0 18px 42px rgba(24, 24, 22, 0.11);
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #e8e3db;
  overflow: hidden;
}
.product-image,
.product-image-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}
.corner-label {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.product-card-body {
  padding: 15px;
}
.product-category {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.product-card h3 {
  margin: 0 0 14px;
  line-height: 1.35;
  min-height: 44px;
  font-size: 17px;
}
.muted,
small {
  color: var(--muted);
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
}
.product-price {
  color: var(--primary-dark);
  font-size: 17px;
}
.product-price-contact {
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: currentColor;
}
.stock-out {
  color: var(--danger);
  background: #fdf0ef;
}
.stock-limited {
  color: #9a5a17;
  background: #fff5df;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-actions .btn {
  padding-inline: 10px;
  font-size: 14px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.muted-band .category-card {
  aspect-ratio: 1.08 / 1;
}
.category-grid.large {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background: #333;
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(10, 25, 22, 0.88) 100%
  );
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.88);
  transition: transform 0.35s ease;
}
.category-card:hover img {
  transform: scale(1.045);
}
.category-card-copy {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.category-card span {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}
.category-card small {
  color: rgba(255, 255, 255, 0.8);
}
.info-grid,
.two-col,
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.contact-panel,
.form-card,
.admin-panel,
.login-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(25, 23, 20, 0.05);
}
.contact-panel {
  padding: 24px;
}
.centered-head {
  max-width: 720px;
  margin-bottom: 32px;
  text-align: center;
}
.centered-head h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
}
.centered-head > p:last-child {
  color: var(--muted);
}
.why-section {
  width: min(1240px, calc(100% - 40px));
  margin: 36px auto;
  border-radius: 20px;
  background: linear-gradient(120deg, #0e3028, #123e34);
  color: #fff;
  box-shadow: var(--shadow);
}
.why-section .centered-head > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.why-grid article {
  padding: 26px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.why-grid article:first-child {
  border-inline-start: 0;
}
.why-grid h3 {
  margin: 18px 0 8px;
  font-size: 21px;
}
.why-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-inline: auto;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 800;
}
.contact-methods-section {
  padding: 0 0 24px;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.contact-methods > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 24px;
}
.contact-methods > a + a {
  border-inline-start: 1px solid var(--border);
}
.contact-methods > a > span {
  color: var(--primary);
  font-size: 28px;
}
.contact-methods small,
.contact-methods strong {
  display: block;
}
.contact-methods small {
  color: var(--muted);
}
.contact-methods strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-cta-section {
  padding-top: 64px;
}
.contact-cta {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 32px;
  align-items: center;
  padding: 38px 46px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow);
}
.contact-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}
.contact-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.contact-cta .eyebrow {
  color: #d99263;
}
.contact-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}
.site-footer {
  margin-top: 46px;
  background: #08251f;
  color: #fff;
  padding: 54px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 38px;
}
.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}
.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
}
.footer-grid a {
  width: fit-content;
  margin-bottom: 6px;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-map-link {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.7;
}
.footer-map-link span {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #f0b184;
}
.footer-grid .footer-contact-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.7;
}
.footer-contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
  color: #f0b184;
}
.footer-contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-whatsapp-link .footer-contact-icon {
  color: #6fd39a;
}
.footer-brand img {
  width: 62px;
  height: 62px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
}
.footer-brand p {
  max-width: 390px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}
.footer-bottom strong {
  color: #df9b70;
}
.page-shell {
  padding: 42px 0 70px;
}
.page-title {
  margin-bottom: 22px;
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.results-line {
  margin: 14px 0;
  color: var(--muted);
}
.empty {
  grid-column: 1 / -1;
  background: var(--surface);
  padding: 28px;
  border-radius: 8px;
}
.gallery {
  display: grid;
  gap: 12px;
}
.main-product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #ddd;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.thumbs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  cursor: pointer;
}
.thumbs img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 6px;
}
.detail-copy h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
}
.detail-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
  margin: 18px 0;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.spec-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}
.spec-grid dt {
  color: var(--muted);
  font-size: 13px;
}
.spec-grid dd {
  margin: 0;
  font-weight: 800;
}
.chips,
.swatches,
.check-grid,
.attribute-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}
.chips span {
  min-width: 44px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff;
  font-weight: 800;
}
.swatches span,
.mini-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-block;
  background: var(--swatch);
  border: 1px solid var(--line);
  vertical-align: middle;
}
.form-card {
  padding: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bilingual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}
.check-line input,
.check-grid input {
  width: auto;
}
.selected-product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}
.selected-product img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
}
.content-page {
  max-width: 850px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.stats-row div {
  background: var(--soft);
  border-radius: 8px;
  padding: 16px;
}
.stats-row strong {
  display: block;
  font-size: 30px;
  color: var(--brand);
}
.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}
.flash.success {
  border-color: #a7f3d0;
  color: #065f46;
}
.flash.error {
  border-color: #fecaca;
  color: #991b1b;
}

.admin-body {
  background: #f5f6f4;
  padding-right: 280px;
}
.admin-sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 280px;
  background: #151a17;
  color: #fff;
  padding: 18px;
  overflow-y: auto;
}
.admin-brand {
  margin-bottom: 24px;
}
.admin-sidebar nav {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}
.admin-sidebar nav a {
  color: rgba(255, 255, 255, 0.76);
}
.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.admin-main {
  padding: 24px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.admin-topbar h1 {
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  padding: 18px;
}
.stat-card span {
  color: var(--muted);
}
.stat-card strong {
  display: block;
  font-size: 32px;
  color: var(--brand);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-panel {
  padding: 18px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.admin-panel h2 {
  margin-top: 0;
}
.admin-form {
  display: grid;
  gap: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 13px;
}
.table-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}
.table-actions,
.table-actions form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.table-actions a,
.table-actions button,
.link-danger {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  font-weight: 800;
}
.danger,
.link-danger {
  color: var(--danger) !important;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto auto;
  gap: 8px;
  margin-bottom: 12px;
}
.attribute-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.attribute-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px 8px;
}
.admin-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-images div {
  width: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
}
.admin-images img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(430px, 100%);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.login-card h1 {
  margin: 0;
}
.contact-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 18px 0;
}
.inquiry-detail {
  background: var(--soft);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.notes p {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 1320px) {
  .brand-name {
    display: none;
  }
  .header-search {
    width: 160px;
  }
  .site-nav a {
    padding-inline: 8px;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    position: relative;
    display: flex;
    gap: 10px;
  }
  .brand {
    margin-inline-end: auto;
  }
  .nav-toggle {
    display: block;
    order: 2;
  }
  .header-actions {
    order: 3;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 0;
    display: none;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #0e3028;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .site-nav a {
    width: 100%;
  }
  .header-search {
    width: 100%;
    margin: 8px 0 0;
  }
  .info-grid,
  .two-col,
  .product-detail,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .product-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-panel,
  .form-grid.three,
  .stats-grid,
  .bilingual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-body {
    padding-right: 0;
  }
  .admin-sidebar {
    position: static;
    width: auto;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 28px;
  }
  .hero-grid {
    min-height: 580px;
    gap: 0;
  }
  .hero-copy {
    padding: 34px;
  }
  .hero-image {
    height: 100%;
    min-height: 0;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefits-grid > div + div {
    border-inline-start: 1px solid var(--border);
    border-top: 0;
  }
  .benefits-grid > div:nth-child(odd) {
    border-inline-start: 0;
  }
  .benefits-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why-grid article:nth-child(3) {
    border-inline-start: 0;
  }
  .why-grid article:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .contact-methods {
    grid-template-columns: 1fr;
  }
  .contact-methods > a + a {
    border-inline-start: 0;
    border-top: 1px solid var(--border);
  }
  .contact-cta {
    grid-template-columns: 1fr;
    padding: 34px;
  }
  .contact-cta-actions {
    justify-content: start;
  }
}

html[dir="ltr"] body {
  font-family: Arial, Tahoma, sans-serif;
}
html[dir="ltr"] .hero-copy {
  grid-column: 2;
}
html[dir="ltr"] .hero-grid::after {
  background: linear-gradient(
    270deg,
    transparent 25%,
    rgba(238, 224, 204, 0.18) 48%,
    rgba(245, 234, 218, 0.97) 100%
  );
}
html[dir="ltr"] .admin-body {
  padding-right: 0;
  padding-left: 280px;
}
html[dir="ltr"] .admin-sidebar {
  inset: 0 auto 0 0;
}
html[dir="ltr"] th,
html[dir="ltr"] td {
  text-align: left;
}
html[dir="ltr"] .corner-label {
  right: auto;
  left: 10px;
}
html[dir="ltr"] .site-nav,
html[dir="ltr"] .hero-actions,
html[dir="ltr"] .detail-actions,
html[dir="ltr"] .card-actions,
html[dir="ltr"] .table-actions,
html[dir="ltr"] .table-actions form {
  direction: ltr;
}
html[dir="ltr"] .check-line {
  direction: ltr;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1240px);
  }
  .site-header {
    height: 68px;
  }
  .header-inner {
    height: 68px;
    min-height: 68px;
  }
  .lang-switch {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .wholesale-badge {
    display: none;
  }
  .product-grid,
  .filter-panel,
  .form-grid,
  .form-grid.three,
  .bilingual-grid,
  .stats-grid,
  .footer-grid,
  .spec-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .category-card-copy {
    padding: 13px;
  }
  .category-card span {
    font-size: 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 650px;
    align-items: end;
    border-radius: 17px;
  }
  .hero-grid::after,
  html[dir="ltr"] .hero-grid::after {
    background: linear-gradient(
      180deg,
      transparent 22%,
      rgba(241, 227, 207, 0.45) 45%,
      rgba(247, 236, 220, 0.98) 70%
    );
  }
  .hero-copy,
  html[dir="ltr"] .hero-copy {
    grid-column: 1;
    align-self: end;
    padding: 28px 22px;
  }
  .hero-image {
    position: absolute;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 0;
  }
  .hero-image img {
    object-position: 42% center;
  }
  .hero-copy h1,
  .detail-copy h1 {
    font-size: 38px;
  }
  .hero-copy p {
    font-size: 16px;
  }
  .hero-actions .btn {
    flex: 1 1 150px;
  }
  .section {
    padding: 46px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .centered-head h2 {
    font-size: 28px;
  }
  .contact-cta {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .contact-cta-actions {
    display: grid;
    width: 100%;
  }
  .why-section {
    width: min(100% - 24px, 1240px);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-grid article {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .why-grid article:first-child {
    border-top: 0;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .admin-main {
    padding: 14px;
  }
  .inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  html[dir="ltr"] .admin-body {
    padding-left: 0;
  }
  html[dir="ltr"] .admin-sidebar {
    position: static;
    width: auto;
  }
}
