html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Hedvig Letters Serif", serif;
  background: white;
  color: black;
}

h1 {
  position: absolute !important;
  left: -9999px !important;
}

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

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

/* =========================
   SECTION LINKS / ARROWS
========================== */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  color: #000;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

.section-arrow {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.section-link:hover .section-arrow {
  transform: translateX(4px);
  opacity: 0.8;
}

/* =========================
   FIXED HEADER
========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 9999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: padding 0.25s ease, min-height 0.25s ease, box-shadow 0.25s ease;
}

.topbar {
  position: relative;
  min-height: 90px;
  padding: 0;
  transition: min-height 0.25s ease, padding 0.25s ease, gap 0.25s ease;
}

.top-link,
.top-id,
.logo-wrap,
.logo-mini {
  transition: all 0.25s ease;
}

.logo-wrap {
  position: absolute;
  top: -14px;
  left: -8px;
  margin: 0;
  text-align: left;
  z-index: 2;
}

.top-link {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.header-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  margin-right: -22px;
}

.header-action:last-child {
  margin-right: 0;
}

.action-icon {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
}

.action-label {
  margin-top: -8px;
  font-family: "Hedvig Letters Serif", serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #111;
  text-align: center;
}

.connect-btn {
  width: 90px;
}

.match-btn {
  width: 80px;
}

.data-btn {
  width: 82px;
}

.top-id {
  margin-left: auto;
  padding-top: 8px;
  padding-right: 14px;
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
  color: #111;
}

.logo-mini {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: 132px;
  text-decoration: none;
  color: inherit;
}

.logo-mini:hover {
  opacity: 0.85;
}

.logo-mini img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateX(-15px);
}

.logo-mini-label {
  position: static;
  transform: none;
  margin-top: -18px;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.8);
  white-space: nowrap;
  text-align: left;
  line-height: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-header.shrink .logo-mini-label {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.site-header.shrink .topbar {
  min-height: 78px;
}

.site-header.shrink .top-link,
.site-header.shrink .top-id {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-8px);
}

/* =========================
   PAGE CONTENT
========================== */
.page-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 190px 32px 20px 32px;
  box-sizing: border-box;
}

/* =========================
   DESKTOP CARD ROW
========================== */
.subdivGridDesktop {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.subdivGridDesktop::-webkit-scrollbar {
  display: none;
}

.subdivGridDesktop .subdivCard {
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
}

.subdivGridDesktop .wb-card-img {
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #f5f5f5 !important;
}

.subdivGridDesktop .wb-card-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.subdivMobileRow {
  display: none;
}

/* =========================
   DESKTOP SCROLLER WRAPPER + ARROWS
========================== */
.subdivDesktopWrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subdivArrowSlot {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subdivDesktopWrapper .subdivGridDesktop {
  flex: 1 1 auto;
  min-width: 0;
}

.sliderArrow {
  width: 32px;
  height: 72px;
  border: none;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  font-size: 28px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.sliderArrow:hover {
  background: rgba(0, 0, 0, 0.14);
  transform: scale(1.03);
}

.sliderArrowLeft,
.sliderArrowRight {
  position: static;
}

.sliderArrow.is-visible {
  display: flex;
}

.sliderArrow.is-hidden {
  display: none !important;
}

/* =========================
   FOOTER
========================== */
.site-footer {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
  color: #111;
  margin-top: 40px;
}

.footer-shell {
  max-width: none;
  margin: 0;
  padding: 32px 32px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.footer-right-group {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.footer-col {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.72);
}

.footer-col a {
  display: block;
  margin-bottom: 6px;
  text-decoration: underline;
  color: rgba(17, 17, 17, 0.72);
}

.footer-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #111;
}

.footer-badge {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-left: 72px;
  margin-right: 16px;
}

.footer-badge img {
  max-width: 90px;
  height: auto;
  display: block;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  font-size: 12px;
  color: rgba(17, 17, 17, 0.72);
}

/* =========================
   MID-SIZE DESKTOP / TABLET LANDSCAPE
========================== */
@media (min-width: 769px) and (max-width: 1180px) {
  .subdivGridDesktop {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }

  .subdivGridDesktop::-webkit-scrollbar {
    display: none;
  }

  .subdivGridDesktop > .subdivCard {
    flex: 0 0 260px;
    width: 260px;
  }

  .subdivArrowSlot {
    flex: 0 0 28px;
  }

  .sliderArrow {
    width: 28px;
    height: 64px;
    font-size: 24px;
    border-radius: 10px;
  }
}

/* =========================
   LARGE DESKTOP WITH OVERFLOW SUPPORT
========================== */
@media (min-width: 1181px) {
  .subdivDesktopWrapper .subdivGridDesktop {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }

  .subdivDesktopWrapper .subdivGridDesktop::-webkit-scrollbar {
    display: none;
  }
}

/* =========================
   MOBILE
========================== */
@media (max-width: 768px) {
  .topbar {
    min-height: 140px;
    padding: 0 10px;
  }

  .logo-wrap {
    position: absolute;
    top: -4px;
    left: 0;
  }

  .top-link {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .top-id {
    position: absolute;
    top: 8px;
    right: 6px;
    text-align: right;
    font-size: 10px;
    line-height: 1.2;
    max-width: 145px;
    padding-right: 0;
  }

  .logo-mini-label {
    white-space: nowrap;
    margin-left: 8px;
    width: auto;
    text-align: left;
  }

  .site-header.shrink .topbar {
    min-height: 78px;
  }

  .subdivDesktopWrapper .sliderArrow {
    display: none !important;
  }

  .subdivGridDesktop {
    display: none !important;
  }

  .subdivMobileRow {
    display: flex !important;
    gap: 10px;
    padding: 0 0 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: contain;
    touch-action: pan-auto;
  }

  .subdivMobileRow::-webkit-scrollbar {
    display: none;
  }

  .subdivMobileRow .subdivCard {
    flex: 0 0 calc((100% - 20px) / 2.2);
    max-width: calc((100% - 20px) / 2.2);
    min-width: 0;
    scroll-snap-align: start;
  }

  .subdivMobileRow .wb-card-img {
    height: auto !important;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
  }

  .subdivMobileRow .wb-card-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }

  .subdivMobileRow .subdivTitle {
    font-size: 13px !important;
    line-height: 1.15;
  }

  .subdivMobileRow .subdivPrice {
    font-size: 11px !important;
    line-height: 1.15;
  }

  .subdivMobileRow .subdivAvail {
    font-size: 10px !important;
    line-height: 1.15;
  }

  .footer-grid {
    flex-direction: column;
    gap: 18px;
  }

  .footer-right-group {
    flex-direction: column;
    gap: 18px;
  }

  .footer-badge {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }

  .footer-badge img {
    width: 100%;
    max-width: 110px;
    height: auto;
  }
}
