* {
  box-sizing: border-box
}

:root {
  --bg: #ffffff;
  --fg: #111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111;
  --tag: #f3f4f6;
  --sust: #e6f7ec
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -.01em
}

h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600
}

h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600
}

p {
  max-width: 70ch
}

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

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 24px
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px
}

.brand {
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 20px;
  color: #111;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #111;
  opacity: .85
}

.brand:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #111;
  opacity: .1
}

.header-search {
  flex: 0 1 360px;
  display: flex;
  align-items: center;
  gap: 10px
}

.header-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  outline: none
}

.header-search input:focus {
  border-color: #111
}

/* Header navigation */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px
}

.site-nav a {
  color: #111;
  text-decoration: none;
  font-size: 11.5px;
  padding: 6px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600
}

.site-nav a:hover {
  background: #f5f5f5
}

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

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s, color .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.btn:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04)
}

.btn:active {
  transform: translateY(1px)
}

.btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
  position: relative;
  font-weight: 600;
  min-width: 140px
}

.btn.primary::after {
  content: "\2192";
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s ease
}

.btn.primary:hover::after {
  transform: translateX(2px)
}

/* Hover: turn white then fill black from left to right */
.btn.primary {
  background-image: linear-gradient(90deg, #111 0 0);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left top;
  transition: background-size .45s ease, background-color .2s;
}

.btn.primary:hover {
  background-color: #fff;
  background-size: 100% 100%;
  color: #111;
  /* start readable on white */
  animation: btnColorSwap .45s forwards ease;
}

@keyframes btnColorSwap {

  0%,
  60% {
    color: #111
  }

  100% {
    color: #fff
  }
}

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99%;
  padding: 6px 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s
}

.icon-btn:hover {
  background: #fafafa
}

.icon-btn.active {
  border-color: #111;
  background: #111;
  color: #fff
}

.icon-btn .bi {
  font-size: 18px
}

/* Default: do not show bottom buy CTA (used only in list view) */
.buy-cta {
  display: none
}

/* Subscribe Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 80
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center
}

.modal[hidden] {
  display: none
}

.modal-overlay[hidden] {
  display: none
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 18px 18px 20px 18px;
  animation: modalIn .22s ease both
}

.modal h3 {
  margin: 6px 0 6px 0
}

.modal-text {
  margin: 0 0 12px 0;
  color: #6b7280
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px
}

@keyframes modalIn {
  0% {
    opacity: 0;
    transform: translateY(6px)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Modal subscribe form */
.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 6px
}

.subscribe-form input[type=email] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none
}

.subscribe-form input[type=email]:focus {
  border-color: #111
}

.subscribe-form .btn.primary {
  min-width: auto
}

/* Favourite button */
.fav-btn {
  background: transparent;
  border: none;
  padding: 0 6px;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center
}

.fav-btn .bi {
  font-size: 18px
}

.fav-btn .label {
  margin-left: 6px;
  font-size: 12.5px
}

.fav-btn.active,
.fav-btn:hover {
  color: #111
}

/* Saved FAB and Drawer */
.saved-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  cursor: pointer
}

.saved-fab .count {
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px
}

.saved-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  z-index: 60;
  display: none
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: #111;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08)
}

.cookie-banner[hidden] {
  display: none
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px
}

.cookie-text {
  flex: 1
}

.cookie-text strong {
  display: block;
  margin-bottom: 2px
}

.cookie-text p {
  margin: 0 0 6px 0;
  color: #e5e7eb
}

.cookie-link {
  color: #9dd1ff
}

.cookie-actions {
  display: flex;
  gap: 8px
}

/* Make both actions white buttons for contrast */
.cookie-banner .btn {
  background: #fff !important;
  color: #111 !important;
  border-color: #e5e7eb !important
}

.cookie-banner .btn:hover {
  background: #f5f5f5
}

.cookie-banner .btn.primary {
  background: #fff !important;
  color: #111 !important;
  border-color: #111 !important
}

.cookie-banner .btn.flat {
  background: #fff !important;
  color: #111 !important;
  border-color: #e5e7eb !important
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start
  }

  .cookie-actions {
    width: 100%
  }

  .cookie-actions .btn {
    flex: 1
  }
}

/* Brands Search page */
.brand-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

@media (max-width: 1000px) {
  .brand-list {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width: 640px) {
  .brand-list {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: #111;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .06s ease, border-color .2s
}

.brand-chip:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  border-color: #d1d5db
}

.brand-chip .chip-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.brand-chip .chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.brand-chip .chip-fallback {
  font-weight: 700;
  font-size: 12px;
  color: #111
}

.brand-chip .chip-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.brand-list .empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  color: #6b7280;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fafafa)
}

.brand-list .empty-state .empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 10px
}

.brand-list .empty-state .empty-icon .bi {
  font-size: 22px;
  color: #9aa0a6
}

.saved-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 360px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  z-index: 61;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  transition: right .25s ease
}

.saved-drawer.open {
  right: 0
}

.saved-drawer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line)
}

.saved-list {
  padding: 10px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px
}

.saved-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px
}

.saved-item .title {
  font-size: 14px;
  font-weight: 600
}

.saved-item .actions {
  margin-left: auto;
  display: flex;
  gap: 8px
}

.hero {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: #f9f9f9
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px
}

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

.breadcrumb .sep {
  color: #c4c7ce
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center
}

.hero-text h1 {
  margin: 6px 0 10px
}

.hero-text .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: #9aa0a6
}

.hero-text .lede {
  margin: 0;
  color: #4b5563;
  font-size: clamp(14px, 1.4vw, 18px)
}

.hero-image {
  border-radius: 10px;
  border: 1px solid var(--line)
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-logo-hero {
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 99%;
  object-fit: contain;
  background: #fff;
  padding: 6px
}

/* Only the hero CTA button: transparent, black, with vertical margin */
.hero .hero-right-cta .btn.primary,
.hero .lede .btn.primary {
  background: transparent;
  background-image: none;
  color: #333;
  padding: 0;
  border: none;
  margin: 0;
}

.hero .hero-right-cta .btn.primary:hover,
.hero .lede .btn.primary:hover {
  color: #000 !important;
  background: transparent !important;
  background-image: none !important;
}

.brand-logo-hero.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px
}

/* Right side of hero: CTA + image */
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px
}

.hero-right-cta {
  align-self: flex-end
}

.controls {
  position: sticky;
  top: 64px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 9
}

.controls-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 64px
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow: auto;
  padding: 8px 0;
  align-items: flex-end
}

.filters::-webkit-scrollbar {
  display: none
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px
}

.filter label {
  font-size: 12px;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: .08em
}

.filter select {
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  appearance: none;
  outline: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  height: 38px
}

/* custom chevron */
.filter select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.2 6l4.8 4.8L12.8 6' stroke='%239aa0a6' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center
}

.filter select:focus {
  border-color: #111
}

.toolbar-right {
  display: flex;
  align-items: flex-end;
  gap: 12px
}

.results {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 4px
}

.view-toggle {
  display: flex;
  gap: 6px;
  margin-left: 8px
}

.btn.small {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 999px
}

.btn.flat {
  border-color: transparent;
  background: transparent
}

.btn.flat:hover {
  background: #f5f5f5
}

.filter-actions {
  min-width: auto
}

.filter-actions .btn.small {
  height: 38px;
  display: inline-flex;
  align-items: center
}

/* Mobile: make filters non-sticky */
@media (max-width: 740px) {
  .controls {
    position: static;
    top: auto;
    background: #fff;
    backdrop-filter: none
  }
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 0 24px 0
}

.brand-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .06s ease
}

.brand-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
}

.card-media {
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  overflow: hidden
}

.media-desktop {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden
}

.brand-grid:not(.list) .media-desktop {
  aspect-ratio: 3/4
}

@media (min-width: 1000px) {
  .brand-grid:not(.list) .media-desktop {
    aspect-ratio: 2/3;
    min-height: 420px
  }
}

.brand-grid:not(.list) .card-media {
  margin-top: 56px
}

.media-desktop .img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease
}

.media-desktop .img.women {
  opacity: 0
}

.brand-card:hover .media-desktop .img.women {
  opacity: 1
}

.brand-card:hover .media-desktop .img.men {
  opacity: 0
}

.media-mobile {
  display: none;
  padding: 8px;
  gap: 8px
}

.media-mobile .pair {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 0.7/1;
  object-fit: cover
}

.thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fff
}

.thumbs-inline {
  display: none
}

.thumb {
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer
}

.thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 1px solid transparent
}

.thumb:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px
}

/* Smooth accordion animation for all details with .accordion-content */
details .accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s ease-in-out, opacity .5s ease-in-out;
  opacity: 0
}

details[open] .accordion-content {
  grid-template-rows: 1fr;
  opacity: 1
}

details .accordion-content>* {
  overflow: hidden
}

details {
  margin: 12px 0px
}

.thumb.active {
  box-shadow: none
}

.thumb.active img {
  border-color: #000
}

/* Like controls placement by view */
.header-like {
  display: none
}

.brand-grid.list .header-like {
  display: flex;
  gap: 8px
}

.brand-grid.list .actions .like-controls {
  display: none
}

/* Links block layout for list view: push votes to the right */
.links-like {
  display: none
}

.brand-grid.list .links-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.brand-grid.list .links-like {
  display: flex;
  gap: 8px;
  margin-left: auto
}

/* When a gallery image is chosen, keep the selected image visible */
.brand-card.gallery-active:hover .media-desktop .img.women {
  opacity: 0
}

.brand-card.gallery-active:hover .media-desktop .img.men {
  opacity: 1
}

.card-body {
  padding: 16px
}

.brand-grid:not(.list) .card-body {
  display: flex;
  flex-direction: column
}

.brand-grid:not(.list) .actions {
  order: 1
}

.brand-grid:not(.list) .desc {
  order: 2;
  font-size: 14px;
  color: var(--muted)
}

.brand-grid:not(.list) .tags {
  order: 3;
  margin: 12px 0px
}

.brand-grid:not(.list) .socials {
  order: 4;
  margin-top: 12px
}

.brand-grid:not(.list) .socials-inline {
  display: none
}

/* List view: wider primary CTA */
.brand-grid.list .buy-cta .btn.primary {
  padding-left: 32px;
  padding-right: 32px
}

/* Ensure divider and info are at the bottom in grid view */
.brand-grid:not(.list) .divider {
  order: 5
}

.brand-grid:not(.list) .info-blocks {
  order: 6
}

/* In gallery-active state, keep header on top as well */
.brand-grid:not(.list) .brand-card {
  position: relative
}

.brand-grid:not(.list) .card-head {
  order: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.brand-grid.list .card-head {
  padding-left: 0
}

.brand-id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto
}

.brand-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  flex: 0 0 36px;
  overflow: hidden
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
  border-radius: 50%
}

.brand-logo-fallback {
  font-weight: 700;
  font-size: 12px;
  color: #111
}

.brand-name {
  margin: 0;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted)
}

/* Tighter spacing between logo and name in grid view */
.brand-grid:not(.list) .card-head {
  gap: 6px
}

.price,
.region {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: #374151
}

.price.level-1 {
  background: #f1f8f1;
  border-color: #d7ead7
}

.price.level-2 {
  background: #f7f7fb;
  border-color: #e2e4ef
}

.price.level-3 {
  background: #eaf4ff;
  border-color: #cfe6ff;
  color: #111
}

.price.level-4 {
  background: #fff6f6
}

;

.desc {
  font-weight: 300;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 12px
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  background: var(--tag);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  color: #374151;
  font-size: 12px
}

.tag-sust {
  background: var(--sust);
  border-color: #b7e3c5
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0px
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0
}

.info-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 0px
}

.links-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

/* Icon-only rounded links with tooltips */
.links-block a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  text-decoration: none;
  font-size: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff
}

.links-block a:hover {
  background: #f9fafb;
  border-color: #d1d5db
}

.links-block a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px
}

.links-block a .bi {
  font-size: 16px;
  color: #6b7280
}

/* Tooltip */
.links-block a::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: #111;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease
}

.links-block a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: #111;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease
}

.links-block a:hover::after,
.links-block a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.links-block a:hover::before,
.links-block a:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

/* Phones: revert to original icon + label chips, hide tooltips */
@media (max-width: 640px) {
  .links-block a {
    font-size: 12.5px;
    width: auto;
    height: 28px;
    padding: 4px 10px;
    gap: 6px;
    border-radius: 999px
  }

  .links-block a .bi {
    font-size: 14px
  }

  .links-block a::after,
  .links-block a::before {
    display: none
  }
}

.payments-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280
}

.info-blocks .payments-block {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 4px
}

.pm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff
}

.pm .bi {
  font-size: 14px
}

.pm-label {
  font-size: 12px;
  color: #6b7280
}

.socials {
  display: flex;
  gap: 10px
}

.socials .bi {
  font-size: 18px;
  color: #111
}

.socials-inline {
  display: none
}

/* Inline socials for list view header */
.brand-grid.list .socials-inline {
  display: flex;
  gap: 8px;
  margin-left: 8px
}

.brand-grid.list .socials-inline .bi {
  font-size: 16px;
  color: #6b7280
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted)
}

@media (max-width: 1000px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
  }

  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-side {
    align-items: flex-start
  }
}

@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: 1fr
  }

  .brand-grid:not(.list) .media-desktop {
    aspect-ratio: 1/1;
    /* More compact on mobile */
    min-height: 0
  }

  .media-desktop {
    display: none
  }

  .media-mobile {
    display: flex
  }

  .media-mobile .pair {
    aspect-ratio: 1/1;
    /* 30% more compact than 0.7/1 */
    object-position: top;
  }

  .header-search {
    flex: 1;
    justify-content: flex-end
  }

  form.header-search {
    display: none
  }

  .filter {
    min-width: calc(50% - 6px)
  }

  .site-nav {
    display: none
  }

  .controls-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px
  }

  .toolbar-right {
    display: none
  }

  .view-toggle {
    margin-left: 0
  }
}

/* Mobile filters 2-col grid fallback */
@media (max-width: 640px) {
  .filters {
    flex-wrap: wrap;
    overflow: visible
  }
}

/* List mode (rewritten) */
.brand-grid.list {
  display: block
}

.brand-grid.list .brand-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  column-gap: 24px;
  row-gap: 0;
  margin-bottom: 20px;
  align-items: start
}

.brand-grid.list .card-media {
  border-bottom: none;
  display: flex;
  flex-direction: column
}

.brand-grid.list .media-desktop {
  aspect-ratio: auto;
  flex: 1;
  min-height: 420px
}

.brand-grid.list .media-mobile {
  display: none
}

.brand-grid.list .card-body {
  padding: 24px;
  padding-left: 12px
}

.brand-grid.list .card-head {
  gap: 12px;
  justify-content: flex-start
}

.brand-grid.list .card-head .meta {
  margin-left: auto
}

.brand-grid.list .card-body {
  max-width: 900px
}

.brand-grid.list .brand-name {
  font-size: 20px
}

.brand-grid.list .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px
}

.brand-grid.list .desc {
  max-width: 72ch;
  margin: 0;
  font-size: 14px;
  color: var(--muted)
}

.brand-grid.list .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0
}

.brand-grid.list .actions .btn.primary {
  display: inline-flex;
  order: 1
}

.brand-grid.list .actions .fav-btn {
  display: inline-flex;
  order: 2
}

.brand-grid.list .actions .like-controls {
  order: 3;
  width: 100%;
  margin-top: 4px
}

.brand-grid.list .divider {
  display: none
}

.brand-grid.list .info-blocks {
  padding: 0;
  grid-template-columns: 1fr;
  gap: 10px;
  grid-column: 2
}

/* 24px vertical rhythm inside list view card body */
.brand-grid.list .card-body>* {
  margin: 0 0 24px 0
}

.brand-grid.list .card-body>*:last-child {
  margin-bottom: 0
}

.brand-grid.list .links-block {
  gap: 8px
}

.brand-grid.list .buy-cta {
  display: none
}

.brand-grid.list .socials {
  display: none
}

/* Make thumbnails stay within media column and look tidy in list */
.brand-grid.list .thumbs {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  margin-top: auto
}

.brand-grid.list .thumb img {
  width: 56px;
  height: 56px;
  border-radius: 50%
}

.brand-grid.list .thumbs-inline {
  display: flex;
  gap: 8px
}

.brand-grid.list .card-media .thumbs {
  display: none
}

@media (max-width: 800px) {
  .brand-grid.list .brand-card {
    grid-template-columns: 1fr
  }

  .brand-grid.list .card-media {
    border-bottom: 1px solid var(--line);
    grid-row: auto;
    display: block
  }

  .brand-grid.list .media-desktop {
    aspect-ratio: 4/3;
    flex: none;
    min-height: auto
  }

  .brand-grid.list .card-body {
    padding: 16px 12px
  }

  .brand-grid.list .info-blocks {
    grid-template-columns: 1fr;
    grid-column: 1
  }

  select {
    -webkit-appearance: none;
    appearance: none;
    color: black;
  }

  .bi-hand-thumbs-up::before {
    -webkit-appearance: none;
    appearance: none;
    color: black;
  }

  .bi-hand-thumbs-down::before {
    -webkit-appearance: none;
    appearance: none;
    color: black;
  }

  .bi-x::before {
    -webkit-appearance: none;
    appearance: none;
    color: black;
  }
}

/* Taller media on wide screens */
@media (min-width: 1000px) {
  .brand-grid.list .media-desktop {
    min-height: 520px
  }
}

@media (max-width: 640px) {
  .links-block a {
    font-size: 12px;
    padding: 4px 8px;
    height: 26px
  }

  .brand-grid.list .buy-cta .btn.primary {
    width: 100%;
    justify-content: center
  }

  .thumbs-inline {
    overflow: auto;
    gap: 8px
  }

  .thumbs-inline .thumb img {
    width: 48px;
    height: 48px
  }
}

.x-bread {
  text-decoration: underline;
  text-underline-offset: 3px
}

.how-we-rate-result {
  text-decoration: underline;
}

.subscribe-image {
  padding: 12px 0px;
}

.more-span {
  font-weight: 600;
  text-decoration: underline;
}