@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@500;700&display=swap');

:root {
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-ar: 'Noto Naskh Arabic', serif;

  --bg: #f6f0e5;
  --bg-soft: #f8f3ea;
  --surface: var(--cat-surface, rgba(255, 252, 246, 0.82));
  --surface-strong: var(--cat-surface-strong, #fffaf0);
  --line: var(--cat-line, rgba(80, 53, 21, 0.16));
  --text: #251a12;
  --muted: #6f5b46;
  --accent: var(--cat-accent, #a9783c);
  --accent-2: var(--cat-accent-2, #7a5126);
  --glow: var(--cat-glow, rgba(201, 154, 84, 0.35));
  --bg-spot-a: var(--cat-bg-spot-a, rgba(186, 128, 58, 0.22));
  --bg-spot-b: var(--cat-bg-spot-b, rgba(166, 125, 72, 0.2));
  --ok: #496a47;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 38px rgba(62, 39, 16, 0.14);
  --shadow-strong: 0 24px 54px rgba(38, 23, 8, 0.22);
  --max: 1160px;
}

[data-theme='dark'] {
  --bg: #0f1519;
  --bg-soft: #121b20;
  --surface: var(--cat-surface, rgba(19, 29, 36, 0.84));
  --surface-strong: var(--cat-surface-strong, #18252d);
  --line: var(--cat-line, rgba(216, 190, 154, 0.22));
  --text: #f2e9da;
  --muted: #bea98f;
  --accent: var(--cat-accent, #c79c58);
  --accent-2: var(--cat-accent-2, #e0bb80);
  --glow: var(--cat-glow, rgba(199, 156, 88, 0.38));
  --bg-spot-a: var(--cat-bg-spot-a, rgba(146, 105, 49, 0.18));
  --bg-spot-b: var(--cat-bg-spot-b, rgba(173, 126, 61, 0.15));
  --ok: #89ad86;

  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-strong: 0 30px 62px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1400px 820px at 12% -8%, var(--bg-spot-a), transparent 58%),
    radial-gradient(1200px 760px at 85% -10%, var(--bg-spot-b), transparent 56%),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 60%, var(--bg));
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.09), transparent 38%);
  z-index: 0;
}

body.has-opener {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-shell,
.topbar,
main,
footer,
.mobile-nav-toggle,
.mobile-drawer,
.section-rail {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  z-index: 35;
}

.topbar__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

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

.brand strong {
  display: block;
  font-size: 24px;
  font-family: var(--font-head);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid color-mix(in oklab, var(--accent) 70%, var(--line));
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  color: var(--accent);
  background: color-mix(in oklab, var(--surface-strong) 86%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.brand--button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

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

.lang-switch {
  display: inline-flex;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-strong) 84%, transparent);
  padding: 4px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: var(--text);
  background: color-mix(in oklab, var(--surface-strong) 60%, var(--accent) 18%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, var(--line));
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-strong) 78%, transparent);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 1px var(--glow), 0 6px 18px rgba(20, 12, 5, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--solid {
  color: #fff8ec;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(130, 86, 37, 0.35);
}

.btn--ghost {
  border-color: var(--line);
  background: color-mix(in oklab, var(--surface-strong) 78%, transparent);
  color: var(--text);
}

.btn--ghost:hover,
.btn--solid:hover {
  box-shadow: 0 0 0 1px var(--glow), 0 12px 30px rgba(20, 12, 5, 0.25);
}

/* Opener */
.opener {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  transition: transform 0.75s cubic-bezier(0.18, 0.8, 0.18, 1), opacity 0.45s ease;
}

.opener[hidden] {
  display: none;
}

.opener.is-dismissing {
  transform: translateY(-102%);
  opacity: 0;
}

.opener__image,
.opener__image img {
  width: 100%;
  height: 100%;
}

.opener__image {
  position: absolute;
  inset: 0;
}

.opener__image img {
  object-fit: cover;
}

.opener__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 17, 9, 0.2), rgba(26, 17, 9, 0.44) 72%),
    radial-gradient(900px 420px at 50% 90%, rgba(255, 243, 222, 0.76), rgba(255, 243, 222, 0));
}

.opener__grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.17) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  opacity: 0.22;
}

.opener__content {
  position: absolute;
  inset: auto 50% 10vh auto;
  transform: translateX(50%);
  width: min(840px, calc(100% - 2.4rem));
  text-align: center;
  color: #2a1d12;
  border: 1px solid rgba(107, 70, 30, 0.28);
  border-radius: 30px;
  background: linear-gradient(155deg, rgba(255, 245, 228, 0.97), rgba(255, 240, 213, 0.94));
  box-shadow: 0 26px 56px rgba(49, 29, 11, 0.3);
  padding: clamp(18px, 3vw, 34px);
  backdrop-filter: blur(4px);
}

[data-theme='dark'] .opener__content {
  color: #f4eadb;
  border-color: rgba(227, 201, 163, 0.26);
  background: linear-gradient(155deg, rgba(16, 25, 31, 0.92), rgba(22, 34, 42, 0.95));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.54);
}

.opener__kicker {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 54px);
  color: #6f431b;
}

[data-theme='dark'] .opener__kicker {
  color: #f0c886;
}

.opener__title {
  margin-top: 14px;
  font-size: clamp(30px, 5.5vw, 58px);
}

.opener__sub {
  margin-top: 12px;
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.35;
  max-width: 820px;
  margin-inline: auto;
}

.opener__controls {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.opener__controls .icon-btn,
.opener__controls .lang-switch {
  background: color-mix(in oklab, #fff7eb 72%, transparent);
  border-color: rgba(89, 57, 24, 0.24);
}

.opener__hint {
  margin-top: 22px;
  color: rgba(41, 24, 10, 0.85);
  font-weight: 600;
  letter-spacing: 0.04em;
}

[data-theme='dark'] .opener__hint {
  color: rgba(244, 229, 206, 0.86);
}

[data-theme='dark'] .opener__controls .icon-btn,
[data-theme='dark'] .opener__controls .lang-switch {
  background: rgba(24, 38, 47, 0.8);
  border-color: rgba(216, 190, 154, 0.28);
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 28;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-strong) 90%, transparent);
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 20px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.section-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  z-index: 24;
}

.section-rail a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.section-rail a.is-active {
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent) 56%, var(--line));
  transform: translateX(-3px);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(0, 0, 0, 0.35);
}

.mobile-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer__sheet {
  width: min(88vw, 320px);
  margin-left: auto;
  height: 100%;
  background: var(--surface-strong);
  border-left: 1px solid var(--line);
  padding: 14px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.mobile-drawer.is-open .mobile-drawer__sheet {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mobile-drawer__nav {
  display: grid;
  gap: 8px;
}

.mobile-drawer__nav a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}

.hero-section {
  position: relative;
  min-height: min(82vh, 760px);
  border-bottom: 1px solid var(--line);
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section__bg picture,
.hero-section__bg img {
  width: 100%;
  height: 100%;
}

.hero-section__bg img {
  object-fit: cover;
  filter: saturate(0.94);
}

.hero-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(17, 11, 7, 0.62), rgba(17, 11, 7, 0.2) 52%),
    linear-gradient(180deg, rgba(245, 228, 194, 0.05), rgba(12, 8, 5, 0.55));
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  min-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 62px;
}

.hero-copy {
  max-width: 680px;
  border: 1px solid rgba(255, 238, 214, 0.22);
  border-radius: 22px;
  background: rgba(17, 12, 8, 0.46);
  backdrop-filter: blur(8px);
  padding: 30px;
  color: #f5ebdf;
  box-shadow: var(--shadow-strong);
}

.hero-copy .eyebrow {
  color: rgba(255, 225, 176, 0.86);
}

.hero-copy h2 {
  font-size: clamp(34px, 6vw, 66px);
  margin-top: 10px;
  line-height: 1.06;
}

.hero-copy p {
  margin-top: 12px;
  color: rgba(250, 242, 232, 0.92);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dual-toggle {
  margin-top: 24px;
  display: inline-flex;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 169, 0.32);
  background: rgba(20, 12, 7, 0.56);
  padding: 5px;
  width: fit-content;
}

.dual-toggle--compact {
  margin-top: 0;
  background: color-mix(in oklab, var(--surface) 78%, transparent);
  border-color: var(--line);
}

.dual-toggle__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: #e9d7ba;
  font-weight: 700;
  cursor: pointer;
}

.dual-toggle--compact .dual-toggle__btn {
  color: var(--muted);
  padding: 7px 12px;
  font-size: 12px;
}

.dual-toggle__btn.is-active {
  color: #1f1409;
  background: linear-gradient(130deg, #e6ca97, #ba8e55);
}

.dual-toggle--compact .dual-toggle__btn.is-active {
  color: var(--text);
  background: color-mix(in oklab, var(--surface-strong) 60%, var(--accent) 22%);
}

.section {
  padding: 72px 0;
  scroll-margin-top: 90px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h3 {
  font-size: clamp(28px, 4.2vw, 44px);
  margin-top: 6px;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 64ch;
}

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

.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  text-align: center;
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  appearance: none;
  color: inherit;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 58%, var(--line));
}

.category-card:focus-visible {
  outline: none;
  border-color: color-mix(in oklab, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 1px var(--glow), var(--shadow);
}

.category-card.is-active {
  border-color: color-mix(in oklab, var(--accent) 65%, var(--line));
  background: color-mix(in oklab, var(--surface-strong) 72%, var(--accent) 15%);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--glow), var(--shadow);
}

.category-card__icon {
  font-size: 24px;
  color: var(--accent);
}

.category-card__name {
  font-family: var(--font-head);
  font-size: 26px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chip-row button.is-active {
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent) 56%, var(--line));
  background: color-mix(in oklab, var(--surface-strong) 70%, var(--accent) 18%);
}

.product-detail-shell {
  margin-top: 16px;
  scroll-margin-top: 98px;
}

.product-detail-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in oklab, var(--surface-strong) 80%, var(--accent) 10%), var(--surface));
  box-shadow: var(--shadow-strong);
  padding: 18px;
}

.product-detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-detail-card__close {
  width: 38px;
  height: 38px;
}

.product-detail-card h4 {
  margin-top: 2px;
  font-size: clamp(31px, 4.4vw, 46px);
}

.product-detail-card__desc {
  margin-top: 8px;
  color: var(--muted);
  max-width: 74ch;
}

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

.detail-rich-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface-strong) 85%, transparent);
  padding: 12px;
}

.detail-rich-box h5 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(23px, 3vw, 30px);
}

.detail-rich-box p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.detail-rich-box ul {
  margin: 9px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.product-detail-card__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-card__actions .btn {
  flex: 1;
  min-width: 180px;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.product-card__media .img-layer,
.product-card__media .img-layer picture,
.product-card__media .img-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-card__media .img-layer img {
  object-fit: cover;
}

.product-card__media .img-layer--secondary {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card__media .img-layer--secondary,
.product-card:focus-within .product-card__media .img-layer--secondary,
.product-card__media.is-alt .img-layer--secondary {
  opacity: 1;
}

.product-card__body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.product-card__title {
  font-size: 30px;
}

.product-card__teaser {
  color: var(--muted);
  font-size: 14px;
}

.origin-pill {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-strong) 62%, var(--accent) 14%);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  width: fit-content;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge--status {
  color: var(--text);
  background: color-mix(in oklab, var(--surface-strong) 66%, var(--accent) 15%);
}

.badge--b2c,
.badge--b2b {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.badge--limited {
  border-color: color-mix(in oklab, #d18f3f 70%, var(--line));
}

.badge--in_stock {
  border-color: color-mix(in oklab, #4f8a57 66%, var(--line));
}

.badge--pre_order,
.badge--on_request {
  border-color: color-mix(in oklab, #7a633a 66%, var(--line));
}

.amanah-mini {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in oklab, var(--surface-strong) 82%, transparent);
}

.amanah-mini strong {
  font-size: 13px;
}

.amanah-mini ul {
  margin: 8px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.card-actions,
.detail-actions,
.cooperation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions .btn {
  flex: 1;
  min-width: 120px;
}

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

.partner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.partner-card__map {
  aspect-ratio: 16 / 8;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-strong) 85%, transparent);
}

.partner-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.partner-card h4 {
  font-size: 28px;
}

.partner-card p {
  color: var(--muted);
  font-size: 14px;
}

.section--cooperation {
  padding-top: 18px;
}

.cooperation-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(145deg, color-mix(in oklab, var(--surface-strong) 80%, var(--accent) 8%), var(--surface));
  box-shadow: var(--shadow-strong);
}

.cooperation-panel h3 {
  font-size: clamp(28px, 4vw, 46px);
}

.cooperation-panel p {
  margin-top: 8px;
  color: var(--muted);
}

.cooperation-actions {
  margin-top: 18px;
}

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

.amanah-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.amanah-item h4 {
  font-size: 26px;
}

.amanah-item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 42px;
  margin-top: 20px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer__links {
  display: inline-flex;
  gap: 12px;
}

.footer__links a {
  color: var(--text);
}

/* Detail pages */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  padding-block: 24px 46px;
}

.detail-main {
  display: grid;
  gap: 14px;
}

.detail-side {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.detail-card h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-top: 8px;
}

.detail-card h2 {
  font-size: clamp(28px, 3.9vw, 38px);
}

.detail-card h3 {
  font-size: clamp(24px, 3.4vw, 30px);
}

.detail-card p {
  margin-top: 10px;
}

.gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
}

.gallery__main {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.gallery__main picture,
.gallery__main img {
  width: 100%;
  height: 100%;
}

.gallery__main img {
  object-fit: cover;
}

.gallery__thumbs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.gallery__thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  width: 70px;
  height: 70px;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gallery__thumb.is-active {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 1px var(--glow);
}

.gallery__thumb picture,
.gallery__thumb img {
  width: 100%;
  height: 100%;
}

.gallery__thumb img {
  object-fit: cover;
}

.story-box,
.amanah-box,
.detail-features {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface-strong) 86%, transparent);
  padding: 12px;
}

.story-box p {
  margin-top: 6px;
  color: var(--muted);
}

.detail-care-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-care-grid .detail-rich-box {
  margin-top: 0;
}

.fact-grid,
.partner-meta-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in oklab, var(--surface-strong) 86%, transparent);
  padding: 12px;
}

.fact-card dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.fact-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.fact-card dt {
  color: var(--muted);
  font-size: 13px;
}

.fact-card dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.amanah-box ul,
#partnerAmanahList {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.tag-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: color-mix(in oklab, var(--surface-strong) 85%, transparent);
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.map-wrap picture,
.map-wrap img {
  width: 100%;
  height: 100%;
}

.map-wrap img {
  object-fit: cover;
}

.error-state {
  border: 1px solid color-mix(in oklab, #a64f4f 56%, var(--line));
  color: color-mix(in oklab, #a64f4f 72%, var(--text));
  border-radius: 12px;
  background: color-mix(in oklab, var(--surface-strong) 80%, #f7d8d8 20%);
  padding: 14px;
}

.empty-state {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Request */
.request-layout {
  display: grid;
  gap: 14px;
  padding-block: 24px 46px;
}

.context-box {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-strong) 85%, transparent);
  border-radius: 12px;
  padding: 12px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.form-grid__full {
  grid-column: 1 / -1;
}

.input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: color-mix(in oklab, var(--surface-strong) 88%, transparent);
  color: var(--text);
  font: inherit;
}

.input:focus-visible {
  outline: none;
  border-color: color-mix(in oklab, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 1px var(--glow);
}

textarea.input {
  resize: vertical;
}

.form-error {
  margin-top: 10px;
  border: 1px solid color-mix(in oklab, #a64f4f 56%, var(--line));
  color: color-mix(in oklab, #a64f4f 72%, var(--text));
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
}

.json-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in oklab, var(--surface-strong) 85%, transparent);
  padding: 10px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
  max-height: 320px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .section-rail {
    display: none;
  }

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    max-height: none;
  }

  .product-detail-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-copy {
    padding: 22px;
  }

  .amanah-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar__controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dual-toggle--compact {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 1.2rem);
  }

  .topbar__inner {
    min-height: 70px;
  }

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

  .brand small {
    display: none;
  }

  .opener__content {
    bottom: 7vh;
    width: calc(100% - 1.4rem);
    padding: 16px;
  }

  .opener__sub {
    font-size: 16px;
  }

  .hero-section__inner {
    padding-top: 88px;
  }

  .hero-copy {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-copy h2 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .cooperation-panel {
    padding: 18px;
  }

  .amanah-grid,
  .fact-grid,
  .partner-meta-grid,
  .form-grid,
  .detail-care-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-card {
    padding: 14px;
  }

  .product-detail-card__grid {
    grid-template-columns: 1fr;
  }

  .product-detail-card__actions .btn {
    min-width: 100%;
  }

  .detail-card {
    padding: 14px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
