/* Shared components (Blumen design)
   Loaded on every page. Buttons, text links, the product card used by all
   product loops, the WooCommerce loop grid and the mobile side-scroller.
--------------------------------------------- */

/* Buttons
--------------------------------------------- */
.bluthe_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--bl-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}
.bluthe_btn--solid {
  background: var(--bl-navy);
  color: var(--bl-cream);
  border-color: var(--bl-navy);
}
.bluthe_btn--solid:hover {
  background: var(--bl-navy-deep);
  border-color: var(--bl-navy-deep);
  color: var(--bl-cream);
}
.bluthe_btn--outline {
  background: transparent;
  color: var(--bl-navy);
  border-color: rgba(22, 40, 63, 0.35);
}
.bluthe_btn--outline:hover {
  border-color: var(--bl-navy);
  background: rgba(22, 40, 63, 0.05);
  color: var(--bl-navy);
}
.bluthe_btn--light {
  background: var(--bl-cream);
  color: var(--bl-navy);
  border-color: var(--bl-cream);
  padding: 15px 34px;
}
.bluthe_btn--light:hover {
  background: var(--bl-rose);
  border-color: var(--bl-rose);
  color: var(--bl-navy);
}
.bluthe_btn--whatsapp {
  padding: 13px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: none;
}
.bluthe_btn--whatsapp svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.bluthe_textlink {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(22, 40, 63, 0.3);
  padding-bottom: 4px;
  color: var(--bl-navy);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.bluthe_textlink:hover {
  color: var(--bl-accent);
  border-bottom-color: var(--bl-accent);
}

/* WooCommerce loop grid
--------------------------------------------- */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: clamp(22px, 2.6vw, 34px) clamp(16px, 1.8vw, 24px);
}
ul.products li.product {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
ul.products li.product::before,
ul.products li.product::after {
  content: none;
}

/* Product card
   Wrapper is <li class="product bluthe_product_card"> in WooCommerce loops or
   <div class="bluthe_product_card"> in custom grids; the inner markup comes
   from template-parts/woocommerce/product-card.php.
--------------------------------------------- */
.bluthe_product_card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  position: relative;
  font-family: var(--bl-serif);
  color: var(--bl-navy);
}
.bluthe_product_card.is-hidden {
  display: none;
}
.bluthe_product_card a {
  color: var(--bl-navy);
  text-decoration: none;
}
.bluthe_product_card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bl-sand-light);
  background-image: repeating-linear-gradient(135deg, rgba(22, 40, 63, 0.05) 0 1px, transparent 1px 10px);
  overflow: hidden;
  margin-bottom: 2px;
}
.bluthe_product_card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform 0.6s ease;
}
.bluthe_product_card:hover .bluthe_product_card__media img {
  transform: scale(1.03);
}
.bluthe_product_card__tag,
.bluthe_product_card__kind,
.bluthe_product_card__sale {
  position: absolute;
  top: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 11px;
  line-height: 1.2;
  z-index: 1;
}
.bluthe_product_card__tag {
  inset-inline-start: 0;
  background: var(--bl-cream);
  color: rgba(22, 40, 63, 0.75);
}
.bluthe_product_card__kind {
  inset-inline-end: 0;
  color: var(--bl-cream);
  background: var(--bl-navy);
}
.bluthe_product_card__kind.is-artificial {
  background: var(--bl-brown);
}
.bluthe_product_card__sale {
  top: auto;
  bottom: 0;
  inset-inline-start: 0;
  background: var(--bl-accent);
  color: var(--bl-cream);
}
.bluthe_product_card__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.bluthe_product_card__name {
  font-family: var(--bl-serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  color: var(--bl-navy);
}
.bluthe_product_card__name a:hover {
  color: var(--bl-accent);
}
.bluthe_product_card__price {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--bl-navy);
  padding: 0;
}
.bluthe_product_card__price .woocommerce-Price-amount {
  font-weight: 400;
  font-size: inherit;
}
.bluthe_product_card__price del {
  opacity: 0.5;
  margin-inline-end: 6px;
}
.bluthe_product_card__price ins {
  text-decoration: none;
}
.bluthe_product_card__detail {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(22, 40, 63, 0.7);
  margin-top: 5px;
}
.bluthe_product_card .bluthe_product_card__add,
.bluthe_product_card .button.add_to_cart_button,
.bluthe_product_card .button.product_type_variable,
.bluthe_product_card .button.product_type_grouped,
.bluthe_product_card .button.product_type_external {
  margin: auto 0 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  float: none;
  background: transparent;
  color: var(--bl-navy);
  border: 1px solid rgba(22, 40, 63, 0.25);
  border-radius: 0;
  padding: 13px 18px;
  font-family: var(--bl-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.bluthe_product_card .bluthe_product_card__add:hover,
.bluthe_product_card .bluthe_product_card__add.is-added,
.bluthe_product_card .bluthe_product_card__add.loading,
.bluthe_product_card .bluthe_product_card__add.added {
  background: var(--bl-navy);
  color: var(--bl-cream);
  border-color: var(--bl-navy);
}
.bluthe_product_card .added_to_cart {
  display: none;
}
/* Out of stock: muted, still links to the product page. */
.bluthe_product_card .bluthe_product_card__add.is-out-of-stock {
  color: var(--bl-text-muted);
  border-style: dashed;
}
.bluthe_product_card .bluthe_product_card__add.is-out-of-stock:hover {
  background: transparent;
  color: var(--bl-navy);
  border-color: rgba(22, 40, 63, 0.4);
}

/* Mobile side-scroller
   Any grid with .bluthe_scroller--mobile becomes a swipeable row on phones.
   Set --bl-scroller-item on the grid to control the card width.
--------------------------------------------- */
@media (max-width: 767px) {
  .bluthe_scroller--mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--bl-gutter);
    margin-inline: calc(-1 * var(--bl-gutter));
    padding-inline: var(--bl-gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .bluthe_scroller--mobile::-webkit-scrollbar {
    display: none;
  }
  .bluthe_scroller--mobile > * {
    flex: 0 0 var(--bl-scroller-item, 72vw);
    max-width: 360px;
    scroll-snap-align: start;
  }
  .bluthe_scroller--mobile > .is-hidden {
    display: none;
  }

  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .bluthe_product_card__name {
    font-size: 16px;
  }
  .bluthe_product_card__row {
    flex-direction: column;
    gap: 4px;
  }
  /* Phones: no category tag on the image. */
  .bluthe_product_card__tag {
    display: none;
  }
  .bluthe_product_card .bluthe_product_card__add,
  .bluthe_product_card .button.add_to_cart_button,
  .bluthe_product_card .button.product_type_variable {
    padding: 11px 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}
