/* Shared storefront design: tokens, header, navigation, cards, forms and footer.
   Loaded after the legacy store.css. Page layouts live in custom_home/product.css. */
.b39-custom {
  --xt-navy: #1b1a41;
  --xt-violet: #6d5cff;
  --xt-pink: #ff2677;
  --xt-muted: #707078;
  --xt-border: #ededf1;
  --xt-soft: #f7f7f9;
  --b39-red: var(--xt-violet);
  --b39-accent: var(--xt-violet);
  --b39-focus: var(--xt-violet);
  --b39-ink: #18181c;
  --b39-asphalt: var(--xt-navy);
  --b39-border: var(--xt-border);
  --b39-rule: var(--xt-border);
  --b39-paper: #fff;
  --b39-radius: 12px;
  --b39-heading: Arial, sans-serif;
  background: #fff url("../image/39bulletsGraybg.png") center top / cover no-repeat fixed;
  color: #222;
  font:
    400 16px/1.55 Arial,
    sans-serif;
}
@media (max-width: 1199px) {
  .b39-custom {
    background-attachment: scroll;
    background-position: center top;
    background-size: 100vw auto;
    background-repeat: repeat-y;
  }
}
.b39-custom *,
.b39-custom *::before,
.b39-custom *::after {
  box-sizing: border-box;
}
.b39-custom a {
  color: inherit;
  text-decoration: none;
}
.b39-custom a:hover {
  color: var(--xt-violet);
}
.b39-custom h1,
.b39-custom h2,
.b39-custom h3,
.b39-custom h4 {
  color: #151519;
  font-family: inherit;
}
.b39-custom .container {
  width: 100%;
  max-width: 1400px;
  padding-inline: 24px;
}
.b39-custom .btn {
  border-radius: 8px;
  box-shadow: none;
  text-shadow: none;
}
.b39-custom .btn-primary {
  background: var(--xt-violet);
  border-color: var(--xt-violet);
  color: #fff;
}
.b39-custom .btn-primary:hover {
  background: #5143df;
  border-color: #5143df;
}
.b39-custom .form-control,
.b39-custom .form-select {
  font-size: 16px;
  border-color: #dedee5;
}
.b39-custom .form-control:focus,
.b39-custom .form-select:focus {
  border-color: var(--xt-violet);
  box-shadow: 0 0 0 3px #6d5cff22;
}
.b39-custom :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--xt-violet);
  outline-offset: 3px;
}
.b39-custom .dropdown-menu {
  border: 1px solid var(--xt-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px #17153214;
}
.b39-custom .dropdown-item {
  white-space: normal;
}
.b39-custom .dropdown-item:hover {
  color: var(--xt-violet);
  background: #f4f2ff;
}
.b39-custom #top {
  position: relative;
  z-index: 1050;
  overflow: visible;
  background: #434182 !important;
  margin: 0;
  padding: 9px 0;
  border: 0;
  color: #fff;
  font-size: 13px;
}
.xt-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.xt-locale,
.xt-top-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.b39-custom #top a,
.b39-custom #top .btn {
  color: #fff;
  font-size: 13px;
}
.b39-custom #top .dropdown-menu a,
.b39-custom #top .dropdown-menu {
  color: #222;
}
.b39-custom header.xt-header {
  padding: 0;
  background: transparent;
  border: 0;
}
.xt-header-inner {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 30px 24px 24px;
  background: var(--xt-navy);
}
.xt-logo {
  display: block;
  width: 225px;
}
.xt-logo img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
  padding: 8px;
}
.xt-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.xt-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #252453;
  border-radius: 12px;
  color: #fff !important;
  font-size: 23px;
}
.xt-icon:hover {
  background: var(--xt-violet);
}
.xt-search-form {
  display: flex;
  padding: 5px;
  background: #fff;
  border-radius: 10px;
  height: 54px;
}
.xt-search-form input {
  order: 2;
  flex: 1;
  width: 0;
  min-width: 50px;
  border: 0;
  box-shadow: none;
  font-size: 15px !important;
}
.xt-search-form select {
  order: 1;
  width: 145px;
  max-width: 145px;
  flex: 0 1 145px !important;
  border: 0;
  border-right: 1px solid #eee;
  border-radius: 0;
  font-size: 13px !important;
}
.xt-search-form button {
  order: 3;
  background: var(--xt-pink);
  color: #fff;
  border: 0;
  padding: 0 20px;
  font-size: 14px;
  text-transform: uppercase;
}
.xt-search-form button:hover {
  background: #de155f;
  color: #fff;
}
.b39-custom header #cart {
  padding: 0;
  margin: 0;
  width: auto;
}
.b39-custom header #cart > .dropdown > button {
  background: #252453;
  color: #fff;
  border: 0;
  min-height: 48px;
  max-width: 155px;
  font-size: 12px;
  white-space: normal;
  border-radius: 12px;
}
.b39-custom header #cart > .dropdown > button i {
  font-size: 22px;
}
.b39-custom header #cart .dropdown-menu {
  width: 360px;
  max-width: calc(100vw - 32px);
  font-size: 14px;
}
.b39-custom #menu.bg-primary {
  background: var(--xt-navy) !important;
  border: 0;
  border-radius: 0 0 32px 32px;
  margin: 0 0 24px;
  padding: 10px 24px 18px;
  isolation: auto;
}
.b39-custom #menu::before {
  content: none;
}
.b39-custom #menu .navbar-nav {
  width: 100%;
  gap: 8px;
  align-items: center;
}
.b39-custom #menu .navbar-nav > .nav-item:first-child {
  flex: 0 0 270px;
  min-width: 0;
  margin-right: 16px;
  background: var(--xt-violet);
  border-radius: 10px;
}
.b39-custom #menu.bg-primary .navbar-nav > .nav-item > .nav-link {
  color: #fff;
  padding: 12px 18px;
  font-size: 16px;
  text-transform: none;
  font-weight: 400;
}
.b39-custom #menu .navbar-nav > .nav-item:first-child > .nav-link::before {
  content: "☷";
  margin-right: 18px;
  font-size: 22px;
}
.b39-custom #menu .nav-link:hover {
  background: #ffffff12;
  border-radius: 10px;
}
.b39-custom #menu .navbar-toggler {
  color: #fff;
  border-color: #ffffff55;
  min-width: 44px;
  min-height: 44px;
}
.b39-custom #menu .dropdown-menu {
  max-height: 70vh;
  overflow: auto;
  font-size: 14px;
}
.b39-custom #menu .b39-brand-tile {
  font-size: 14px;
}
.b39-custom #menu .b39-brands-grid.show {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
}
.b39-custom #menu .b39-brands-grid > li {
  display: block !important;
  flex: 0 0 150px !important;
  width: 150px !important;
  max-width: 150px;
  max-width: 150px;
}
.b39-custom main .breadcrumb {
  background: none;
  padding: 14px 0 24px;
  font-size: 14px;
}
.b39-custom main #content > h1 {
  font:
    600 clamp(26px, 3vw, 38px)/1.25 Arial,
    sans-serif;
  letter-spacing: -0.02em;
}
/* One card component across modules, categories, search and related products. */
.b39-custom .xt-card,
.b39-custom #product-list .xt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e3e3e8;
  border-radius: 24px;
  overflow: visible;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.b39-custom .xt-card:hover,
.b39-custom .xt-card:focus-within {
  box-shadow: 0 10px 32px #17153216;
  border-color: #cfcfd8;
}
.b39-custom .xt-card > .image {
  float: none;
  width: 100%;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}
.b39-custom .xt-card .image a {
  display: block;
  background: #fff;
}
.b39-custom .xt-card .image img,
.b39-custom #product-list .xt-card .image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0;
}
.b39-custom .xt-card > .content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.b39-custom .xt-card .description,
.b39-custom #product-list .xt-card .description {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 8px 12px;
  text-align: center;
  min-height: 0;
  margin-bottom: 0;
}
.b39-custom .xt-card h4 {
  font:
    400 16px/1.45 Arial,
    sans-serif;
  margin: 0 0 12px;
}
.b39-custom .xt-card h4 a {
  font-weight: 400 !important;
  color: #151519;
}
.b39-custom .xt-card .rating {
  color: #f3a318;
  margin-top: auto;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  gap: 3px;
  justify-content: center;
}
.b39-custom .xt-card .rating .fa-stack {
  width: 20px;
  height: 22px;
  line-height: 22px;
  vertical-align: middle;
}
.b39-custom .xt-card .rating .fa-star {
  font-size: 19px;
}
.b39-custom .xt-card .rating .fa-regular.fa-star {
  color: #5143df;
}
.b39-custom .xt-card .rating .fa-solid.fa-star {
  color: #efb51c;
}
.b39-custom .xt-card .price,
.b39-custom #product-list .xt-card .price {
  color: var(--xt-pink);
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  padding: 0;
}
.b39-custom .xt-card .price-new {
  color: var(--xt-pink);
  font-weight: 400;
}
.b39-custom .xt-card .price-old {
  color: #999;
  font-size: 15px;
  text-decoration: line-through;
}
.b39-custom .xt-card .price-tax {
  display: block;
  color: #777;
  font-size: 12px;
}
.b39-custom .xt-card form,
.b39-custom #product-list .xt-card form {
  padding: 0;
  margin: 0;
}
.b39-custom .xt-card .xt-card-cart-form,
.b39-custom #product-list .xt-card .xt-card-cart-form {
  max-height: none;
  margin: 10px 0 0;
  padding: 0;
  overflow: visible;
  opacity: 1;
}
.b39-custom .xt-card .xt-card-cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--xt-violet);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.b39-custom .xt-card .xt-card-cart-button:hover {
  background: #5143df;
}
.b39-custom .xt-card .xt-card-actions {
  position: absolute;
  top: 20px;
  right: 18px;
  bottom: auto;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 0;
  background: none;
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.b39-custom .xt-card:hover .xt-card-actions,
.b39-custom .xt-card:focus-within .xt-card-actions {
  opacity: 1;
  transform: none;
}
.b39-custom .xt-card .xt-card-actions > *,
.b39-custom #product-list .xt-card .xt-card-actions > button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #ededf1;
  border-radius: 50%;
  color: #151519;
  background: #fff;
  font-size: 17px;
  box-shadow: 0 2px 10px #00000008;
}
.b39-custom .xt-card .xt-card-actions > *:hover {
  color: #fff !important;
  background: var(--xt-violet) !important;
}
.b39-custom #product-list.product-list .xt-card {
  flex-direction: row;
}
.b39-custom #product-list.product-list .xt-card > .image {
  flex: 0 0 28%;
}
/* Keep catalog and search grid cards compact without changing list view. */
.b39-custom #product-list:not(.product-list) .xt-card .image img {
  height: clamp(180px, 22vw, 240px);
  aspect-ratio: auto;
}
.b39-custom #product-list:not(.product-list) .xt-card .description {
  flex: 0 1 auto;
  padding: 12px 8px 10px;
}
.b39-custom #product-list:not(.product-list) .xt-card h4 {
  margin-bottom: 7px;
}
.b39-custom #product-list:not(.product-list) .xt-card .rating {
  margin-top: 0;
  margin-bottom: 6px;
}
.b39-custom #product-list:not(.product-list) .xt-card .price {
  margin-top: 0;
}
.b39-custom .pagination .active > .page-link {
  background: var(--xt-violet);
  border-color: var(--xt-violet);
}
.b39-custom #product-list + .row {
  position: relative;
  min-height: 38px;
  align-items: center;
}
.b39-custom #product-list + .row > .col-sm-6:first-child {
  position: absolute;
  left: 50%;
  width: max-content;
  max-width: 100%;
  transform: translateX(-50%);
  text-align: center !important;
}
.b39-custom #product-list + .row > .col-sm-6:last-child {
  width: auto;
  margin-left: auto;
  text-align: right !important;
}
@media (max-width: 575px) {
  .b39-custom #product-list + .row {
    flex-direction: column;
    gap: 8px;
  }
  .b39-custom #product-list + .row > .col-sm-6:first-child {
    position: static;
    width: 100%;
    transform: none;
  }
  .b39-custom #product-list + .row > .col-sm-6:last-child {
    width: 100%;
    margin-left: 0;
    text-align: center !important;
  }
}
#b39-free-shipping-progress {
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 1px solid #dcd7ff;
  border-radius: 14px;
  background: linear-gradient(110deg, #f8f7ff, #fff);
  color: #29254a;
}
#b39-free-shipping-progress .b39-free-shipping-message {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}
#b39-free-shipping-progress .b39-free-shipping-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8e5f5;
}
#b39-free-shipping-progress .b39-free-shipping-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5143df, #8174ff);
  transition: width .25s ease;
}
#b39-free-shipping-progress.is-free {
  border-color: #bfdfd0;
  background: linear-gradient(110deg, #f0faf5, #fff);
  color: #245641;
}
#b39-free-shipping-progress.is-free .b39-free-shipping-fill {
  background: #438c68;
}
/* Footer retains actual store contacts and account subscription destination. */
.b39-custom footer.xt-footer {
  background: #fafafa;
  border: 0;
  margin-top: 70px;
  padding: 40px 0;
  color: #555;
  font-size: 14px;
}
.xt-footer-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 32px;
  border-radius: 22px;
  background: #434182;
  color: #fff;
  margin-bottom: 48px;
}
.b39-custom .xt-footer-band h2 {
  color: #fff;
  font-size: 28px;
  margin: 0 0 4px;
  font-weight: 400;
}
.xt-footer-band p {
  margin: 0;
}
.b39-custom footer.xt-footer .xt-footer-band .btn {
  background: var(--xt-violet);
  color: #fff;
  padding: 14px 28px;
}
.b39-custom footer.xt-footer .xt-footer-band .btn:is(:hover, :focus-visible, :active) {
  color: #fff;
  background: #5143df;
}
.b39-custom footer.xt-footer h5 {
  color: #18181c;
  text-transform: none;
  font-size: 18px;
  font-weight: 600;
}
.b39-custom footer.xt-footer a {
  color: #555;
}
.b39-custom footer.xt-footer a:hover {
  color: var(--xt-violet);
}
.b39-custom footer.xt-footer ul {
  line-height: 2;
}
.b39-custom footer.xt-footer .b39-footer-banner {
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
}
.b39-custom footer.xt-footer .b39-footer-banner i {
  display: inline-block;
  color: var(--xt-violet);
  font-size: 28px;
  transition: transform .2s ease;
}
.b39-custom footer.xt-footer .b39-footer-banner:is(:hover, :focus-visible) i {
  transform: scale(1.14);
}
.b39-custom footer.xt-footer .b39-footer-banner strong {
  color: #222;
  text-transform: none;
  font-weight: 600;
}
.b39-custom footer.xt-footer .b39-footer-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.b39-custom footer.xt-footer .b39-footer-column {
  min-width: 0;
}
.b39-custom footer.xt-footer .b39-footer-column h5 {
  overflow-wrap: anywhere;
}
.b39-custom footer.xt-footer .b39-footer-column ul {
  padding-left: 0;
}
.b39-custom footer.xt-footer .b39-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
@media (max-width: 1199px) {
  .b39-custom footer.xt-footer .b39-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .b39-custom footer.xt-footer .b39-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
}
@media (max-width: 1199px) {
  .xt-header-inner {
    grid-template-columns: 210px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 24px 20px;
  }
  .xt-logo {
    width: 190px;
  }
  .xt-header-actions {
    gap: 6px;
  }
  .xt-icon {
    width: 40px;
  }
  .b39-custom header #cart > .dropdown > button {
    max-width: 110px;
  }
  .xt-search-form select {
    max-width: 110px;
  }
  .xt-search-form button {
    padding-inline: 12px;
  }
  .b39-custom #menu .navbar-nav > .nav-item:first-child {
    flex-basis: 210px;
  }
}
@media (max-width: 991px) {
  .xt-header-inner {
    grid-template-columns: 1fr auto;
  }
  .xt-search {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .xt-logo {
    width: 190px;
  }
  .xt-top-message {
    display: none;
  }
  .b39-custom #menu .navbar-nav {
    align-items: stretch;
    gap: 4px;
    padding-top: 10px;
  }
  .b39-custom #menu .navbar-nav > .nav-item:first-child {
    flex: auto;
    margin: 0;
  }
  .b39-custom #menu .dropdown-menu {
    position: static;
  }
  .b39-custom .xt-card .xt-card-actions {
    opacity: 1;
    transform: none;
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: auto;
    width: auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0;
  }
}
@media (max-width: 575px) {
  .b39-custom .container {
    padding-inline: 16px;
  }
  .xt-top-links {
    gap: 12px;
    font-size: 12px;
  }
  .xt-header-inner {
    padding: 18px 12px;
    gap: 16px 10px;
  }
  .xt-logo {
    width: 130px;
  }
  .xt-logo img {
    height: 56px;
  }
  .xt-icon {
    width: 34px;
    height: 40px;
    font-size: 18px;
  }
  .b39-custom header #cart > .dropdown > button {
    max-width: 88px;
    min-height: 40px;
    font-size: 10px;
    padding: 5px;
  }
  .b39-custom header #cart > .dropdown > button i {
    font-size: 16px;
  }
  .xt-search-form select {
    max-width: 100px;
  }
  .xt-search-form button {
    font-size: 12px;
    padding: 0 10px;
  }
  .b39-custom #menu.bg-primary {
    border-radius: 0 0 20px 20px;
    padding: 8px 14px;
  }
  .b39-custom .xt-card,
  .b39-custom #product-list .xt-card {
    padding: 6px;
    border-radius: 16px;
  }
  .b39-custom .xt-card h4 {
    font-size: 14px;
  }
  .b39-custom .xt-card .price {
    font-size: 18px;
  }
  .b39-custom .xt-card .xt-card-actions {
    gap: 4px;
  }
  .b39-custom .xt-card .xt-card-actions > * {
    width: 30px;
    height: 34px;
    min-height: 34px;
    font-size: 14px;
  }
  .xt-footer-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .b39-custom .xt-footer-band h2 {
    font-size: 24px;
  }
}
@media (hover: none) {
  .b39-custom .xt-card .xt-card-actions {
    opacity: 1;
    transform: none;
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: auto;
    width: auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .b39-custom .xt-card,
  .b39-custom .xt-card .xt-card-actions,
  .b39-custom footer.xt-footer .b39-footer-banner i {
    transition: none;
  }
}

/* Mini-cart sits above the navigation (1030), below Bootstrap dialogs. */
.b39-custom header.xt-header { position: relative; z-index: 1040; overflow: visible; }
.b39-custom header #cart > .xt-mini-cart > .xt-cart-toggle {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 10px;
  max-width: none;
  text-align: center;
  overflow: visible;
}
.b39-custom header #cart .xt-cart-toggle.show,
.b39-custom header #cart .xt-cart-toggle:hover { background: var(--xt-violet); }
.b39-custom header #cart .xt-cart-count {
  position: absolute; top: -7px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 50px; background: var(--xt-pink); color: #fff;
  font-size: 12px; line-height: 22px;
}
.b39-custom header #cart .xt-cart-panel {
  width: 560px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  margin-top: 10px !important;
  background: #fff;
  color: #252525;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 26px #0002;
  font-size: 14px;
}
.b39-custom header #cart .xt-cart-products { margin: 0; }
.b39-custom header #cart .xt-cart-product {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto 30px;
  align-items: center; gap: 12px; padding: 10px;
  background: #f4f4f4;
}
.b39-custom header #cart .xt-cart-product + .xt-cart-product { margin-top: 8px; }
.b39-custom header #cart .xt-cart-image img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid #e1e1e1; border-radius: 4px; }
.b39-custom header #cart .xt-cart-description { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.b39-custom header #cart .xt-cart-description a { color: #222; }
.b39-custom header #cart .xt-cart-description a:hover { color: var(--xt-violet); }
.b39-custom header #cart .xt-cart-description small { display: block; color: #777; margin-top: 4px; }
.b39-custom header #cart .xt-cart-price,
.b39-custom header #cart .xt-cart-quantity { white-space: nowrap; }
.b39-custom header #cart .b39-quantity-control { justify-content: center; }
.b39-custom header #cart .b39-quantity-button { width: 26px; height: 28px; }
.b39-custom header #cart .b39-quantity-input { width: 38px; height: 28px; }
.b39-custom header #cart .b39-quantity-error { grid-column: 1 / -1; }
.b39-custom header #cart .xt-cart-remove { border: 0; background: transparent; color: #777; padding: 8px; }
.b39-custom header #cart .xt-cart-remove:hover { color: var(--xt-pink); }
.b39-custom header #cart .xt-cart-totals { margin: 14px 10px 0; font-size: 13px; }
.b39-custom header #cart .xt-cart-totals > div { display: flex; justify-content: flex-end; gap: 24px; }
.b39-custom header #cart .xt-cart-totals dt { font-weight: 400; }
.b39-custom header #cart .xt-cart-totals dd { min-width: 85px; text-align: right; margin-bottom: 4px; }
.b39-custom header #cart .xt-cart-links { display: flex; justify-content: space-between; gap: 16px; padding: 18px 10px 10px; }
.b39-custom header #cart .xt-cart-links .btn { border: 0; border-radius: 7px; padding: 14px 25px; font-size: 16px; }
.b39-custom header #cart .xt-cart-view { color: #fff; background: var(--xt-violet); }
.b39-custom header #cart .xt-cart-checkout { color: #222; background: #f5f5f5; }
.b39-custom header #cart .xt-cart-links .btn:hover { filter: brightness(.94); }
.b39-custom header #cart .xt-cart-empty { padding: 24px 12px; margin: 0; text-align: center; }
@media (max-width: 575px) {
  .b39-custom header #cart .xt-cart-panel { width: calc(100vw - 32px); }
  .b39-custom header #cart .xt-cart-product { grid-template-columns: 48px minmax(0, 1fr) 30px; gap: 8px; }
  .b39-custom header #cart .xt-cart-image { grid-row: 1 / 4; }
  .b39-custom header #cart .xt-cart-image img { width: 48px; height: 48px; }
  .b39-custom header #cart .xt-cart-description { grid-column: 2; grid-row: 1; }
  .b39-custom header #cart .xt-cart-product form { grid-column: 3; grid-row: 1 / 4; }
  .b39-custom header #cart .xt-cart-quantity { grid-column: 2; grid-row: 2; }
  .b39-custom header #cart .b39-quantity-control { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .b39-custom header #cart .xt-cart-price { grid-column: 2; grid-row: 3; justify-self: start; }
  .b39-custom header #cart .xt-cart-links { padding: 14px 0 0; gap: 10px; }
  .b39-custom header #cart .xt-cart-links .btn { flex: 1; font-size: 14px; padding: 12px 8px; }
}

/* Compact desktop header: retain readable controls, reduce empty space. */
@media (min-width: 992px) {
  .b39-custom #top { padding: 3px 0; }
  .b39-custom .xt-header-inner {
    grid-template-columns: 210px minmax(0, 1fr) auto;
    gap: 24px;
    padding: 12px 24px;
  }
  .b39-custom .xt-logo { width: 195px; }
  .b39-custom .xt-logo img { height: 56px; padding: 4px; }
  .b39-custom .xt-search-form { height: 46px; padding: 4px; }
  .b39-custom .xt-icon { width: 44px; height: 44px; font-size: 21px; }
  .b39-custom header #cart > .xt-mini-cart > .xt-cart-toggle { width: 44px; height: 44px; min-height: 44px; padding: 7px; }
  .b39-custom #menu.bg-primary { padding: 4px 24px 10px; margin-bottom: 12px; border-radius: 0 0 22px 22px; }
  .b39-custom #menu .navbar-nav > .nav-item:first-child { flex-basis: 210px; }
  .b39-custom #menu.bg-primary .navbar-nav > .nav-item > .nav-link { padding: 7px 16px; font-size: 15px; }
}

/* Search controls must fit the form's inner height, including compact headers. */
.b39-custom .xt-search-form {
  align-items: stretch;
}
.b39-custom .xt-search-form > :is(input, select, button) {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.b39-custom .xt-search-form > input {
  border-radius: 0;
}

/* Keep top-level navigation labels in their authored casing. */
.b39-custom #menu.bg-primary .navbar-nav > .nav-item:not(:first-child) > .nav-link {
  text-transform: none;
}
