.bbx-sale-badge,
.bbx-products-section .bbx-stock {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  display: inline-flex;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: #5b21b6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bbx-sale-badge--preorder,
.bbx-products-section .bbx-stock--preorder { background: #5b21b6; }

.bbx-sale-badge--upcoming,
.bbx-products-section .bbx-stock--upcoming { background: #1d4ed8; }

.bbx-sale-badge--in_stock,
.bbx-products-section .bbx-stock:not(.bbx-stock--preorder):not(.bbx-stock--restock):not(.bbx-stock--upcoming):not(.bbx-stock--sold_out) { background: #15803d; }

.bbx-sale-badge--restock,
.bbx-products-section .bbx-stock--restock { background: #c2410c; }

.bbx-sale-badge--sold_out,
.bbx-products-section .bbx-stock--sold_out { background: #52525b; }

.bbx-product-notice,
.bbx-delivery-choice {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #2d4059;
  border-left: 4px solid #12a8ff;
  border-radius: 14px;
  color: #dce6f4;
  background: linear-gradient(145deg, #111b29, #0d141e);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.bbx-product-notice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bbx-product-notice__header > strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.bbx-product-notice__stock {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(18, 168, 255, .35);
  border-radius: 999px;
  color: #92d8ff;
  background: rgba(18, 168, 255, .09);
  font-size: 12px;
  font-weight: 800;
}

.bbx-product-notice__dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.bbx-product-notice__dates > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #26374d;
  border-radius: 10px;
  background: #0b121c;
}

.bbx-product-notice__dates span,
.bbx-product-notice__dates strong {
  display: block;
}

.bbx-product-notice__dates span {
  margin-bottom: 5px;
  color: #8291a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.bbx-product-notice__dates strong {
  color: #f5f8fc;
  font-size: 14px;
  line-height: 1.3;
}

.bbx-product-notice__terms {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid #26374d;
  color: #aebacc;
  font-size: 13px;
  line-height: 1.55;
}

.bbx-delivery-choice h3 { margin-top: 0; }
.bbx-delivery-choice .woocommerce-input-wrapper label { display: block; margin: 10px 0; }
.bbx-delivery-groups { margin-top: 12px; font-size: .95em; }
.bbx-delivery-groups ul { margin: 6px 0 0 20px; }

/* Product page: compact gallery and readable two-column layout on desktop. */
body.single-product .bbx-shop-page {
  padding: 42px 0 68px;
}

body.single-product.woocommerce .bbx-shop-page > .bbx-shell {
  width: min(calc(100% - 40px), 1180px);
}

body.single-product.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  column-gap: 52px;
  align-items: start;
}

body.single-product.woocommerce div.product::before,
body.single-product.woocommerce div.product::after {
  display: none !important;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 14px;
  border: 1px solid #26364b;
  border-radius: 16px;
  background: #0f1621;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

body.single-product.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
  border-radius: 11px;
  background: #f4f5f8;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 520px;
  object-fit: contain;
}

body.single-product.woocommerce div.product .woocommerce-product-gallery__trigger {
  position: absolute !important;
  z-index: 8;
  top: 26px !important;
  right: 26px !important;
  left: auto !important;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 15, 25, .72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  font-size: 16px;
}

body.single-product.woocommerce div.product .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

body.single-product.woocommerce div.product .flex-control-thumbs li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product.woocommerce div.product .flex-control-thumbs img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #2a3a50;
  border-radius: 8px;
  background: #f4f5f8;
  opacity: .68;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

body.single-product.woocommerce div.product .flex-control-thumbs img:hover,
body.single-product.woocommerce div.product .flex-control-thumbs img.flex-active {
  border-color: #12a8ff;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(18, 168, 255, .2);
}

body.single-product.woocommerce div.product .summary {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 4px 0 0;
}

body.single-product.woocommerce div.product .summary .product_title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 40px) !important;
  line-height: 1.08;
  letter-spacing: -.035em;
}

body.single-product.woocommerce div.product .summary p.price,
body.single-product.woocommerce div.product .summary span.price {
  margin: 0 0 16px;
  font-size: 28px !important;
}

body.single-product.woocommerce div.product .woocommerce-product-details__short-description {
  margin: 18px 0;
  color: #c6d0de;
  font-size: 15px;
  line-height: 1.6;
}

body.single-product.woocommerce div.product .woocommerce-product-details__short-description p {
  margin: 0;
}

body.single-product.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  flex-wrap: wrap;
}

body.single-product.woocommerce div.product .product_meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #253247;
  color: #8997aa;
  font-size: 13px;
  line-height: 1.7;
}

body.single-product.woocommerce div.product .woocommerce-tabs,
body.single-product.woocommerce div.product .related,
body.single-product.woocommerce div.product .upsells {
  grid-column: 1 / -1;
}

body.single-product.woocommerce div.product .woocommerce-Tabs-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #26364b;
  border-radius: 16px;
  background: #0f1621;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

body.single-product.woocommerce div.product .woocommerce-Tabs-panel h2 {
  margin: 0 0 18px;
  color: #f5f8fc;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

body.single-product.woocommerce div.product .woocommerce-Tabs-panel h3 {
  margin: 28px 0 12px;
  color: #eef4fb;
  font-size: 20px;
  line-height: 1.25;
}

body.single-product.woocommerce div.product .woocommerce-Tabs-panel p,
body.single-product.woocommerce div.product .woocommerce-Tabs-panel li {
  color: #b8c3d2;
  font-size: 15px;
  line-height: 1.7;
}

body.single-product.woocommerce div.product .woocommerce-Tabs-panel ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

@media (max-width: 900px) {
  body.single-product.woocommerce div.product {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  body.single-product.woocommerce div.product .woocommerce-product-gallery {
    width: min(100%, 560px) !important;
    margin-inline: auto !important;
  }

  body.single-product.woocommerce div.product .woocommerce-tabs,
  body.single-product.woocommerce div.product .related,
  body.single-product.woocommerce div.product .upsells {
    grid-column: auto;
  }
}

.bbx-catalog-filters {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.bbx-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bbx-filter-label { min-width: 105px; font-weight: 800; }

.bbx-filter {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}

.bbx-filter:hover,
.bbx-filter.is-active {
  border-color: #6d28d9;
  color: #fff;
  background: #6d28d9;
}

.bbx-order-plan { margin-top: 28px; }

/* Product quantity selector: visually consistent with Zona Cero contributions. */
.single-product .bbx-quantity-picker {
  display: inline-flex;
  margin: 0 12px 12px 0;
  align-items: stretch;
  border: 1px solid #34445b;
  border-radius: 10px;
  overflow: hidden;
  background: #0d141e;
}

.single-product .bbx-quantity-picker .quantity {
  float: none;
  margin: 0 !important;
}

.single-product .bbx-quantity-picker input.qty {
  width: 64px !important;
  height: 52px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  border-right: 1px solid #34445b;
  border-left: 1px solid #34445b;
  border-radius: 0;
  color: #fff;
  background: #111a27;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  -moz-appearance: textfield;
}

.single-product .bbx-quantity-picker input.qty::-webkit-inner-spin-button,
.single-product .bbx-quantity-picker input.qty::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.single-product .bbx-quantity-button {
  display: grid;
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #182438;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.single-product .bbx-quantity-button:hover,
.single-product .bbx-quantity-button:focus-visible {
  color: #fff;
  background: #087fc4;
  outline: 3px solid rgba(18, 168, 255, .3);
  outline-offset: -3px;
}

.single-product .bbx-quantity-button:disabled {
  color: #667287;
  background: #111824;
  cursor: not-allowed;
}

.single-product .bbx-quantity-picker + .single_add_to_cart_button {
  min-height: 52px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .single-product .bbx-quantity-picker {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  .single-product .bbx-quantity-picker .quantity {
    flex: 1;
  }

  .single-product .bbx-quantity-picker input.qty {
    width: 100% !important;
  }

  .single-product .bbx-quantity-picker + .single_add_to_cart_button {
    width: 100%;
  }
}

/* Product reviews: WooCommerce markup is kept accessible and presented for the dark storefront. */
.single-product .woocommerce-tabs {
  clear: both;
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid #253247;
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  margin: 0 0 28px;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after { display: none; }

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }

.single-product .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  align-items: center;
  border: 1px solid #34445b;
  border-radius: 999px;
  color: #b5c0cf;
  background: #111822;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.single-product .woocommerce-tabs ul.tabs li a:hover,
.single-product .woocommerce-tabs ul.tabs li a:focus-visible,
.single-product .woocommerce-tabs ul.tabs li.active a {
  border-color: #12a8ff;
  color: #fff !important;
  background: #122438;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18, 168, 255, .18);
}

body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #fff !important;
}

.single-product .woocommerce-Tabs-panel,
.single-product .woocommerce-Reviews {
  color: #b5c0cf;
}

.single-product .woocommerce-Reviews-title,
.single-product #review_form_wrapper .comment-reply-title {
  display: block;
  margin: 0 0 16px;
  color: #f7f9fc;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

.single-product .woocommerce-noreviews { margin: 0 0 26px; }

.single-product #review_form_wrapper {
  width: min(100%, 760px);
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #29384d;
  border-radius: 14px;
  background: #0f1722;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.single-product #review_form_wrapper .comment-form > p,
.single-product #review_form_wrapper .comment-form-rating { margin: 0 0 22px; }

.single-product #review_form_wrapper label {
  display: block;
  margin: 0 0 9px;
  color: #e9eef6;
  font-weight: 800;
}

.single-product #review_form_wrapper .required { color: #ff4765; }

.single-product #review_form_wrapper p.stars {
  margin: 0;
  line-height: 1;
}

.single-product #review_form_wrapper p.stars span {
  display: inline-flex;
  gap: 5px;
}

.single-product #review_form_wrapper p.stars a {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #34445b;
  border-radius: 9px;
  color: transparent;
  background: #111c2a;
  text-indent: -9999px;
  text-decoration: none;
}

.single-product #review_form_wrapper p.stars a::before {
  position: absolute;
  inset: 0;
  display: grid;
  color: #59677a;
  content: "☆";
  font-family: Arial, sans-serif;
  font-size: 29px;
  line-height: 1;
  place-items: center;
  text-indent: 0;
  transition: color .15s ease, transform .15s ease;
}

.single-product #review_form_wrapper p.stars.selected a::before {
  color: #ffc928;
  content: "★";
}

.single-product #review_form_wrapper p.stars.selected a.active ~ a::before {
  color: #59677a;
  content: "☆";
}

.single-product #review_form_wrapper p.stars > span:hover a::before {
  color: #ffc928;
  content: "★";
}

.single-product #review_form_wrapper p.stars a:hover ~ a::before {
  color: #59677a;
  content: "☆";
}

.single-product #review_form_wrapper p.stars a:hover::before { transform: scale(1.12); }

.single-product #review_form_wrapper p.stars a:focus-visible {
  border-color: #12a8ff;
  outline: 3px solid rgba(18, 168, 255, .25);
  outline-offset: 2px;
}

.single-product #review_form_wrapper textarea,
.single-product #review_form_wrapper input[type="text"],
.single-product #review_form_wrapper input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #34445b;
  border-radius: 10px;
  color: #f7f9fc;
  background: #0a111a;
  font: inherit;
}

.single-product #review_form_wrapper select#rating:not([style*="display: none"]) {
  width: min(100%, 320px);
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #34445b;
  border-radius: 9px;
  color: #f7f9fc;
  background: #0a111a;
  font: inherit;
}

.single-product #review_form_wrapper textarea {
  min-height: 150px;
  resize: vertical;
}

.single-product #review_form_wrapper textarea:focus,
.single-product #review_form_wrapper input[type="text"]:focus,
.single-product #review_form_wrapper input[type="email"]:focus {
  border-color: #12a8ff;
  outline: 3px solid rgba(18, 168, 255, .2);
  outline-offset: 0;
}

.single-product #review_form_wrapper .form-submit { margin-bottom: 0; }

.single-product #review_form_wrapper .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.single-product #review_form_wrapper .comment-form-cookies-consent input { margin-top: 4px; }

.single-product #review_form_wrapper .comment-form-cookies-consent label {
  display: inline;
  margin: 0;
  font-weight: 500;
}

.single-product #review_form_wrapper .form-submit .submit {
  min-height: 48px;
  padding: 11px 24px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #d90f31, #ff2449);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(217, 15, 49, .22);
}

.single-product #review_form_wrapper .form-submit .submit:hover,
.single-product #review_form_wrapper .form-submit .submit:focus-visible {
  background: linear-gradient(135deg, #ef173b, #ff4160);
  outline: 3px solid rgba(255, 36, 73, .25);
  outline-offset: 2px;
}

.woocommerce .star-rating {
  position: relative;
  display: inline-block;
  width: 5.45em;
  height: 1.15em;
  overflow: hidden;
  color: #59677a;
  font-family: Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: .09em;
}

.woocommerce .star-rating::before {
  position: absolute;
  inset: 0 auto auto 0;
  content: "★★★★★";
}

.woocommerce .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.15em;
  overflow: hidden;
  padding-top: 1.15em;
}

.woocommerce .star-rating span::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #ffc928;
  content: "★★★★★";
}

.woocommerce div.product .woocommerce-product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.woocommerce ul.products li.product .star-rating {
  float: none;
  margin: 0 16px 10px;
}

.single-product #reviews ol.commentlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-product #reviews ol.commentlist li {
  min-height: 48px;
  margin: 0 0 16px;
}

.single-product #reviews ol.commentlist .comment_container {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.single-product #reviews ol.commentlist img.avatar {
  position: static !important;
  float: none !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  border-radius: 50%;
}

.single-product #reviews ol.commentlist .comment-text {
  min-height: 48px;
  margin: 0 !important;
  padding: 18px;
  border: 1px solid #29384d;
  border-radius: 12px;
  background: #0f1722;
}

.single-product #reviews ol.commentlist .meta { color: #8f9db0; }
.single-product #reviews ol.commentlist .description p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .single-product .woocommerce-tabs { margin-top: 30px; padding-top: 20px; }
  .single-product .woocommerce-tabs ul.tabs { margin-bottom: 22px; }
  .single-product .woocommerce-tabs ul.tabs li,
  .single-product .woocommerce-tabs ul.tabs li a { width: 100%; }
  .single-product .woocommerce-tabs ul.tabs li a { justify-content: center; }
  .single-product #review_form_wrapper { padding: 17px; }
  .single-product #review_form_wrapper p.stars span { gap: 3px; }
  .single-product #review_form_wrapper p.stars a {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 600px) {
  body.single-product .bbx-shop-page { padding: 28px 0 48px; }
  body.single-product.woocommerce .bbx-shop-page > .bbx-shell {
    width: min(calc(100% - 28px), 1180px);
  }
  body.single-product.woocommerce div.product .woocommerce-product-gallery { padding: 10px; }
  body.single-product.woocommerce div.product .woocommerce-product-gallery__trigger {
    top: 20px !important;
    right: 20px !important;
  }
  body.single-product.woocommerce div.product .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  body.single-product.woocommerce div.product .summary .product_title {
    font-size: 30px !important;
  }
  .bbx-product-notice__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .bbx-product-notice__dates { grid-template-columns: 1fr; }
  .bbx-product-notice,
  .bbx-delivery-choice { padding: 13px; }
  .bbx-catalog-filters { gap: 6px; }
  .bbx-filter-row { gap: 6px; }
  .bbx-filter-label { width: 100%; }
  .bbx-filter { padding: 7px 11px; font-size: 14px; }
}

/* My Account: the theme intentionally removes WooCommerce's stock stylesheet. */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Logged-out account gateway: the navigation grid above is only for customers
   who already have a session. Login and registration need the full content width. */
body.woocommerce-account:not(.logged-in) .woocommerce {
  display: block;
  width: 100%;
}

body.woocommerce-account:not(.logged-in) .bbx-article > h1 {
  margin: 0 0 34px;
}

body.woocommerce-account:not(.logged-in) #customer_login {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

body.woocommerce-account:not(.logged-in) #customer_login::before,
body.woocommerce-account:not(.logged-in) #customer_login::after {
  display: none !important;
}

body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #26364b;
  border-radius: 16px;
  background: linear-gradient(145deg, #111a27, #0d141e);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

body.woocommerce-account:not(.logged-in) #customer_login h2 {
  margin: 0 0 24px;
  color: #f5f8fc;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

body.woocommerce-account:not(.logged-in) #customer_login form {
  margin: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 17px !important;
  padding: 0 !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .input-text {
  width: 100%;
}

body.woocommerce-account:not(.logged-in) #customer_login label {
  display: block;
  margin: 0 0 7px;
  color: #bdc7d5;
  line-height: 1.4;
}

body.woocommerce-account:not(.logged-in) #customer_login .login > .form-row:not(.form-row-wide) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login .button {
  min-height: 44px;
  padding: 10px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0067ff, #12a8ff) !important;
  font-weight: 800;
  cursor: pointer;
}

body.woocommerce-account:not(.logged-in) #customer_login .register .button {
  background: linear-gradient(135deg, #bd092b, #ff2949) !important;
}

body.woocommerce-account:not(.logged-in) #customer_login p,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text {
  color: #aeb9c8;
  line-height: 1.65;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #26364b;
  font-size: 13px;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text p {
  margin: 0 0 18px;
}

body.woocommerce-account:not(.logged-in) #customer_login a {
  color: #79cbff;
}

body:not(.logged-in) .bbx-actions > a[href*="/my-account/"]:not(.bbx-cart) {
  white-space: nowrap;
}

@media (min-width: 821px) and (max-width: 1100px) {
  body:not(.logged-in) .bbx-actions {
    gap: 8px;
    font-size: 11px;
  }
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { display: none !important; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #253247;
  border-radius: 14px;
  background: #0f1621;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  padding: 13px 16px !important;
  border-bottom: 1px solid #253247 !important;
  background: transparent !important;
  transition: color .18s ease, background .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(0,103,255,.22), rgba(18,168,255,.07)) !important;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }

.woocommerce-account .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { display: none !important; }

.woocommerce-account .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.woocommerce-account .woocommerce-Address {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 20px;
  border: 1px solid #263449;
  border-radius: 14px;
  background: linear-gradient(145deg, #111925, #0d131d);
}

.woocommerce-account .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.woocommerce-account .woocommerce-Address-title h2 {
  margin: 0;
  color: #f5f7fb;
  font-size: 20px;
  line-height: 1.2;
}

.woocommerce-account .woocommerce-Address-title .edit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #315779;
  border-radius: 7px;
  color: #dff3ff;
  background: rgba(18,168,255,.1);
  font-size: 12px;
  font-weight: 800;
}

.woocommerce-account .woocommerce-Address-title .edit:hover {
  border-color: #12a8ff;
  background: rgba(18,168,255,.2);
}

.woocommerce-account .woocommerce-Address address,
.bbx-address-card address {
  margin: 0;
  color: #bcc7d5;
  font-style: normal;
  line-height: 1.75;
}

.woocommerce-account .woocommerce-address-fields__field-wrapper,
.woocommerce-account .woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.woocommerce-account .form-row-wide { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-address-fields .button,
.woocommerce-account .woocommerce-EditAccountForm .button { margin-top: 12px; }
.woocommerce-account .select2-container { width: 100% !important; }

/* Extra delivery addresses. */
.bbx-address-book {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #263449;
}

.bbx-address-book__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.bbx-address-book__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #12a8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bbx-address-book__head h2 {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.035em;
}

.bbx-address-book__head p {
  max-width: 620px;
  margin: 7px 0 0;
  color: #909aad;
}

.bbx-address-book__add {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #fff !important;
}

.woocommerce .bbx-address-book__add.button {
  background: linear-gradient(135deg, #0067ff, #12a8ff) !important;
}

.bbx-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bbx-address-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #263449;
  border-radius: 13px;
  background: #0f1621;
}

.bbx-address-card.is-default {
  border-color: #167bbb;
  box-shadow: inset 0 0 0 1px rgba(18,168,255,.12);
}

.bbx-address-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.bbx-address-card__title h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: 18px;
}

.bbx-address-card__title span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #8ee9bb;
  background: rgba(24,182,107,.12);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bbx-address-card__phone { margin: 8px 0 0; color: #909aad; }
.bbx-address-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bbx-address-card__action-form { margin: 0; }
.bbx-address-card__actions .button { min-height: 34px; padding: 8px 11px !important; font-size: 11px !important; }
.bbx-address-card__delete { color: #ff8295 !important; background: rgba(255,41,73,.08) !important; }

.bbx-address-book__empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border: 1px dashed #314159;
  border-radius: 13px;
  color: #cbd5e1;
  background: rgba(15,22,33,.65);
}

.bbx-address-book__empty span { color: #8995a7; }

.bbx-address-form-wrap {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #315779;
  border-radius: 14px;
  background: linear-gradient(145deg, #111b29, #0e151f);
}

.bbx-address-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.bbx-address-form__head h3 { margin: 0; color: #fff; font-size: 22px; }
.bbx-address-form__head a { color: #aab5c5; font-size: 28px; line-height: 1; }
.bbx-address-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.bbx-address-form__default .woocommerce-input-wrapper { display: block; }
.bbx-address-form__default label { display: inline-flex !important; align-items: center; gap: 8px; }
.bbx-address-form__submit { margin-bottom: 0 !important; }

.bbx-address-form .select2-container .select2-selection--single {
  height: 44px;
  border: 1px solid #2b3749;
  border-radius: 7px;
  color: #fff;
  background: #0e141d;
}

.bbx-address-form .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 38px 0 12px;
  color: #fff;
  line-height: 42px;
}

.bbx-address-form .select2-container .select2-selection--single .select2-selection__placeholder { color: #8e99aa; }
.bbx-address-form .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }

.bbx-checkout-address-book {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #315779;
  border-radius: 11px;
  background: rgba(18,168,255,.07);
}

.bbx-checkout-address-book h3 { margin: 0 0 10px; color: #fff; }
.bbx-checkout-address-book .form-row { margin: 0 !important; }
.bbx-checkout-address-book select { width: 100%; min-height: 44px; }

@media (max-width: 760px) {
  .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body.woocommerce-account:not(.logged-in) #customer_login {
    grid-template-columns: minmax(0, 1fr);
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    height: 100%;
    padding: 11px 12px !important;
    border-right: 1px solid #253247;
  }
  .woocommerce-account .woocommerce-Addresses,
  .bbx-address-grid { grid-template-columns: minmax(0, 1fr); }
  .bbx-address-book__head { flex-direction: column; }
  .bbx-address-book__add { width: 100%; }
}

@media (max-width: 540px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-account .woocommerce-MyAccount-navigation li a { border-right: 0; }
  .woocommerce-account .woocommerce-address-fields__field-wrapper,
  .woocommerce-account .woocommerce-EditAccountForm,
  .bbx-address-form { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-account .form-row-first,
  .woocommerce-account .form-row-last { grid-column: 1 / -1; }
  .woocommerce-account .woocommerce-Address,
  .bbx-address-card,
  .bbx-address-form-wrap { padding: 16px; }
  .woocommerce-account .woocommerce-Address-title { align-items: flex-start; }
  .woocommerce-account .woocommerce-Address-title h2 { font-size: 18px; }
}

/* Panoramic, full-bleed home hero. */
@media (min-width: 821px) {
  .bbx-hero {
    position: relative !important;
    isolation: isolate;
    display: block !important;
    height: 260px !important;
    min-height: 0 !important;
    overflow: hidden;
    background: #070b12;
  }

  .bbx-hero .bbx-shell,
  .bbx-hero-grid {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 clamp(28px, 4vw, 76px) !important;
  }

  .bbx-hero-copy {
    position: relative !important;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(50vw, 620px);
    max-width: 620px !important;
    height: 100%;
    padding: 16px 0 !important;
  }

  .bbx-hero h1 {
    max-width: 610px;
    font-size: clamp(36px, 3.15vw, 50px) !important;
    line-height: .9;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .9);
  }

  .bbx-hero-copy > p {
    max-width: 520px;
    margin: 10px 0 13px !important;
    color: #dce5f0;
    font-size: 14px !important;
    line-height: 1.38;
    text-shadow: 0 2px 10px #000;
  }

  .bbx-hero-buttons { gap: 10px; }

  .bbx-hero-buttons .bbx-btn {
    min-height: 40px;
    padding-inline: 19px;
  }

  .bbx-hero-art {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
    background: #070b12;
  }

  .bbx-hero-art::before {
    content: "";
    position: absolute;
    inset: -28px;
    z-index: 0;
    background: url('/wp-content/themes/beybladex-shop/assets/img/hero-palace.webp') center 48% / cover no-repeat;
    filter: blur(22px) saturate(1.18);
    opacity: .32;
    transform: scale(1.06);
  }

  .bbx-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
      linear-gradient(90deg, #070b12 0%, rgba(7, 11, 18, .98) 28%, rgba(7, 11, 18, .86) 43%, rgba(7, 11, 18, .38) 61%, rgba(7, 11, 18, .06) 84%),
      linear-gradient(180deg, rgba(5, 8, 13, .08), rgba(5, 8, 13, .34));
    pointer-events: none;
  }

  .bbx-hero-image {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 0;
    left: auto;
    display: block;
    width: clamp(720px, 42vw, 860px) !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    transform: translateY(-40%);
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: saturate(1.06) contrast(1.03);
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .bbx-hero { height: 245px !important; }

  .bbx-hero .bbx-shell,
  .bbx-hero-grid { padding-inline: 28px !important; }

  .bbx-hero-copy {
    width: 54vw;
    max-width: 540px !important;
  }

  .bbx-hero h1 { font-size: 36px !important; }

  .bbx-hero-image {
    right: -125px;
    width: 680px !important;
  }
}

@media (max-width: 820px) {
  .bbx-hero .bbx-shell { width: 100%; padding-inline: 14px; }
  .bbx-hero-copy { padding: 42px 0 18px !important; }
  .bbx-hero-art { padding: 0 0 24px !important; }
}

/* Redsys is the single secure entry point for cards and supported wallets. */
.bbx-redsys-payment-label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 14px;
  min-width: 0;
}

.bbx-payment-logos {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}

.bbx-payment-logos img {
  display: block;
  width: auto;
  height: 25px;
  max-width: 46px;
  padding: 3px 5px;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}

.bbx-payment-logos img[alt="Google Pay"] { max-width: 50px; }
.bbx-payment-logos img[alt="Apple Pay"] { max-width: 52px; }

@media (max-width: 520px) {
  .bbx-redsys-payment-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .bbx-payment-logos {
    justify-content: flex-start;
    margin-left: 0;
  }

  .bbx-payment-logos img {
    height: 24px;
    max-width: 44px;
  }
}

/* Compact product typography and safe wrapping on narrow screens. */
body.single-product.woocommerce div.product .summary .product_title {
  max-width: 100%;
  font-size: clamp(28px, 2.6vw, 36px) !important;
  overflow-wrap: anywhere;
}

body.single-product.woocommerce div.product .summary p.price,
body.single-product.woocommerce div.product .summary span.price {
  font-size: 24px !important;
}

body.single-product.woocommerce div.product .woocommerce-product-details__short-description,
body.single-product.woocommerce div.product .bbx-product-notice__terms,
body.single-product.woocommerce div.product .product_meta {
  overflow-wrap: anywhere;
}

body.single-product.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 14px;
  line-height: 1.55;
}

body.single-product.woocommerce div.product .product_meta {
  display: grid;
  gap: 3px;
  font-size: 12px;
  line-height: 1.5;
}

body.single-product.woocommerce div.product .product_meta > span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.single-product.woocommerce div.product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Reviews-title,
.single-product #review_form_wrapper .comment-reply-title {
  font-size: clamp(22px, 2.4vw, 28px);
}

body.single-product.woocommerce div.product .woocommerce-Tabs-panel h3 { font-size: 18px; }

body.single-product.woocommerce div.product .woocommerce-Tabs-panel p,
body.single-product.woocommerce div.product .woocommerce-Tabs-panel li {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  body.single-product.woocommerce div.product .summary .product_title {
    font-size: clamp(23px, 7vw, 27px) !important;
    line-height: 1.12;
  }

  body.single-product.woocommerce div.product .summary p.price,
  body.single-product.woocommerce div.product .summary span.price {
    font-size: 22px !important;
  }

  body.single-product.woocommerce div.product .woocommerce-product-details__short-description {
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.5;
  }

  body.single-product.woocommerce div.product form.cart { margin-top: 16px; }

  .bbx-product-notice__header > strong { font-size: 14px; }
  .bbx-product-notice__stock { padding: 5px 8px; font-size: 10px; }
  .bbx-product-notice__dates strong { font-size: 13px; }
  .bbx-product-notice__terms { font-size: 12px; line-height: 1.5; }

  .single-product .bbx-quantity-picker input.qty,
  .single-product .bbx-quantity-button {
    height: 46px;
  }

  .single-product .bbx-quantity-button {
    width: 46px;
    min-width: 46px;
    font-size: 22px;
  }

  .single-product .bbx-quantity-picker + .single_add_to_cart_button {
    min-height: 46px;
    font-size: 14px;
  }

  .single-product .woocommerce-tabs ul.tabs li a {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 13px;
  }

  body.single-product.woocommerce div.product .woocommerce-Tabs-panel {
    padding: 16px;
  }

  body.single-product.woocommerce div.product .woocommerce-Tabs-panel h2,
  .single-product .woocommerce-Reviews-title,
  .single-product #review_form_wrapper .comment-reply-title {
    font-size: 21px;
  }

  body.single-product.woocommerce div.product .woocommerce-Tabs-panel h3 { font-size: 17px; }
  body.single-product.woocommerce div.product .woocommerce-Tabs-panel p,
  body.single-product.woocommerce div.product .woocommerce-Tabs-panel li { font-size: 13px; }
}

/* Global catalogue selector: category, brand, line and commercial availability. */
.woocommerce .bbx-catalog-filter-form {
  clear: both;
  width: 100%;
  margin: 18px 0 26px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid #27354a;
  border-radius: 12px;
  background: #101823;
}

.bbx-filter-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.bbx-filter-field label {
  margin: 0;
  color: #9eacbe;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.woocommerce .bbx-filter-field select {
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 32px 0 10px;
  border: 1px solid #34445b;
  border-radius: 8px;
  color: #eef4fb;
  background-color: #0b121c;
  font-size: 13px;
}

.bbx-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.woocommerce .bbx-filter-actions button,
.woocommerce .bbx-filter-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #2d74a3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.woocommerce .bbx-filter-actions button {
  color: #fff;
  background: #087fc5;
}

.woocommerce .bbx-filter-actions a {
  color: #c5d0de;
  border-color: #34445b;
  background: #121c29;
}

@media (max-width: 900px) {
  .woocommerce .bbx-catalog-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bbx-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .woocommerce .bbx-catalog-filter-form {
    margin-block: 14px 22px;
    padding: 11px;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .bbx-filter-actions { grid-column: auto; }
  .woocommerce .bbx-filter-actions button,
  .woocommerce .bbx-filter-actions a { flex: 1 1 0; }
}

/* Standard catalogue image frame: complete product, never stretched or cropped. */
.woocommerce ul.products li.product a img {
  display: block !important;
  width: 100% !important;
  height: 280px !important;
  max-height: 280px !important;
  box-sizing: border-box;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 16px !important;
  border-radius: 10px 10px 0 0 !important;
  background: #fff !important;
}

@media (max-width: 820px) {
  .woocommerce ul.products li.product a img {
    height: 260px !important;
    max-height: 260px !important;
  }
}

@media (max-width: 560px) {
  .woocommerce ul.products li.product a img {
    height: 250px !important;
    max-height: 250px !important;
  }
}

/* Customer cancellation request workflow. */
.woocommerce .bbx-cancellation-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #2b4059;
  border-radius: 14px;
  background: #101b29;
}

.woocommerce .bbx-cancellation-panel h2 {
  margin-top: 0;
}

.woocommerce .bbx-cancellation-form {
  display: grid;
  gap: 10px;
}

.woocommerce .bbx-cancellation-form label {
  font-weight: 800;
}

.woocommerce .bbx-cancellation-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #405774;
  border-radius: 9px;
  color: #f3f7fb;
  background: #0a131f;
}

.woocommerce .bbx-cancellation-form .button {
  justify-self: start;
}

.woocommerce .bbx-cancellation-state {
  display: inline-block;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
}

.woocommerce .bbx-cancellation-state.is-pending {
  color: #ffe3a6;
  background: #59420c;
}

.woocommerce .bbx-cancellation-state.is-approved {
  color: #caffdf;
  background: #164d2d;
}

.woocommerce .bbx-cancellation-state.is-rejected {
  color: #ffd1d1;
  background: #5a2424;
}

@media (max-width: 560px) {
  .woocommerce .bbx-cancellation-panel {
    padding: 16px;
  }

  .woocommerce .bbx-cancellation-form .button {
    width: 100%;
  }
}

/* Home featured cards use the same complete, white image frame as the shop. */
.bbx-products-section .bbx-product-card {
  position: relative;
}

.bbx-products-section .bbx-product-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 280px !important;
  max-height: 280px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 16px !important;
  border-radius: 10px 10px 0 0 !important;
  background: #fff !important;
}

.bbx-products-section .bbx-product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
}

@media (max-width: 820px) {
  .bbx-products-section .bbx-product-image {
    height: 260px !important;
    max-height: 260px !important;
  }
}

@media (max-width: 560px) {
  .bbx-products-section .bbx-product-image {
    height: 250px !important;
    max-height: 250px !important;
  }
}

/* Large, touch-friendly catalogue pagination with explicit directions. */
.woocommerce nav.woocommerce-pagination {
  clear: both;
  width: 100%;
  margin: 32px 0 52px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li > .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #34445b;
  border-radius: 10px;
  color: #eaf2ff;
  background: #121c29;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li > a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers > li > a.page-numbers:focus-visible {
  border-color: #12a8ff;
  color: #fff;
  background: #17283b;
  outline: none;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li > .current {
  border-color: #12a8ff;
  color: #04111d;
  background: #12a8ff;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li > .prev,
.woocommerce nav.woocommerce-pagination ul.page-numbers > li > .next {
  min-width: 164px;
}

@media (max-width: 560px) {
  .woocommerce nav.woocommerce-pagination {
    margin: 26px 0 42px;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers {
    gap: 7px;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers > li:has(> .prev),
  .woocommerce nav.woocommerce-pagination ul.page-numbers > li:has(> .next) {
    order: 1;
    flex: 1 1 calc(50% - 4px);
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers > li:not(:has(> .prev)):not(:has(> .next)) {
    order: 2;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers > li > .prev,
  .woocommerce nav.woocommerce-pagination ul.page-numbers > li > .next {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }
}

/* Payment confirmation: one clear, readable destination after Redsys. */
body.woocommerce-order-received .bbx-article > h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

body.woocommerce-order-received .bbx-article:has(.wc-block-order-confirmation-status) > h1 {
  display: none;
}

body.woocommerce-order-received .bbx-article > .woocommerce {
  max-width: 1040px;
  margin-inline: auto;
}

body.woocommerce-order-received .wc-block-order-confirmation-status {
  margin: 0 0 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #27658e;
  border-radius: 18px;
  background: linear-gradient(145deg, #102238, #0d1825);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .24);
}

body.woocommerce-order-received .wc-block-order-confirmation-status h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

body.woocommerce-order-received .wc-block-order-confirmation-status p {
  max-width: 760px;
  margin: 0;
  color: #cbd8e8;
  font-size: 17px;
  line-height: 1.65;
}

body.woocommerce-order-received .wc-block-order-confirmation-status strong {
  color: #72d3ff;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary,
body.woocommerce-order-received .wc-block-order-confirmation-totals,
body.woocommerce-order-received .wc-block-order-confirmation-address-wrapper,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  margin: 0 0 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #2b3b50;
  border-radius: 15px;
  background: #101823;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid #2a3a4f;
  border-radius: 10px;
  background: #0b131d;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__key,
body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__value {
  display: block;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__key {
  margin-bottom: 6px;
  color: #8fa0b5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__value {
  color: #f5f8fc;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* My account: restore a complete responsive order table after core CSS removal. */
.woocommerce-account .woocommerce-MyAccount-content {
  color: #c5d0de;
  font-size: 16px;
  line-height: 1.6;
}

.woocommerce-account table.woocommerce-orders-table {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #2b3b50;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: #101823;
  font-size: 15px;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #27364a;
  text-align: left;
  vertical-align: middle;
}

.woocommerce-account .woocommerce-orders-table th {
  color: #eaf2fb;
  background: #152131;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .025em;
  white-space: nowrap;
}

.woocommerce-account .woocommerce-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.woocommerce-account .woocommerce-orders-table td,
.woocommerce-account .woocommerce-orders-table td a:not(.button) {
  color: #d4deea;
}

.woocommerce-account .woocommerce-orders-table__cell-order-number a {
  color: #68ccff !important;
  font-weight: 900;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions {
  min-width: 190px;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 3px 6px 3px 0;
  padding: 9px 13px !important;
  border: 1px solid #315779 !important;
  border-radius: 8px !important;
  color: #eef8ff !important;
  background: rgba(18, 168, 255, .12) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  white-space: normal;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover {
  border-color: #12a8ff !important;
  background: rgba(18, 168, 255, .23) !important;
}

/* Order detail and customer addresses on both desktop and mobile. */
.woocommerce-account .woocommerce-order-details {
  margin: 26px 0;
}

.woocommerce-account .woocommerce-order-details h2,
.woocommerce-account .woocommerce-customer-details h2 {
  margin: 0 0 15px;
  color: #f4f8fc;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}

.woocommerce-account .woocommerce-order-details table.shop_table {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #2b3b50;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 13px;
  background: #101823;
  font-size: 15px;
}

.woocommerce-account .woocommerce-order-details table.shop_table th,
.woocommerce-account .woocommerce-order-details table.shop_table td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #29384c;
  line-height: 1.55;
}

.woocommerce-account .woocommerce-columns--addresses,
body.woocommerce-order-received .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.woocommerce-account .woocommerce-columns--addresses::before,
.woocommerce-account .woocommerce-columns--addresses::after,
body.woocommerce-order-received .woocommerce-columns--addresses::before,
body.woocommerce-order-received .woocommerce-columns--addresses::after {
  display: none !important;
}

.woocommerce-account .woocommerce-columns--addresses .woocommerce-column,
body.woocommerce-order-received .woocommerce-columns--addresses .woocommerce-column {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 20px;
  border: 1px solid #2b3b50;
  border-radius: 13px;
  background: #101823;
}

.woocommerce-account .woocommerce-customer-details address,
body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0;
  color: #c5d0de;
  font-size: 16px;
  font-style: normal;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  body.woocommerce-order-received .wc-block-order-confirmation-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-account .woocommerce-orders-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .woocommerce-account .woocommerce-orders-table,
  .woocommerce-account .woocommerce-orders-table tbody {
    display: block;
    border: 0;
    background: transparent;
  }

  .woocommerce-account .woocommerce-orders-table tbody {
    display: grid;
    gap: 16px;
  }

  .woocommerce-account .woocommerce-orders-table tbody tr {
    display: block;
    overflow: hidden;
    padding: 15px;
    border: 1px solid #2b3b50;
    border-radius: 13px;
    background: #101823;
  }

  .woocommerce-account .woocommerce-orders-table tbody td {
    display: grid !important;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #27364a;
    color: #e2e9f2;
    font-size: 16px;
    line-height: 1.5;
    text-align: left !important;
  }

  .woocommerce-account .woocommerce-orders-table tbody td:last-child {
    border-bottom: 0;
  }

  .woocommerce-account .woocommerce-orders-table tbody td::before {
    float: none !important;
    width: auto !important;
    margin: 0;
    color: #92a2b7;
    content: attr(data-title) !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    text-align: left;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions {
    display: flex !important;
    min-width: 0;
    padding-top: 13px !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions::before {
    flex: 0 0 100%;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-button {
    flex: 1 1 150px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px !important;
    font-size: 15px !important;
  }

  .woocommerce-account .woocommerce-columns--addresses,
  body.woocommerce-order-received .woocommerce-columns--addresses {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce-account .woocommerce-order-details {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce-account .woocommerce-order-details table.shop_table {
    min-width: 520px;
  }
}

@media (max-width: 560px) {
  body.woocommerce-order-received .wc-block-order-confirmation-status {
    padding: 22px 18px;
    border-radius: 14px;
  }

  body.woocommerce-order-received .wc-block-order-confirmation-status h1 {
    font-size: 30px;
  }

  body.woocommerce-order-received .wc-block-order-confirmation-status p {
    font-size: 16px;
  }

  body.woocommerce-order-received .wc-block-order-confirmation-summary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-order-received .wc-block-order-confirmation-summary,
  body.woocommerce-order-received .wc-block-order-confirmation-totals,
  body.woocommerce-order-received .wc-block-order-confirmation-address-wrapper,
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details {
    padding: 16px;
  }

  .woocommerce-account .woocommerce-orders-table tbody tr {
    padding: 13px;
  }

  .woocommerce-account .woocommerce-orders-table tbody td {
    grid-template-columns: minmax(94px, 36%) minmax(0, 1fr);
    gap: 10px;
  }

  .woocommerce-account .woocommerce-customer-details address,
  body.woocommerce-order-received .woocommerce-customer-details address {
    font-size: 16px;
    line-height: 1.7;
  }
}

body.woocommerce-order-received .woocommerce-thankyou-order-received {
  margin: 0 0 22px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #27658e;
  border-left: 5px solid #12a8ff;
  border-radius: 14px;
  color: #d5e4f4;
  background: linear-gradient(145deg, #102238, #0d1825);
  font-size: 17px;
  line-height: 1.65;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received strong {
  color: #72d3ff;
}

body.woocommerce-order-received .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-order-received .woocommerce-order-overview li {
  float: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #2a3a4f !important;
  border-radius: 10px;
  color: #8fa0b5;
  background: #101823;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

body.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  color: #f5f8fc;
  font-size: 16px;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.woocommerce-order-received .bbx-article > h1 {
    margin-bottom: 18px;
    font-size: 32px;
  }

  body.woocommerce-order-received .woocommerce-thankyou-order-received {
    padding: 18px;
    font-size: 16px;
  }

  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.woocommerce-order-received .wc-block-order-confirmation-totals__table,
body.woocommerce-order-received .wc-block-order-confirmation-address-wrapper,
body.woocommerce-order-received .wc-block-order-confirmation-shipping-address,
body.woocommerce-order-received .wc-block-order-confirmation-billing-address {
  color: #cbd6e3;
  font-size: 16px;
  line-height: 1.7;
}

body.woocommerce-order-received .wc-block-order-confirmation-totals__table {
  width: 100%;
}

body.woocommerce-order-received .wc-block-order-confirmation-totals__table th,
body.woocommerce-order-received .wc-block-order-confirmation-totals__table td {
  padding: 13px 12px;
  border-bottom: 1px solid #29384c;
}

body.woocommerce-order-received .wc-block-order-confirmation-address-wrapper address {
  color: #cbd6e3;
  font-size: 16px;
  font-style: normal;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
