/* Source-style announcement transitions. */
.htw-site-header__announcement {
    transition: opacity .2s ease;
}
@media (prefers-reduced-motion: reduce) {
    .htw-site-header__announcement { transition: none; }
}

/* Homepage best sellers: a real WooCommerce collection using the selected card provider. */
.wp-block-group.htw-home-best-sellers {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) !important;
    padding: 56px 24px 68px;
    background: #f8f5f0;
}
.htw-home-best-sellers > .wp-block-heading {
    max-width: 1280px;
    margin: 0 auto 32px;
    color: #0e131f;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: none;
}
.htw-home-best-sellers .woocommerce,
.htw-home-best-sellers .products {
    width: 100%;
    max-width: 1280px;
    margin-right: auto !important;
    margin-left: auto !important;
}
.htw-home-best-sellers ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
}
.htw-home-best-sellers ul.products::before,
.htw-home-best-sellers ul.products::after { display: none !important; }
.htw-home-best-sellers ul.products > li.product {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}
@media (max-width: 900px) {
    .htw-home-best-sellers { padding: 44px 18px 52px; }
    .htw-home-best-sellers ul.products { gap: 16px; }
}
@media (max-width: 640px) {
    .htw-home-best-sellers { padding: 36px 15px 44px; }
    .htw-home-best-sellers > .wp-block-heading { margin-bottom: 24px; font-size: 25px; }
    .htw-home-best-sellers ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
}

/* Purchase actions below the product-focused story copy. */
.htw-rs__story-actions {
    margin-top: 14px;
}
.htw-rs__story-actions .htw-rs__cta {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    color: var(--rs-text, #0e131f);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
}
.htw-rs__story-actions .htw-rs__cta:hover,
.htw-rs__story-actions .htw-rs__cta:focus-visible {
    opacity: .7;
}

/* Footer contrast: keep menu and policy labels readable against the dark footer. */
#footer.footer-wrapper {
    --htw-footer-bg: #171717;
    --htw-footer-ink: #f8f8f8;
    --htw-footer-muted: #d4d4d4;
    background: var(--htw-footer-bg) !important;
    color: var(--htw-footer-ink) !important;
}
#footer .footer-widgets,
#footer .absolute-footer {
    background: var(--htw-footer-bg) !important;
    color: var(--htw-footer-ink) !important;
}
#footer .footer-widgets .widget-title,
#footer .footer-widgets .widget-title a,
#footer .footer-widgets .smi-footer-accordion-heading,
#footer .footer-widgets .smi-footer-accordion-label {
    color: var(--htw-footer-ink) !important;
}
#footer .footer-widgets .is-divider {
    background-color: #474747 !important;
}
#footer .footer-widgets .menu a,
#footer .footer-widgets .textwidget a,
#footer .footer-widgets .smi-footer-main-menu a,
#footer .footer-widgets a {
    color: var(--htw-footer-muted) !important;
    text-decoration: none;
}
#footer .footer-widgets .menu a:hover,
#footer .footer-widgets .menu a:focus-visible,
#footer .footer-widgets .textwidget a:hover,
#footer .footer-widgets .textwidget a:focus-visible {
    color: var(--htw-footer-ink) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
#footer .footer-widgets .widget_nav_menu ul,
#footer .footer-widgets .smi-footer-main-menu {
    margin-bottom: 0;
}
#footer .footer-widgets .smi-footer-signup,
#footer .footer-widgets .custom-html-widget > div:has(form input[type=email]) {
    box-sizing: border-box;
    background: #222 !important;
    border: 1px solid #414141;
}
#footer .footer-widgets .smi-footer-signup h3,
#footer .footer-widgets .custom-html-widget h3 {
    color: var(--htw-footer-ink) !important;
}
#footer .footer-widgets .smi-footer-signup p,
#footer .footer-widgets .custom-html-widget p {
    color: var(--htw-footer-muted) !important;
}
#footer .absolute-footer {
    border-top: 1px solid #474747;
}
#footer .absolute-footer,
#footer .absolute-footer a {
    color: var(--htw-footer-muted) !important;
}
#footer .absolute-footer a:hover,
#footer .absolute-footer a:focus-visible {
    color: var(--htw-footer-ink) !important;
}
