/* Shared Casa Blanca calls to action. */
:is(.store-promo a, .hero-actions .button-primary, .bf-opening .bf-contact,
    .closing-cta .button-primary, .primary-cta, .mobile-cta) {
  --cta-fill: linear-gradient(155deg, #f8e8bc, #e7c58a 62%, #d8ad68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 20px;
  border: 1px solid #e8c992;
  border-radius: 10px;
  background: var(--cta-fill);
  color: #192024;
  box-shadow: inset 0 1px 0 #fff8, 0 4px 12px #0003;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: filter 150ms ease, box-shadow 150ms ease;
}

:is(.bf-opening .bf-cta, .hero-actions .text-action,
    .product-card-actions .card-whatsapp, .card-body > a, .top-contact) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #b89258;
  border-radius: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

:is(.bf-opening .bf-cta, .hero-actions .text-action, .card-body > a, .top-contact) {
  color: #f7e4bd;
  background: #182027;
}

.product-card-actions .card-whatsapp, .card-body > a { width: 100%; }
:is(.bf-opening .bf-cta, .bf-opening .bf-contact)::after { content: none; }

@media (hover: hover) {
  :is(.store-promo a, .hero-actions .button-primary, .bf-opening .bf-contact,
      .closing-cta .button-primary, .primary-cta, .mobile-cta):hover {
    background: var(--cta-fill);
    color: #192024;
    filter: brightness(1.08);
  }
  :is(.bf-opening .bf-cta, .hero-actions .text-action, .card-body > a, .top-contact):hover {
    color: #fff4dc;
    background: #27323a;
  }
}

body > a.mobile-cta:not([hidden]) { display: none; }
@media (max-width: 620px) {
  body .intro .primary-cta { display: none; }
  body > a.mobile-cta:not([hidden]) {
    display: flex;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.store-promo a, .hero-actions .button-primary, .bf-opening .bf-contact,
      .closing-cta .button-primary, .primary-cta, .mobile-cta) { transition: none; }
}

.product-card .product-card-body .product-summary,
.card .card-body .product-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: normal;
}

.bf-product-grid .product-card .product-summary,
.card .card-body .product-summary { color: #d4cfc4; }

/* WhatsApp links share one treatment across the storefront and ad pages. */
a:is([href*="wa.me/"], [data-whatsapp], [data-wa]):is(
  .button, .whatsapp-button, .text-action, .bf-contact, .bf-group-contact,
  .card-whatsapp, .primary-cta, .mobile-cta, .top-contact, .card-body > a,
  .store-promo > a, .dock-whatsapp
) {
  --cta-fill: linear-gradient(145deg, #08774d, #075b3f);
  background: var(--cta-fill);
  color: #fff;
  border-color: #328962;
  gap: 8px;
}

a:is([href*="wa.me/"], [data-whatsapp], [data-wa]):is(
  .button, .whatsapp-button, .text-action, .bf-contact, .bf-group-contact,
  .card-whatsapp, .primary-cta, .mobile-cta, .top-contact, .card-body > a,
  .store-promo > a
):not(:has(svg))::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("/assets/whatsapp-cta.svg") center / contain no-repeat;
}

a:is([data-whatsapp], [data-wa], .card-whatsapp):focus-visible {
  outline: 2px solid #d9ae6c;
  outline-offset: 3px;
}

.bf-group-heading .bf-group-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #328962;
  border-radius: 9px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
@media (hover: hover) {
  a:is([href*="wa.me/"], [data-whatsapp], [data-wa]):is(
    .button, .whatsapp-button, .text-action, .bf-contact, .bf-group-contact,
    .card-whatsapp, .primary-cta, .mobile-cta, .top-contact, .card-body > a,
    .store-promo > a, .dock-whatsapp
  ):hover {
    background: var(--cta-fill);
    color: #fff;
    filter: brightness(1.1);
  }
}
/* Keep category labels legible over both light and dark photography. */
.product-card .product-media .product-badge {
  z-index: 2;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border: 1px solid #6c6352;
  border-radius: 6px;
  background: #202326;
  color: #f5e7ca;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .065em;
  overflow-wrap: anywhere;
}
