/* Boykotmu homepage v2 — charcoal + crimson, no purple */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

:root {
  --bm-ink: #101214;
  --bm-ink-soft: #1a1e22;
  --bm-paper: #f2f3f0;
  --bm-panel: #ffffff;
  --bm-crimson: #b01d22;
  --bm-crimson-deep: #7e1418;
  --bm-mist: #c9d0c9;
  --bm-muted: #5a635e;
  --bm-line: rgba(16, 18, 20, 0.1);
  --bm-radius: 18px;
  --bm-max: 1120px;
  --bm-font: "DM Sans", system-ui, sans-serif;
  --bm-display: "Syne", "DM Sans", sans-serif;
}

.bm-home {
  font-family: var(--bm-font);
  color: var(--bm-ink);
  background: var(--bm-paper);
  overflow-x: hidden;
}

.bm-home * { box-sizing: border-box; }

.bm-wrap {
  width: min(100% - 2rem, var(--bm-max));
  margin-inline: auto;
}

.bm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bm-crimson);
}

.bm-section {
  padding: 4.5rem 0;
}

.bm-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.bm-section-head h2 {
  font-family: var(--bm-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin: 0.35rem 0 0;
  letter-spacing: -0.02em;
}

.bm-section-head p {
  margin: 0.4rem 0 0;
  color: var(--bm-muted);
  max-width: 36rem;
}

.bm-link-more {
  color: var(--bm-crimson);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.bm-link-more:hover { border-color: var(--bm-crimson); color: var(--bm-crimson-deep); }

/* —— Hero —— */
.bm-hero {
  position: relative;
  min-height: min(70vh, 540px);
  display: grid;
  align-items: end;
  padding: 5rem 0 4.75rem;
  color: #f7f7f5;
  isolation: isolate;
}

.bm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,11,12,0.42) 0%, rgba(10,11,12,0.72) 48%, rgba(10,11,12,0.92) 100%),
    var(--bm-hero-image) center/cover no-repeat;
  transform: scale(1.04);
  animation: bmHeroDrift 18s ease-in-out infinite alternate;
}

.bm-hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes bmHeroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.bm-hero__brand {
  font-family: var(--bm-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  animation: bmRise 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

.bm-hero__brand span {
  color: var(--bm-crimson);
}

.bm-hero__lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(247,247,245,0.88);
  margin: 0 0 1.75rem;
  animation: bmRise 0.9s 0.12s cubic-bezier(0.22,1,0.36,1) both;
}

.bm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 6;
  margin-bottom: 0.35rem;
  animation: bmRise 0.9s 0.22s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes bmRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.bm-btn:hover { transform: translateY(-2px); }
.bm-btn--solid {
  background: var(--bm-crimson);
  color: #fff;
}
.bm-btn--solid:hover { background: var(--bm-crimson-deep); color: #fff; }
.bm-btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
}
.bm-btn--ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }
.bm-btn--ink {
  background: var(--bm-ink);
  color: #fff;
}
.bm-btn--ink:hover { background: #000; color: #fff; }
.bm-btn--line {
  background: transparent;
  color: var(--bm-ink);
  border: 1.5px solid var(--bm-ink);
}
.bm-btn--line:hover { background: var(--bm-ink); color: #fff; }

/* —— Search —— */
.bm-search {
  margin-top: -1.35rem;
  position: relative;
  z-index: 5;
}

.bm-search__panel {
  background: var(--bm-panel);
  border-radius: calc(var(--bm-radius) + 4px);
  box-shadow: 0 18px 50px rgba(16,18,20,0.14);
  padding: 0.85rem;
  border: 1px solid var(--bm-line);
}

.bm-search__row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.bm-search__row input {
  flex: 1;
  border: 0;
  outline: 0;
  background: #eef0ec;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bm-ink);
}
.bm-search__row input::placeholder { color: #7a857e; }

.bm-search__results {
  display: none;
  margin-top: 0.65rem;
  max-height: 320px;
  overflow: auto;
  border-radius: 14px;
  background: #fafaf8;
  border: 1px solid var(--bm-line);
}
.bm-search__results.is-open { display: block; }
.bm-search-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: var(--bm-ink);
  border-bottom: 1px solid var(--bm-line);
  transition: background 0.15s ease;
}
.bm-search-item:hover { background: #eceee9; }
.bm-search-item:last-child { border-bottom: 0; }
.bm-search-item__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bm-line);
}
.bm-search-item__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bm-search-item__body {
  min-width: 0;
  flex: 1;
}
.bm-search-item strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.bm-search-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--bm-muted);
  line-height: 1.35;
}
.bm-search-empty, .bm-search-loading {
  padding: 1rem;
  text-align: center;
  color: var(--bm-muted);
  font-size: 0.9rem;
}

/* —— Categories —— */
.bm-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}

.bm-cat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1rem;
  background: var(--bm-panel);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bm-cat:hover {
  border-color: var(--bm-crimson);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(176,29,34,0.12);
  color: inherit;
}
.bm-cat img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}
.bm-cat__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e8ebe6;
  display: grid;
  place-items: center;
  color: var(--bm-crimson);
  font-size: 1.1rem;
}
.bm-cat__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}
.bm-cat__meta {
  font-size: 0.78rem;
  color: var(--bm-muted);
}

/* —— Product / brand rails —— */
.bm-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.bm-rail::-webkit-scrollbar { height: 6px; }
.bm-rail::-webkit-scrollbar-thumb { background: #c4cbc4; border-radius: 99px; }

.bm-card {
  scroll-snap-align: start;
  background: var(--bm-panel);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16,18,20,0.1);
  color: inherit;
}
.bm-card__media {
  height: 140px;
  background: #e9ece7;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.bm-card__media img {
  max-width: 120px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bm-card__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.bm-card__title {
  font-family: var(--bm-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.25;
}
.bm-card__text {
  margin: 0;
  color: var(--bm-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.bm-badge {
  display: inline-flex;
  align-self: start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(176,29,34,0.1);
  color: var(--bm-crimson);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Alternatives grid */
.bm-alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.bm-alt {
  background: var(--bm-panel);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.bm-alt__logo {
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bm-alt__logo img {
  max-width: 130px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bm-alt h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--bm-crimson);
  text-align: center;
  font-family: var(--bm-display);
}
.bm-alt p {
  margin: 0;
  color: var(--bm-muted);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.45;
}
.bm-alt__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.bm-alt__tags span {
  background: #e8f2ea;
  color: #1f5c34;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.bm-alt .bm-btn { align-self: center; margin-top: auto; }

/* —— Galleries —— */
.bm-video-rail, .bm-image-rail {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}
.bm-video-item, .bm-image-item {
  flex: 0 0 210px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
  text-decoration: none;
  color: #fff;
}
.bm-video-item img, .bm-image-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.bm-image-item img { height: 220px; }
.bm-video-item:hover img, .bm-image-item:hover img { transform: scale(1.05); }
.bm-video-item__play {
  position: absolute;
  inset: auto auto 12px 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bm-crimson);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.bm-video-item__cap, .bm-image-item__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Dark band */
.bm-band {
  background: var(--bm-ink);
  color: #f3f4f1;
  padding: 4.25rem 0;
}
.bm-band .bm-section-head h2 { color: #fff; }
.bm-band .bm-section-head p { color: rgba(243,244,241,0.7); }
.bm-band .bm-link-more { color: #ff8d91; }
.bm-band .bm-link-more:hover { color: #fff; border-color: #fff; }

.bm-popular {
  display: grid;
  gap: 0.65rem;
}
.bm-popular a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}
.bm-popular a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.bm-popular__n {
  font-family: var(--bm-display);
  font-weight: 800;
  color: var(--bm-crimson);
  font-size: 1.15rem;
  min-width: 1.6rem;
}

.bm-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--bm-radius);
  background: linear-gradient(120deg, #1d2227, #2a1416 70%);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
}
.bm-cta-strip h3 {
  font-family: var(--bm-display);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.bm-cta-strip p { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.92rem; }

/* Reveal */
.bm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.bm-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .bm-hero { min-height: 56vh; padding: 4rem 0 4rem; }
  .bm-section { padding: 3.25rem 0; }
  .bm-search { margin-top: -1rem; }
  .bm-search__row { flex-direction: column; align-items: stretch; }
  .bm-video-item, .bm-image-item { flex-basis: 170px; }
  .bm-video-item img { height: 240px; }
}
