/* Happyduke Toys landing page. Colours and fonts come from the SmartGuideBD theme tokens. */
.sgbd-hd { --hd-wood: #7a4a22; --hd-ink: var(--c-text); }
.sgbd-hd .wa-float, .sgbd-hd .buy-bar, .sgbd-hd .mobile-search { display: none !important; }
.hd { overflow-x: clip; }
.hd-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter, 16px); }
.hd-narrow { max-width: 820px; }
.hd-center { text-align: center; }
.hd-i { width: 22px; height: 22px; flex: none; }
.hd h2 { font-size: clamp(24px, 4.6vw, 34px); margin-bottom: 12px; }
.hd h3 { font-size: 20px; }
.hd-sub { color: var(--c-muted); margin: -4px 0 20px; }
.hd-notices:empty { display: none; }
.hd-notices { padding-top: 12px; }

/* Buttons */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 12px 10px; white-space: nowrap; border: 0; border-radius: 14px; font: 700 18px/1.2 var(--font); cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.hd-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.hd-btn:active { transform: translateY(0); }
.hd-btn .hd-i { width: 20px; height: 20px; }
.hd-btn--order { background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary) 30%, transparent); }
.hd-btn--order:hover { color: #fff; }
.hd-btn--cart { background: var(--c-accent); color: #1f1600; box-shadow: 0 8px 20px color-mix(in srgb, var(--c-accent) 40%, transparent); }
.hd-btn--full { width: 100%; }
.hd-btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hd-hero { padding: 12px 0 24px; background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%); }
.hd-hero__grid { display: grid; grid-template-areas: "head" "media" "info"; gap: 10px; }
.hd-hero__head { grid-area: head; }
.hd-hero__media { grid-area: media; margin: 0; }
.hd-hero__info { grid-area: info; display: flex; flex-direction: column; align-items: flex-start; }
.hd-hero__info > [data-buy-area], .hd-hero__info > [data-soldout] { align-self: stretch; }
/* Phones: price and order buttons first, the short introduction right after them. */
.hd-hero__info .hd-intro { order: 5; margin: 12px 0 0; }
.hd-hero__info .hd-mini { order: 6; }
.hd-eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--hd-wood); }
.hd-title { margin: 0; font-size: clamp(25px, 6.4vw, 46px); line-height: 1.08; letter-spacing: -.01em; }
.hd-title span { display: block; margin-top: 2px; font-size: .52em; font-weight: 600; color: var(--c-muted); letter-spacing: 0; }
.hd-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; }
.hd-hero__img { width: 100%; aspect-ratio: 1; max-height: 33vh; object-fit: cover; object-position: 50% 40%; border-radius: var(--r); background: #2a1a0e; }
.hd-zoom__hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .9); color: var(--c-text); font-size: 13px; font-weight: 600; }
.hd-zoom__hint .hd-i { width: 16px; height: 16px; }
.hd-intro { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.hd-rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--c-muted); text-decoration: none; font-size: 14px; }
.hd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; }
.hd-price__now { font: 700 clamp(32px, 8vw, 44px)/1 var(--font-head); color: var(--c-primary); }
.hd-price__old { font-size: 19px; color: var(--c-muted); text-decoration-thickness: 2px; }
.hd-price__save { padding: 3px 10px; border-radius: 999px; background: var(--c-accent-soft); color: #5a3d00; font-weight: 700; font-size: 15px; }
.hd-stock { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; font-size: 16px; }
.hd-stock__dot { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgb(31 157 85 / .18); }
.hd-stock.is-out { background: #fdecea; color: #a12a1c; }
.hd-stock.is-out .hd-stock__dot { background: #c0392b; box-shadow: 0 0 0 3px rgb(192 57 43 / .18); }
.hd-mini { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--c-muted); }
.hd-mini li { display: inline-flex; align-items: center; gap: 6px; }
.hd-mini .hd-i { width: 18px; height: 18px; color: var(--c-primary); }

/* Buy form */
.hd-buy { display: grid; gap: 10px; }
.hd-qty { display: flex; align-items: center; gap: 12px; }
.hd-qty__label { font-weight: 600; }
.hd-qty__box { display: inline-flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-surface); overflow: hidden; }
.hd-qty__btn { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--c-primary); }
.hd-qty__btn:hover { background: var(--c-primary-soft); }
.hd-qty input { width: 48px; height: 44px; border: 0; text-align: center; font-weight: 700; font-size: 18px; color: var(--c-text); background: none; -moz-appearance: textfield; appearance: textfield; }
.hd-qty input::-webkit-outer-spin-button, .hd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hd-buy__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hd-soldout { padding: 14px 16px; border-radius: var(--r-sm); background: #fdecea; color: #7a1d12; }

/* Section jump links */
.hd-jump { background: var(--c-bg); border-block: 1px solid var(--c-line); }
.hd-jump .hd-wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.hd-jump .hd-wrap::-webkit-scrollbar { display: none; }
.hd-jump a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line); }
.hd-jump a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Sections */
.hd-sec { padding: 44px 0; }
.hd-sec--tint { background: var(--c-surface); }
.hd-sec--slim { padding: 8px 0 36px; }
.hd-lead { font-size: 18px; }

/* Details */
.hd-details { display: grid; gap: 28px; }
.hd-details h3 { margin-top: 26px; }
.hd-power { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hd-power li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-line); }
.hd-power li .hd-i { color: var(--c-primary); margin-top: 2px; }
.hd-power li.is-warn { background: var(--c-accent-soft); border-color: color-mix(in srgb, var(--c-accent) 60%, transparent); }
.hd-power li.is-warn .hd-i { color: #8a5a00; }
.hd-power strong { display: block; }
.hd-power span { color: var(--c-muted); font-size: 15px; }
.hd-ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hd-ticks li { position: relative; padding-left: 28px; }
.hd-ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid #1f9d55; border-bottom: 2.5px solid #1f9d55; transform: rotate(-45deg) scale(.8); }
.hd-specs { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.hd-specs th, .hd-specs td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.hd-specs tr:last-child th, .hd-specs tr:last-child td { border-bottom: 0; }
.hd-specs th { width: 40%; font-weight: 600; color: var(--c-muted); background: color-mix(in srgb, var(--c-bg) 60%, var(--c-surface)); }

/* Gallery */
.hd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hd-gallery__item { margin: 0; }
.hd-gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); transition: transform .25s ease; }
.hd-gallery__item .hd-zoom:hover img { transform: scale(1.02); }
.hd-gallery figcaption { margin-top: 6px; font-size: 13px; color: var(--c-muted); line-height: 1.4; }

/* Why choose */
.hd-why { display: grid; gap: 12px; margin-top: 20px; }
.hd-why__card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 16px; border-radius: var(--r); background: var(--c-surface); box-shadow: var(--shadow); }
.hd-why__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-accent-soft); color: var(--hd-wood); }
.hd-why__card h3 { margin: 2px 0 4px; font-size: 19px; }
.hd-why__card p { margin: 0; color: var(--c-muted); }

/* Bonus */
.hd-bonus { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 32%, #fff) 0%, var(--c-accent-soft) 100%); border: 2px dashed color-mix(in srgb, var(--c-accent) 70%, var(--hd-wood)); }
.hd-bonus h2 { font-size: clamp(21px, 4.4vw, 28px); margin-bottom: 6px; }
.hd-bonus p { margin-bottom: 10px; }
.hd-bonus__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-primary); color: var(--c-accent); }
.hd-bonus__icon .hd-i { width: 30px; height: 30px; }
.hd-bonus__badge { position: absolute; top: -12px; right: 16px; padding: 3px 14px; border-radius: 999px; background: #c0392b; color: #fff; font-weight: 700; font-size: 15px; }
.hd-ticks--inline { grid-auto-flow: row; }

/* Safety */
#safety h2 { display: flex; align-items: center; gap: 10px; }
#safety h2 .hd-i { width: 30px; height: 30px; color: var(--c-primary); }
.hd-safety { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hd-safety li { padding: 12px 14px; border-left: 4px solid var(--c-primary); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--c-bg); }

/* Delivery */
.hd-ship { display: grid; gap: 12px; margin: 20px 0; }
.hd-ship__card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--c-surface); box-shadow: var(--shadow); }
.hd-ship__card .hd-i { width: 28px; height: 28px; color: var(--c-primary); }
.hd-ship__card strong { font: 700 22px/1.1 var(--font-head); color: var(--c-primary); }
.hd-ship__notes { max-width: 820px; margin: 0 auto; }

/* Reviews */
.hd-reviews { display: grid; gap: 28px; }
.hd-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.hd-stars svg { width: 18px; height: 18px; fill: #d9d2c3; }
.hd-stars svg.on { fill: #f2a516; }
.hd-review { padding: 16px; border-radius: var(--r-sm); background: var(--c-bg); margin-bottom: 12px; }
.hd-review header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.hd-review p { margin: 0 0 6px; }
.hd-review time { font-size: 13px; color: var(--c-muted); }
.hd-empty { padding: 16px; border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-muted); }
.hd-form { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); background: var(--c-bg); border: 1px solid var(--c-line); }
.hd-form h3 { margin: 0; }
.hd-form__note { margin: 0 0 6px; font-size: 14px; color: var(--c-muted); }
.hd-form label, .hd-rate legend { font-weight: 600; margin-top: 6px; }
.hd-form input[type="text"], .hd-form input[type="tel"], .hd-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-surface); font-size: 16px; }
.hd-form input:focus, .hd-form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 15%, transparent); }
.hd-form .hd-btn { margin-top: 10px; }
.hd-form__msg { margin: 6px 0 0; font-weight: 600; }
.hd-form__msg.is-ok { color: #1f7a45; }
.hd-form__msg.is-err { color: #a12a1c; }
.hd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hd-rate { border: 0; margin: 0; padding: 0; }
.hd-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.hd-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hd-rate__stars label { margin: 0; cursor: pointer; padding: 2px; }
.hd-rate__stars svg { width: 36px; height: 36px; fill: #d9d2c3; transition: fill .1s; }
.hd-rate__stars input:checked ~ label svg, .hd-rate__stars label:hover svg, .hd-rate__stars label:hover ~ label svg { fill: #f2a516; }
.hd-rate__stars input:focus-visible + label { outline: 3px solid var(--c-accent); border-radius: 6px; }

/* FAQ */
.hd-faq { display: grid; gap: 10px; margin-top: 20px; }
.hd-faq details { border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-line); }
.hd-faq summary { position: relative; padding: 15px 48px 15px 16px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.hd-faq summary::-webkit-details-marker { display: none; }
.hd-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--c-primary); }
.hd-faq details[open] summary::after { content: "−"; }
.hd-faq details[open] summary { color: var(--c-primary); }
.hd-faq details p { margin: 0; padding: 0 16px 16px; color: var(--c-muted); }

/* Final order */
.hd-final { padding-bottom: 64px; }
.hd-final__box { display: grid; gap: 18px; padding: 22px 14px; border-radius: var(--r-lg); background: var(--c-primary); color: #fff; box-shadow: var(--shadow-lg); }
.hd-final__box h2 { color: #fff; }
.hd-final__img img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin: 0 auto; }
.hd-price--light .hd-price__now { color: var(--c-accent); }
.hd-price--light .hd-price__old { color: rgb(255 255 255 / .7); }
.hd-stock--light { background: rgb(255 255 255 / .12); color: #fff; }
.hd-final .hd-qty__label { color: #fff; }
.hd-final .hd-btn--order { background: #fff; color: var(--c-primary); box-shadow: none; }
.hd-final .hd-btn--order:hover { color: var(--c-primary); }
.hd-final__help { margin: 14px 0 0; font-size: 15px; color: rgb(255 255 255 / .85); }
.hd-final__help a { color: var(--c-accent); }

/* Sticky order bar (phones) */
.hd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: auto 1fr 1.25fr; gap: 8px; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--c-surface); box-shadow: 0 -6px 24px rgb(16 32 24 / .14); transform: translateY(110%); transition: transform .2s ease; }
.hd-bar.is-on { transform: none; }
.hd-bar__price { display: grid; line-height: 1.1; }
.hd-bar__price strong { font: 700 20px/1 var(--font-head); color: var(--c-primary); }
.hd-bar__price del { font-size: 13px; color: var(--c-muted); }
.hd-bar .hd-btn { min-height: 48px; padding: 8px 10px; font-size: 16px; border-radius: 12px; }

/* WhatsApp */
/* Phones: a round icon that stays hidden while the top order buttons are on screen (so it never covers them),
   then sits above the order bar; its message shows beside it for a few seconds when it first appears.
   Larger screens: a pill with the full message. */
.hd-wa { position: fixed; right: 14px; bottom: 16px; z-index: 75; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--c-wa, #25d366); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 26px rgb(37 211 102 / .4); transition: bottom .2s ease, opacity .2s ease, transform .15s; }
.hd-wa:hover { color: #fff; transform: translateY(-2px); }
.hd-wa .icon { width: 28px; height: 28px; }
.hd-wa span { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); width: max-content; max-width: 210px; padding: 7px 12px; border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-size: 13px; line-height: 1.3; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
body.hd-wa-hint .hd-wa span { opacity: 1; }
body.hd-hero-buy .hd-wa { opacity: 0; pointer-events: none; }
body.hd-bar-on .hd-wa { bottom: 84px; }

/* Toast */
.hd-toast { position: fixed; left: 50%; top: 16px; z-index: 90; transform: translateX(-50%); width: min(92vw, 440px); padding: 14px 16px; border-radius: var(--r-sm); background: var(--c-text); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; }
.hd-toast a { color: var(--c-accent); margin-left: 8px; white-space: nowrap; }
.hd-toast.is-err { background: #8f2216; }

/* Lightbox */
.hd-lightbox { width: min(96vw, 900px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--r); background: #111; color: #fff; }
.hd-lightbox::backdrop { background: rgb(0 0 0 / .8); }
.hd-lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.hd-lightbox__cap { margin: 0; padding: 10px 16px 14px; font-size: 14px; color: #ddd; }
.hd-lightbox__close, .hd-lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.hd-lightbox__close { top: 10px; right: 10px; }
.hd-lightbox__nav { top: 45%; }
.hd-lightbox__nav--prev { left: 10px; }
.hd-lightbox__nav--next { right: 10px; }

/* Tablet and up */
@media (min-width: 640px) {
	.hd-why { grid-template-columns: 1fr 1fr; }
	.hd-ship { grid-template-columns: repeat(3, 1fr); }
	.hd-ship__card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.hd-final__box { grid-template-columns: 200px 1fr; align-items: center; padding: 28px; }
	.hd-buy { grid-template-columns: auto 1fr; align-items: center; }
	.hd-hero__img { max-height: 46vh; }
}
@media (min-width: 900px) {
	.hd-hero { padding: 32px 0 44px; }
	.hd-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "media head" "media info"; grid-template-rows: auto 1fr; column-gap: 44px; row-gap: 14px; align-items: start; }
	.hd-hero__head { padding-top: 12px; }
	.hd-hero__img { max-height: none; object-fit: cover; }
	.hd-intro { font-size: 18px; margin-bottom: 16px; }
	.hd-buy { grid-template-columns: 1fr; }
	.hd-details { grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
	.hd-details__specs { position: sticky; top: calc(var(--header-h, 60px) + 40px); }
	.hd-details__specs h3 { margin-top: 0; }
	.hd-gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.hd-why { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.hd-why__card { grid-template-columns: 1fr; padding: 22px; }
	.hd-why__icon { grid-row: auto; margin-bottom: 12px; }
	.hd-bonus { grid-template-columns: auto 1fr; padding: 28px 32px; gap: 24px; }
	.hd-ticks--inline { grid-auto-flow: column; justify-content: start; gap: 20px; }
	.hd-reviews { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
	.hd-sec { padding: 64px 0; }
	.hd-bar { display: none !important; }
	.hd-hero__info .hd-intro { order: 0; margin: 0 0 16px; }
	.hd-hero__info .hd-mini { order: 0; }
	.hd-wa, body.hd-hero-buy .hd-wa { display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; padding: 12px 18px 12px 14px; border-radius: 999px; opacity: 1; pointer-events: auto; font-size: 15px; }
	.hd-wa .icon { width: 24px; height: 24px; }
	.hd-wa span { position: static; transform: none; max-width: none; padding: 0; background: none; color: inherit; box-shadow: none; font-size: inherit; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.hd-btn, .hd-bar, .hd-wa, .hd-gallery__item img { transition: none; }
}
