/* ==========================================================================
   BOZOKH — Design System
   Premium / Minimal / Modern / Functional
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --light-gray: #EDEEF0;
  --silver: #A7ACB4;
  --charcoal: #303640;
  --black: #111318;

  --surface: var(--white);
  --surface-alt: var(--light-gray);
  --text: var(--black);
  --text-muted: #5B6069;
  --border: #DCDEE2;
  --accent: var(--charcoal);

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --radius-sm: 2px;
  --radius-md: 4px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--black);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0; }

button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--charcoal); }
.btn-secondary { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.7); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-full { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: var(--space-3);
}

.header-left { display: flex; align-items: center; gap: var(--space-3); }

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  margin-left: -8px;
}
.menu-btn span { width: 20px; height: 1.5px; background: var(--black); display: block; }

.logo-link { display: block; }
.logo-link img { height: 26px; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 2px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--black);
  transition: right .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }

.header-right { display: flex; align-items: center; gap: var(--space_2, 6px); }
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--light-gray); }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--black); fill: none; stroke-width: 1.6; }

.badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}

/* Search bar */
.search-panel {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: var(--space-3) 0;
  display: none;
}
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.search-panel input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--light-gray);
}
.search-panel input:focus { background: var(--white); border-color: var(--black); }

/* Mega menu */
.mega-wrap { position: relative; }
.mega-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 90vw);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(17,19,24,0.1);
  padding: var(--space-3);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.mega-wrap:hover .mega-panel,
.mega-wrap:focus-within .mega-panel { display: grid; }
.mega-col h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--silver); margin-bottom: 10px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mega-col a { font-size: 0.88rem; }
.mega-col a:hover { text-decoration: underline; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}
.mobile-drawer.open { display: block; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(17,19,24,0.4); }
.drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--white);
  padding: var(--space-3);
  overflow-y: auto;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }
.drawer-close { font-size: 1.6rem; line-height: 1; padding: 6px; }
.drawer-section { margin-bottom: var(--space-3); }
.drawer-section h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--silver); margin-bottom: 10px; }
.drawer-section ul { list-style: none; margin: 0; padding: 0; }
.drawer-section li a { display: block; padding: 10px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
.drawer-sub { padding-left: 14px !important; font-size: 0.88rem !important; color: var(--text-muted); }

@media (min-width: 960px) {
  .menu-btn { display: none; }
  .main-nav { display: block; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  height: min(86vh, 760px);
  min-height: 460px;
  overflow: hidden;
  background: var(--black);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,19,24,0.1) 0%, rgba(17,19,24,0.55) 100%);
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) var(--space-5);
  color: var(--white);
  max-width: var(--container);
  margin: 0 auto;
}
.hero-content h1 { color: var(--white); max-width: 14ch; }
.hero-content p { margin-top: var(--space-2); max-width: 46ch; font-size: 1.05rem; color: rgba(255,255,255,0.88); }
.hero-actions { margin-top: var(--space-3); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; right: var(--gutter); bottom: var(--space-3); display: flex; gap: 8px; }
.hero-dots button { width: 22px; height: 2px; background: rgba(255,255,255,0.4); }
.hero-dots button.active { background: var(--white); }

/* ---------------------------------------------------------------------- */
/* Sections / generic                                                     */
/* ---------------------------------------------------------------------- */

section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-alt { background: var(--surface-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.section-head p.kicker { color: var(--text-muted); margin-top: 8px; max-width: 48ch; }
.section-link { font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid var(--black); padding-bottom: 2px; white-space: nowrap; }

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.cat-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--charcoal);
  border-radius: var(--radius-md);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,24,0) 40%, rgba(17,19,24,0.65) 100%); }
.cat-card .cat-label { position: absolute; left: var(--space-2); bottom: var(--space-2); color: var(--white); }
.cat-card .cat-label span { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 4px; }
.cat-card h3 { color: var(--white); }

/* Product grid & card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-2);
}
.product-card { display: block; }
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-1);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--white);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 20px;
}
.wishlist-toggle {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
}
.wishlist-toggle svg { width: 16px; height: 16px; stroke: var(--black); fill: none; stroke-width: 1.6; }
.wishlist-toggle.active svg { fill: var(--black); }
.product-cat { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.product-name { font-size: 0.98rem; font-weight: 600; margin-top: 2px; }
.product-price { font-size: 0.86rem; color: var(--text-muted); margin-top: 4px; }

.add-to-cart-row { margin-top: 10px; }

/* ---------------------------------------------------------------------- */
/* Philosophy / Story                                                     */
/* ---------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}
.split img, .split .media { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-text .kicker { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.split-text p { color: var(--text-muted); margin-top: var(--space-2); font-size: 1.02rem; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.pillar h4 { font-size: 1rem; margin-bottom: 6px; }
.pillar p { color: var(--text-muted); font-size: 0.92rem; }

.dark-section { background: var(--black); color: var(--white); }
.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section p { color: rgba(255,255,255,0.72); }
.dark-section .pillar h4 { color: var(--white); }

/* ---------------------------------------------------------------------- */
/* Newsletter / coming soon                                                */
/* ---------------------------------------------------------------------- */

.newsletter-box {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}
.newsletter-box h2 { max-width: 20ch; margin: 0 auto; }
.newsletter-box p { color: var(--text-muted); margin-top: var(--space-2); max-width: 44ch; margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex; gap: 10px; max-width: 420px; margin: var(--space-3) auto 0;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }
.form-success { display: none; margin-top: var(--space-2); font-weight: 600; }
.form-success.show { display: block; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

#site-footer { background: var(--black); color: rgba(255,255,255,0.75); padding: var(--space-6) 0 var(--space-3); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 24px; margin-bottom: var(--space-2); }
.footer-brand p { max-width: 36ch; font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: var(--space-2); }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 15px; height: 15px; stroke: var(--white); fill: none; stroke-width: 1.6; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: var(--space-3);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { text-decoration: underline; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------------------------------------------------------------------- */
/* Page header (category/simple pages)                                    */
/* ---------------------------------------------------------------------- */

.page-head {
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--border);
}
.page-head p { color: var(--text-muted); margin-top: var(--space-1); max-width: 56ch; }
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.breadcrumb a:hover { text-decoration: underline; }

.sub-pill-row { display: flex; gap: 10px; overflow-x: auto; padding: var(--space-3) 0; margin-bottom: var(--space-2); }
.sub-pill {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.sub-pill.active, .sub-pill:hover { border-color: var(--black); background: var(--black); color: var(--white); }

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-2);
  color: var(--text-muted);
}
.empty-state h3 { color: var(--black); margin-bottom: 10px; }
.empty-state .btn { margin-top: var(--space-3); }

/* ---------------------------------------------------------------------- */
/* Product detail                                                         */
/* ---------------------------------------------------------------------- */

.pdp {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.pdp-media { aspect-ratio: 1/1; background: var(--light-gray); border-radius: var(--radius-md); overflow: hidden; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .product-cat { font-size: 0.8rem; }
.pdp-info h1 { margin-top: 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.pdp-info .pdp-short { color: var(--text-muted); margin-top: var(--space-1); font-size: 1.05rem; }
.pdp-price-row { display: flex; align-items: center; gap: 12px; margin-top: var(--space-3); }
.pdp-price { font-size: 1.1rem; font-weight: 600; }
.pdp-actions { display: flex; gap: 12px; margin-top: var(--space-3); flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qty-control button { width: 40px; height: 48px; font-size: 1.1rem; }
.qty-control span { width: 36px; text-align: center; font-weight: 600; }
.pdp-desc { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--text-muted); }
.pdp-desc h4 { color: var(--black); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 10px; }

@media (min-width: 860px) {
  .pdp { grid-template-columns: 1.1fr 1fr; gap: var(--space-5); }
}

/* ---------------------------------------------------------------------- */
/* Cart & Wishlist                                                        */
/* ---------------------------------------------------------------------- */

.cart-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); background: var(--light-gray); }
.cart-line h4 { font-size: 0.98rem; }
.cart-line .cat { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.remove-link { font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--text-muted); }
.remove-link:hover { color: var(--black); border-color: var(--black); }
.cart-summary { background: var(--surface-alt); border-radius: var(--radius-md); padding: var(--space-3); align-self: start; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 8px 0; color: var(--text-muted); }
.summary-row.total { color: var(--black); font-weight: 700; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1rem; }
.summary-note { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-2); }

@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.6fr 1fr; }
}

/* ---------------------------------------------------------------------- */
/* Forms (account / contact)                                              */
/* ---------------------------------------------------------------------- */

.form-card { max-width: 440px; margin: 0 auto; }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-alert {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}
.auth-switch { text-align: center; margin-top: var(--space-3); font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { font-weight: 600; color: var(--black); border-bottom: 1px solid var(--black); }

/* ---------------------------------------------------------------------- */
/* Policy pages                                                            */
/* ---------------------------------------------------------------------- */

.policy-body { max-width: 760px; }
.policy-body h2 { margin-top: var(--space-4); font-size: 1.2rem; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: var(--text-muted); margin-top: var(--space-1); }
.policy-body ul { padding-left: 20px; }

/* ---------------------------------------------------------------------- */
/* 404 / not-found panel reused for empty wishlist/cart illustrations      */
/* ---------------------------------------------------------------------- */

.state-icon { width: 44px; height: 44px; stroke: var(--silver); fill: none; stroke-width: 1.3; margin: 0 auto var(--space-2); }

/* ---------------------------------------------------------------------- */
/* Toast                                                                   */
/* ---------------------------------------------------------------------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------------- */
/* Responsive grid scale-up                                                */
/* ---------------------------------------------------------------------- */

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

/* Mobile bottom nav */
.mobile-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mobile-tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.64rem;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
}
.mobile-tabbar a.active { color: var(--black); }
.mobile-tabbar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
@media (min-width: 960px) { .mobile-tabbar { display: none; } }
@media (max-width: 959px) { body { padding-bottom: 64px; } }
