/* ==========================================================================
   Bsellsdigis storefront
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --cream: #ecebe7;          /* light buttons on hover */
  --muted: #c4c4c4;          /* secondary text, sub-menu links */
  --faint: #8a8a8a;
  --line: #262626;
  --skeleton: #141414;
  --danger: #ff6b6b;
  --success: #3ecf72;

  --font-mono: "Courier New", Courier, monospace;
  --font-brand: "Exo 2", "Arial Black", Arial, sans-serif;

  --header-h: 58px;
  --gutter: 16px;
  --card-w: 44vw;
  --card-ratio: 3 / 4;       /* phones: the shape of a phone photo, so it fills the tile (desktop: 2 / 3 below) */
  --card-zoom: 1.3;          /* enlarges photos inside the tile; 1 shows the whole photo */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body:has(dialog[open]) { overflow: hidden; }

img, video { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
}
.skip-link:focus { top: 8px; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--black);
  transition: background-color .3s;
}

/* On the home page the header floats over the hero video until you scroll past it. */
body[data-view="home"] .header.is-over-hero { background: transparent; }
body[data-view="home"] .header.is-over-hero .header__bar { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }

.header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 2px;
}

.header__start { display: flex; align-items: center; min-width: 0; }
.header__actions { display: flex; justify-self: end; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.header__nav { display: none; }

.brand {
  font-family: var(--font-brand);
  font-weight: 800;
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  color: var(--white);
}
.brand span { color: #e0e0e0; }

.cart-count {
  position: absolute;
  top: 5px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px 10px var(--gutter);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 16px;               /* 16px stops iOS zooming into the field */
  -webkit-appearance: none;
  appearance: none;
}
.search-bar input::placeholder { color: var(--faint); }
.search-bar input:focus { outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  margin-top: calc(-1 * var(--header-h));   /* slide under the transparent header */
  overflow: hidden;
  background: #0d0d0d;
  text-align: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darken the top and bottom edges so the header and "Shop All" stay readable. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent 20%, transparent 70%, rgba(0, 0, 0, .45));
}

.hero__content { padding: 0 var(--gutter); }

/* The animated logo itself is styled in index.html (.bsd-logo). Until the
   video has a frame to show, its black letters turn white so they never
   disappear into the dark background. */
.hero__logo { margin: 0; white-space: nowrap; }
.hero:not(.has-video) .bsd-logo--hero { --bsd-b: #fff; --bsd-end: #fff; }
.hero:not(.has-video) .bsd-logo__img { filter: brightness(0) invert(1); }
/* The camera drawing sets its own colours: keep the site's icon style (svg { … }) off it. */
.bsd-logo svg { fill: initial; stroke: initial; stroke-width: initial; stroke-linecap: initial; stroke-linejoin: initial; }

.hero__subtitle {
  max-width: 48ch;
  margin: 18px auto 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

.hero__cta {
  position: absolute;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero__cta:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Announcement marquee ----------
   A raised metal strip. Its face is lit from above (a gradient, the same bright
   line along its top and bottom edges), and a soft light, the same along its
   whole width, lies over the text scrolling underneath. Text and carts are white. */

.marquee {
  position: relative;
  height: 48px;
  background: var(--black);
  user-select: none;
}

.marquee__face {
  position: relative;
  display: flex;
  height: 48px;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(#4a4a51, #2b2b31 14%, #1c1c21 48%, #131317 52%, #0b0b0d 88%, #060607);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 4px 5px -3px rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(255, 255, 255, .72),   /* over the darker bottom: as bright as the top line */
    inset 0 -5px 7px -3px rgba(0, 0, 0, .75);
}

/* Soft light from above, even along the whole width (top to bottom only, no bright spots). */
.marquee__face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 50%, rgba(0, 0, 0, .12));
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100%;
  animation: marquee 27s linear infinite;
}

/* The loop moves one group: four repetitions (1265px) on screens narrower than that, the screen's
   width on wider ones. 27s and 22s keep the speed of the smaller text before it (47px/s on phones). */
@media (min-width: 1266px) {
  .marquee__group { animation-duration: 22s; }
}

/* One repetition: cart + text in the site's font (as in the navbar), 19.77em (316px) wide. */
.marquee__item {
  --ink: #fff;
  --ink-edge: #6e6e6e;       /* the letters' 3D edge */
  display: flex;
  align-items: center;
  gap: .46em;
  padding-right: .83em;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  /* The edge in .25px steps, so it stays joined to Courier New's thin strokes (one 1px step leaves a gap under them). */
  text-shadow: 0 .25px 0 var(--ink-edge), 0 .5px 0 var(--ink-edge), 0 .75px 0 var(--ink-edge), 0 1px 0 var(--ink-edge),
    0 1px 2px rgba(0, 0, 0, .8);
}

.marquee__cart {
  flex: none;
  width: 1.08em;
  height: 1.08em;
  fill: currentColor;
  filter: drop-shadow(0 1px 0 var(--ink-edge)) drop-shadow(0 1px 1.5px rgba(0, 0, 0, .8));
}

@keyframes marquee { to { transform: translateX(-100%); } }

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

.section-title {
  margin: 0;
  padding: 30px var(--gutter) 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
}

.section-actions {
  display: flex;
  justify-content: center;
  padding: 52px var(--gutter) 64px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--white);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  transition: background-color .2s, color .2s, opacity .2s;
}
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--cream); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--dark { border-color: var(--black); border-radius: 4px; background: var(--black); color: var(--white); text-transform: uppercase; }
.btn--dark:hover { background: #2a2a2a; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Product cards ---------- */

.rail {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.rail > .list-message { flex: 1 0 100%; }

@media (hover: hover) and (pointer: fine) {
  .rail { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; padding-bottom: 12px; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 28px;
  padding: 0 var(--gutter);
}

.card { display: block; height: 100%; }

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--card-ratio);
  background: var(--white);
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* phones: the photo fills the tile, no empty bands (desktop: contain, below) */
  /* Melt near-white photo backgrounds (JPEG "white" is often 248-254) into the tile. */
  filter: brightness(1.03);
  mix-blend-mode: multiply;
  transform: scale(var(--card-zoom));
  transition: transform .6s var(--ease), opacity .45s var(--ease);
  -webkit-user-drag: none;
}
.card:hover .card__media img { transform: scale(calc(var(--card-zoom) * 1.05)); }

/* A product with a second photo shows it while hovered (mouse) or held (finger,
   .is-touched from store.js), cross-fading back when that ends. */
.card { -webkit-touch-callout: none; }   /* holding a card shows the photo, not the iPhone's link menu */
.card__img--alt { opacity: 0; }
.card.is-touched .card__media--swap .card__img--alt { opacity: 1; }
.card.is-touched .card__media--swap .card__img:not(.card__img--alt) { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media--swap .card__img--alt,
  .card:focus-visible .card__media--swap .card__img--alt { opacity: 1; }
  .card:hover .card__media--swap .card__img:not(.card__img--alt),
  .card:focus-visible .card__media--swap .card__img:not(.card__img--alt) { opacity: 0; }
}

.card__info { padding: 14px 20px 0; }

.card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  overflow-wrap: anywhere;
}

.card__price {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card--skeleton .card__media { background: var(--skeleton); animation: pulse 1.4s ease-in-out infinite; }
.card--skeleton .card__info span {
  display: block;
  height: 12px;
  margin-top: 8px;
  background: var(--skeleton);
  animation: pulse 1.4s ease-in-out infinite;
}
.card--skeleton .card__info span:last-child { width: 60%; }

@keyframes pulse { 50% { opacity: .5; } }

.list-message {
  grid-column: 1 / -1;
  padding: 48px var(--gutter);
  color: var(--muted);
  text-align: center;
}

/* Sub-collection buttons, e.g. All / Batteries / Chargers inside Accessories */
.subfilters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--gutter) 28px;
}
.subfilter {
  padding: 10px 15px;
  border-radius: 2px;
  background: #1a1a1a;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.subfilter:hover { background: #2c2c2c; }
.subfilter[aria-current="page"] { background: var(--white); color: var(--black); }

/* ---------- Discover by Brand (light section) ---------- */

.brands {
  --card-ratio: 3 / 4;
  --skeleton: #ececec;
  padding: 56px 0 0;
  background: var(--white);
  color: var(--black);
}
.brands :focus-visible { outline-color: var(--black); }

.brands__title,
.insta__title {
  margin: 0;
  padding: 0 var(--gutter);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}
.brands__title { font-weight: 700; }

.brand-filter {
  overflow-x: auto;
  padding: 28px var(--gutter) 32px;
  scrollbar-width: none;
}
.brand-filter::-webkit-scrollbar { display: none; }

.brand-filter__track {
  display: flex;
  gap: 8px;
  width: max-content;
  margin: 0 auto;
}

.brand-pill {
  padding: 11px 15px;
  border-radius: 2px;
  background: #ebebeb;
  color: var(--black);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.brand-pill:hover { background: #dcdcdc; }
.brand-pill[aria-pressed="true"] { background: var(--black); color: var(--white); }
.brand-pill:disabled { background: #f3f3f3; color: #9b9b9b; cursor: default; }

.brands .grid { column-gap: 12px; }
.brands .card__media { background: #f3f3f3; }
.brands .card__info { padding: 12px 4px 0; }
.brands .list-message { color: #666; }

/* ---------- Customer reviews ---------- */

.reviews { padding-bottom: 64px; }

/* A row you swipe through on phones; a grid on big screens. */
.reviews__list {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 0 var(--gutter) 6px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.reviews__list::-webkit-scrollbar { display: none; }

.review {
  display: flex;
  flex: 0 0 min(300px, 80vw);
  flex-direction: column;
  border: 1px solid var(--line);
  background: #0b0b0b;
  scroll-snap-align: start;
}
/* The whole photo or video, never cropped: whatever doesn't fill the frame is black */
.review__media { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--black); }
.review__body { display: grid; gap: 10px; padding: 16px 18px 20px; }
.review__stars { margin: 0; color: var(--white); font-size: 17px; letter-spacing: 3px; line-height: 1; }
.review__stars-off { color: #3a3a3a; }
.review__text { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.review__text p { margin: 0 0 8px; }
.review__text p:last-child { margin-bottom: 0; }
.review__name { margin: 0; color: var(--faint); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

@media (min-width: 1024px) {
  .reviews__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    overflow: visible;
    max-width: 1360px;
    margin: 0 auto;
  }
}

/* ---------- Instagram ---------- */

.insta {
  padding: 64px 0 72px;
  background: #e0e0e0;
  color: var(--black);
  text-align: center;
}
.insta :focus-visible { outline-color: var(--black); }
.insta__title { font-weight: 400; }
.insta__title a { font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.insta__title a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* One post at a time across the whole width: tall on phones, wide on desktops. */
.insta-slider {
  --insta-h: min(78vh, 160vw);
  --insta-h: min(78svh, 160vw);
  position: relative;
  margin: 36px 0 34px;
}
.insta-slider__viewport { overflow: hidden; touch-action: pan-y; }
.insta-slider__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .6s cubic-bezier(.22, .72, .18, 1);
  will-change: transform;
}
.insta-slider__track.is-dragging { transition: none; }

.insta-slide { flex: 0 0 100%; min-width: 0; }
.insta-slide__media { height: var(--insta-h); overflow: hidden; background: #d2d2d2; }
.insta-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Under the photo: its caption, and the link to the post */
.insta-slide__info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  text-align: left;
}
.insta-slide__caption {
  flex: 1 1 260px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insta-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.insta-slide__link svg { width: 15px; height: 15px; stroke-width: 1.6; }
.insta-slide__link:hover { text-decoration-thickness: 2px; }

/* Arrows on either side, halfway down the photo; each hides at its end */
.insta-slider__arrow {
  position: absolute;
  top: calc(var(--insta-h) / 2);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--black);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
  transition: opacity .25s, transform .25s var(--ease), background-color .2s;
}
.insta-slider__arrow--prev { left: 12px; }
.insta-slider__arrow--next { right: 12px; }
.insta-slider__arrow svg { width: 20px; height: 20px; stroke-width: 1.8; }
.insta-slider__arrow:hover { background: var(--white); transform: scale(1.06); }
.insta-slider__arrow:disabled { opacity: 0; pointer-events: none; }

/* Dots: which post is showing (the current one is a longer bar) */
.insta-slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.insta-slider__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .25);
  transition: width .35s var(--ease), background-color .35s;
}
.insta-slider__dot::after { content: ""; position: absolute; inset: -8px -4px; } /* a bigger target to tap */
.insta-slider__dot[aria-current="true"] { width: 24px; background: var(--black); }
.is-single .insta-slider__arrow,
.is-single .insta-slider__dots { display: none; }

.insta__follow { min-height: 54px; padding: 0 32px; }
.insta__follow svg { stroke-width: 1.6; }

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

.policy__body {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  color: var(--muted);
}
.policy__body h3 {
  margin: 32px 0 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.policy__body p { margin: 0; }

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

.footer {
  padding: 40px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__social { display: flex; justify-content: center; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; transition: opacity .2s; }
.footer__social a:hover { opacity: .7; }
.footer__social svg { width: 24px; height: 24px; }
.footer__social .stroke-icon { stroke-width: 1.6; }
.footer__social .fill-icon { fill: currentColor; stroke: none; }
.footer__copy { margin: 16px 0 0; color: var(--faint); font-size: 12px; letter-spacing: .04em; }

/* ---------- Dialogs: shared ---------- */

dialog {
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
}
dialog::backdrop { background: rgba(0, 0, 0, .3); }

.close-btn {
  position: absolute;
  top: 8px;
  left: 2px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: var(--black);
}
.close-btn svg { width: 16px; height: 16px; stroke-width: 1.1; }
.close-btn--static { position: static; }

/* ---------- Drawers (menu, cart) ---------- */

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: calc(100% - 20px);
  max-width: 440px;
  height: 100%;
  max-height: none;
  margin: 0;
}
.drawer--right { inset: 0 0 0 auto; }
.drawer[open] { animation: slide-from-left .35s var(--ease); }
.drawer--right[open] { animation-name: slide-from-right; }

.drawer__inner {
  height: 100%;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.menu { padding: 54px 18px 40px; }

.menu__link {
  display: block;
  padding: 12px 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: .01em;
}

.menu__row { display: flex; align-items: center; gap: 4px; }
.menu__row .tree-toggle { width: 40px; height: 40px; }
.menu .tree__list { margin: -6px 0 6px 10px; }
.menu .tree__list a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 20px;
  letter-spacing: .04em;
}

/* Collections with sub-collections: a + that turns into a − and opens them
   underneath, joined to their parent by a tree line (├ Batteries, └ Chargers). */
.tree-toggle {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background-color .2s;
}
@media (hover: hover) { .tree-toggle:hover { background: rgba(255, 255, 255, .08); } } /* not sticky after a tap */
.tree-toggle::before,
.tree-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -.75px 0 0 -7px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.tree-toggle::after { transform: rotate(90deg); } /* the + ... */
.tree-toggle[aria-expanded="true"]::after { transform: rotate(180deg); } /* ... folds flat into a − */

/* Opens by growing from no height to its own; hidden while closed, so its links
   can't be tabbed to. */
.tree {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .38s var(--ease), visibility 0s .38s;
}
.tree.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .38s var(--ease), visibility 0s;
}
.tree__clip { min-height: 0; overflow: hidden; }
.tree__list { --tree-line: rgba(255, 255, 255, .35); padding-top: 6px; }
.tree__list > li {
  position: relative;
  padding-left: 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s, transform .3s var(--ease);
}
.tree.is-open .tree__list > li {
  opacity: 1;
  transform: none;
  transition-duration: .35s, .4s;
  transition-delay: calc(60ms + var(--i, 0) * 50ms); /* one after another */
}
/* The trunk down from the parent, and a branch out to each sub-collection;
   the last one turns the corner (└). */
.tree__list > li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: 1px solid var(--tree-line);
}
.tree__list > li:first-child::before { top: -6px; }
.tree__list > li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  border-top: 1px solid var(--tree-line);
}
.tree__list > li:last-child::before {
  bottom: auto;
  width: 14px;
  height: 50%;
  border-bottom: 1px solid var(--tree-line);
  border-bottom-left-radius: 7px;
}
.tree__list > li:last-child:first-child::before { height: calc(50% + 6px); }
.tree__list > li:last-child::after { display: none; }

.menu a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Cart */

.cart { display: flex; flex-direction: column; }

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 18px;
  border-bottom: 1px solid var(--line);
}
.cart__title { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: .02em; }

.cart__items { flex: 1; overflow-y: auto; padding: 0 18px; }
.cart__empty { flex: 1; padding: 32px 18px; color: var(--muted); }

.line-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.line-item img, .line-item__ph { width: 72px; height: 72px; object-fit: contain; background: var(--white); }
.line-item__name { margin: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.line-item__price { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.line-item__each, .line-item__qty { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* the cart's − quantity + and the bin, under the name and price */
.line-item__controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #3a3a3a; }
.qty__btn { width: 36px; height: 36px; display: grid; place-items: center; color: var(--white); transition: background-color .15s; }
@media (hover: hover) { .qty__btn:hover:not(:disabled) { background: #1a1a1a; } }
.qty__btn:disabled { color: #4a4a4a; cursor: default; }
.qty__value { min-width: 28px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.qty__btn svg, .line-item__remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.line-item__remove { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); transition: color .15s; }
@media (hover: hover) { .line-item__remove:hover { color: var(--danger); } }

.cart__footer { padding: 18px 18px 24px; border-top: 1px solid var(--line); }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: .02em;
}
/* Subtotal and shipping, above the total */
.summary-row--sub { margin-bottom: 8px; color: var(--muted); font-size: 14px; }
/* Discount row: green tint */
.summary-row--discount { color: #16a34a; }

/* ---------- Promo code input ---------- */
.promo-field {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
}
.promo-field__input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  font-size: 14px;
  background: var(--surface, #fff);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.promo-field__input:focus { outline: 2px solid var(--accent, #000); outline-offset: 1px; }
.promo-field__btn {
  padding: 8px 16px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface, #fff);
  cursor: pointer;
  white-space: nowrap;
}
.promo-field__btn:hover { background: var(--surface-alt, #f3f4f6); }
.promo-msg { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.promo-msg--ok { color: #16a34a; }
.promo-msg--err { color: #dc2626; }

/* ---------- Product page ---------- */

/* Opened with show(), not as a modal: it sits under the shop's header (logo,
   menu, search and cart stay usable), from where the header ends down. */
.page {
  position: fixed;
  inset: var(--header-bottom, var(--header-h)) 0 0;
  z-index: 25;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}
.page[open] { animation: slide-from-right .45s var(--ease); }

.page__inner {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.page__close { position: absolute; top: 10px; left: 10px; z-index: 5; }

.gallery { position: relative; background: var(--white); }

.gallery__track {
  display: flex;
  overflow-x: auto;
  aspect-ratio: 1 / 1;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -4px; outline-color: var(--black); }

.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.03);
  mix-blend-mode: multiply;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  transform: translateY(-50%);
  transition: opacity .2s;
}
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__arrow:disabled { opacity: 0; pointer-events: none; }
.gallery__arrow svg { stroke-width: 1.6; }

@media (hover: hover) and (pointer: fine) {
  .gallery--multi .gallery__arrow { display: grid; }
}

.gallery__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .7);
  color: var(--white);
  font-size: 12px;
  letter-spacing: .04em;
}

.gallery__badge { top: 14px; right: 14px; left: auto; }

.gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px var(--gutter) 4px;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }

.gallery__thumb {
  flex: 0 0 64px;
  height: 64px;
  background: var(--white);
  opacity: .45;
  transition: opacity .2s;
}
.gallery__thumb:hover { opacity: .8; }
.gallery__thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--white); outline-offset: 2px; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.pp__info { padding: 24px 20px calc(40px + env(safe-area-inset-bottom)); }
.pp__eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.pp__name { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: .01em; overflow-wrap: anywhere; }
.pp__price { margin: 12px 0 0; font-size: 18px; letter-spacing: .02em; }

.pp__stock { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.pp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.pp__stock.is-out { color: var(--danger); }
.pp__stock.is-out::before { background: var(--danger); }

.pp__actions { display: grid; gap: 10px; margin-top: 28px; }
.pp__description { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.pp__description:empty { display: none; }
.pp__note { margin: 24px 0 0; color: var(--faint); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Order modal ---------- */

.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
}
.modal[open] { animation: fade-up .3s var(--ease); }

.modal__inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__title { margin: 0 0 20px; font-size: 24px; font-weight: 400; letter-spacing: .02em; }

.order { padding: 76px 20px calc(32px + env(safe-area-inset-bottom)); }

.order__items { margin-bottom: 18px; border-top: 1px solid var(--line); }
.order__items .line-item { grid-template-columns: 56px 1fr; }
.order__items .line-item img, .order__items .line-item__ph { width: 56px; height: 56px; }

.order__form { display: grid; gap: 16px; margin-top: 8px; }

.field { display: grid; gap: 8px; }
.field__label { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.field input,
.field select {
  height: 50px;
  padding: 0 14px;
  border: 1px solid #555;
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  color-scheme: dark; /* dark option list */
}
.field select:invalid { color: #666; } /* "Choose your city" reads as a placeholder */
.field select option { color: var(--white); background: var(--black); }
.field input::placeholder { color: #666; }
.field input:focus,
.field select:focus { border-color: var(--white); outline: none; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--danger); }
.field__optional { text-transform: none; letter-spacing: 0; }

/* Checkout: Contact and Delivery sections, Shopify-style */
.checkout { gap: 28px; }
.checkout__section { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.checkout__heading { margin: 0 0 4px; padding: 0; font-size: 18px; letter-spacing: .02em; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; }
.check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 28px; color: var(--muted); font-size: 14px; line-height: 1.4; cursor: pointer; }
/* The box and tick are drawn on a plain <span> with borders, not on the
   checkbox itself: phones draw checkboxes their own way (iPhones hid the tick),
   but a span looks the same everywhere. The real checkbox sits invisibly on
   top of it, so tapping, the keyboard and screen readers work as usual. */
.check input {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -2px;
  opacity: 0;
  cursor: pointer;
}
.check__box {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #777;
  border-radius: 3px;
  background: transparent;
  transition: background-color .15s, border-color .15s;
}
.check__box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.check input:checked + .check__box { border-color: var(--white); background: var(--white); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--white); outline-offset: 2px; }
@media (hover: hover) { .check:hover input:not(:checked) + .check__box { border-color: var(--white); } }

/* Payment methods: a card per method, the chosen one outlined with a ticked circle */
.pay-options { display: grid; gap: 10px; }
.pay-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.pay-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.pay-option__radio {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--faint);
  border-radius: 50%;
  transition: background-color .2s, border-color .2s;
}
.pay-option__radio svg { width: 14px; height: 14px; stroke: var(--black); stroke-width: 2.2; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s var(--ease); }
.pay-option__text { display: grid; gap: 2px; }
.pay-option__name { color: var(--white); font-size: 15px; }
.pay-option__note { color: var(--muted); font-size: 12px; line-height: 1.4; }
.pay-option__icon { width: 24px; height: 24px; color: var(--muted); stroke-width: 1.4; }
.pay-option:has(input:checked) { border-color: var(--white); background: rgba(255, 255, 255, .05); }
.pay-option input:checked ~ .pay-option__radio { border-color: var(--white); background: var(--white); }
.pay-option input:checked ~ .pay-option__radio svg { opacity: 1; transform: none; }
.pay-option input:focus-visible ~ .pay-option__radio { outline: 2px solid var(--white); outline-offset: 2px; }

/* Wallet / Instapay: where to send the money, under the chosen option */
.pay-details {
  margin-top: -10px; /* (the options' gap) joined to the option above */
  padding: 14px 16px;
  border: 1px solid var(--white);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  animation: fade-up .25s var(--ease);
}
.pay-options:has(.pay-details:not([hidden])) .pay-option:has(input:checked) { border-radius: 6px 6px 0 0; }
.pay-details p { margin: 0 0 6px; overflow-wrap: anywhere; }
.pay-details p:last-child { margin-bottom: 0; }
.pay-details strong,
.success__box--pay strong { color: var(--white); font-weight: 700; }
.pay-details__number { font-size: 15px; letter-spacing: .04em; }
.pay-details__copy {
  margin-left: 6px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.pay-details__copy:hover { border-color: var(--white); }
.pay-details__whatsapp { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pay-details__note { color: var(--faint); font-size: 12px; }
.success__box--pay { border-color: var(--white); }
.success__box--pay p + p { margin-top: 6px; }

/* ---------- Order placed ---------- */

.success { padding: 40px var(--gutter) 64px; }
.success__inner { max-width: 560px; margin: 0 auto; }
.success__ref { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.success__tick { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--white); border-radius: 50%; color: var(--white); font-size: 17px; }
.success__title { margin: 16px 0 8px; font-size: 28px; font-weight: 400; line-height: 1.2; }
.success__lead { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.success__box { margin: 0 0 20px; padding: 18px; border: 1px solid var(--line); }
.success__box h3 { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.success__box p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.success__box a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.success__box .order__items { margin: 0; border-top: 0; }
.success__box .line-item:last-child { border-bottom: 0; }
.success__box .summary-row { margin: 14px 0 0; }
.success .btn { margin-top: 8px; }

.form-error { margin: 0; color: var(--danger); font-size: 14px; }
.form-note { margin: 0; color: var(--faint); font-size: 12px; text-align: center; }
.order__thanks { margin: 0 0 28px; color: var(--muted); line-height: 1.65; }

/* ---------- Dialog animations ---------- */

@keyframes slide-from-left { from { transform: translateX(-100%); } }
@keyframes slide-from-right { from { transform: translateX(100%); } }
@keyframes slide-to-left { to { transform: translateX(-100%); } }
@keyframes slide-to-right { to { transform: translateX(100%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-down { to { opacity: 0; transform: translateY(16px); } }
@keyframes fade-out { to { opacity: 0; } }

/* .is-closing is added by store.js, which closes the dialog when this finishes. */
.drawer--left.is-closing { animation: slide-to-left .28s ease-in forwards; }
.drawer--right.is-closing,
.page.is-closing { animation: slide-to-right .32s ease-in forwards; }
.modal.is-closing { animation: fade-down .2s ease-in forwards; }
dialog.is-closing::backdrop { animation: fade-out .3s ease-in forwards; }

/* ---------- Add to Cart: the photo flying into the cart (store.js flyToCart) ---------- */

.fly-to-cart {
  position: fixed;
  z-index: 40;                 /* over the product page and the header */
  pointer-events: none;
  background: var(--white) center / contain no-repeat;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Small phones: make room for search, account and cart ---------- */

@media (max-width: 420px) {
  .brand { font-size: clamp(21px, 6.4vw, 26px); }
  .header__actions .icon-btn { width: 38px; }
}
@media (max-width: 340px) {
  .header__actions .icon-btn { width: 33px; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  :root { --card-w: 30vw; --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .modal {
    width: min(480px, calc(100% - 48px));
    height: fit-content;       /* a modal <dialog> is fixed with inset: 0, so auto would fill the screen */
    border: 1px solid var(--line);
    max-height: min(760px, calc(100% - 48px));
    margin: auto;
  }
  .modal__inner { height: auto; max-height: min(760px, calc(100vh - 48px)); }
  .order { padding: 76px 32px 32px; }
}

@media (min-width: 900px) {
  /* Desktop: a tall frame across the full width, with the whole photo in it (most
     posts are portrait) on a dark background; phones keep the photo filling the frame. */
  .insta-slider { --insta-h: min(62.5vw, 82vh); --insta-h: min(62.5vw, 82svh); }
  .insta-slide__media { background: #0b0b0b; }
  .insta-slide__media img { object-fit: contain; }
  .insta-slider__arrow { width: 52px; height: 52px; margin-top: -26px; }
  .insta-slider__arrow--prev { left: 28px; }
  .insta-slider__arrow--next { right: 28px; }
  .pp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 100%; }
  .pp__gallery {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-bottom, var(--header-h)));
    height: calc(100dvh - var(--header-bottom, var(--header-h)));
  }
  .gallery { flex: 1; min-height: 0; }
  .gallery__track { height: 100%; aspect-ratio: auto; }
  .gallery__thumbs { flex-shrink: 0; justify-content: center; padding: 14px 16px; }
  .pp__info { max-width: 560px; padding: 64px 56px 56px; }
}

@media (min-width: 1024px) {
  :root { --card-w: 23vw; --card-ratio: 2 / 3; --header-h: 72px; --gutter: 40px; }
  .card__media img { object-fit: contain; } /* the whole photo in the taller desktop tile, as before */
  .brand { font-size: 34px; }
  .header__bar { padding: 0 24px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .section-title { font-size: 28px; padding-top: 56px; padding-bottom: 36px; }

  /* Inline navigation replaces the hamburger menu. */
  .header__menu-btn { display: none; }
  .header__nav { display: flex; align-items: center; gap: 22px; padding-left: 14px; }
  .header__nav a { color: rgba(255, 255, 255, .8); font-size: 15px; white-space: nowrap; transition: color .2s; }
  .header__nav a:hover { color: var(--white); }
  .header__nav a[aria-current="page"] { color: var(--white); font-weight: 700; }

  /* Accessories + : the + opens a panel just under the header with the
     sub-collections on their tree line. */
  .header__dropdown { position: relative; display: flex; align-items: center; gap: 2px; }
  .header__dropdown .tree-toggle { width: 26px; height: 26px; margin-right: -8px; color: rgba(255, 255, 255, .8); }
  .header__dropdown .tree-toggle:hover,
  .header__dropdown .tree-toggle[aria-expanded="true"] { color: var(--white); }
  .header__dropdown .tree-toggle::before,
  .header__dropdown .tree-toggle::after { width: 10px; margin-left: -5px; }
  .header__dropdown .tree {
    position: absolute;
    top: calc(50% + var(--header-h) / 2); /* the header's bottom edge */
    left: -18px;
    min-width: 210px;
  }
  .header__dropdown .tree__list {
    padding: 14px 22px 16px 26px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--black);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
  .header__dropdown .tree__list > li:first-child::before { top: -14px; }
  .header__dropdown .tree__list > li:last-child:first-child::before { height: calc(50% + 14px); }
  .header__dropdown .tree__list a { display: block; padding: 7px 0; font-size: 14px; }

  .brands { padding-top: 72px; }
  .brands .grid { column-gap: 20px; }
}

@media (min-width: 1440px) {
  :root { --card-w: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__group { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
