/* The Lands Store marketing — Temu-like product UX, Lands Store colors */
:root {
  --navy: #0b1f44;
  --blue: #2b7fff;
  --blue-deep: #1f6ae6;
  --sky: #7eb6ff;
  --mist: #e8f1ff;
  --page: #f4f7fb;
  --card: #ffffff;
  --ink: #0b1f44;
  --muted: #7b8aa5;
  --line: rgba(11, 31, 68, 0.08);
  --sale: #ef4444;
  --radius-card: 10px;
  --header-h: 68px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shop-max: 720px;
  --sticky-cta-h: 64px;
  --tabbar-h: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
}
html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track {
  background: var(--mist);
}
html::-webkit-scrollbar-thumb {
  background: var(--blue);
  border: 2px solid var(--mist);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: 0;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.9rem;
  z-index: 100;
}
.skip-link:focus { left: 0.4rem; top: 0.4rem; }

.shell {
  width: min(100% - 1.1rem, var(--shop-max));
  margin-inline: auto;
}

/* ——— Header (search + chip rail) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-top {
  padding-block: 0.45rem 0.35rem;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
  flex: 0 0 auto;
  order: 1;
}
.brand-mark { border-radius: 9px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 38px;
  padding: 3px 3px 3px 4px;
  border: 1px solid #e3e7ee;
  border-radius: 999px;
  overflow: hidden;
  background: #f0f2f5;
  order: 3;
  flex: 1 1 100%;
  width: 100%;
  box-shadow: none;
}
.header-search__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #8b95a5;
  margin-left: 0.45rem;
  line-height: 0;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0.45rem 0 0.35rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  letter-spacing: -0.01em;
}
.header-search input::placeholder { color: #8b95a5; }
.header-search__btn {
  border: 0;
  padding: 0 0.85rem;
  height: 32px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 750;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(11, 31, 68, 0.12);
}
.header-search__btn:active { filter: brightness(0.96); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 0 0 auto;
  order: 2;
  margin-left: auto;
}
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 12px;
  flex: 0 0 auto;
}
.icon-link svg { display: block; }
.icon-link:hover,
.icon-link:focus-visible {
  background: var(--mist);
  color: var(--navy);
  outline: none;
}
.cart-link {
  position: relative;
  width: 44px;
  padding-inline: 0;
}
.cart-link__label {
  font-size: 0.72rem;
  font-weight: 700;
  display: none;
}

.header-auth { display: none !important; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 16px;
  margin-inline: auto;
  background: var(--navy);
}

/* Phone / tablet: logo + icons on row 1, full search on row 2 */
@media (max-width: 899px) {
  .brand-text { display: none; }
}

/* Desktop: single row — brand | search | actions */
@media (min-width: 900px) {
  .header-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
  }
  .brand { order: unset; }
  .header-search {
    order: unset;
    flex: unset;
    width: auto;
    height: 40px;
    padding: 3px;
  }
  .header-search__icon { display: inline-grid; }
  .header-search input {
    padding: 0 0.55rem 0 0.35rem;
    font-size: 0.875rem;
  }
  .header-search__btn {
    height: 34px;
  }
  .header-actions {
    order: unset;
    margin-left: 0;
  }
  .header-auth { display: inline-flex !important; }
  .nav-toggle { display: none; }
  .cart-link {
    width: auto;
    padding-inline: 0.45rem;
    gap: 0.25rem;
    grid-auto-flow: column;
  }
  .cart-link__label { display: inline; }
}

.header-cats {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0 0 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
  -webkit-overflow-scrolling: touch;
}
.header-cats::-webkit-scrollbar { height: 6px; }
.header-cats::-webkit-scrollbar-track { background: var(--mist); border-radius: 999px; }
.header-cats::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.header-cats::-webkit-scrollbar-thumb:hover { background: var(--navy); }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.chip:hover { border-color: var(--sky); color: var(--navy); }
.chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  flex: 0 0 auto;
}
.chip__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.chip__icon.cat-icon--deal { color: var(--sale); }
.chip--deal {
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.12), rgba(239, 68, 68, 0.1));
  border-color: rgba(43, 127, 255, 0.28);
  color: var(--blue-deep);
}
.chip--root {
  background: var(--mist);
  border-color: rgba(43, 127, 255, 0.22);
  color: var(--navy);
  font-weight: 750;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 31, 68, 0.42);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.mobile-nav-backdrop[hidden] { display: none !important; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(100vw - 3rem, 320px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(11, 31, 68, 0.16);
  transform: translateX(0);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.mobile-nav__head strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.mobile-nav__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: relative;
  cursor: pointer;
}
.mobile-nav__close span {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.mobile-nav__close span:first-child { transform: translateY(-50%) rotate(45deg); }
.mobile-nav__close span:last-child { transform: translateY(-50%) rotate(-45deg); }
.mobile-nav__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 1rem 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
}
.mobile-nav__body::-webkit-scrollbar { width: 6px; }
.mobile-nav__body::-webkit-scrollbar-track { background: var(--mist); border-radius: 999px; }
.mobile-nav__body::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.mobile-nav__body::-webkit-scrollbar-thumb:hover { background: var(--navy); }
.mobile-nav__body > .btn {
  margin-bottom: 0.35rem;
}
.mobile-nav__account {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  color: var(--blue-deep) !important;
}
.mobile-nav a:not(.btn) {
  padding: 0.7rem 0.15rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(11, 31, 68, 0.05);
}
.mobile-nav a:not(.btn):hover {
  color: var(--blue-deep);
}
.mobile-nav__label {
  margin: 0.85rem 0 0.2rem;
  padding: 0.15rem 0.15rem 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
body.nav-open {
  overflow: hidden;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 34px; padding: 0 0.85rem; font-size: 0.78rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 127, 255, 0.28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn-danger {
  color: var(--sale);
  border-color: rgba(239, 68, 68, 0.28);
  background: #fff;
}
.btn-danger:hover {
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.45);
  background: #fef2f2;
}
button.btn {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* ——— Store shell (Temu density) ——— */
.store-shell {
  width: min(100% - 0.85rem, var(--shop-max));
  margin-inline: auto;
  padding-bottom: 1.5rem;
}

.promo-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.65rem 0 0.55rem;
  padding: 1rem 0.95rem;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 31, 68, 0.9) 0%, rgba(43, 127, 255, 0.72) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(126, 182, 255, 0.45), transparent 50%),
    #12306a;
  animation: rise 420ms ease both;
}
.promo-banner__brand {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.promo-banner h1 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  max-width: 18rem;
}
.promo-banner__lede { display: none; }
.promo-banner__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.store-section { margin: 0.85rem 0 1.1rem; animation: rise 480ms ease both; }
.store-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-inline: 0.1rem;
}
.infinite-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
.infinite-status {
  margin: 0.85rem 0 0.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.infinite-end {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.store-section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.store-section__caption {
  margin: 0;
  margin-right: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.store-section__link {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
}

/* Category / subcategory horizontal sliders (compact) */
.store-section--tight {
  margin: 0.55rem 0 0.7rem;
}

.cat-slider,
.subcat-slider,
.cat-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0.05rem 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
  overscroll-behavior-x: contain;
}
.cat-slider::-webkit-scrollbar,
.subcat-slider::-webkit-scrollbar,
.cat-rail::-webkit-scrollbar { height: 6px; }
.cat-slider::-webkit-scrollbar-track,
.subcat-slider::-webkit-scrollbar-track,
.cat-rail::-webkit-scrollbar-track { background: var(--mist); border-radius: 999px; }
.cat-slider::-webkit-scrollbar-thumb,
.subcat-slider::-webkit-scrollbar-thumb,
.cat-rail::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.cat-slider::-webkit-scrollbar-thumb:hover,
.subcat-slider::-webkit-scrollbar-thumb:hover,
.cat-rail::-webkit-scrollbar-thumb:hover { background: var(--navy); }

.cat-slider__item,
.cat-rail__item {
  flex: 0 0 auto;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.15rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  scroll-snap-align: start;
}
.cat-slider__item:hover,
.cat-rail__item:hover {
  border-color: rgba(43, 127, 255, 0.35);
  color: var(--navy);
}

.cat-slider__icon,
.cat-rail__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--mist), #fff);
  border: 1px solid rgba(43, 127, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  flex: 0 0 auto;
}
.cat-slider__icon svg,
.cat-rail__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.cat-slider__icon.cat-icon--deal,
.cat-rail__icon.cat-icon--deal {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.12), #fff);
  border-color: rgba(239, 68, 68, 0.28);
  color: var(--sale);
}
.cat-slider--sub {
  margin-top: 0.35rem;
}
.cat-slider--sub .cat-slider__item {
  width: 76px;
}
.cat-slider--sub .cat-slider__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.cat-slider--sub .cat-slider__icon svg {
  width: 18px;
  height: 18px;
}

.cat-slider__name,
.cat-rail__name {
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  max-width: 76px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-groups {
  display: grid;
  gap: 0.75rem;
}
.cat-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.75rem 0.75rem;
}
.cat-group__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.cat-group__head .cat-slider__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.cat-group__head .cat-slider__icon svg {
  width: 18px;
  height: 18px;
}
.cat-group__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cat-group__count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
}
.cat-group__kids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cat-group__kid {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 30px;
  padding: 0 0.65rem 0 0.4rem;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}
.cat-group__kid:hover {
  border-color: rgba(43, 127, 255, 0.35);
  color: var(--navy);
}
.cat-group__kid-icon {
  display: inline-flex;
  color: var(--blue-deep);
}
.cat-group__kid-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.cat-group__kid-icon.cat-icon--deal { color: var(--sale); }

@media (min-width: 900px) {
  .cat-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.subcat-slider {
  margin-top: 0.4rem;
}
.subcat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
  scroll-snap-align: start;
}
.subcat-chip:hover {
  border-color: rgba(43, 127, 255, 0.4);
  color: var(--blue-deep);
  background: var(--mist);
}

.deal-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
}
.deal-strip::-webkit-scrollbar { height: 6px; }
.deal-strip::-webkit-scrollbar-track { background: var(--mist); border-radius: 999px; }
.deal-strip::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.deal-strip::-webkit-scrollbar-thumb:hover { background: var(--navy); }
.deal-chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.deal-chip.is-active,
.deal-chip:hover {
  background: var(--mist);
  border-color: rgba(43, 127, 255, 0.35);
  color: var(--blue-deep);
}

/* Dense product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
  :root { --shop-max: 960px; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root { --shop-max: 1120px; }
}

.mk-card {
  height: 100%;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(11, 31, 68, 0.06);
  box-shadow: 0 1px 2px rgba(11, 31, 68, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 31, 68, 0.1);
}
.mk-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f3f6fa;
  text-decoration: none;
}
.mk-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sale);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
}
.mk-card__wish,
.mk-card__wish-form .mk-card__wish {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(11, 31, 68, 0.12);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.mk-card__wish.is-active { color: #dc2626; }
.mk-card__wish-form {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  margin: 0;
}
.mk-card__wish-form .mk-card__wish {
  position: static;
}
.mk-card__cart {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(43, 127, 255, 0.35);
}
.mk-card__body { padding: 0.45rem 0.5rem 0.55rem; }
.mk-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.mk-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}
.mk-card__compare {
  font-size: 0.68rem;
  color: var(--muted);
  text-decoration: line-through;
}
.mk-card__title {
  margin: 0.2rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.mk-card__title a:hover { color: var(--blue-deep); }
.mk-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 600;
}
.mk-card.is-out { opacity: 0.72; }
.mk-card__soldout {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(11, 31, 68, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}
.mk-card__buy {
  margin-left: auto;
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 700;
}
.mk-card__buy:hover { text-decoration: underline; }

.api-banner {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #fff4f4;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #9f1239;
  font-size: 0.85rem;
  font-weight: 650;
}

.search-page-form {
  margin: 0.5rem 0 1rem;
  max-width: 100%;
  height: 42px;
}

/* Product detail */
.pdp {
  display: grid;
  gap: 1rem;
  margin: 0.5rem 0 1.25rem;
}
@media (min-width: 720px) {
  .pdp { grid-template-columns: 1fr 1fr; align-items: start; }
}
.pdp__gallery {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}
.pdp__wish-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0;
}
.pdp__wish {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
}
.pdp__wish-form .pdp__wish { position: static; }
.pdp__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp__thumbs {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
}
.pdp__thumbs::-webkit-scrollbar { height: 6px; }
.pdp__thumbs::-webkit-scrollbar-track { background: var(--mist); border-radius: 999px; }
.pdp__thumbs::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.pdp__thumbs::-webkit-scrollbar-thumb:hover { background: var(--navy); }
.pdp__thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp__badge { top: 10px; left: 10px; font-size: 0.75rem; padding: 4px 8px; }
.mk-card__image.is-broken,
.pdp__image.is-broken {
  object-fit: contain;
  background: var(--mist);
}
.pdp__info h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.pdp__cat {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.pdp__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.pdp__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--blue-deep);
}
.pdp__compare {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}
.pdp__save {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--sale);
  background: rgba(239, 68, 68, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.pdp__seo-intro {
  margin: 0.35rem 0 0.75rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 550;
}
.pdp__geo { margin: 0.25rem 0 0.65rem; }
.pdp__seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 650;
}
.pdp__seo-links a {
  color: var(--blue-deep);
  text-decoration: none;
}
.pdp__seo-links a:hover { text-decoration: underline; }
.pdp__cat a {
  color: inherit;
  text-decoration: none;
}
.pdp__cat a:hover { color: var(--blue-deep); text-decoration: underline; }
.pdp__stock {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
}
.pdp__desc { margin-bottom: 1rem; font-size: 0.95rem; }

.btn-lg { padding: 0.85rem 1.25rem; font-size: 0.95rem; }

/* Listing pages */
.crumbs-pad { padding: 0.65rem 0.1rem 0; font-size: 0.78rem; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-deep); }

.listing-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 0.65rem;
  padding: 0.15rem 0.1rem;
}
.listing-hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  max-width: 18ch;
}
.listing-hero__intro {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 36ch;
}

.filter-bar {
  position: sticky;
  top: 96px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.45rem 0.15rem;
  margin-bottom: 0.35rem;
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
}
.filter-bar::-webkit-scrollbar { height: 6px; }
.filter-bar::-webkit-scrollbar-track { background: var(--mist); border-radius: 999px; }
.filter-bar::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.filter-bar::-webkit-scrollbar-thumb:hover { background: var(--navy); }
.filter-bar__btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.filter-bar__btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.filter-bar__count {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.empty-note {
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.seo-block {
  padding: 1rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: #243552;
}
.seo-block h2,
.seo-block h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.seo-block h2 { font-size: 1.05rem; }
.seo-block h3 { font-size: 0.92rem; margin-top: 0.85rem; }
.seo-block p { margin: 0 0 0.65rem; }
.seo-block ul { margin: 0; padding-left: 1.1rem; }
.seo-block__more {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.seo-block__more a { color: var(--blue-deep); font-weight: 600; }
.answer-first {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #243552;
}
.promo-banner .answer-first {
  color: inherit;
  opacity: 0.92;
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-base__meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-base__meta a:hover { color: var(--blue-deep); }
.faq-compact { margin-top: 0.85rem; }
.faq-list { display: grid; gap: 0.45rem; }
.faq-item {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--navy);
}
.faq-item p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.85rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.checklist li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
}

/* Sticky View cart FAB removed — cart is via tab bar / header (matches Ionic) */
.sticky-shop-cta {
  display: none !important;
}

/* Ionic-style mobile tab bar (shown ≤899px) */
.app-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding: 4px 4px env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(43, 127, 255, 0.1);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.98), 0 -10px 28px rgba(11, 31, 68, 0.06);
}
.app-tabbar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 2px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0;
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
}
.app-tabbar__item:hover,
.app-tabbar__item:focus-visible {
  color: var(--blue);
  outline: none;
}
.app-tabbar__item.is-active {
  color: var(--blue);
}
.app-tabbar__icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.app-tabbar__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-tabbar__badge {
  position: absolute;
  top: -5px;
  left: 58%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1.5px solid #f7fbff;
  background: var(--blue);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(43, 127, 255, 0.28);
}
.app-tabbar__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content pages (about/faq/blog) keep readable shell */
.page-hero {
  padding: 1.5rem 0 0.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.page-hero .lede,
.lede {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}
.section { padding: 1.5rem 0 2.5rem; }
.narrow { max-width: 720px; }
.prose { font-size: 1rem; color: #243552; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 1.4rem 0 0.5rem;
}
.center-copy { text-align: center; padding: 3rem 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.cta-row.center { justify-content: center; }
.split { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.glass-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; gap: 0.15rem; margin-bottom: 0.85rem; }
.contact-list span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.contact-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.3fr);
    gap: 1.25rem;
  }
}
.contact-form-panel__intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.contact-form {
  display: grid;
  gap: 0.85rem;
}
.auth-field select,
.auth-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-weight: 550;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.auth-field select {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: rgba(43, 127, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.12);
}
.contact-aside .muted-sm {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.post-grid { display: grid; gap: 0.75rem; }
@media (min-width: 700px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}
.post-card {
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.post-card time { font-size: 0.75rem; color: var(--muted); }
.post-card h2,
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.35rem 0;
  letter-spacing: -0.02em;
}
.post-card h2 a,
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.5rem; }
.text-link {
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
button.text-link { color: var(--blue-deep); }
.article-head { margin-bottom: 1.25rem; }
.article-cta { margin-top: 1.5rem; }

/* Footer */
.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 1.25rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 0.9fr 0.9fr 0.9fr; }
}
.footer-brand p {
  color: var(--muted);
  margin: 0.65rem 0 0;
  max-width: 28ch;
  font-size: 0.88rem;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin: 0 0 0.55rem;
  color: var(--navy);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a {
  display: inline-block;
  padding: 0.22rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--blue-deep); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .promo-banner,
  .store-section,
  .mk-card,
  .btn,
  .sticky-shop-cta { animation: none !important; transition: none !important; }
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.cart-link { position: relative; }
.toast {
  margin: 0.65rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #166534;
  font-size: 0.88rem;
  font-weight: 650;
}
.cart-list, .wish-list, .order-list { display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.cart-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: start;
}
.cart-row.is-oos { opacity: 0.75; }
.cart-row__media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mist);
}
.cart-row__media img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f6fa;
}
.cart-row__body h2 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.cart-row__body h2 a { color: var(--navy); text-decoration: none; }
.cart-row__body h2 a:hover { color: var(--blue-deep); }
.cart-row__meta, .cart-row__oos { margin: 0; font-size: 0.75rem; color: var(--muted); }
.cart-row__oos { color: var(--sale); font-weight: 700; }
.cart-row__price {
  margin: 0.3rem 0 0;
  font-weight: 800;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.cart-row__qty-label {
  margin-left: 0.25rem;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.82rem;
}
.cart-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.55rem;
}
.qty-form { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0; }
.ds-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ds-qty__btn {
  appearance: none;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 31, 68, 0.18);
  background: transparent;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.ds-qty__btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue-deep);
}
.ds-qty__btn:focus-visible {
  outline: 2px solid rgba(43, 127, 255, 0.55);
  outline-offset: 2px;
}
.ds-qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ds-qty__value {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
.ds-qty__input {
  width: 2.25rem;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  -moz-appearance: textfield;
  appearance: textfield;
}
.ds-qty__input::-webkit-outer-spin-button,
.ds-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ds-qty__input:focus {
  outline: none;
}
.pdp-qty .ds-qty {
  margin-top: 0.15rem;
}
.qty-form__input,
.qty-form input[type="number"] {
  width: 64px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.55rem;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  background: #fff;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-form__input::-webkit-outer-spin-button,
.qty-form__input::-webkit-inner-spin-button,
.qty-form input[type="number"]::-webkit-outer-spin-button,
.qty-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-form__input:focus,
.qty-form input[type="number"]:focus {
  outline: none;
  border-color: rgba(43, 127, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.12);
}
.cart-row__line {
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--navy);
  white-space: nowrap;
  font-size: 0.95rem;
  padding-top: 0.1rem;
}
.cart-summary {
  margin-top: 0.5rem;
  border-radius: 14px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--navy);
}
.cart-summary__row strong {
  font-family: var(--font-display);
  font-weight: 800;
}
.cart-summary__total { font-size: 1.05rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.cart-summary__note { font-size: 0.78rem; color: var(--muted); margin: 0 0 0.85rem; }
.cart-summary .btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.checkout-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .checkout-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.checkout-main { display: grid; gap: 0.85rem; }
.checkout-panel h2,
.checkout-summary h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.checkout-notes {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.checkout-notes em { font-style: normal; font-weight: 550; opacity: 0.85; }
.checkout-notes textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}
.pay-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(43, 127, 255, 0.28);
  border-radius: 12px;
  background: var(--mist);
  cursor: pointer;
}
.pay-option strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 0.95rem;
}
.pay-option__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 550;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 0.85rem; margin-top: 0; }
.form-grid > h2,
.form-grid > .form-actions,
.form-grid label.full { grid-column: 1 / -1; }
.form-grid > h2 {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.form-grid label { display: grid; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.form-grid label.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 650;
}
.form-grid label.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.form-grid > .btn,
.form-actions .btn {
  width: auto;
  justify-self: start;
  min-width: 9.5rem;
  height: 44px;
}
.form-actions { display: flex; }
.addr-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
}
.addr-card__meta,
.addr-card__line { margin: 0.2rem 0 0; line-height: 1.45; }
.addr-card__meta { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-grid label em { font-style: normal; font-weight: 550; opacity: 0.85; }
.form-grid input, .form-grid textarea, .form-grid select, .pdp-variant select, .pdp-qty input {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 0.7rem; font: inherit; color: var(--ink); background: #fff;
}
.form-grid textarea { height: auto; padding: 0.55rem 0.7rem; }
.form-grid[hidden] { display: none !important; }
.addr-list { display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.addr-card { position: relative; }
.addr-card.is-editing {
  border-color: rgba(43, 127, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.08);
}
.addr-card__badge {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.addr-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.addr-card__actions form { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.addr-option {
  display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; padding: 0.65rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--page); font-size: 0.88rem;
  cursor: pointer;
}
.addr-option:has(input:checked) {
  border-color: rgba(43, 127, 255, 0.4);
  background: var(--mist);
}
.checkout-lines { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.checkout-lines li,
.checkout-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.checkout-line__img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mist);
}
.checkout-line__meta { display: grid; gap: 0.15rem; min-width: 0; }
.checkout-line__name {
  color: var(--navy);
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkout-line__qty { color: var(--muted); font-size: 0.75rem; }
.checkout-line__price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.checkout-summary .btn-block { margin-top: 0.35rem; }
.checkout-secure { margin: 0.65rem 0 0; text-align: center; }
.order-address {
  margin: 0;
  line-height: 1.55;
  color: var(--ink);
  font-size: 0.92rem;
}
.toast--warn {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.35);
  color: #9a3412;
}
.muted-sm { font-size: 0.78rem; color: var(--muted); }
.pdp-form { margin-top: 0.75rem; display: grid; gap: 0.65rem; }
.pdp-qty .ds-qty__input {
  width: 2.25rem;
  height: 32px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.pdp-variant, .pdp-qty {
  display: grid; gap: 0.25rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); max-width: 220px;
}
.wish-form { margin-top: 0.65rem; }
.order-card {
  display: grid; grid-template-columns: 1fr auto; gap: 0.75rem;
  text-decoration: none; color: var(--navy); align-items: center;
}
.order-card__main { display: grid; gap: 0.2rem; min-width: 0; }
.order-card__meta { font-size: 0.82rem; color: var(--muted); }
.order-card__total { font-weight: 800; white-space: nowrap; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.order-meta dt { margin: 0; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.order-meta dd { margin: 0.2rem 0 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}
.order-progress {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.order-progress__step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.order-progress__marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5deef;
  justify-self: center;
}
.order-progress__step[data-state="done"] { color: var(--navy); font-weight: 600; }
.order-progress__step[data-state="done"] .order-progress__marker { background: #2563eb; }
.order-progress__step[data-state="current"] { color: var(--navy); font-weight: 800; }
.order-progress__step[data-state="current"] .order-progress__marker {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}
.order-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.order-timeline li {
  display: grid;
  gap: 0.15rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(37, 99, 235, 0.25);
}
.order-timeline time, .order-timeline span { font-size: 0.8rem; color: var(--muted); }
.order-cancel-form { margin-top: 0.65rem; }
.notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.notify-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem;
}
.notify-card.is-unread { border-color: rgba(37, 99, 235, 0.35); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08); }
.notify-card__body { display: grid; gap: 0.25rem; min-width: 0; }
.notify-card__body p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.notify-card__body time { font-size: 0.78rem; color: var(--muted); }
.dash {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding-top: 0.85rem;
}
.dash-nav {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 31, 68, 0.04);
}
.dash-nav__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.dash-nav__id { min-width: 0; display: grid; }
.dash-nav__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.dash-nav__email {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--mist);
}
.profile-avatar--lg { width: 88px; height: 88px; }
.profile-avatar--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.profile-avatar--lg.profile-avatar--letter { font-size: 1.8rem; }
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.profile-card__photo { display: grid; justify-items: center; gap: 0.55rem; }
.profile-card__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.profile-card__body h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.profile-card__body p { margin: 0.1rem 0; color: var(--muted); }
.profile-photo-btn { position: relative; overflow: hidden; cursor: pointer; }
.profile-photo-btn.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}
.profile-photo-btn.is-uploading::after {
  content: 'Uploading…';
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
}
.profile-photo-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.profile-form { margin-bottom: 1rem; }
.profile-form__note {
  margin: -0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.profile-form input[readonly] {
  background: var(--page);
  color: var(--muted);
}
.dash-nav__links {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--mist);
}
.dash-nav__links a {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 750;
}
.dash-nav__links a.is-active {
  background: var(--blue);
  color: #fff;
}
.dash-nav__out { margin: 0; }
.dash-main { min-width: 0; }
@media (min-width: 900px) {
  .dash { grid-template-columns: 232px minmax(0, 1fr); }
  .dash-nav {
    position: sticky;
    top: 8.25rem;
    z-index: 20;
  }
  .dash-nav__links { display: grid; overflow: visible; }
  .dash-nav__links a { border-radius: 12px; }
}
.account-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-bottom: 1rem; }
.account-link {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
}
.account-link strong {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.account-link span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--muted);
}
.account-link:hover {
  border-color: rgba(43, 127, 255, 0.35);
}
.profile-dl { display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.profile-dl dt { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.profile-dl dd { margin: 0.15rem 0 0; font-weight: 650; }

.store-shell--narrow { width: min(100% - 0.85rem, 420px); }
.auth-demo {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--mist);
  border-color: rgba(43, 127, 255, 0.22);
}
.auth-demo__label {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.auth-demo__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 650;
}
.auth-demo__row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
}
.auth-card {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.auth-error {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 650;
}
.auth-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.auth-field em { font-style: normal; font-weight: 550; opacity: 0.8; }
.auth-field input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 0.85rem;
  font: inherit;
  font-weight: 550;
  color: var(--ink);
  background: #fff;
}
.auth-field input:focus {
  outline: none;
  border-color: rgba(43, 127, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.12);
}
.auth-field small {
  font-weight: 550;
  color: var(--muted);
  line-height: 1.35;
}
.field-error {
  display: block;
  margin: 0.2rem 0 0;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(185, 28, 28, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
.btn-block {
  width: 100%;
  height: 44px;
  margin-top: 0.15rem;
}
.auth-switch {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-switch a {
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
}

.page-cart .sticky-shop-cta,
.page-checkout .sticky-shop-cta,
.page-product .sticky-shop-cta,
.page-login .sticky-shop-cta,
.page-register .sticky-shop-cta,
.page-account .sticky-shop-cta,
.page-orders .sticky-shop-cta,
.page-order .sticky-shop-cta,
.page-addresses .sticky-shop-cta,
.page-wishlist .sticky-shop-cta { display: none; }
.mk-card { position: relative; }


@media (min-width: 720px) {
  
}

.mk-card__media-wrap { position: relative; }
.mk-card__cart-form {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  margin: 0;
}
.mk-card__cart-form .mk-card__cart {
  position: static;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.auth-check,
.checkout-terms {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.85rem 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.auth-check input,
.checkout-terms input {
  margin-top: 0.2rem;
}

.cookie-notice {
  position: fixed;
  z-index: 40;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #0f2744;
  color: #fff;
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.28);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.cookie-notice a { color: #d6e8ff; }
.cookie-notice__actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.cookie-notice__actions .btn { background: #fff; color: #0f2744; }
@media (max-width: 640px) {
  .cookie-notice { flex-direction: column; align-items: stretch; }
}


/* Shop page — Ionic Shop tab look & feel */
.page-shop .site-header .header-cats {
  display: none;
}
.page-shop main,
.page-shop .site-main,
.page-shop .layout-content {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.page-shop .site-footer {
  display: none;
}
.page-shop {
  background: #f4f7fb;
  --shop-sticky-top: var(--header-h);
}

.shop-app {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  background: #f4f7fb;
  padding-bottom: calc(1.5rem + var(--tabbar-h));
}

.shop-rail {
  flex: 0 0 80px;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-right: 1px solid rgba(11, 31, 68, 0.1);
  padding: 14px 4px 96px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  box-shadow: 4px 0 16px rgba(11, 31, 68, 0.04);
  position: sticky;
  top: var(--shop-sticky-top);
  align-self: flex-start;
  max-height: calc(100dvh - var(--shop-sticky-top) - var(--tabbar-h));
  z-index: 5;
}

.shop-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 10px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5b6b86;
  text-decoration: none;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}
.shop-rail__item:hover {
  color: var(--navy);
  background: rgba(11, 31, 68, 0.03);
  border-color: transparent;
}
.shop-rail__item.is-active {
  color: var(--blue);
  background: rgba(43, 127, 255, 0.08);
  border-color: transparent;
}
.shop-rail__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}
.shop-rail__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f6fa;
  color: inherit;
  flex: 0 0 auto;
}
.shop-rail__item.is-active .shop-rail__icon {
  background: rgba(43, 127, 255, 0.12);
  color: var(--blue);
}
.shop-rail__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.shop-rail__label {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  max-width: 72px;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: unset;
  white-space: normal;
}

.shop-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
}

.shop-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.35rem;
  flex: 0 0 auto;
}
.shop-brand-bar__text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.shop-brand-bar__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 1px 4px rgba(11, 31, 68, 0.08);
}
.shop-brand-bar__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-brand-bar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}
.shop-brand-bar__tag {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.shop-brand-bar__actions {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.shop-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(11, 31, 68, 0.08);
  text-decoration: none;
}

.shop-chrome {
  position: sticky;
  top: var(--shop-sticky-top);
  z-index: 20;
  flex: 0 0 auto;
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem 0.65rem;
  background: rgba(244, 247, 251, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 31, 68, 0.06);
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(11, 31, 68, 0.1);
  border-radius: 12px;
  overflow: hidden;
  min-height: 44px;
}
.shop-search__icon {
  display: grid;
  place-items: center;
  width: 40px;
  color: var(--muted);
  flex: 0 0 auto;
}
.shop-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0 0.35rem 0 0;
  font: inherit;
  outline: none;
}
.shop-search__btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 1rem;
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.shop-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-filter-bar::-webkit-scrollbar { display: none; }
.shop-filter-bar__btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 68, 0.1);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.shop-filter-bar__btn.is-active {
  background: rgba(43, 127, 255, 0.12);
  border-color: rgba(43, 127, 255, 0.45);
  color: var(--blue-deep);
}
.shop-filter-bar__btn--clear {
  color: var(--muted);
}
.shop-filter-bar__sort {
  flex: 0 0 auto;
}
.shop-filter-bar__sort select {
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 68, 0.1);
  background: #fff;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--navy);
}

.shop-subcats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-subcats::-webkit-scrollbar { display: none; }
.shop-subcat {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 68, 0.1);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.shop-subcat.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.shop-products {
  padding: 0.65rem 0.65rem 1.25rem;
  flex: 1 1 auto;
}
.shop-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.shop-empty p { margin: 0 0 0.75rem; }

.page-shop .product-grid,
.page-shop .shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}
.page-shop .mk-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  height: 100%;
}
.page-shop .mk-card__body {
  display: block;
  flex: 1 1 auto;
  min-height: 4.5rem;
  padding: 0.5rem 0.55rem 0.65rem;
  background: #fff;
}
.page-shop .mk-card__price {
  color: var(--navy);
  font-size: 0.92rem;
}
.page-shop .mk-card__title {
  font-size: 0.76rem;
  color: var(--ink);
}

@media (min-width: 720px) {
  .page-shop .product-grid,
  .page-shop .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .shop-rail {
    flex: 0 0 88px;
    width: 88px;
    min-width: 88px;
    max-width: 88px;
  }
}
@media (min-width: 1100px) {
  .page-shop .product-grid,
  .page-shop .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .shop-products {
    padding: 0.75rem 1rem 1.5rem;
  }
  .shop-chrome,
  .shop-brand-bar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Mobile: Ionic-style bottom tab bar */
@media (max-width: 899px) {
  :root {
    --tabbar-h: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  body,
  body:not(.page-store) {
    padding-bottom: calc(var(--tabbar-h) + 12px);
  }

  body.page-shop {
    padding-bottom: calc(var(--tabbar-h) + 12px);
  }

  .app-tabbar {
    display: flex;
  }

  .cookie-notice {
    bottom: calc(var(--tabbar-h) + 0.75rem);
  }

  .shop-rail {
    padding-bottom: calc(96px + var(--tabbar-h));
    max-height: calc(100dvh - var(--shop-sticky-top) - var(--tabbar-h));
  }
}

