/*
 * BW theme: WordPress additions on top of the Amerce template CSS.
 * Put your own custom CSS at the end of this file.
 */

/* Accessibility (skip link, screen-reader text) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--white);
  clip: auto !important;
  clip-path: none;
  color: var(--text);
  display: block;
  font-weight: 600;
  height: auto;
  left: 5px;
  padding: 15px 23px 14px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Editor alignments */
.alignleft {
  float: left;
  margin: 0 1.5em 1.5em 0;
}
.alignright {
  float: right;
  margin: 0 0 1.5em 1.5em;
}
.aligncenter {
  clear: both;
  display: block;
  margin: 0 auto 1.5em;
}

/* The template makes every <header> sticky; only the site header should be. */
header:not(.tf-header) {
  position: static;
  z-index: auto;
}

/* Keep the sticky site header and the side panels (mini cart, mobile menu)
   below the WordPress admin bar. */
@media screen and (min-width: 783px) {
  .admin-bar .tf-header.header-sticky {
    transform: translateY(32px);
  }
  .admin-bar .offcanvas {
    top: 32px;
  }
}
@media screen and (min-width: 601px) and (max-width: 782px) {
  .admin-bar .tf-header.header-sticky {
    transform: translateY(46px);
  }
  .admin-bar .offcanvas {
    top: 46px;
  }
}

/* Rating stars above the product's average rating */
.star-wrap .icon.is-empty {
  color: var(--line);
}

/* Add to cart loader (assets/js/mini-cart.js): spinner instead of the text */
.bw-is-loading,
.bw-is-locked {
  pointer-events: none;
}
.bw-is-loading {
  position: relative;
  color: transparent !important;
  transition: none !important; /* hide the text at once, not over .tf-btn's 0.3s */
  --bw-spinner: var(--white);
}
.bw-is-loading > *:not(.bw-spinner) {
  visibility: hidden;
}
.btn-white.bw-is-loading,
.thumb-prd .btn-action.bw-is-loading {
  --bw-spinner: var(--black);
}
.bw-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(128, 128, 128, 0.35);
  border-top-color: var(--bw-spinner);
  border-radius: 50%;
  animation: bw-spin 0.7s linear infinite;
}
@keyframes bw-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bw-spinner {
    animation-duration: 2s;
  }
}
/* "Added ✓" for 2 seconds */
.tf-btn.bw-is-added,
.btn-action.bw-is-added {
  border-color: var(--success) !important;
  background-color: var(--success) !important;
  color: var(--white) !important;
}

/* WooCommerce adds a "View cart" link after an AJAX add-to-cart button; the
   header cart count already updates, so hide it inside the design's cards. */
.card-product .added_to_cart,
.thumb-prd .added_to_cart {
  display: none;
}

/* ---------- Footer social links ---------- */
.bw-footer-social {
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bw-footer-social a {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.bw-footer-social a:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--white);
}

/* ---------- Shop page ---------- */

/* List view (toolbar switch, assets/js/shop.js) */
.wrapper-shop.is-list.tf-grid-layout {
  grid-template-columns: 1fr;
}

/* "BY brand" line on product cards */
.card-product_info .product-brand {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-product_info .product-brand a {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

/* Light swatch colors (white, beige) stay visible */
.product-color_list .product-color-item .swatch-value {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Toolbar dropdowns: the toggle is .btn-select, so rotate its caret */
.tf-dropdown-sort .btn-select.show .icon {
  transform: rotate(180deg);
}
.tf-dropdown-sort .btn-select,
.tf-dropdown-sort .select-item {
  text-transform: none;
}
/* "12 / page" dropdown has a border, like the Show Filters button */
.tf-dropdown-sort.is-boxed .btn-select {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Filter panel */
.filter-group-check .list-item.is-child {
  padding-left: 16px;
}
.filter-group-check .label.active {
  color: var(--primary);
  font-weight: 600;
}
.bw-filter-swatch {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.filter-group-check .label.active .bw-filter-swatch {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--text);
}
.bw-price-field {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.bw-price-field input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Pagination below the product grid */
.bw-pagination {
  margin-top: 40px;
}

/* ---------- Product page ---------- */

/* "Add to cart – price": hidden until there is a price (variable products) */
.bw-atc-price.is-empty {
  display: none !important;
}

/* The chosen variation's price is shown at the top (product.js) */
.bw-wc-product .single_variation .woocommerce-variation-price {
  display: none;
}

/* Stock as a green pill: "17 products available" */
.bw-wc-product .stock {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--success);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}
.bw-wc-product .stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}
.bw-wc-product .stock.out-of-stock {
  background-color: var(--primary);
}

/* Variant buttons not available with the other choices */
.bw-wc-product .bw-swatch.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.bw-wc-product .color-btn.bw-swatch .check-color {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.bw-wc-product .variant-picker-label {
  justify-content: space-between;
}
/* The variant rows sit inside WooCommerce's form, so space them here */
.bw-wc-product .bw-variations {
  display: grid;
  gap: 20px;
}
.bw-wc-product .btn-action-price {
  text-transform: capitalize;
}

/* Quantity / buttons spacing in the WooCommerce form */
.bw-wc-product form.cart .tf-product-total-quantity {
  display: grid;
  gap: 12px;
}
.bw-wc-product .single_variation_wrap {
  margin-top: 20px;
}

/* Gallery thumbnails */
.bw-product-thumbs .swiper-slide {
  height: auto;
  cursor: pointer;
}

/* Tab panels */
.bw-product-tab {
  padding-top: 24px;
}

/* ---------- WooCommerce forms (checkout, addresses, account details) ---------- */
/* WooCommerce's own form colours / radius, set to the design's. */
:root {
  --wc-form-border-color: var(--line);
  --wc-form-border-radius: 8px;
}
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 24px;
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--text);
}
.woocommerce form .form-row {
  margin: 0 0 16px;
  padding: 0;
}
.woocommerce form .form-row label {
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text);
}
.woocommerce form .form-row .required {
  color: var(--primary);
  text-decoration: none;
}
.woocommerce form .form-row textarea {
  min-height: 110px;
}
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--primary);
}
/* Country / state dropdowns (select2) like the inputs */
.select2-container--default .select2-selection--single {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 15px;
  line-height: 46px;
  color: var(--text);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 1px;
  right: 8px;
  height: 46px;
}
.select2-dropdown {
  border-color: var(--line);
}
/* WooCommerce buttons in account forms, like .tf-btn */
.woocommerce .woocommerce-MyAccount-content .button,
.woocommerce .woocommerce-ResetPassword .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  line-height: 24px;
}
.woocommerce .woocommerce-MyAccount-content .button:hover,
.woocommerce .woocommerce-ResetPassword .button:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Checkout ---------- */
.woocommerce-checkout #customer_details h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}
.woocommerce-checkout #customer_details .bw-shipping h3 label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.woocommerce-checkout #customer_details .bw-shipping {
  margin-top: 8px;
}
.woocommerce-checkout .box-ip-checkout {
  margin-bottom: 32px;
}
.woocommerce-checkout #payment {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.woocommerce-checkout #payment ul.payment_methods {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods li {
  margin: 0;
}
.woocommerce-checkout #payment ul.payment_methods li .payment_check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.woocommerce-checkout #payment ul.payment_methods li img {
  max-height: 24px;
  margin: 0 0 0 6px;
}
.woocommerce-checkout #payment div.payment_box {
  margin: 12px 0 0;
  padding: 0;
  background: transparent;
  color: var(--text-2);
}
.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}
.woocommerce-checkout #payment div.payment_box p:last-child {
  margin-bottom: 0;
}
.woocommerce-checkout #payment div.form-row.place-order {
  margin: 0;
  padding: 0;
}
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 16px;
}
/* Order summary */
.woocommerce-checkout .list-order-product {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.woocommerce-checkout .list-order-product .variation {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 12px;
}
.woocommerce-checkout .list-order-product .variation dt,
.woocommerce-checkout .list-order-product .variation dd,
.woocommerce-checkout .list-order-product .variation p {
  display: inline;
  margin: 0;
  font-weight: 400;
}
.bw-checkout-coupon {
  margin-bottom: 20px;
}
.bw-order-totals {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}
.bw-order-totals th,
.bw-order-totals td {
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-weight: 500;
  line-height: 24px;
  vertical-align: top;
}
.bw-order-totals td {
  text-align: right;
}
.bw-order-totals tr.order-total th,
.bw-order-totals tr.order-total td {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 28px;
}
.bw-order-totals #shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bw-order-totals #shipping_method li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.bw-order-totals .woocommerce-remove-coupon {
  margin-left: 6px;
  color: var(--primary);
  font-size: 12px;
}

/* ---------- My Account ---------- */
.bw-account .woocommerce-MyAccount-navigation,
.bw-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}
@media (max-width: 991px) {
  .bw-account .sidebar-account-wrap {
    position: static;
    margin-bottom: 30px;
  }
}
.bw-account .tb-order_product .img-prd img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.bw-account .order_prd_item .prd__image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
/* Addresses */
.bw-account .woocommerce-Addresses {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .bw-account .woocommerce-Addresses {
    grid-template-columns: 1fr 1fr;
  }
}
.bw-account .woocommerce-Addresses::before,
.bw-account .woocommerce-Addresses::after {
  display: none;
}
.bw-account .woocommerce-Addresses .woocommerce-Address {
  float: none;
  width: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bw-account .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bw-account .woocommerce-Address-title h2 {
  margin: 0;
  font-size: 20px;
}
.bw-account .woocommerce-Address address {
  color: var(--text-2);
  font-style: normal;
  line-height: 26px;
}
/* Account details */
.bw-account .woocommerce-EditAccountForm fieldset {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bw-account .woocommerce-EditAccountForm legend {
  float: none;
  width: auto;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 500;
}
/* Login / register (no WooCommerce box around the forms, as in the design) */
.woocommerce .section-log form.login,
.woocommerce .section-log form.register {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.section-log .form-log .form-content {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.section-log .password-wrapper {
  position: relative;
}
.section-log .password-wrapper .toggle-pass {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  cursor: pointer;
}
.section-log .field-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Category Grid section (All Categories page) ---------- */
/* Portrait cards as in the design; product photos are cropped to fit. */
.bw-category-grid .category-v03 .cate-image {
  aspect-ratio: 3 / 4;
}

/* ---------- Shared: small label above headings ---------- */
.bw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 20px;
  text-transform: uppercase;
}
.bw-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- Inner Banner section ---------- */
.bw-inner-banner {
  padding-top: 20px;
}
.bw-inner-banner__box {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--black);
  isolation: isolate;
}
@media (min-width: 992px) {
  .bw-inner-banner__box {
    min-height: 440px;
  }
}
.bw-inner-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bw-inner-banner__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.45) 55%, rgba(10, 10, 10, 0.1) 100%);
}
.bw-inner-banner__content {
  max-width: 640px;
  padding: 32px 24px;
  color: var(--white);
}
@media (min-width: 768px) {
  .bw-inner-banner__content {
    padding: 56px;
  }
}
.bw-inner-banner .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.bw-inner-banner .breadcrumbs a,
.bw-inner-banner .breadcrumbs .icon {
  color: rgba(255, 255, 255, 0.7);
}
.bw-inner-banner .breadcrumbs a:hover,
.bw-inner-banner .breadcrumbs p {
  color: var(--white);
}
.bw-inner-banner .bw-eyebrow {
  color: var(--white);
}
.bw-inner-banner__title {
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.1;
}
.bw-inner-banner__text {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 28px;
}
.bw-inner-banner__text:last-child {
  margin-bottom: 0;
}

/* ---------- Text + Image / Image + Text (Dark) sections ---------- */
.bw-media-text {
  padding: 60px 0;
}
@media (min-width: 992px) {
  .bw-media-text {
    padding: 100px 0;
  }
}
.bw-media-text.is-dark {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
}
.bw-media-text__title {
  margin-bottom: 20px;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.2;
}
.bw-media-text.is-dark .bw-media-text__title {
  color: var(--white);
}
.bw-media-text__text {
  margin-bottom: 24px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 28px;
}
.bw-media-text.is-dark .bw-media-text__text {
  color: rgba(255, 255, 255, 0.7);
}
.bw-media-text__text p {
  margin-bottom: 14px;
}
.bw-media-text__text p:last-child {
  margin-bottom: 0;
}
.bw-checklist {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.bw-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  line-height: 24px;
}
.bw-checklist .icon {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 22px;
  line-height: 24px;
}
.bw-media-text.is-dark .bw-checklist li {
  color: var(--white);
}
.bw-media-text__media {
  position: relative;
}
.bw-media-text__media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  object-fit: cover;
}
.bw-media-text__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  max-width: 220px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.bw-media-text.image-first .bw-media-text__badge {
  right: 24px;
  left: auto;
}
.bw-media-text__badge-number {
  color: var(--primary);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
}
.bw-media-text__badge-text {
  color: var(--text);
  font-weight: 500;
  line-height: 22px;
}

/* ---------- Contact Us section ---------- */
.bw-contact__title {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.2;
}
.bw-contact__text {
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 28px;
}
.bw-contact__items {
  display: grid;
  gap: 16px;
}
.bw-contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  transition: all 0.3s ease;
}
a.bw-contact__item:hover {
  border-color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.bw-contact__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
}
a.bw-contact__item:hover .bw-contact__icon {
  background: var(--primary);
}
.bw-contact__item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bw-contact__label {
  margin-bottom: 2px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bw-contact__value {
  font-weight: 500;
  line-height: 24px;
  word-break: break-word;
}
.bw-contact__social {
  margin-top: 32px;
}
.bw-contact__social .bw-contact__label {
  display: block;
  margin-bottom: 12px;
}
.bw-social {
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bw-light-social a {
  color: var(--text);
}
.bw-contact__form {
  padding: 28px 20px;
  border-radius: 24px;
  background: var(--bg);
}
@media (min-width: 768px) {
  .bw-contact__form {
    padding: 48px;
  }
}
.bw-contact__form-title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 500;
}
.bw-contact__form form input,
.bw-contact__form form textarea {
  background: var(--white);
}
/* Contact Form 7 */
.bw-contact__form .bw-cf7 {
  display: grid;
  gap: 16px;
}
.bw-contact__form .tf-field {
  display: grid;
  gap: 8px;
  margin: 0;
}
.bw-contact__form .tf-field > *,
.bw-contact__form .wpcf7-form-control-wrap,
.bw-contact__form .wpcf7-form-control:not(.wpcf7-submit) {
  display: block;
  width: 100%;
}
.bw-contact__form .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: var(--primary);
  font-size: 13px;
}
/* CF7's submit is an <input>, which the design's animated .tf-btn can't style */
.bw-contact__form input.wpcf7-submit {
  justify-self: start;
  width: auto;
  padding: 12px 36px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.bw-contact__form input.wpcf7-submit:hover,
.bw-contact__form input.wpcf7-submit:focus-visible {
  background: var(--primary);
}
.bw-contact__form input.wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.bw-contact__form .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
}
.bw-contact__form .wpcf7-spinner {
  margin: 0 0 0 12px;
}

/* ---------- Live search (assets/js/search.js) ---------- */
.form_search-product,
.form-search-nav {
  position: relative;
}
.bw-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1060;
  max-height: 440px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(43, 52, 74, 0.12);
  text-align: left;
}
.bw-search-results[hidden] {
  display: none;
}
.bw-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
}
.bw-search-item:hover,
.bw-search-item.is-active {
  background: var(--bg);
}
.bw-search-item img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
}
.bw-search-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bw-search-name {
  overflow: hidden;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bw-search-name mark {
  padding: 0;
  background: transparent;
  color: var(--primary);
}
.bw-search-price {
  color: var(--primary);
  font-size: 14px;
  line-height: 20px;
}
.bw-search-price del {
  margin-right: 4px;
  color: var(--text-3);
}
.bw-search-price ins {
  text-decoration: none;
}
.bw-search-all {
  display: block;
  margin-top: 4px;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  text-align: center;
}
.bw-search-all.is-active,
.bw-search-all:hover {
  color: var(--primary);
}
.bw-search-empty {
  margin: 0;
  padding: 12px 8px;
  color: var(--text-2);
}

/* Text written in the page editor on plain pages (page.php): Privacy Policy, Terms,
   the SEO text under My Account ... The template resets headings, paragraphs and
   lists, so give them readable spacing again. Direct children only: WooCommerce
   forms inside .woocommerce keep their own design. */
.bw-page-content > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.bw-page-content > :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}
.bw-page-content > :first-child {
  margin-top: 0;
}
.bw-page-content > h1 { font-size: clamp(28px, 3vw, 36px); }
.bw-page-content > h2 { font-size: clamp(24px, 2.6vw, 30px); }
.bw-page-content > h3 { font-size: clamp(22px, 2.2vw, 26px); }
.bw-page-content > h4 { font-size: clamp(18px, 1.8vw, 20px); }
.bw-page-content > :is(h5, h6) { font-size: 17px; }
.bw-page-content > p {
  margin-top: 0;
  margin-bottom: 1em;
  color: var(--text-2);
}
.bw-page-content > :is(ul, ol) {
  margin-top: 0;
  margin-bottom: 1.2em;
  padding-left: 1.4em;
  color: var(--text-2);
}
.bw-page-content > ul,
.bw-page-content > ul > li { list-style: disc; }
.bw-page-content > ol,
.bw-page-content > ol > li { list-style: decimal; }
.bw-page-content > :is(ul, ol) > li { margin-bottom: 0.4em; }
.bw-page-content > :is(ul, ol) > li > p { margin: 0; }
/* Text after a WooCommerce block (e.g. under the My Account login form). */
.bw-page-content > .woocommerce + * {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

/* ---- Your custom CSS below ---- */
