/* Haddiction Reviews - product page reviews, shop stars, homepage slider.
   Brand: ink #15141B, lime #D5F25B, mist #F2F6DF. All rules are scoped to .hdr* classes. */

.hdr, .hdr-slider, .hdr-loop, .hdr-lb {
	--hdr-ink: #15141B;
	--hdr-lime: #D5F25B;
	--hdr-mist: #F2F6DF;
	--hdr-mute: #7A7985;
	--hdr-line: #ECECEF;
	--hdr-soft: #F7F8F3;
}

/* Stars: grey row underneath, ink row on top clipped to the rating. */
.hdr-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; white-space: nowrap; }
.hdr-stars svg { width: 18px; height: 18px; margin-right: 2px; fill: currentColor; }
.hdr-stars-bg { color: #DCDCE1; display: inline-block; }
.hdr-stars-fg { color: var(--hdr-ink, #15141B); position: absolute; left: 0; top: 0; overflow: hidden; display: inline-block; }
.hdr-stars.lg svg { width: 24px; height: 24px; }
.hdr-stars.sm svg { width: 16px; height: 16px; }
.hdr-stars.xs svg { width: 14px; height: 14px; margin-right: 1px; }

/* Section */
.hdr { font-family: inherit; color: var(--hdr-ink); max-width: 980px; margin: 0 auto; text-align: left; }
.hdr * { box-sizing: border-box; }
.hdr button { font-family: inherit; }
.hdr-sum { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(21, 20, 27, .06); margin: 0 0 14px; }
.hdr-score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hdr-score b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -1px; }
.hdr-score span { color: var(--hdr-mute); font-size: 13px; }
.hdr-bars { display: grid; gap: 6px; }
.hdr-bar { all: unset; display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 600; padding: 3px 6px; border-radius: 10px; color: var(--hdr-ink); }
.hdr-bar:hover:not([disabled]), .hdr-bar.on { background: var(--hdr-soft); }
.hdr-bar[disabled] { cursor: default; opacity: .45; }
.hdr-bar span { display: inline-flex; align-items: center; gap: 3px; }
.hdr-bar span svg { width: 13px; height: 13px; fill: var(--hdr-ink); }
.hdr-bar i { height: 8px; border-radius: 99px; background: #EEEEF1; overflow: hidden; display: block; }
.hdr-bar em { display: block; height: 100%; background: var(--hdr-ink); border-radius: 99px; }
.hdr-bar small { color: var(--hdr-mute); font-size: 12px; text-align: right; }

.hdr-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hdr-mute); margin: 0 0 8px; }
.hdr-photos { margin: 0 0 14px; }
.hdr-photos-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hdr-photos-row::-webkit-scrollbar { display: none; }
.hdr-thumb { all: unset; position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #EEE; cursor: zoom-in; }
.hdr-thumb img, .hdr-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdr-thumb.is-video::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; background: rgba(21, 20, 27, .25); }

.hdr-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.hdr-chip { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hdr-line); color: var(--hdr-ink); }
.hdr-chip i { font-style: normal; font-size: 11px; color: var(--hdr-mute); margin-left: 2px; }
.hdr-chip.on { background: var(--hdr-ink); color: #fff; box-shadow: none; }
.hdr-chip.on i { color: var(--hdr-lime); }

.hdr-list { display: grid; gap: 10px; }
.hdr-list.is-busy { opacity: .5; pointer-events: none; }
.hdr-card { background: #fff; border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 10px 30px rgba(21, 20, 27, .05); }
.hdr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hdr-card-head time { color: var(--hdr-mute); font-size: 12px; }
.hdr-card-text { font-size: 15px; line-height: 1.6; margin: 10px 0 0; color: #2A2930; overflow-wrap: anywhere; }
.hdr-card-text p { margin: 0 0 8px; }
.hdr-card-text p:last-child { margin: 0; }
.hdr-card-media { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.hdr-card-media .hdr-thumb { width: 72px; height: 72px; border-radius: 12px; }
.hdr-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; font-size: 13px; }
.hdr-cc { font-size: 10.5px; font-weight: 700; background: #F2F2F4; color: var(--hdr-mute); border-radius: 6px; padding: 1px 6px; }
.hdr-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: var(--hdr-mist); color: #3D4A12; border-radius: 999px; padding: 3px 9px 3px 6px; }
.hdr-ver svg { width: 13px; height: 13px; }
.hdr-reply { margin: 12px 0 0; background: var(--hdr-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.55; border-left: 3px solid var(--hdr-lime); }
.hdr-reply b { display: block; font-size: 12px; margin-bottom: 4px; }
.hdr-reply p { margin: 0; }
.hdr-inc { margin: 10px 0 0; font-size: 11.5px; color: var(--hdr-mute); }
.hdr-card-prod { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--hdr-line); text-decoration: none !important; color: var(--hdr-ink) !important; font-size: 13px; font-weight: 600; }
.hdr-card-prod img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }

.hdr-more { all: unset; display: block; margin: 14px auto 0; padding: 13px 26px; border-radius: 999px; background: var(--hdr-ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; text-align: center; }
.hdr-more:hover { background: var(--hdr-lime); color: var(--hdr-ink); }
.hdr-more[hidden] { display: none; }
.hdr-note { text-align: center; color: var(--hdr-mute); font-size: 12.5px; margin: 14px 0 0; }
.hdr-empty { background: #fff; border-radius: 22px; padding: 28px; text-align: center; }
.hdr-empty p { margin: 0; font-weight: 600; }
.hdr-none { text-align: center; color: var(--hdr-mute); margin: 10px 0; }

@media (max-width: 640px) {
	.hdr-sum { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
	.hdr-score { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
	.hdr-score b { font-size: 38px; }
	.hdr-score span { flex-basis: 100%; }
	.hdr-card { padding: 16px; }
}

/* Lightbox */
.hdr-lb { position: fixed; inset: 0; z-index: 999999; background: rgba(12, 12, 16, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.hdr-lb img, .hdr-lb video { max-width: 100%; max-height: 86vh; border-radius: 16px; display: block; }
.hdr-lb button { all: unset; position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; font-size: 22px; cursor: pointer; }
.hdr-lb .x { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.hdr-lb .l { left: 14px; top: 50%; transform: translateY(-50%); }
.hdr-lb .r { right: 14px; top: 50%; transform: translateY(-50%); }
.hdr-lb button:hover { background: var(--hdr-lime); color: var(--hdr-ink); }
html.hdr-lb-open { overflow: hidden; }

/* Shop cards */
.hdr-loop { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 0 8px; text-decoration: none !important; color: var(--hdr-ink) !important; font-size: 12px; font-weight: 600; line-height: 1; }
.hdr-loop span { color: var(--hdr-mute); }
.woocommerce ul.products li.product .astra-shop-summary-wrap > .review-rating { display: none !important; }

/* Homepage slider */
.hdr-slider { position: relative; text-align: left; }
.hdr-slider-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; }
.hdr-slider-track::-webkit-scrollbar { display: none; }
.hdr-slider .hdr-card { flex: 0 0 min(320px, 84%); scroll-snap-align: start; display: flex; flex-direction: column; }
.hdr-slider .hdr-card-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; flex: 1 0 auto; }
.hdr-slider .hdr-card-prod { margin-top: auto; }
.hdr-slider .hdr-inc { display: none; }
.hdr-slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.hdr-slider-nav button { all: unset; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px #E4E4E8; cursor: pointer; color: #15141B; font-size: 16px; }
.hdr-slider-nav button:hover { background: #15141B; color: #fff; box-shadow: none; }
.hdr-dots { display: flex; gap: 6px; }
.hdr-dots i { width: 7px; height: 7px; border-radius: 99px; background: #D4D4D9; transition: width .2s, background .2s; }
.hdr-dots i.on { width: 20px; background: #15141B; }

/* 1.0.1: the theme styles every <button> (black fill, white text) more specifically than one class does.
   These win back our buttons. */
.hdr button.hdr-bar, .hdr button.hdr-chip, .hdr button.hdr-more, .hdr button.hdr-thumb,
.hdr-slider button.hdr-thumb, .hdr-slider-nav button, .hdr-lb button {
	-webkit-appearance: none !important; appearance: none !important; border: 0 !important; text-transform: none !important;
	letter-spacing: normal !important; min-height: 0 !important; font-family: inherit !important; text-decoration: none !important; margin: 0;
}
.hdr button.hdr-bar { background: transparent !important; color: var(--hdr-ink) !important; padding: 3px 6px !important; border-radius: 10px !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.3 !important; box-shadow: none !important; width: 100%; text-align: left; }
.hdr button.hdr-bar:hover:not([disabled]), .hdr button.hdr-bar.on { background: var(--hdr-soft) !important; }
.hdr button.hdr-chip { background: #fff !important; color: var(--hdr-ink) !important; padding: 8px 14px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.2 !important; box-shadow: inset 0 0 0 1.5px var(--hdr-line) !important; }
.hdr button.hdr-chip:hover { box-shadow: inset 0 0 0 1.5px var(--hdr-ink) !important; }
.hdr button.hdr-chip.on { background: var(--hdr-ink) !important; color: #fff !important; box-shadow: none !important; }
.hdr button.hdr-more { background: var(--hdr-ink) !important; color: #fff !important; padding: 13px 26px !important; border-radius: 999px !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.2 !important; }
.hdr button.hdr-more:hover { background: var(--hdr-lime) !important; color: var(--hdr-ink) !important; }
.hdr button.hdr-thumb, .hdr-slider button.hdr-thumb { background: #EEE !important; padding: 0 !important; color: #fff !important; box-shadow: none !important; }
.hdr button.hdr-thumb { border-radius: 14px !important; }
.hdr .hdr-card-media button.hdr-thumb, .hdr-slider button.hdr-thumb { border-radius: 12px !important; }
.hdr-slider-nav button { background: #fff !important; color: #15141B !important; padding: 0 !important; border-radius: 50% !important; width: 38px !important; height: 38px !important; box-shadow: inset 0 0 0 1.5px #E4E4E8 !important; font-size: 16px !important; line-height: 1 !important; }
.hdr-slider-nav button:hover { background: #15141B !important; color: #fff !important; box-shadow: none !important; }
.hdr-lb button { background: rgba(255, 255, 255, .14) !important; color: #fff !important; padding: 0 !important; border-radius: 50% !important; width: 44px !important; height: 44px !important; font-size: 22px !important; line-height: 1 !important; }
.hdr-lb button:hover { background: var(--hdr-lime) !important; color: var(--hdr-ink) !important; }

/* 1.0.1: all-reviews page - a masonry of cards with the product on each. */
.hdr.is-all { max-width: 1240px; }
.hdr.is-all .hdr-list { display: block; columns: 3 300px; column-gap: 12px; }
.hdr.is-all .hdr-list .hdr-card { break-inside: avoid; margin: 0 0 12px; display: inline-block; width: 100%; }
.hdr.is-all .hdr-list .hdr-none { column-span: all; }
/* Slider: fade the cut-off card at the right edge. */
.hdr-slider-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }

/* 1.0.5: moved here from Quantity Upsell (its "1b" block) when CusRev went - all review styling lives in this plugin.
   The stars under the product title are WooCommerce's font stars: grey empty, black filled, stars before the link. */
.woocommerce div.product .star-rating::before, .woocommerce-page div.product .star-rating::before { color: #DFE4E7 !important; opacity: 1 !important; }
.woocommerce div.product .star-rating span::before, .woocommerce-page div.product .star-rating span::before { color: #000 !important; }
.woocommerce div.product .woocommerce-product-rating, .woocommerce-page div.product .woocommerce-product-rating { display: flex !important; flex-direction: row !important; align-items: center !important; flex-wrap: wrap !important; gap: 4px !important; margin-left: 0 !important; padding-left: 0 !important; text-indent: 0 !important; }
.woocommerce div.product .woocommerce-product-rating::before, .woocommerce div.product .woocommerce-product-rating::after,
.woocommerce-page div.product .woocommerce-product-rating::before, .woocommerce-page div.product .woocommerce-product-rating::after { display: none !important; content: none !important; }
.woocommerce div.product .woocommerce-product-rating .review-rating, .woocommerce-page div.product .woocommerce-product-rating .review-rating { order: 1 !important; margin: 0 !important; padding-left: 0 !important; }
.woocommerce div.product .woocommerce-product-rating .review-rating .star-rating { margin-left: 0 !important; padding-left: 0 !important; }
.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link, .woocommerce-page div.product .woocommerce-product-rating .woocommerce-review-link { order: 2 !important; margin: 0 !important; }
/* The Reviews tab panel lines up with the Description panel; the gallery never leaks into it. */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--reviews, .woocommerce div.product .woocommerce-tabs #tab-reviews { padding: 10px 5px 0 5px !important; }
#tab-reviews .woocommerce-product-gallery, #tab-reviews .woocommerce-product-gallery__wrapper { display: none !important; }

/* 1.0.6: fixes from the phone. */
/* "Show more" centred (the theme's button reset was pulling it to the left). */
.hdr button.hdr-more { display: block !important; width: auto !important; margin: 18px auto 0 !important; }
/* The theme gives every <p> a big bottom margin - that was the empty space at the bottom of some cards. */
.hdr p.hdr-inc, .hdr p.hdr-note, .hdr p.hdr-label, .hdr .hdr-empty p, .hdr .hdr-reply p, .hdr-slider p { margin-bottom: 0 !important; }
.hdr p.hdr-inc { margin-top: 10px !important; }
.hdr p.hdr-note { margin-top: 14px !important; }
.hdr .hdr-card-text p { margin: 0 0 8px !important; }
.hdr .hdr-card-text p:last-child { margin-bottom: 0 !important; }
/* Homepage slider: whole cards only (3 / 2 / 1 across), no cut-off card at the edge, no fade, and room for the
   shadows so they aren't sliced into hard lines at the top and bottom. */
.hdr-slider-track { -webkit-mask-image: none !important; mask-image: none !important; gap: 12px; padding: 16px 12px 28px !important; margin: -16px 0 -14px !important; scroll-padding-inline: 12px; }
.hdr-slider .hdr-card { flex: 0 0 calc((100% - 24px) / 3) !important; box-shadow: 0 1px 2px rgba(21, 20, 27, .04), 0 8px 20px rgba(21, 20, 27, .06) !important; }
@media (max-width: 1024px) { .hdr-slider .hdr-card { flex-basis: calc((100% - 12px) / 2) !important; } }
@media (max-width: 640px) { .hdr-slider .hdr-card { flex-basis: 100% !important; } }
.hdr-slider, .hdr-slider *, .hdr-lb, .hdr-lb * { box-sizing: border-box; }

/* 1.0.7: slider card bottom - name row sits at the bottom with room above the product line (the pill touched it). */
.hdr-slider .hdr-card-text { flex: 0 1 auto !important; }
.hdr-slider .hdr-card-foot { margin-top: auto !important; padding-top: 12px; }
.hdr-slider .hdr-card-prod { margin-top: 14px !important; }
/* Wider breathing room so the card shadow isn't cut into straight lines at the sides. */
.hdr-slider-track { padding: 16px 20px 28px !important; scroll-padding-inline: 20px; }
/* Phones: swipe + dots only, no arrows. */
@media (max-width: 767px) {
	.hdr-slider-nav button { display: none !important; }
	.hdr-slider-nav { margin-top: 2px; }
}
/* The gap is wider than the side padding, so the next card never peeks in. */
.hdr-slider-track { gap: 24px !important; }
.hdr-slider .hdr-card { flex-basis: calc((100% - 48px) / 3) !important; }
@media (max-width: 1024px) { .hdr-slider .hdr-card { flex-basis: calc((100% - 24px) / 2) !important; } }
@media (max-width: 640px) { .hdr-slider-track { gap: 44px !important; } .hdr-slider .hdr-card { flex-basis: 100% !important; } }
