/* UK Coin Hunt — Homepage 2026
   Scoped to .hp26 to avoid bleed into other pages. */

.hp26 {
    --hp-ivory: #faf7f2;
    --hp-bg:    #ffffff;
    --hp-ink:   #1c1c1e;
    --hp-muted: #6b6258;
    --hp-line:  rgba(28, 28, 30, 0.10);
    --hp-gold:  #cfa362;
    --hp-gold-dark: #b88d4f;
    --hp-gold-line: rgba(207, 163, 98, 0.35);
    --hp-max:   1240px;
    --hp-pad:   clamp(16px, 3vw, 32px);

    background: var(--hp-ivory);
    color: var(--hp-ink);
    /* Match site body font (Poppins → Arial fallback) */
    font-family: "Poppins", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hp26 *,
.hp26 *::before,
.hp26 *::after { box-sizing: border-box; }

.hp26 .hp-wrap {
    max-width: var(--hp-max);
    margin: 0 auto;
    padding-left: var(--hp-pad);
    padding-right: var(--hp-pad);
}

.hp26 a { color: inherit; text-decoration: none; }

/* Serif headings — reuse the existing Lora face loaded site-wide */
.hp26 h1, .hp26 h2, .hp26 h3, .hp26 .hp-serif {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--hp-ink);
}

/* -------- Section rhythm -------- */
.hp26 .hp-section {
    padding: clamp(64px, 8vw, 112px) 0;
    position: relative;
}
.hp26 .hp-section + .hp-section {
    border-top: 1px solid var(--hp-line);
}
/* Alternating section tones — creates gentle separation without heavy blocks */
.hp26 .hp-section.hp-tone-paper { background: var(--hp-bg); }
body.dark-mode .hp26 .hp-section.hp-tone-paper { background: #1f1f1f; }

/* Editorial / My-story section: warm ivory panel with subtle ornamental treatment */
.hp26 .hp-section.hp-tone-story {
    background:
        radial-gradient(ellipse at top left,  rgba(207,163,98,0.08), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(207,163,98,0.06), transparent 50%),
        linear-gradient(180deg, #f5ede0 0%, #faf4e8 100%);
    overflow: hidden;
}
body.dark-mode .hp26 .hp-section.hp-tone-story {
    background:
        radial-gradient(ellipse at top left,  rgba(207,163,98,0.14), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(207,163,98,0.10), transparent 50%),
        linear-gradient(180deg, #1c1c1c 0%, #222 100%);
}
.hp26 .hp-story-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 12% 22%, #cfa362 2px, transparent 2.5px),
        radial-gradient(circle at 88% 78%, #cfa362 2px, transparent 2.5px),
        radial-gradient(circle at 70% 18%, #cfa362 1.5px, transparent 2px),
        radial-gradient(circle at 25% 82%, #cfa362 1.5px, transparent 2px);
    background-size: 100% 100%;
}
.hp26 .hp-section.hp-tone-story::after {
    content: "";
    position: absolute;
    left: 50%; top: 40px;
    transform: translateX(-50%);
    width: 48px; height: 1px;
    background: var(--hp-gold);
    opacity: 0.6;
}
/* Ornamental gold diamond between sections */
.hp26 .hp-section + .hp-section::before {
    content: "";
    position: absolute;
    top: -4px; left: 50%;
    width: 7px; height: 7px;
    background: var(--hp-gold);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.9;
}
.hp26 .hp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(24px, 3vw, 40px);
}
.hp26 .hp-section-head h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin: 0;
    position: relative;
    padding-bottom: 14px;
}
.hp26 .hp-section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 1px;
    background: var(--hp-gold);
}
.hp26 .hp-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    /* WCAG AA on #ffffff requires ≥4.5:1 for normal text. The original
       --hp-gold-dark (#b88d4f) is only 3.0:1 — too light. Use a darker
       shade for text uses (Lighthouse: color-contrast). */
    color: #7e6135;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}
.hp26 .hp-link {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hp-ink);
    border-bottom: 1px solid var(--hp-gold);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}
.hp26 .hp-link:hover { color: var(--hp-gold-dark); border-color: var(--hp-gold-dark); }

/* -------- Trust strip -------- */
.hp26 .hp-trust {
    padding: 18px 0;
    border-top: 1px solid var(--hp-gold-line);
    border-bottom: 1px solid var(--hp-gold-line);
    background: var(--hp-bg);
}
.hp26 .hp-trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 13px;
    color: var(--hp-muted);
    letter-spacing: 0.02em;
}
@media (max-width: 900px) {
    .hp26 .hp-trust-inner { justify-content: center; }
}
.hp26 .hp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hp26 .hp-trust-item i { color: var(--hp-gold); font-size: 15px; }
.hp26 .hp-trust-item strong { color: var(--hp-ink); font-weight: 600; }

/* -------- Category grid -------- */
.hp26 .hp-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.5vw, 20px);
}
@media (max-width: 900px) { .hp26 .hp-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hp26 .hp-cat-grid { grid-template-columns: 1fr; } }

.hp26 .hp-cat {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee7db;
    border: 1px solid var(--hp-line);
}
.hp26 .hp-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hp26 .hp-cat:hover img { transform: scale(1.05); }
.hp26 .hp-cat-label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(to top, rgba(28,28,30,0.75), rgba(28,28,30,0));
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hp26 .hp-cat-label .hp-arrow {
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 1px;
    transition: transform .25s ease;
}
.hp26 .hp-cat:hover .hp-arrow { transform: translateX(4px); }

/* -------- Product grid -------- */
.hp26 .hp-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 900px) { .hp26 .hp-products { grid-template-columns: repeat(2, 1fr); } }

.hp26 .hp-product {
    display: flex;
    flex-direction: column;
    background: var(--hp-bg);
    border: 1px solid var(--hp-line);
    transition: border-color .25s ease, transform .25s ease;
}
.hp26 .hp-product:hover {
    border-color: var(--hp-gold-line);
    transform: translateY(-2px);
}

/* Wishlist heart — chip-style, top-right of each card, same pattern
 * as the category-page card. White circle (or dark in dark mode) so
 * the heart pops against ANY product photography.
 *
 * State toggle:
 *   - default      : transparent fill + gold stroke = OUTLINE heart
 *   - .added       : gold fill + gold stroke = SOLID gold heart
 * The wishlist-ajax.js handler (delegated) toggles `.added` on click. */
.hp26 .hp-product { position: relative; }
.hp26 .hp-wishlist-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(207, 163, 98, 0.35) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.hp26 .hp-wishlist-button .fa-heart,
.hp26 .hp-wishlist-button i {
    font-size: 17px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--hp-gold-dark);
    text-stroke: 1.5px var(--hp-gold-dark);
    transition: color 0.2s ease;
}
.hp26 .hp-wishlist-button:hover,
.hp26 .hp-wishlist-button:focus-visible {
    transform: scale(1.08);
    border-color: var(--hp-gold-dark) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}
.hp26 .hp-wishlist-button.added .fa-heart,
.hp26 .hp-wishlist-button.added i {
    color: var(--hp-gold-dark);
}
.hp26 .hp-wishlist-button.added {
    border-color: var(--hp-gold-dark) !important;
}

/* LOADING — heart spins while the AJAX is in flight (wishlist-ajax.js
 * adds .loading on beforeSend, removes on complete). Keyframes are
 * defined locally so the homepage doesn't depend on category-page.css. */
.hp26 .hp-wishlist-button.loading {
    pointer-events: none;
}
.hp26 .hp-wishlist-button.loading .fa-heart,
.hp26 .hp-wishlist-button.loading i {
    animation: ukch-wishlist-spin 0.8s linear infinite;
    transform-origin: 50% 50%;
}
@keyframes ukch-wishlist-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Dark-mode chip — dark surface with gold border. */
body.dark-mode .hp26 .hp-wishlist-button {
    background: rgba(28, 28, 30, 0.9) !important;
    border-color: rgba(207, 163, 98, 0.45) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55) !important;
}
body.dark-mode .hp26 .hp-wishlist-button .fa-heart,
body.dark-mode .hp26 .hp-wishlist-button i {
    -webkit-text-stroke: 1.5px var(--hp-gold);
    text-stroke: 1.5px var(--hp-gold);
}
body.dark-mode .hp26 .hp-wishlist-button.added .fa-heart,
body.dark-mode .hp26 .hp-wishlist-button.added i {
    color: var(--hp-gold);
}
body.dark-mode .hp26 .hp-wishlist-button.added {
    border-color: var(--hp-gold) !important;
}
.hp26 .hp-product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f4efe6;
    overflow: hidden;
}
.hp26 .hp-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
    position: relative;
    z-index: 1;
}
.hp26 .hp-product:hover .hp-product-media img { transform: scale(1.04); }
.hp26 .hp-product-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--hp-ink);
    color: #fff;
    padding: 4px 8px;
    font-weight: 600;
}
.hp26 .hp-product-badge.is-sale { background: #8a6312; color: #fff; }
.hp26 .hp-product-badge.is-digital {
    background: #fff;
    color: var(--hp-ink);
    border: 1px solid var(--hp-gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hp26 .hp-product-badge.is-digital i { font-size: 11px; color: var(--hp-gold-dark); }
body.dark-mode .hp26 .hp-product-badge.is-digital { background: #1a1a1a; color: #f2eadd; }

.hp26 .hp-product-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.hp26 .hp-product-cat {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    /* See .hp-eyebrow above — same contrast fix. */
    color: #7e6135;
    font-weight: 600;
}
.hp26 .hp-product-cat a { color: inherit; }
.hp26 .hp-product-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    margin: 0;
    color: var(--hp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.hp26 .hp-product-title a:hover { color: var(--hp-gold-dark); }
.hp26 .hp-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

/* ---------------- Two-button action row (2026 update) ----------------
 * Mirrors the .product-actions pattern on category pages: gold
 * "Add to Cart" + outlined "View More", side by side, equal flex.
 * Replaces the older single icon-button. The .hp-ajax-add class is
 * still attached to the gold button so homepage-2026.js continues
 * to handle AJAX add-to-cart without changes. */
.hp26 .hp-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: stretch;
}
.hp26 .hp-product-action {
    flex: 1 1 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border-radius: 999px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    position: relative;
}
.hp26 .hp-product-action--add {
    background: var(--hp-gold-dark);
    color: #ffffff;
    border: 1px solid var(--hp-gold-dark);
}
.hp26 .hp-product-action--add:hover,
.hp26 .hp-product-action--add:focus-visible {
    background: var(--hp-ink);
    border-color: var(--hp-ink);
    color: #ffffff;
}
.hp26 .hp-product-action--view {
    background: transparent;
    color: var(--hp-ink);
    border: 1px solid var(--hp-line);
}
.hp26 .hp-product-action--view:hover,
.hp26 .hp-product-action--view:focus-visible {
    border-color: var(--hp-gold-dark);
    color: var(--hp-gold-dark);
}
/* Loading / done overlays — homepage-2026.js still toggles
 * .is-loading / .is-done / .is-in-cart on the same element. */
.hp26 .hp-product-action--add .hp-add-spinner,
.hp26 .hp-product-action--add .hp-add-done {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .18s ease;
    line-height: 1;
}
.hp26 .hp-product-action--add .hp-add-spinner {
    opacity: 0;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
}
.hp26 .hp-product-action--add .hp-add-done { opacity: 0; }
.hp26 .hp-product-action--add.is-loading { pointer-events: none; }
.hp26 .hp-product-action--add.is-loading .bi-bag,
.hp26 .hp-product-action--add.is-loading .hp-product-action__label { opacity: 0; }
.hp26 .hp-product-action--add.is-loading .hp-add-spinner {
    opacity: 1;
    animation: hp-spin .7s linear infinite;
}
.hp26 .hp-product-action--add.is-done,
.hp26 .hp-product-action--add.is-in-cart {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
    pointer-events: none;
    cursor: default;
}
.hp26 .hp-product-action--add.is-done .bi-bag,
.hp26 .hp-product-action--add.is-in-cart .bi-bag,
.hp26 .hp-product-action--add.is-done .hp-product-action__label,
.hp26 .hp-product-action--add.is-in-cart .hp-product-action__label { opacity: 0; }
.hp26 .hp-product-action--add.is-done .hp-add-done,
.hp26 .hp-product-action--add.is-in-cart .hp-add-done { opacity: 1; }

/* Phones: keep both buttons visible side-by-side, just slightly tighter. */
@media (max-width: 480px) {
    .hp26 .hp-product-action {
        font-size: 12px;
        padding: 9px 8px;
        gap: 4px;
    }
    .hp26 .hp-product-action .bi-bag { font-size: 13px; }
}

.hp26 .hp-product-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-ink);
}
.hp26 .hp-product-price del {
    color: var(--hp-muted);
    font-weight: 400;
    margin-right: 6px;
    opacity: 0.7;
}
.hp26 .hp-product-price ins {
    text-decoration: none;
    color: var(--hp-gold-dark);
}
.hp26 .hp-add {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--hp-ink);
    color: #fff;
    font-size: 15px;
    transition: background .2s ease, color .2s ease;
    border: none;
    overflow: hidden;
}
.hp26 .hp-add:hover { background: var(--hp-gold-dark); color: #fff; }

/* Icon layers — bag / spinner / done tick all share the same centred slot */
.hp26 .hp-add > i,
.hp26 .hp-add > .hp-add-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .18s ease;
    line-height: 1;
}
.hp26 .hp-add .hp-add-done { opacity: 0; }
.hp26 .hp-add > .hp-add-spinner {
    opacity: 0;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
}

.hp26 .hp-add.is-loading { background: var(--hp-gold-dark); pointer-events: none; }
.hp26 .hp-add.is-loading .bi-bag { opacity: 0; }
.hp26 .hp-add.is-loading > .hp-add-spinner {
    opacity: 1;
    animation: hp-spin .7s linear infinite;
}

.hp26 .hp-add.is-done { background: #2e7d32; pointer-events: none; }
.hp26 .hp-add.is-done .bi-bag { opacity: 0; }
.hp26 .hp-add.is-done .hp-add-done { opacity: 1; }

/* Permanent "In Cart" state */
.hp26 .hp-add.is-in-cart {
    background: #2e7d32;
    color: #fff;
    cursor: default;
    pointer-events: none;
}
.hp26 .hp-add.is-in-cart .bi-bag { opacity: 0; }
.hp26 .hp-add.is-in-cart .hp-add-done { opacity: 1; }
.hp26 .hp-add.is-in-cart .hp-add-spinner { opacity: 0; }
body.dark-mode .hp26 .hp-add.is-in-cart { background: #3da045; }

@keyframes hp-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Stock chip under product title */
.hp26 .hp-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    margin-top: 2px;
    width: fit-content;
    border-radius: 2px;
}
.hp26 .hp-stock i { font-size: 12px; }
.hp26 .hp-stock.is-low { color: #9a5a1c; background: rgba(207, 163, 98, 0.18); }
.hp26 .hp-stock.is-out { color: #7a1a1a; background: rgba(194, 65, 65, 0.10); }
body.dark-mode .hp26 .hp-stock.is-low { color: #e6c590; background: rgba(207,163,98,0.22); }
body.dark-mode .hp26 .hp-stock.is-out { color: #f4b0b0; background: rgba(194,65,65,0.22); }

/* -------- Editorial block -------- */
.hp26 .hp-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}
.hp26 .hp-editorial.is-text-only {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.hp26 .hp-editorial.is-text-only .hp-editorial-body p { margin-left: auto; margin-right: auto; }
@media (max-width: 820px) { .hp26 .hp-editorial { grid-template-columns: 1fr; } }

.hp26 .hp-editorial-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee7db;
}
.hp26 .hp-editorial-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hp26 .hp-editorial-body h2 {
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.15;
    margin: 10px 0 20px;
}
.hp26 .hp-editorial-body p {
    color: var(--hp-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 52ch;
}

/* -------- Reviews -------- */
.hp26 .hp-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 820px) { .hp26 .hp-reviews { grid-template-columns: 1fr; } }

.hp26 .hp-review {
    padding: 0;
    position: relative;
}
.hp26 .hp-review::before {
    content: "";
    display: block;
    width: 28px;
    height: 1px;
    background: var(--hp-gold);
    margin-bottom: 18px;
}
.hp26 .hp-review-stars {
    color: var(--hp-gold);
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 12px;
}
.hp26 .hp-review-quote {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.55;
    color: var(--hp-ink);
    margin: 0 0 16px;
}
.hp26 .hp-review-who {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hp-muted);
    font-weight: 600;
}
.hp26 .hp-review-item {
    display: inline;
    margin-left: 4px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--hp-muted);
    opacity: 0.85;
}
.hp26 .hp-star-dim { color: rgba(207,163,98,0.35); }

/* -------- Slider (Slick) styling -------- */
/* Restore the hero carousel's slide animation. Our Bootstrap CSS subset
 * script extracts `prefers-reduced-motion` rules without their `@media`
 * wrapper, so a `.carousel-item { transition: none }` ends up applying
 * unconditionally and kills the slide effect for everyone (not just users
 * who opted into reduced motion). Re-impose the default transition
 * unconditionally — id-selector specificity beats the orphan rule. */
#coinCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Hero slider — replace the plugin's old inline `flex-direction: row !important`
   on `.row` with class-based styling. Keeps the image-left + text-right side-
   by-side layout at every width; mobile only relaxes the button so the
   long "Read more: <slide title>" string wraps inside the text column. */
#coinCarousel .ukch-slider-row {
    flex-direction: row;
    flex-wrap: nowrap;
}

@media (max-width: 767.98px) {
    /* Keep the side-by-side layout but pin the column widths so neither
       col-12 wraps to a new line and the text/button col gets enough room
       for the long auto-prefixed "Read more: <title>" button. */
    #coinCarousel .ukch-slider-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    #coinCarousel .ukch-slider-row > .col-12:first-child {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
    #coinCarousel .ukch-slider-row > .col-12:nth-child(2) {
        flex: 1 1 60% !important;
        max-width: 60% !important;
    }
    /* The "Read more: <title>" button auto-prefixed by the slider plugin
       for SEO/a11y is too long to fit a single line on mobile. Allow it
       to wrap onto multiple lines, constrained to the column width. */
    #coinCarousel .view-more-btn {
        display: inline-block;
        max-width: 100%;
        white-space: normal !important;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
        padding: 10px 16px;
        text-align: center;
        flex: 0 1 auto;
    }
    /* Title stays compact in the narrow text column. */
    #coinCarousel .ukch-slider-row h2 {
        font-size: 1.25rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }
}

/* Hide the slider until slick has measured it (we used to use
 * `visibility: hidden`, but that triggers a "non-composited animation"
 * warning on every descendant link — PSI was flagging 202 such elements).
 * `opacity` + `pointer-events: none` achieve the same "invisible until
 * ready" effect and are GPU-composited, so no warning. */
.hp26 .hp-slider {
    position: relative;
    opacity: 0;
    pointer-events: none;
    min-height: 320px;
    transition: opacity 0.15s ease;
}
.hp26 .hp-slider.slick-initialized {
    opacity: 1;
    pointer-events: auto;
}
.hp26 .hp-slide {
    padding: 0 12px;
    height: auto !important;
    box-sizing: border-box;
}
/* Make every slide match the tallest so product cards line up */
.hp26 .hp-slider .slick-track { display: flex !important; align-items: stretch; }
.hp26 .hp-slider .slick-slide { height: auto; }
.hp26 .hp-slider .slick-slide > div { height: 100%; }
.hp26 .hp-slider .hp-product,
.hp26 .hp-slider .hp-review { height: 100%; }

/* Pre-init: keep collapsed to avoid miscalculating track width */
.hp26 .hp-slider:not(.slick-initialized) .hp-slide { display: none; }

/* Slick arrows */
.hp26 .hp-slider .slick-prev,
.hp26 .hp-slider .slick-next {
    position: absolute;
    top: -56px;
    width: 40px; height: 40px;
    border: 1px solid var(--hp-line);
    background: transparent;
    color: var(--hp-ink);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    padding: 0;
}
.hp26 .hp-slider .slick-prev { right: 52px; left: auto; }
.hp26 .hp-slider .slick-next { right: 4px; }
.hp26 .hp-slider .slick-prev:hover,
.hp26 .hp-slider .slick-next:hover {
    background: var(--hp-gold);
    color: #fff;
    border-color: var(--hp-gold);
}
.hp26 .hp-slider .slick-prev::before,
.hp26 .hp-slider .slick-next::before { content: none; }

/* Slick dots — override default absolute positioning so they can't overlap cards */
.hp26 .hp-slider .slick-dots {
    position: static !important;
    bottom: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 44px 0 8px;
    margin: 0;
    list-style: none;
}
.hp26 .hp-slider .slick-dots li { margin: 0; }
.hp26 .hp-slider .slick-dots li button {
    width: 8px; height: 8px; padding: 0;
    border: none; background: var(--hp-line);
    text-indent: -9999px; cursor: pointer;
    border-radius: 50%;
    transition: background .25s ease, transform .25s ease;
}
.hp26 .hp-slider .slick-dots li.slick-active button { background: var(--hp-gold); transform: scale(1.25); }
.hp26 .hp-slider .slick-dots li button::before { content: none; }

/* -------- Reviews-as-slider adjustments -------- */
.hp26 .hp-slider-reviews .hp-review {
    padding: 0 4px;
}
.hp26 .hp-slider-reviews .hp-review-quote {
    min-height: 9em;
}
.hp26 .hp-review-name {
    color: var(--hp-ink);
    letter-spacing: 0.12em;
}
.hp26 .hp-review-empty {
    text-align: center;
    color: var(--hp-muted);
    font-style: italic;
}

/* Mobile: tighten the reviews section so it isn't dominated by blank space */
@media (max-width: 640px) {
    .hp26 .hp-section[aria-labelledby="hp-reviews-heading"] {
        padding: 40px 0 32px;
    }
    .hp26 .hp-slider-reviews {
        min-height: 0;
    }
    .hp26 .hp-slider-reviews .hp-review-quote {
        min-height: 0;
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    .hp26 .hp-slider-reviews .hp-review::before {
        margin-bottom: 12px;
    }
    .hp26 .hp-slider-reviews .slick-dots {
        padding: 20px 0 0;
    }
}

/* -------- Dark mode -------- */
body.dark-mode .hp26 {
    --hp-ivory: #181818;
    --hp-bg:    #212121;
    --hp-ink:   #f2eadd;
    --hp-muted: #b8aea0;
    --hp-line:  rgba(255,255,255,0.08);
}
body.dark-mode .hp26 .hp-cat { background: #2a2a2a; }
body.dark-mode .hp26 .hp-product-media { background: #2a2a2a; }
body.dark-mode .hp26 .hp-add { background: var(--hp-gold); color: #1a1a1a; }
body.dark-mode .hp26 .hp-add:hover { background: var(--hp-gold-dark); color: #fff; }
body.dark-mode .hp26 .hp-product-badge { background: var(--hp-gold); color: #1a1a1a; }
body.dark-mode .hp26 .hp-trust { background: #212121; }

/* Hide the slider's default margin so it sits flush against the trust strip */
.hp26 > .ukcoin-slider,
.hp26 .ukcoin_home_slider { margin-bottom: 0 !important; }
