:root {
  --starbord-primary: #f1f1f1;
  --starbord-primary-dark: #f1f1f1;
  --starbord-accent: #f1f1f1;
  --starbord-bg: #0F1116;
  --starbord-bg-dark: #0F1116;
  --starbord-surface: #0F1116;
  --starbord-border: rgba(241, 241, 241, 0.22);
  --starbord-text: #e6eef8;
  --starbord-muted: #cfd5dd;
  --starbord-radius: 12px;
  --starbord-button-bg: #0F1116;
  --starbord-button-fg: #F1F1F1;
  --starbord-button-hover-fg: #0F1116;

  --bs-primary: var(--starbord-primary);
  --bs-primary-rgb: 241, 241, 241;
  --bs-link-color: var(--starbord-primary);
  --bs-link-hover-color: var(--starbord-primary-dark);
  --bs-body-color: var(--starbord-text);
  --bs-border-color: var(--starbord-border);
}

@font-face {
  font-family: "Tintin";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/tintin.ttf") format("truetype");
  font-display: swap;
}

body {
  background: #0C0F17;
  color: var(--starbord-text);
  font-family: Inter, "Segoe UI", sans-serif;
  min-height: 100vh;
}

main,
#main,
#wrapper {
  background: transparent;
}

a {
  color: var(--starbord-primary);
}

a:hover,
a:focus {
  color: var(--starbord-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--starbord-text);
  font-weight: 700;
}

h1,
h2,
h3,
.page-title,
.section-title {
  font-family: "Tintin", Inter, sans-serif;
  letter-spacing: 0.01em;
}

.header-logo,
.footer-logo,
.logo {
  background-image: url("../img/LogoStarbord.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.stb-header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stb-header-main {
  position: relative;
  z-index: 20;
  background: #0c0f17;
}

.stb-header-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 4.25rem;
  gap: 1rem;
}

.stb-header-main__brand {
  flex: 0 0 auto;
}

.stb-header-main__title {
  margin: 0;
  font-size: inherit;
  line-height: 1;
}

.stb-header-main__wordmark {
  display: inline-flex;
  color: #fff;
  font-family: "Tintin", Impact, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
}

.stb-header-main__wordmark span {
  color: #fff;
}

.stb-header-cart,
.stb-header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
}

.stb-header-cart {
  justify-self: center;
}

.stb-header-account {
  justify-self: end;
}

.stb-header-cart__icon,
.stb-header-account__icon {
  color: #fff;
  font-size: 1.6rem;
}

.stb-header-cart__label,
.stb-header-account__name {
  display: inline-flex !important;
  align-items: center;
  min-height: 1.6rem;
  padding-inline: 0.8rem;
  border: 1px solid rgba(241, 241, 241, 0.35);
  border-radius: 999px;
  background: #0F1116;
  color: #F1F1F1;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.stb-header-cart__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0 0.3rem;
  margin-left: -0.35rem;
  border: 1px solid #f1f1f1;
  border-radius: 999px;
  background-color: var(--starbord-bg);
  color: var(--starbord-button-fg);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.ps-mainmenu {
  background: transparent;
}

.ps-mainmenu__tree,
.ps-mainmenu__submenu {
  background: rgba(15, 17, 22, 0.98);
  border-color: var(--starbord-border);
}

.ps-mainmenu__tree-link:hover,
.ps-mainmenu__submenu a:hover {
  background: var(--starbord-surface);
}

.ps-mainmenu__tree-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ps-searchbar__input {
  min-height: 2.5rem;
  padding-inline: 2.5rem;
  border-radius: 999px;
}

.stb-header-nav-full-width {
  background: rgba(15, 17, 22, 0.96);
}

.stb-home {
  min-height: calc(100vh - 4.25rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.stb-shop__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--starbord-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.stb-shop__title {
  max-width: 38rem;
  margin: 0;
  color: var(--starbord-text);
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}

.stb-shop__head {
  margin-bottom: 2.5rem;
}

.stb-shop .module-products {
  padding: 0;
}

/* Grille dynamique PrestaShop */
.stb-shop .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
}

/* Empêche les cards de déborder de leur colonne */
.stb-shop .product-miniature {
  min-width: 0;
  width: 100%;
}

/* PrestaShop's primary badge uses !important inside bs-base; override it in that layer. */
@layer bs-base {
  .product-flags .badge.new:not(.discount) {
    border-color: #f1f1f1 !important;
    background-color: var(--starbord-bg) !important;
    color: #f1f1f1 !important;
  }
}

.stb-product-card {
  --stb-card-title-track: 5.875rem;
  display: grid;
  grid-template-rows: var(--stb-card-title-track) auto 1fr;
  align-content: stretch;
  height: 100%;
  min-width: 0;
  padding: 0 0 1.4rem;
  background: transparent;
  color: var(--starbord-text);
  text-align: center;
}

.stb-product-card__title {
  display: -webkit-box;
  height: 2.5em;
  margin: 1rem;
  align-self: start;
  overflow: hidden;
  color: #fff;
  font-family: "Tintin", Impact, sans-serif;
  font-size: clamp(1rem, 3vw, 1.55rem);
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.stb-product-card__title:hover {
  color: #fff;
}

.stb-product-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  border-radius: 14px;
}

.stb-product-card__visual .product-miniature__image-container {
  width: 100%;
  height: 100%;
  border: 0;
  background: #20212a;
}

.stb-product-card__visual .product-miniature__image-link,
.stb-product-card__visual picture,
.stb-product-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.stb-product-card__visual .product-miniature__image-link {
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  outline: 0;
}

.stb-product-card__visual img {
  object-fit: contain;
}

.stb-product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 0.7rem;
  padding-top: 1rem;
  margin-top: 0;
}

.stb-product-card__price {
  color: var(--starbord-muted);
  font-family: "Tintin", Impact, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.stb-product-card__choose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 17.5rem);
  min-height: 2.55rem;
  border: 1px solid var(--starbord-primary);
  border-radius: 999px;
  color: var(--starbord-muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.stb-product-card__choose:hover {
  background: var(--starbord-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Surface complète et stable des anciennes miniatures hors accueil */
.stb-shop .product-miniature__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid var(--starbord-border);
  border-radius: 8px;
  background: var(--starbord-surface);
}

/* Zone image constante : 4 / 5 comme les affiches */
.stb-shop .product-miniature__top {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0C0F17;
}

/* L’image remplit la zone sans casser le ratio */
.stb-shop .product-miniature__top img,
.stb-shop .product-miniature__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zone texte et action alignée au bas de chaque card */
.stb-shop .product-miniature__bottom {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

/* Le bouton est repoussé en bas, quelle que soit la longueur du titre */
.stb-shop .product-miniature__actions {
  margin-top: auto;
}

.stb-shop .product-miniature__add,
.stb-shop .product-miniature__details {
  width: 100%;
}

.stb-shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--starbord-border);
  border-radius: 8px;
  background: var(--starbord-surface);
  color: var(--starbord-text);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.stb-shop-card:hover {
  border-color: rgba(241, 241, 241, 0.6);
  box-shadow: 0 16px 35px rgba(241, 241, 241, 0.08);
  color: var(--starbord-text);
  transform: translateY(-5px);
}

.stb-shop-card__image-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b0f14;
}

.stb-shop-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.stb-shop-card:hover .stb-shop-card__image {
  transform: scale(1.04);
}

.stb-shop-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
}

.stb-shop-card__title {
  margin: 0;
  color: var(--starbord-text);
  font-family: "Tintin", Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1.08;
}

.stb-shop-card__price {
  margin: 0.75rem 0 1.25rem;
  color: var(--starbord-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.stb-shop-card__action {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding-inline: 0.9rem;
  margin-top: auto;
  border: 1px solid rgba(241, 241, 241, 0.35);
  border-radius: 999px;
  color: var(--starbord-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.stb-shop-card:hover .stb-shop-card__action {
  border-color: var(--starbord-primary);
  background: var(--starbord-primary);
  color: #fff;
}

.product-miniature__inner {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--starbord-border);
  border-radius: var(--starbord-radius);
  background: var(--starbord-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-miniature:hover .product-miniature__inner {
  border-color: rgba(241, 241, 241, 0.6);
  box-shadow: 0 16px 35px rgba(241, 241, 241, 0.08);
  transform: translateY(-4px);
}

.product-miniature__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
}

.product-miniature__title {
  color: var(--starbord-text);
  font-family: "Tintin", Inter, sans-serif;
  font-size: 1.25rem;
  line-height: 1.1;
  text-decoration: none;
}

.product-miniature__price {
  color: var(--starbord-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.product-miniature__actions {
  margin-top: auto;
}

.product-miniature__add {
  width: 100%;
}

#products {
  padding-block: 2rem 5rem;
}

#js-product-list-header,
#js-product-list-top,
#js-product-list-bottom {
  margin-bottom: 1.5rem;
}

.page-title-section {
  margin: 0;
  color: var(--starbord-text);
  font-family: "Tintin", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.products,
.product-list {
  gap: 1.5rem;
}

.product__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.8fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.product__left,
.product__right,
.product__bottom-left,
.product__bottom-right {
  min-width: 0;
}

.product__right {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--starbord-border);
  border-radius: var(--starbord-radius);
  background: var(--starbord-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.product__name {
  margin: 0;
  color: var(--starbord-text);
  font-family: "Tintin", Inter, sans-serif;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
}

.product__manufacturer,
.product__description-short {
  color: var(--starbord-muted);
}

.product__actions {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--starbord-border);
}

.product__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.36fr);
  gap: 2rem;
  padding-block: 1.5rem 5rem;
}

.accordion-item,
.product__accordion {
  overflow: hidden;
  border-color: var(--starbord-border);
  border-radius: var(--starbord-radius);
  background: var(--starbord-surface);
}

.accordion-button,
.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--starbord-text);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--starbord-primary);
  box-shadow: inset 0 -1px 0 var(--starbord-primary);
}

.accordion-body,
.product__description {
  color: var(--starbord-muted);
}

@media (max-width: 991px) {
  .product__container,
  .product__bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product__container {
    gap: 1.5rem;
    padding-block: 2rem;
  }

  .product__bottom {
    padding-bottom: 3.5rem;
  }

  .stb-shop .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .stb-header-main__inner {
    min-height: 3.75rem;
    gap: 0.4rem;
  }

  .stb-header-main__wordmark {
    font-size: 1.35rem;
  }

  .stb-header-cart__label,
  .stb-header-account__name {
    display: none !important;
  }

  .stb-home {
    padding-block: 2.5rem;
  }

}

.btn-primary,
.product-add-to-cart .btn,
.product-actions .add-to-cart {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--starbord-primary);
  --bs-btn-border-color: var(--starbord-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--starbord-primary-dark);
  --bs-btn-hover-border-color: var(--starbord-primary-dark);
  --bs-btn-active-bg: var(--starbord-primary-dark);
  --bs-btn-active-border-color: var(--starbord-primary-dark);
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-primary:hover,
.product-add-to-cart .btn:hover,
.product-actions .add-to-cart:hover {
  box-shadow: none;
  transform: none;
}

input,
textarea,
select,
.form-control,
.form-select {
  background-color: var(--starbord-surface);
  border-color: var(--starbord-border);
  border-radius: var(--starbord-radius);
  color: var(--starbord-text);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
  background-color: #0F1116;
  border-color: var(--starbord-primary);
  box-shadow: none;
  color: var(--starbord-text);
}

.product-miniature .thumbnail-container,
.products .product-miniature,
.product-information,
.product-tabs,
.cart-summary,
.card {
  border-radius: var(--starbord-radius);
}

.product-miniature .thumbnail-container {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-miniature .thumbnail-container:hover {
  border-color: rgba(241, 241, 241, 0.6);
  box-shadow: 0 10px 30px rgba(241, 241, 241, 0.08);
  transform: translateY(-4px);
}

.product-title a,
.product-miniature .product-title a {
  color: var(--starbord-text);
}

.product-title a:hover,
.product-miniature .product-title a:hover {
  color: var(--starbord-muted);
}

.product-price,
.current-price {
  color: var(--starbord-primary);
}

.breadcrumb,
.pagination,
.tabs {
  color: var(--starbord-muted);
}

.footer-container {
  border-top: 1px solid var(--starbord-border);
  color: var(--starbord-text);
  background: linear-gradient(180deg, var(--starbord-bg), #000);
}

.stb-footer {
  min-height: 22rem;
  border-top: 1px solid #222;
  background: linear-gradient(#0f1116, #000);
  color: #fff;
  font-family: Inter, "Segoe UI", sans-serif;
}

.stb-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1.2rem;
  text-align: center;
}

.stb-footer__title {
  margin-bottom: 1.2rem;
  color: #fff;
  font-family: "Tintin", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
}

.stb-footer__logo {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.2rem;
}

.stb-footer__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.stb-footer__subtext {
  margin-bottom: 0.5rem;
  color: #b3b3b3;
  font-size: 1.05rem;
}

.stb-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.stb-footer__contact-text {
  margin-bottom: 0.3rem;
  color: var(--starbord-muted);
  font-size: 1.1rem;
  font-weight: 600;
}

.stb-footer__contact-mail,
.stb-footer__link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.stb-footer__contact-mail {
  padding: 0.2rem 0.8rem;
}

.stb-footer__contact-mail:hover,
.stb-footer__link:hover {
  color: var(--starbord-muted);
}

.stb-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2.5rem 1.2rem;
  font-size: 1.05rem;
}

.stb-footer__socials {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 700px) {
  .stb-footer__main {
    padding-top: 1.2rem;
    padding-bottom: 0.7rem;
  }

  .stb-footer__title {
    font-size: 1.3rem;
  }

  .stb-footer__bottom {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.2rem 0.7rem;
    font-size: 0.93rem;
  }
}

.footer {
  background: transparent;
}

.footer a,
.footer__copyright {
  color: var(--starbord-muted);
}

.footer a:hover {
  color: #fff;
}

.page-title,
.page-header h1,
.section-title {
  color: var(--starbord-text);
  text-shadow: none;
}

.breadcrumb {
  background: transparent;
  border-bottom: 1px solid var(--starbord-border);
}

.pagination .page-link,
.nav-tabs .nav-link {
  background: var(--starbord-surface);
  border-color: var(--starbord-border);
  color: var(--starbord-muted);
}

.pagination .page-link:hover,
.pagination .active .page-link,
.nav-tabs .nav-link.active {
  background: var(--starbord-primary);
  border-color: var(--starbord-primary);
  color: #fff;
}
@media (max-width: 991px) {
  .stb-shop .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stb-shop .product-miniature__inner {
    min-height: 29rem;
  }
}

@media (max-width: 767px) {
  .stb-shop .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .stb-shop .product-miniature__inner {
    min-height: 0;
  }

  .stb-shop .product-miniature__bottom {
    padding: 0.9rem;
  }

  .stb-shop .product-miniature__title {
    font-size: 1.1rem;
  }
}

  /* Final overrides for the Starbord product cards. */
  .stb-shop .stb-product-card .product-miniature__image-container,
  .stb-shop .stb-product-card .product-miniature__image-link {
    border: 0;
    box-shadow: none;
    outline: 0;
  }

  .stb-shop .stb-product-card .product-miniature__image-container:hover,
  .stb-shop .stb-product-card .product-miniature__image-link:hover {
    border: 0;
    box-shadow: none;
  }

  .stb-shop .stb-product-card__title,
  .stb-shop .stb-product-card__title:hover,
  .stb-shop .stb-product-card__title:focus {
    color: #fff;
  }

  .stb-shop .stb-product-card,
  .stb-shop .stb-product-card .product-miniature__inner {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .stb-shop .stb-product-card:hover,
  .stb-shop .stb-product-card:hover .product-miniature__inner {
    border: 0;
    box-shadow: 0 14px 28px rgba(241, 241, 241, 0.08);
    transform: translateY(-5px);
  }

  .stb-shop .stb-product-card:focus-within {
    outline: 2px solid rgba(241, 241, 241, 0.55);
    outline-offset: 4px;
  }

/* Starbord main-site interactive treatment. */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.button,
a.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
.stb-product-card__choose,
.stb-shop-card__action,
.product-miniature__add,
.product-miniature__details,
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem !important;
  border: 1px solid var(--starbord-button-fg) !important;
  border-radius: 999px !important;
  background: var(--starbord-button-bg) !important;
  color: var(--starbord-button-fg) !important;
  box-shadow: none !important;
  outline: 0 !important;
  clip-path: none !important;
  font-family: "Tintin", Arial, sans-serif !important;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  text-transform: lowercase;
  transform: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

button::before,
.btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-outline-primary::before,
.btn-outline-secondary::before,
.button::before,
a.btn::before,
input[type="submit"]::before,
input[type="button"]::before,
input[type="reset"]::before,
.stb-product-card__choose::before,
.stb-shop-card__action::before,
.product-miniature__add::before,
.product-miniature__details::before,
.pagination .page-link::before {
  display: none !important;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.button:hover,
.button:focus,
a.btn:hover,
a.btn:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
.stb-product-card__choose:hover,
.stb-product-card__choose:focus,
.stb-shop-card:hover .stb-shop-card__action,
.stb-shop-card__action:hover,
.stb-shop-card__action:focus,
.product-miniature__add:hover,
.product-miniature__add:focus,
.product-miniature__details:hover,
.product-miniature__details:focus,
.pagination .page-link:hover,
.pagination .page-link:focus,
.pagination .active .page-link {
  border-color: var(--starbord-button-fg) !important;
  background: var(--starbord-button-fg) !important;
  color: var(--starbord-button-hover-fg) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

button:active,
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-outline-primary:active,
.btn-outline-secondary:active,
.button:active,
a.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
.stb-product-card__choose:active,
.stb-shop-card__action:active,
.product-miniature__add:active,
.product-miniature__details:active,
.pagination .page-link:active {
  background: var(--starbord-button-fg) !important;
  color: var(--starbord-button-hover-fg) !important;
  transform: scale(0.97) !important;
}

button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline-primary:focus-visible,
.btn-outline-secondary:focus-visible,
.button:focus-visible,
a.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible,
.stb-product-card__choose:focus-visible,
.stb-shop-card__action:focus-visible,
.product-miniature__add:focus-visible,
.product-miniature__details:focus-visible,
.pagination .page-link:focus-visible {
  outline: 2px solid var(--starbord-button-fg) !important;
  outline-offset: 3px;
}

button:disabled,
.btn:disabled,
.btn.disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
  border-color: rgba(241, 241, 241, 0.35) !important;
  background: rgba(15, 17, 22, 0.55) !important;
  color: rgba(241, 241, 241, 0.45) !important;
  cursor: not-allowed;
  opacity: 1;
}

.stb-header-cart__label,
.stb-header-account__name,
.dropdown-toggle,
.accordion-button,
.accordion-button:not(.collapsed) {
  border: 1px solid var(--starbord-button-fg) !important;
  border-radius: 999px !important;
  background: var(--starbord-button-bg) !important;
  color: var(--starbord-button-fg) !important;
  box-shadow: none !important;
  font-family: "Tintin", Arial, sans-serif !important;
  text-transform: lowercase;
}

.stb-header-cart:hover .stb-header-cart__label,
.stb-header-account:hover .stb-header-account__name,
.dropdown-toggle:hover,
.dropdown-toggle:focus,
.accordion-button:hover,
.accordion-button:focus,
.accordion-button:not(.collapsed):hover,
.accordion-button:not(.collapsed):focus {
  border-color: var(--starbord-button-fg) !important;
  background: var(--starbord-button-fg) !important;
  color: var(--starbord-button-hover-fg) !important;
  box-shadow: none !important;
}

input,
textarea,
select,
.form-control,
.form-select,
.ps-searchbar__input {
  border: 1px solid rgba(241, 241, 241, 0.32) !important;
  border-radius: 999px !important;
  background: #0F1116 !important;
  color: #F1F1F1 !important;
  box-shadow: none !important;
}

textarea {
  border-radius: 18px !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus,
.ps-searchbar__input:focus {
  border-color: #F1F1F1 !important;
  background: #0F1116 !important;
  color: #F1F1F1 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Keep consent checkboxes and checkout radio selections visible on the dark theme. */
input.form-check-input[type="checkbox"],
input.form-check-input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  border-color: #cfd5dd !important;
  background-color: #0F1116 !important;
  opacity: 1;
  cursor: pointer;
}

input.form-check-input[type="checkbox"]:checked {
  border-color: #f1f1f1 !important;
  background-color: #f1f1f1 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230F1116' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m3 8 3.3 3.3L13 4.5'/%3E%3C/svg%3E") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 85% 85%;
}

input.form-check-input[type="radio"]:checked {
  border-color: #f1f1f1 !important;
  background-color: #f1f1f1 !important;
  background-image: radial-gradient(circle, #0F1116 0 32%, transparent 38%) !important;
}

input.form-check-input[type="checkbox"]:focus-visible,
input.form-check-input[type="radio"]:focus-visible {
  outline: 2px solid #f1f1f1 !important;
  outline-offset: 3px;
}

/* Responsive storefront overrides. */
img,
picture,
video,
iframe {
  max-width: 100%;
}

.product__container,
.product__bottom,
.stb-shop .products,
.product-list {
  min-width: 0;
}

@media (max-width: 991px) {
  .product__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .product__bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .product__left {
    width: min(100%, 42rem);
    margin-inline: auto;
  }

  .product__right {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .container,
  .container-fluid,
  #wrapper .container {
    padding-inline: 1rem;
  }

  .stb-header-main__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }

  .stb-header-main__brand,
  .stb-header-main__title,
  .stb-header-main__wordmark {
    min-width: 0;
  }

  .stb-header-main__wordmark {
    max-width: 100%;
    overflow: hidden;
    font-size: 1.2rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stb-header-cart,
  .stb-header-account {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    justify-content: center;
  }

  .stb-header-cart__icon,
  .stb-header-account__icon {
    font-size: 1.4rem;
  }

  .stb-shop {
    padding-block: 2rem 3rem;
  }

  .stb-shop__head {
    margin-bottom: 1.5rem;
  }

  .stb-shop__title,
  .page-title-section,
  .product__name {
    font-size: 1.8rem;
    line-height: 1.12;
  }

  .stb-shop .products {
    gap: 1rem;
    width: calc(100% - 1.5rem);
    margin-inline: auto;
  }

  .stb-product-card__title {
    height: 2.5em;
    margin: 0.75rem 0.25rem;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .stb-product-card {
    --stb-card-title-track: 3.875rem;
  }

  .stb-product-card__footer {
    gap: 0.6rem;
    padding-top: 0.75rem;
  }

  .stb-product-card__choose {
    width: 100%;
  }

  .product__container {
    gap: 1rem;
    padding-block: 1.25rem 2rem;
  }

  .product__right {
    padding: 1rem;
  }

  .product__actions {
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .product-add-to-cart,
  .product-add-to-cart .add,
  .product-add-to-cart .btn,
  .product-actions .add-to-cart {
    width: 100%;
  }

  .product-quantity,
  .product-quantity .qty,
  .product-quantity .add {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.75rem;
  }

  .product-quantity .qty {
    flex: 0 0 5.5rem;
  }

  .product-quantity .add {
    flex: 1 1 12rem;
  }

  .product__bottom {
    gap: 1rem;
    padding-block: 0 3rem;
  }

  .accordion-button {
    width: 100%;
    min-height: 3rem;
    white-space: normal;
  }

  .cart-overview,
  .cart-summary,
  .checkout-step,
  .card {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .cart-item {
    grid-template-columns: minmax(5rem, 28%) minmax(0, 1fr);
  }

  .cart-grid-body,
  .cart-grid-right {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .stb-shop .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 1rem);
    gap: 0.75rem;
  }

  .stb-product-card {
    width: 100%;
  }

  .stb-product-card__title {
    height: 2.5em;
    font-size: 0.95rem;
  }

  .stb-product-card__visual {
    aspect-ratio: 4 / 5;
  }

  .product__right {
    border-inline: 0;
    border-radius: 0;
    padding-inline: 0;
    box-shadow: none;
  }

  .stb-footer__contact-mail,
  .stb-footer__link {
    overflow-wrap: anywhere;
  }
}

/* Product page layout: gallery first, purchase panel second on mobile. */
.product__images,
.product__carousel,
.product__carousel .carousel-inner,
.product__carousel .carousel-item {
  width: 100%;
  min-width: 0;
}

.product__carousel .carousel-item picture,
.product__carousel .carousel-item img {
  display: block;
  width: 100%;
  height: auto;
}

.product__description-short,
.product__description {
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .product__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem;
    width: 100%;
    padding-block: 1rem 2rem;
  }

  .product__left {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 28rem);
    margin-inline: auto;
  }

  .product__right {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    padding: 1rem;
  }

  .product__carousel {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--starbord-radius);
    background: #fff;
  }

  .product__carousel .carousel-item picture {
    display: grid;
    place-items: center;
  }

  .product__carousel .carousel-item img {
    max-height: min(58vh, 32rem);
    object-fit: contain;
  }

  .product__thumbnails {
    margin-top: 0.75rem;
  }

  .product__name {
    margin-bottom: 0.75rem;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .product__description-short,
  .product__description {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .product__actions-qty-add.product-quantity {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    width: 100%;
  }

  .product-actions__quantity.product__quantity {
    width: 100%;
  }

  .quantity-button__group.input-group {
    display: grid;
    grid-template-columns: 2.75rem minmax(3.5rem, 1fr) 2.75rem;
    width: 100%;
    gap: 0.4rem;
  }

  .quantity-button__group .btn,
  .quantity-button__group .form-control {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    margin: 0 !important;
  }

  .quantity-button__group .btn {
    padding: 0 !important;
  }

  .quantity-button__group .form-control {
    max-width: none !important;
    padding-inline: 0.4rem !important;
    text-align: center;
  }

  .product__add-to-cart.add,
  .product__add-to-cart-button {
    width: 100%;
  }

  .product__add-to-cart-button {
    min-height: 3rem;
    white-space: normal;
  }

  .product__bottom {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }
}

/* Checkout surfaces aligned with the Starbord theme. */
.checkout-steps,
.checkout-steps__desktop,
.checkout-steps__mobile {
  background: var(--starbord-bg);
  color: var(--starbord-text);
}

.checkout-steps__mobile {
  border: 1px solid var(--starbord-border);
  border-radius: var(--starbord-radius);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.checkout-steps__title,
.checkout-steps__subtitle,
.checkout-steps__number,
.checkout-steps__btn {
  color: var(--starbord-text) !important;
}

.checkout-steps__subtitle {
  color: var(--starbord-muted) !important;
}

.checkout-steps__step {
  background: transparent;
  border-color: var(--starbord-border);
}

.checkout-steps__desktop .checkout-steps__list {
  display: flex;
  width: 100%;
  padding: 0;
  list-style: none;
}

.checkout-steps__desktop .checkout-steps__step {
  flex: 1 1 0;
  min-width: 0;
}

.checkout-steps__desktop .checkout-steps__btn {
  width: calc(100% - 0.75rem);
  min-height: 3rem;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.checkout-steps__mobile .checkout-steps__left {
  display: block;
  flex: 0 0 4.625rem;
}

.checkout-steps__mobile .checkout-steps__right {
  flex: 1 1 auto;
  min-width: 0;
}

.checkout-steps__mobile .checkout-steps__title {
  font-size: clamp(1rem, 4vw, 1.25rem);
  overflow-wrap: anywhere;
}

.checkout-steps__step:has(.active),
.checkout-steps__step:has([aria-selected="true"]) {
  background: var(--starbord-button-bg);
}

.checkout-step,
.step {
  border: 1px solid var(--starbord-border);
  border-radius: var(--starbord-radius);
  background: var(--starbord-surface) !important;
  color: var(--starbord-text);
}

.step.step--current,
.step.js-current-step {
  background: var(--starbord-button-bg) !important;
}

.step__title,
.step__content {
  background: transparent;
  color: var(--starbord-text);
}

.step__title hr {
  border-color: var(--starbord-border);
  opacity: 1;
}

/* Checkout address cards: dark surface and readable text in every state. */
.checkout-grid .address__list .address-card,
.checkout-grid .address__list .address-card--radio.selected,
.checkout-grid .address__list .address-card--radio:hover,
.checkout-grid .address__list .address-card--radio:focus-within {
  background-color: var(--starbord-surface) !important;
  border-color: var(--starbord-border) !important;
  color: var(--starbord-text);
}

.checkout-grid .address__list .address-card--radio.selected,
.checkout-grid .address__list .address-card--radio:focus-within {
  border-color: #a9c7ff !important;
}

.checkout-grid .address__list .address-card__container,
.checkout-grid .address__list .address-card__alias,
.checkout-grid .address__list .address-card__content {
  color: var(--starbord-text) !important;
}

.checkout-grid .address__list .address-card__edit {
  color: #f1f1f1 !important;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.checkout-grid .address__list .address-card__edit:hover,
.checkout-grid .address__list .address-card__edit:focus-visible {
  color: #a9c7ff !important;
}

.checkout-grid .address__list .address-card__delete {
  color: #ff9a9a !important;
}

.checkout-grid .address__list .address-card__delete:hover,
.checkout-grid .address__list .address-card__delete:focus-visible {
  color: #ffd1d1 !important;
}

/* Legal terms: the CMS content is copied into this modal by checkout JS. */
#checkout-modal .modal-content,
#checkout-modal .modal-header,
#checkout-modal .modal-body,
.page-content--cms {
  background-color: var(--starbord-bg) !important;
  color: var(--starbord-text) !important;
}

#checkout-modal .modal-content {
  border: 1px solid var(--starbord-border);
}

#checkout-modal .modal-header {
  border-bottom-color: var(--starbord-border);
}

#checkout-modal .modal-body :is(h1, h2, h3, h4, h5, h6, p, li, span),
.page-content--cms :is(h1, h2, h3, h4, h5, h6, p, li, span) {
  color: var(--starbord-text) !important;
}

#checkout-modal .modal-body a,
.page-content--cms a {
  color: #a9c7ff !important;
}

#checkout-modal .btn-close {
  filter: invert(1);
}

/* Order confirmation and payment status, without obscuring status meaning. */
.stb-order-confirmation-status,
.order-confirmation__details,
.order-confirmation__account-transformation,
#ps_checkout-displayOrderConfirmation .alert,
#ps_checkout-displayPaymentReturn .card,
#ps_checkout-displayPaymentReturn .alert,
#ps_checkout-notification-container .alert,
#ps_checkout-loader.express-checkout-block,
#ps_checkout-express-checkout-banner.express-checkout-block,
.ps-checkout.content {
  background-color: var(--starbord-bg) !important;
  color: var(--starbord-text) !important;
  border: 1px solid var(--starbord-border) !important;
}

.stb-order-confirmation-status {
  border-color: #70c9a1 !important;
}

#ps_checkout-displayOrderConfirmation .alert-warning,
#ps_checkout-displayPaymentReturn .alert-warning,
#ps_checkout-notification-container .alert-warning-custom {
  border-color: #e4bd67 !important;
}

#ps_checkout-displayOrderConfirmation .alert-danger,
#ps_checkout-displayPaymentReturn .alert-danger,
#ps_checkout-notification-container .alert-danger-custom {
  border-color: #f49494 !important;
}

.stb-order-confirmation-status :is(h1, h2, h3, p, li, span),
.order-confirmation__details :is(h1, h2, h3, p, li, span),
.order-confirmation__account-transformation :is(h1, h2, h3, p, li, span),
#ps_checkout-displayPaymentReturn .card :is(h1, h2, h3, p, li, span),
#ps_checkout-displayOrderConfirmation .alert,
#ps_checkout-displayPaymentReturn .alert,
#ps_checkout-notification-container .alert,
#ps_checkout-loader .express-checkout-spinner-text,
#ps_checkout-express-checkout-banner .express-checkout-label {
  color: var(--starbord-text) !important;
}

.stb-order-confirmation-status a,
.order-confirmation__details a:not(.btn),
.order-confirmation__account-transformation a:not(.btn),
#ps_checkout-displayOrderConfirmation .alert a,
#ps_checkout-displayPaymentReturn .card a:not(.btn),
.ps-checkout.content a {
  color: #a9c7ff !important;
}

/* Payment and order feedback can also use PrestaShop's generic alert/card markup. */
#notifications .alert,
.checkout-grid .alert,
.checkout-grid .card,
#order-confirmation .alert,
#order-confirmation .card,
.ps-checkout .alert {
  background-color: var(--starbord-bg) !important;
  color: var(--starbord-text) !important;
  border: 1px solid var(--starbord-border) !important;
}

#notifications .alert :is(h1, h2, h3, h4, p, li, span),
.checkout-grid .alert :is(h1, h2, h3, h4, p, li, span),
.checkout-grid .card :is(h1, h2, h3, h4, p, li, span),
#order-confirmation .alert :is(h1, h2, h3, h4, p, li, span),
#order-confirmation .card :is(h1, h2, h3, h4, p, li, span),
.ps-checkout .alert :is(h1, h2, h3, h4, p, li, span) {
  color: var(--starbord-text) !important;
}

#notifications .alert a:not(.btn),
.checkout-grid .alert a:not(.btn),
.checkout-grid .card a:not(.btn),
#order-confirmation .alert a:not(.btn),
#order-confirmation .card a:not(.btn),
.ps-checkout .alert a:not(.btn) {
  color: #a9c7ff !important;
}

:is(#notifications, .checkout-grid, #order-confirmation, .ps-checkout) .alert-success {
  border-color: #70c9a1 !important;
}

:is(#notifications, .checkout-grid, #order-confirmation, .ps-checkout) .alert-warning {
  border-color: #e4bd67 !important;
}

:is(#notifications, .checkout-grid, #order-confirmation, .ps-checkout) .alert-danger {
  border-color: #f49494 !important;
}

:is(#notifications, .checkout-grid, #order-confirmation, .ps-checkout) .alert-info {
  border-color: #a9c7ff !important;
}

#notifications .alert .btn-close,
.checkout-grid .alert .btn-close,
#order-confirmation .alert .btn-close {
  filter: invert(1);
}

/* Bootstrap's layered bg-light !important otherwise keeps this post-order card white. */
@layer bs-base {
  #order-confirmation .order-confirmation__account-transformation.bg-light {
    background-color: var(--starbord-bg) !important;
    color: var(--starbord-text) !important;
  }
}

@media (max-width: 767px) {
  .checkout-steps__mobile {
    padding: 0.85rem;
  }

  .checkout-step,
  .step {
    border-inline: 0;
    border-radius: 0;
  }
}

