/* Header search overlay was forced to position:relative and sat on top of the logo and nav. */
html.sf-billabong-fix .search-overlay {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1002 !important;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

html.sf-billabong-fix .search-overlay[data-active="true"] {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

html.sf-billabong-fix .search-overlay__backdrop {
  position: fixed !important;
}

/* Catalog JS hides any /product link whose class contains "product-card", which is the photo itself. */
html.sf-billabong-fix product-card,
html.sf-billabong-fix .product-card__image-link,
html.sf-billabong-fix .product-card__info-link,
html.sf-billabong-fix a.product-card__link {
  display: block !important;
}

html.sf-billabong-fix mobile-nav-drawer[data-state="closed"] {
  display: none !important;
  pointer-events: none !important;
}

html.sf-billabong-fix mobile-nav-drawer[data-state="open"],
html.sf-billabong-fix.sf-bb-nav-open mobile-nav-drawer[data-mobile-nav] {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10040 !important;
  background: #fff !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

html.sf-billabong-fix.sf-bb-nav-open {
  overflow: hidden !important;
}

/* Theme Vite left panels at translateX(-100%). Keep only the active panel on-screen. */
html.sf-billabong-fix mobile-nav-drawer .mobile-nav-drawer__drawer,
html.sf-billabong-fix mobile-nav-drawer .mobile-nav-drawer__content {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  background: #fff !important;
  transform: none !important;
  visibility: visible !important;
}

html.sf-billabong-fix mobile-nav-drawer [data-mobile-nav-panel] {
  display: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: auto !important;
  background: #fff !important;
  color: #202020 !important;
  transform: translate3d(-100%, 0, 0) !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.sf-billabong-fix mobile-nav-drawer[data-state="open"] [data-mobile-nav-panel][data-active="true"],
html.sf-billabong-fix.sf-bb-nav-open mobile-nav-drawer [data-mobile-nav-panel][data-active="true"] {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  translate: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: auto !important;
  background: #fff !important;
  color: #202020 !important;
  z-index: 2 !important;
}

html.sf-billabong-fix mobile-nav-drawer[data-state="open"] [data-mobile-nav-panel][data-active="true"] .mobile-nav-drawer__list,
html.sf-billabong-fix mobile-nav-drawer[data-state="open"] [data-mobile-nav-panel][data-active="true"] .mobile-nav-drawer__item,
html.sf-billabong-fix mobile-nav-drawer[data-state="open"] [data-mobile-nav-panel][data-active="true"] .mobile-nav-drawer__link,
html.sf-billabong-fix mobile-nav-drawer[data-state="open"] [data-mobile-nav-panel][data-active="true"] .mobile-nav-drawer__panel-header {
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit !important;
  transform: none !important;
}

html.sf-billabong-fix .mobile-nav-drawer__link,
html.sf-billabong-fix .mobile-nav-drawer__panel-header,
html.sf-billabong-fix [data-mobile-nav-submenu],
html.sf-billabong-fix [data-mobile-nav-back] {
  pointer-events: auto !important;
  cursor: pointer !important;
}

html.sf-billabong-fix .mobile-nav-drawer__link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0.85rem 1.25rem !important;
  font-size: 1rem !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  color: #202020 !important;
}

html.sf-billabong-fix .mobile-nav-drawer__link--submenu svg {
  width: 1.1rem !important;
  height: 1.1rem !important;
  flex: 0 0 auto !important;
  transform: rotate(-90deg) !important;
}

html.sf-billabong-fix .mobile-nav-drawer__panel-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0.75rem 1rem !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #eee !important;
  color: #202020 !important;
  font-size: 1rem !important;
}

html.sf-billabong-fix dialog.cart-drawer::backdrop {
  background: rgba(0, 0, 0, .45);
}

html.sf-billabong-fix .cart-drawer__panel,
html.sf-billabong-fix .cart-drawer__content,
html.sf-billabong-fix .cart-drawer__body,
html.sf-billabong-fix .cart-drawer__close,
html.sf-billabong-fix .cart-drawer__continue {
  pointer-events: auto !important;
}

html.sf-billabong-fix .product-atc-button,
html.sf-billabong-fix .product-atc-button__button,
html.sf-billabong-fix .shopify-payment-button,
html.sf-billabong-fix .shopify-payment-button__button {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  pointer-events: auto !important;
  cursor: pointer;
}

html.sf-billabong-fix .product-atc-button__button {
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  min-height: 48px;
}

html.sf-billabong-fix dialog.cart-drawer[open] {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(420px, 100vw) !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  z-index: 10050 !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  transform: none !important;
  translate: none !important;
}

html.sf-billabong-fix dialog.cart-drawer[open] .cart-drawer__panel,
html.sf-billabong-fix dialog.cart-drawer[open] .cart-drawer__content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  box-sizing: border-box;
}

html.sf-billabong-fix dialog.cart-drawer[open] .cart-drawer__header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px !important;
  border-bottom: 1px solid #e5e5e5;
  flex: 0 0 auto;
}

html.sf-billabong-fix dialog.cart-drawer[open] .cart-drawer__title {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  letter-spacing: .04em;
  font-weight: 500 !important;
}

html.sf-billabong-fix dialog.cart-drawer[open] .cart-drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

html.sf-billabong-fix dialog.cart-drawer[open] .cart-drawer__body {
  flex: 1 1 auto !important;
  overflow: auto !important;
  padding: 4px 24px 24px !important;
  box-sizing: border-box;
}

html.sf-billabong-fix .sf-bb-cart-line {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #ececec;
}

html.sf-billabong-fix .sf-bb-cart-line img,
html.sf-billabong-fix .sf-bb-cart-photo {
  width: 88px;
  height: 110px;
  object-fit: cover;
  background: #f2f2f2;
  display: block;
}

html.sf-billabong-fix .sf-bb-cart-copy {
  min-width: 0;
}

html.sf-billabong-fix .sf-bb-cart-name,
html.sf-billabong-fix .sf-bb-cart-meta,
html.sf-billabong-fix .sf-bb-cart-qty {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}

html.sf-billabong-fix .sf-bb-cart-name {
  font-weight: 500;
}

html.sf-billabong-fix .sf-bb-cart-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #111;
  font-size: 15px;
  font-weight: 600;
}

html.sf-billabong-fix dialog.cart-drawer[open] .cart-drawer__continue {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  margin: 16px 0 0 !important;
  padding: 14px 16px !important;
  background: #111 !important;
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  border: 0 !important;
}

html.sf-billabong-fix .sf-bb-bag {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}

html.sf-billabong-fix .cart-page__header {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 8px;
}

html.sf-billabong-fix .cart-page__title {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

html.sf-billabong-fix .sf-bb-bag__line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #ececec;
}

html.sf-billabong-fix .sf-bb-bag__line img,
html.sf-billabong-fix .sf-bb-bag__line .sf-bb-cart-photo {
  width: 96px;
  height: 120px;
}

html.sf-billabong-fix .sf-bb-bag__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #111;
  margin-top: 8px;
}

html.sf-billabong-fix .sf-bb-bag__qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

html.sf-billabong-fix .sf-bb-bag__qty span {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
}

html.sf-billabong-fix .sf-bb-bag__line-price {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

html.sf-billabong-fix .sf-bb-bag__empty {
  margin: 24px 0;
  font-size: 16px;
}

html.sf-billabong-fix .sf-bb-bag__checkout {
  display: block;
  margin-top: 18px;
  padding: 14px 16px;
  background: #111;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

html.sf-billabong-fix .sf-bb-checkout {
  max-width: 1080px;
  margin: 28px auto 72px;
  padding: 0 24px 48px;
}

html.sf-billabong-fix .sf-bb-checkout h1 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 500;
}

html.sf-billabong-fix .sf-bb-checkout .woocommerce form .form-row {
  margin-bottom: 14px;
}

html.sf-billabong-fix .sf-bb-checkout .woocommerce input.input-text,
html.sf-billabong-fix .sf-bb-checkout .woocommerce select,
html.sf-billabong-fix .sf-bb-checkout .woocommerce textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  box-sizing: border-box;
}

html.sf-billabong-fix .sf-bb-checkout #place_order {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  background: #111;
  color: #fff;
  border: 0;
  cursor: pointer;
}

html.sf-billabong-fix .product-card__gallery [data-image-wrapper],
html.sf-billabong-fix .product-card__image-wrapper {
  position: relative;
  width: 100% !important;
  height: auto !important;
  overflow: hidden;
}

html.sf-billabong-fix .product-card__slides {
  display: block !important;
  height: auto !important;
  transform: none !important;
}

html.sf-billabong-fix .product-card__slide {
  width: 100% !important;
  height: auto !important;
  flex: none !important;
}

html.sf-billabong-fix .product-card__slide:not(:first-child) {
  display: none !important;
}

html.sf-billabong-fix .product-card__gallery [data-image-container] {
  display: block;
}

/* Color dots stay one row of circles and switch the card photo. */
html.sf-billabong-fix .product-card__swatches-viewport {
  height: auto !important;
  overflow: hidden;
  margin: 8px 0 0;
}

html.sf-billabong-fix .product-card__swatches-list {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

html.sf-billabong-fix .product-card__swatch {
  position: relative !important;
  flex: 0 0 1.5rem !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 50%;
  overflow: hidden;
}

html.sf-billabong-fix .product-card__swatch-image {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

html.sf-billabong-fix .product-card__swatch[data-active] {
  box-shadow: 0 0 0 1px #111;
}

/* Athlete tiles were one full-bleed square each. Lay them out in a row. */
html.sf-billabong-fix .collection-cards-v2__blocks {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

html.sf-billabong-fix .collection-cards-v2__blocks > .heading-block,
html.sf-billabong-fix .collection-cards-v2__blocks > .text-block,
html.sf-billabong-fix .collection-cards-v2__blocks > h2 {
  flex: 1 0 100%;
  width: 100%;
}

html.sf-billabong-fix .collection-card-block {
  flex: 0 0 calc((100% - 32px) / 3);
  width: calc((100% - 32px) / 3) !important;
  max-width: calc((100% - 32px) / 3);
  min-width: 0;
  height: auto !important;
}

html.sf-billabong-fix .collection-card-block [data-image-wrapper] {
  position: relative !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

html.sf-billabong-fix .collection-card-block [data-image-container] {
  padding-bottom: 100% !important;
}

html.sf-billabong-fix .collection-card-block [data-image-picture],
html.sf-billabong-fix .collection-card-block [data-image],
html.sf-billabong-fix .collection-card-block img.collection-card-block__image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

@media (max-width: 749px) {
  html.sf-billabong-fix .collection-card-block {
    flex-basis: calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2);
  }
}

/* Swiper never starts, so a carousel stays one clipped row. Show every product in a grid. */
html.sf-billabong-fix .product-carousel-v2__component:not([data-state="ready"]) .product-carousel-v2__viewport,
html.sf-billabong-fix .product-carousel-v2:not([data-state="ready"]) .product-carousel-v2__viewport {
  overflow: visible !important;
  height: auto !important;
}

html.sf-billabong-fix .product-carousel-v2__component:not([data-state="ready"]) .product-carousel-v2__track,
html.sf-billabong-fix .product-carousel-v2:not([data-state="ready"]) .product-carousel-v2__track {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
  width: 100% !important;
  transform: none !important;
}

html.sf-billabong-fix .product-carousel-v2__component:not([data-state="ready"]) .product-carousel-v2__slide,
html.sf-billabong-fix .product-carousel-v2:not([data-state="ready"]) .product-carousel-v2__slide,
html.sf-billabong-fix .product-carousel-v2__component:not([data-state="ready"]) .sf-bb-rail-card {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
}

html.sf-billabong-fix .product-carousel-v2[data-sf-bb-rail-live] .product-carousel-v2__viewport,
html.sf-billabong-fix .product-carousel-v2-block[data-sf-bb-rail-live] .product-carousel-v2__viewport {
  overflow: visible !important;
  height: auto !important;
}

html.sf-billabong-fix .product-carousel-v2[data-sf-bb-rail-live] .product-carousel-v2__track,
html.sf-billabong-fix .product-carousel-v2-block[data-sf-bb-rail-live] .product-carousel-v2__track {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
  width: 100% !important;
  transform: none !important;
}

html.sf-billabong-fix .product-carousel-v2[data-sf-bb-rail-live] .product-carousel-v2__slide,
html.sf-billabong-fix .product-carousel-v2-block[data-sf-bb-rail-live] .product-carousel-v2__slide {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

html.sf-billabong-fix .product-carousel-v2[data-sf-bb-rail-live] .product-carousel-v2__navigation,
html.sf-billabong-fix .product-carousel-v2-block[data-sf-bb-rail-live] .product-carousel-v2__navigation {
  display: none !important;
}

html.sf-billabong-fix .product-carousel-v2__slide .sf-bb-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  position: relative !important;
}

html.sf-billabong-fix .product-carousel-v2__slide .sf-bb-card__media {
  position: relative !important;
  display: block !important;
  aspect-ratio: 4 / 5;
  overflow: hidden !important;
  background: #efefef;
}

html.sf-billabong-fix .sf-bb-card__media > .sf-bb-card__photo-link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

html.sf-billabong-fix .sf-bb-card__media > .sf-bb-card__photo-link .sf-bb-card__photo {
  width: 100% !important;
  height: 100% !important;
}

/* Collection listing is a multi-row grid, not one scrolling line. */
html.sf-billabong-fix .collection-products:has(product-card),
html.sf-billabong-fix .collection-products:has(.product-card) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
}

html.sf-billabong-fix:has(product-card) .wc-empty:not(.ajaxcart__empty),
html.sf-billabong-fix:has(.product-card) .collection-products:not(:has(product-card)):not(:has(.product-card)) {
  display: none !important;
}

html.sf-billabong-fix:has([data-sf-bb-plp]) .collection-cards-v2,
html.sf-billabong-fix:has([data-sf-bb-plp]) .wc-empty:not(.ajaxcart__empty) {
  display: none !important;
}

html.sf-billabong-fix .sf-bb-plp {
  width: min(1440px, calc(100% - 48px));
  margin: 24px auto 48px;
}

html.sf-billabong-fix .sf-bb-plp__tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

html.sf-billabong-fix .sf-bb-plp__tile {
  color: inherit;
  text-decoration: none;
}

html.sf-billabong-fix .sf-bb-plp__tile img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f2f2f2;
}

html.sf-billabong-fix .sf-bb-plp__tile span {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
}

html.sf-billabong-fix .sf-bb-plp__head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  display: block !important;
}

html.sf-billabong-fix .sf-bb-plp__head p {
  margin: 6px 0 20px;
  color: #5c5c5c;
}

html.sf-billabong-fix .sf-bb-plp__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
  height: auto !important;
  overflow: visible !important;
}

html.sf-billabong-fix .sf-bb-plp .sf-bb-card {
  display: flex !important;
  flex-direction: column;
  position: relative !important;
  min-width: 0;
  background: transparent;
}

html.sf-billabong-fix .sf-bb-plp .sf-bb-card__media {
  position: relative !important;
  display: block !important;
  aspect-ratio: 4 / 5;
  overflow: hidden !important;
  background: #efefef;
}

html.sf-billabong-fix .sf-bb-card__photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transition: opacity .2s ease;
}

html.sf-billabong-fix .sf-bb-card__photo--hover {
  opacity: 0;
}

html.sf-billabong-fix .sf-bb-card:hover .sf-bb-card__photo--hover[src] {
  opacity: 1;
}

html.sf-billabong-fix .sf-bb-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 2px 6px;
  background: #111;
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
}

html.sf-billabong-fix .sf-bb-plp .sf-bb-card__photo-link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
}

html.sf-billabong-fix .sf-bb-card__sizes {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 8px 12px;
  background: rgba(255, 255, 255, .94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

html.sf-billabong-fix .sf-bb-card:hover .sf-bb-card__sizes {
  opacity: 1;
  pointer-events: auto;
}

html.sf-billabong-fix .sf-bb-card__sizes span {
  width: auto;
  color: #111;
  font-size: 12px;
}

html.sf-billabong-fix .sf-bb-card__sizes div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  max-width: 100%;
}

html.sf-billabong-fix .sf-bb-card__title {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
}

html.sf-billabong-fix .sf-bb-card__title a {
  color: inherit;
  text-decoration: none;
}

html.sf-billabong-fix .sf-bb-card__price {
  margin: 2px 0 0;
  font-size: 14px;
  color: #111;
}

html.sf-billabong-fix .sf-bb-card__compare s {
  margin-left: 6px;
  color: #8a8a8a;
}

html.sf-billabong-fix .sf-bb-card__sizes a {
  color: inherit;
  text-decoration: none;
  min-width: 1.6em;
  text-align: center;
  font-size: 13px;
}

/* Hide PLP / home / search card color swatches (size chips stay). */
html.sf-billabong-fix .sf-bb-card__swatches,
html.sf-billabong-fix .product-card__swatches,
html.sf-billabong-fix .SearchResultCard__swatches,
html.sf-billabong-fix .search-result-card__swatches,
html.sf-billabong-fix [data-card-swatches],
html.sf-billabong-fix .product-card__color-swatches {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html.sf-billabong-fix .sf-bb-card__swatches {
  display: none;
  gap: 6px;
  margin-top: 10px;
  min-height: 22px;
}

html.sf-billabong-fix .sf-bb-card__swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  background: #fff;
  cursor: pointer;
  flex: 0 0 22px;
}

html.sf-billabong-fix .sf-bb-card__swatch[data-active="true"] {
  outline: 1px solid #111;
  outline-offset: 2px;
}

html.sf-billabong-fix .sf-bb-card__swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html.sf-billabong-fix .sf-bb-plp__pager {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 36px 0;
  font-size: 14px;
}

html.sf-billabong-fix .sf-bb-plp__pager a,
html.sf-billabong-fix .sf-bb-plp__pager span {
  color: #111;
  text-decoration: none;
  min-width: 28px;
  text-align: center;
}

html.sf-billabong-fix .sf-bb-plp__pager [aria-current="page"] {
  text-decoration: underline;
}

html.sf-billabong-fix .sf-bb-plp__rec-title,
html.sf-billabong-fix .sf-bb-plp__blurb-title {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 500;
}

html.sf-billabong-fix .sf-bb-plp__blurb {
  max-width: 720px;
  color: #444;
  line-height: 1.5;
}

html.sf-billabong-fix .sf-bb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 989px) {
  html.sf-billabong-fix .sf-bb-plp__tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html.sf-billabong-fix .sf-bb-plp__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 989px) {
  html.sf-billabong-fix .product-carousel-v2__component:not([data-state="ready"]) .product-carousel-v2__track,
  html.sf-billabong-fix .product-carousel-v2:not([data-state="ready"]) .product-carousel-v2__track,
  html.sf-billabong-fix .product-carousel-v2[data-sf-bb-rail-live] .product-carousel-v2__track,
  html.sf-billabong-fix .product-carousel-v2-block[data-sf-bb-rail-live] .product-carousel-v2__track,
  html.sf-billabong-fix .collection-products:has(product-card),
  html.sf-billabong-fix .collection-products:has(.product-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Dream Inn / Unforgettable Legacy rails were reduced to 24px swatches. */
html.sf-billabong-fix .product-carousel-v2__component[data-state="ready"] .product-carousel-v2__viewport {
  overflow: hidden;
}

html.sf-billabong-fix .product-carousel-v2__track > .sf-bb-rail-card,
html.sf-billabong-fix [data-woocommerce-home-rail] > .sf-bb-rail-card {
  flex: 0 0 calc((100% - 64px) / 4.5) !important;
  width: calc((100% - 64px) / 4.5) !important;
  height: auto !important;
  max-width: none !important;
  list-style: none;
}

html.sf-billabong-fix .sf-bb-rail-link {
  display: block;
  color: #202020;
  text-decoration: none;
}

html.sf-billabong-fix .sf-bb-rail-photo {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f3f3f3;
}

html.sf-billabong-fix .sf-bb-rail-title {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 749px) {
  html.sf-billabong-fix .product-carousel-v2__component[data-state="ready"] .product-carousel-v2__track > .sf-bb-rail-card,
  html.sf-billabong-fix [data-woocommerce-home-rail] > .sf-bb-rail-card {
    flex-basis: calc((100% - 12px) / 1.6) !important;
    width: calc((100% - 12px) / 1.6) !important;
  }
}

html.sf-billabong-fix .product-carousel-v2__component:not([data-state="ready"]) .product-carousel-v2__track > .sf-bb-rail-card,
html.sf-billabong-fix .product-carousel-v2__component:not([data-state="ready"]) .product-carousel-v2__slide {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
}

/* Lightweight product page used when the captured PDP shell fatals. */
html.sf-billabong-fix .sf-bb-pdp {
  max-width: 1200px;
  margin: 24px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: start;
}

html.sf-billabong-fix .sf-bb-pdp__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f3f3f3;
}

html.sf-billabong-fix .sf-bb-pdp__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

html.sf-billabong-fix .sf-bb-pdp__thumbs button {
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
}

html.sf-billabong-fix .sf-bb-pdp__thumbs button.is-active {
  border-color: #202020;
}

html.sf-billabong-fix .sf-bb-pdp__thumbs img {
  display: block;
  width: 72px;
  height: 90px;
  object-fit: cover;
}

html.sf-billabong-fix .sf-bb-pdp__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

html.sf-billabong-fix .sf-bb-pdp__price {
  margin-bottom: 20px;
  font-size: 16px;
}

html.sf-billabong-fix .sf-bb-pdp__desc {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.5;
}

html.sf-billabong-fix .sf-bb-pdp__label {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

html.sf-billabong-fix .sf-bb-pdp__swatches,
html.sf-billabong-fix .sf-bb-pdp__size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html.sf-billabong-fix .sf-bb-pdp__swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid transparent;
  box-sizing: border-box;
}

html.sf-billabong-fix .sf-bb-pdp__swatch.is-active {
  border-color: #111;
}

html.sf-billabong-fix .sf-bb-pdp__swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.sf-billabong-fix .sf-bb-pdp__size {
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d0d0d0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

html.sf-billabong-fix .sf-bb-pdp__size.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

html.sf-billabong-fix .sf-bb-pdp__colors,
html.sf-billabong-fix .sf-bb-pdp__sizes {
  margin-bottom: 18px;
}

body.sf-bb-pdp-sizes .sf-bb-pdp table.variations,
body.sf-bb-pdp-sizes .sf-bb-pdp .variations {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
}

/* Theme style.css hides the real footer bar and the Klaviyo embed never loads. */
html.sf-billabong-fix .shopify-section-group-footer-group,
html.sf-billabong-fix #footer {
  background: #fff !important;
}

html.sf-billabong-fix #footer .footer__bottom {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  padding: 24px 32px 28px;
  border-top: 1px solid #e6e6e6;
  background: #fff;
}

html.sf-billabong-fix #footer .footer__newsletter {
  max-width: 28.125rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html.sf-billabong-fix #footer .footer__social {
  display: flex !important;
  justify-content: flex-end;
  gap: 24px;
  padding: 0;
}

html.sf-billabong-fix #footer .footer__social a {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  place-items: unset;
  color: #111;
}

html.sf-billabong-fix #footer .footer__social svg {
  width: 24px !important;
  height: 24px !important;
}

html.sf-billabong-fix #footer .footer__credits {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #303030;
}

html.sf-billabong-fix #footer .footer__legal {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  grid-template-columns: none !important;
  gap: 18px;
  padding: 0 !important;
}

@media (min-width: 1024px) {
  html.sf-billabong-fix #footer .footer__bottom {
    flex-direction: row;
    align-items: center;
  }

  html.sf-billabong-fix #footer .footer__credits {
    flex: 1;
  }

  html.sf-billabong-fix #footer .footer__social {
    order: 2;
  }

  html.sf-billabong-fix #footer .footer__link-list-group {
    height: auto !important;
  }
}

@media (max-width: 1023px) {
  html.sf-billabong-fix #footer .footer__credits,
  html.sf-billabong-fix #footer .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

html.sf-billabong-fix #footer .footer__newsletter form.sf-bb-news {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100%;
  margin: 0 !important;
  color: #111;
  font-size: 13px;
  line-height: 1.45;
}

html.sf-billabong-fix .sf-bb-news__offer {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

html.sf-billabong-fix .sf-bb-news__copy,
html.sf-billabong-fix .sf-bb-news__fine {
  margin: 0;
  color: #303030;
  font-size: 12px;
}

html.sf-billabong-fix .sf-bb-news input[type="email"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #111;
  background: #fff;
  box-sizing: border-box;
}

html.sf-billabong-fix .sf-bb-news__opts {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

html.sf-billabong-fix #footer .sf-bb-news button {
  width: auto;
  align-self: flex-start;
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #111;
  background: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

html.sf-billabong-fix .product-images__grid-image {
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

html.sf-billabong-fix .product-variants__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html.sf-billabong-fix .pdp-product-swatches__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1 !important;
}

html.sf-billabong-fix .price-component__compare-at {
  margin-left: 8px;
  color: #767676;
  text-decoration: line-through;
}

/* Store-wide coupon: bold now + grey strikethrough was */
html.sf-billabong-fix.sf-coupon-prices .price-component__savings {
  display: none !important;
}

html.sf-billabong-fix.sf-coupon-prices .price-component__compare-at,
html.sf-billabong-fix.sf-coupon-prices .sf-bb-card__compare,
html.sf-billabong-fix.sf-coupon-prices .sf-bb-card__compare s,
body.sf-billabong-fix.sf-coupon-prices .price-component__compare-at,
body.sf-billabong-fix.sf-coupon-prices .sf-bb-card__compare {
  display: inline !important;
  visibility: visible !important;
  color: #878787 !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
  margin-left: 0.35em;
}

html.sf-billabong-fix.sf-coupon-prices .price-component__current,
html.sf-billabong-fix.sf-coupon-prices [data-price-current],
html.sf-billabong-fix.sf-coupon-prices .sf-bb-card__price,
html.sf-billabong-fix.sf-coupon-prices .sf-bb-pdp__price {
  color: #111 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Cart drawer / bag: coupon now + strikethrough was */
html.sf-billabong-fix .sf-bb-cart-meta .sf-theme-price-now,
html.sf-billabong-fix .sf-bb-bag__line-price .sf-theme-price-now,
html.sf-billabong-fix .sf-bb-cart-foot .sf-theme-price-now {
  color: #111 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
html.sf-billabong-fix .sf-bb-cart-meta .sf-theme-price-was,
html.sf-billabong-fix .sf-bb-bag__line-price .sf-theme-price-was,
html.sf-billabong-fix .sf-bb-cart-foot .sf-theme-price-was {
  color: #878787 !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
  margin-left: 0.35em;
}

html.sf-billabong-fix .sf-bb-pdp .single_add_to_cart_button {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 0;
  background: #111;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 749px) {
  html.sf-billabong-fix .sf-bb-pdp {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
}
