/* HealthMP "Deal of the Month" block ([hmp_deals] and the Elementor widget). Brand: teal #159E8F, dark teal #0F7A6E, navy #1A1A2E, mint #F2FBF9.
   Layout is driven by custom properties so the Elementor widget can change them: --d-cols, --d-gap, --d-peek. */
.hmpbi-deals { --d-teal: #159e8f; --d-teal-dark: #0f7a6e; --d-navy: #1a1a2e; --d-mint: #f2fbf9; --d-line: #d6eeea; --d-red: #d6363f; --d-cols: 5; --d-gap: 16px; --d-peek: 0px; --d-lift: -2px; margin: 0 auto; font-family: inherit; color: var(--d-navy); }
.hmpbi-deals-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.hmpbi-deals-title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; color: var(--d-navy); }
.hmpbi-deals-ends { display: flex; align-items: center; justify-content: var(--d-head-justify, flex-start); gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 14px; color: #4a5563; }
.hmpbi-deals-timer { display: inline-flex; gap: 4px; }
.hmpbi-deals-timer span { background: var(--d-navy); color: #fff; border-radius: 6px; padding: 3px 7px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.hmpbi-deals-nav { display: flex; align-items: center; gap: 8px; }
.hmpbi-deals-all { color: var(--d-teal-dark); font-weight: 600; text-decoration: none; margin-right: 6px; }
.hmpbi-deals-all:hover, .hmpbi-deals-all:focus { text-decoration: underline; }
.hmpbi-deals-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--d-line); background: #fff; color: var(--d-navy); font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; transition: background .15s, border-color .15s, color .15s; }
.hmpbi-deals-arrow:hover, .hmpbi-deals-arrow:focus-visible { background: var(--d-mint); border-color: var(--d-teal); }
.hmpbi-deals-arrow[disabled] { opacity: .35; cursor: default; }
.hmpbi-deals-track { list-style: none; margin: 0; padding: 2px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--d-cols) - 1) * var(--d-gap) - var(--d-peek)) / var(--d-cols)); gap: var(--d-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
.hmpbi-deals--no-scrollbar .hmpbi-deals-track { scrollbar-width: none; }
.hmpbi-deals--no-scrollbar .hmpbi-deals-track::-webkit-scrollbar { display: none; }
.hmpbi-deals--grid .hmpbi-deals-track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--d-cols), minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
.hmpbi-deal { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--d-line); border-radius: 16px; padding: 14px 14px 16px; margin: 0; transition: box-shadow .2s, transform .2s, border-color .2s; }
.hmpbi-deal:hover { box-shadow: 0 8px 22px rgba(26, 26, 46, .08); transform: translateY(var(--d-lift)); }
.hmpbi-deal-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }
.hmpbi-deal-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--d-red); color: #fff; font-size: 12px; font-weight: 700; border-radius: 100px; padding: 3px 10px; line-height: 1.4; }
.hmpbi-deals--badge-right .hmpbi-deal-badge { left: auto; right: 12px; }
.hmpbi-deal-img { display: block; aspect-ratio: 1 / 1; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px; box-sizing: border-box; }
.hmpbi-deal-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hmpbi-deal-name { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: var(--d-lines, 2); -webkit-box-orient: vertical; overflow: hidden; min-height: calc(var(--d-lines, 2) * 1.4em); transition: color .15s; }
.hmpbi-deal-price { display: flex; align-items: baseline; justify-content: var(--d-justify, flex-start); gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.hmpbi-deal-price del { color: #6b7280; font-size: 13px; }
.hmpbi-deal-ref { color: #6b7280; font-size: 12px; margin-right: -4px; }
.hmpbi-deal-price ins { text-decoration: none; color: var(--d-red); font-weight: 700; font-size: 18px; }
.hmpbi-deals .hmpbi-deal-add { margin-top: auto; display: block; text-align: center; background: var(--d-teal); color: #fff; border: 0; border-radius: 100px; padding: 10px 14px; font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1.3; transition: background .15s, color .15s, border-color .15s; }
.hmpbi-deals--btn-auto .hmpbi-deal-add { align-self: var(--d-justify, flex-start); }
.hmpbi-deals .hmpbi-deal-add:hover, .hmpbi-deals .hmpbi-deal-add:focus-visible { background: var(--d-teal-dark); color: #fff; }
.hmpbi-deals .hmpbi-deal-add.added::after { content: " ✓"; }
.hmpbi-deals .added_to_cart { display: block; text-align: center; margin-top: 6px; font-size: 13px; color: var(--d-teal-dark); }
.hmpbi-deals-empty { border: 1px dashed #dba617; background: #fff8e5; color: #5c4400; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.hmpbi-deals-sample { border: 1px dashed #72aee6; background: #f0f6fc; color: #1d4f91; padding: 8px 12px; border-radius: 8px; font-size: 13px; margin: 0 0 12px; }

/* Built-in breakpoints for the shortcode. The Elementor widget sets its own (hmpbi-deals--custom-cols). */
@media (max-width: 1199px) { .hmpbi-deals:not(.hmpbi-deals--custom-cols) { --d-cols: 4; } }
@media (max-width: 991px) { .hmpbi-deals:not(.hmpbi-deals--custom-cols) { --d-cols: 3; } }
@media (max-width: 767px) {
	.hmpbi-deals:not(.hmpbi-deals--custom-cols) { --d-cols: 2; }
	.hmpbi-deals:not(.hmpbi-deals--custom-cols) .hmpbi-deals-arrow { display: none; }
	.hmpbi-deals--carousel:not(.hmpbi-deals--custom-cols) .hmpbi-deals-track { grid-auto-columns: 44%; }
}
@media (max-width: 479px) { .hmpbi-deals--carousel:not(.hmpbi-deals--custom-cols) .hmpbi-deals-track { grid-auto-columns: 72%; } }
@media (prefers-reduced-motion: reduce) { .hmpbi-deals-track { scroll-behavior: auto; } .hmpbi-deal, .hmpbi-deal:hover { transition: none; transform: none; } }
