/* Elevate Storefront: conversion layer. Uses theme tokens (--ep-*). Mobile first. */
:root { --es-r: 12px; --es-max: 1180px; }
.es-announce { background: linear-gradient(90deg, #6b5320, var(--ep-gold) 50%, #6b5320); color: #14100a; text-align: center; padding: .55rem 1rem; font-size: .88rem; font-weight: 600; }
.es-announce a { color: #14100a; text-decoration: underline; margin-left: .5rem; white-space: nowrap; }

/* shared */
.es-section, .es-hero, .es-final { max-width: var(--es-max); margin-inline: auto; padding: 3rem 1.25rem; }
.es-section h2, .es-final h2 { text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 .5rem; }
.es-lede { text-align: center; color: var(--ep-muted); max-width: 640px; margin: 0 auto 2rem; }
.es-fine { text-align: center; color: var(--ep-muted); font-size: .8rem; margin-top: 1.2rem; }
.es-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 6px; font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; font-size: .95rem; line-height: 1.1; transition: transform .12s ease, filter .12s ease; }
.es-btn:hover { transform: translateY(-1px); }
.es-btn:focus-visible, .es-linkbtn:focus-visible, details summary:focus-visible { outline: 3px solid var(--ep-gold-light); outline-offset: 2px; }
.es-btn--primary { background: linear-gradient(180deg, var(--ep-gold-light), var(--ep-gold)); color: #1a1305 !important; box-shadow: 0 8px 24px rgba(196,155,77,.28); }
.es-btn--primary:hover { filter: brightness(1.07); }
.es-btn--ghost { background: transparent; color: var(--ep-gold) !important; border-color: var(--ep-gold); }
.es-btn--block { display: flex; width: 100%; }
.es-linkbtn { background: none; border: 0; padding: 0; color: var(--ep-gold); text-decoration: underline; cursor: pointer; font: inherit; }

/* hero */
.es-hero { display: grid; gap: 2rem; padding-top: 2rem; background: radial-gradient(ellipse at 70% 0%, rgba(196,155,77,.18), transparent 60%); }
.es-eyebrow { color: var(--ep-gold); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; font-family: var(--wp--preset--font-family--space-grotesk); margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.es-pulse { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: es-pulse 2s infinite; }
@keyframes es-pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
@media (prefers-reduced-motion: reduce) { .es-pulse { animation: none; } .es-btn { transition: none; } }
.es-hero h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); margin: 0 0 .8rem; color: var(--ep-text); }
.es-sub { color: var(--ep-muted); font-size: 1.05rem; margin: 0 0 1.2rem; }
.es-sub strong { color: var(--ep-gold-light); }
.es-hero__media { position: relative; border-radius: var(--es-r); overflow: hidden; background: #e9e9e9; border: 1px solid rgba(196,155,77,.35); }
.es-hero__img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.es-badge { position: absolute; top: 12px; left: 12px; background: var(--ep-bg); color: var(--ep-gold-light); border: 1px solid var(--ep-gold); padding: .35rem .7rem; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.es-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0 1rem; }
.es-checks { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: 0; color: var(--ep-muted); font-size: .88rem; }
.es-checks li::before { content: "\2713"; color: #4ade80; margin-right: .4rem; font-weight: 700; }

/* countdown */
.es-countdown { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.es-cd-label { color: var(--ep-muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin-right: .3rem; }
.es-cd-unit { background: var(--ep-surface); border: 1px solid rgba(196,155,77,.35); border-radius: 8px; padding: .4rem .6rem; min-width: 58px; text-align: center; }
.es-cd-unit b { display: block; font-family: var(--wp--preset--font-family--space-grotesk); font-size: 1.5rem; color: var(--ep-gold-light); line-height: 1.1; font-variant-numeric: tabular-nums; }
.es-cd-unit i { font-style: normal; font-size: .65rem; text-transform: uppercase; color: var(--ep-muted); letter-spacing: .1em; }
.es-cd-date { flex-basis: 100%; color: var(--ep-muted); font-size: .8rem; }
.es-countdown--final { justify-content: center; }
.es-countdown.is-ended .es-cd-unit b { color: var(--ep-muted); }

/* stats */
.es-stats { text-align: center; padding: .9rem 1.25rem; background: var(--ep-surface); border-block: 1px solid rgba(196,155,77,.25); color: var(--ep-muted); }
.es-stats strong { color: var(--ep-gold-light); }

/* packs */
.es-packs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.es-pack { position: relative; background: var(--ep-surface); border: 1px solid rgba(196,155,77,.25); border-radius: var(--es-r); padding: 1.6rem 1.2rem 1.3rem; text-align: center; display: flex; flex-direction: column; gap: .3rem; }
.es-pack--feature { border-color: var(--ep-gold); box-shadow: 0 0 0 1px var(--ep-gold), 0 14px 40px rgba(196,155,77,.18); }
.es-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ep-gold); color: #14100a; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 99px; white-space: nowrap; }
.es-pack h3 { font-size: 1.1rem; margin: 0; color: var(--ep-muted); font-weight: 500; }
.es-pack__n { display: block; font-size: 2.6rem; color: var(--ep-text); font-family: var(--wp--preset--font-family--space-grotesk); font-weight: 700; line-height: 1; }
.es-pack__price { font-size: 1.7rem; font-weight: 700; color: var(--ep-gold-light); margin: .3rem 0 0; font-family: var(--wp--preset--font-family--space-grotesk); }
.es-pack__each { color: var(--ep-muted); font-size: .85rem; margin: 0 0 .8rem; }
.es-pack__each strong { color: #4ade80; }

/* trust, steps, gallery, faq */
.es-trust__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.es-trust__item { padding: 1.1rem 1.2rem; border-left: 3px solid var(--ep-gold); background: var(--ep-surface); border-radius: 0 var(--es-r) var(--es-r) 0; }
.es-trust__item h3 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--ep-gold-light); }
.es-trust__item p { margin: 0; color: var(--ep-muted); font-size: .92rem; }
.es-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; counter-reset: s; }
.es-steps li { display: flex; gap: 1rem; align-items: flex-start; background: var(--ep-surface); border: 1px solid rgba(196,155,77,.2); border-radius: var(--es-r); padding: 1.1rem; }
.es-step__n { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--ep-gold); color: #14100a; display: grid; place-items: center; font-weight: 800; font-family: var(--wp--preset--font-family--space-grotesk); }
.es-steps h3 { margin: 0 0 .2rem; font-size: 1.05rem; } .es-steps p { margin: 0; color: var(--ep-muted); font-size: .92rem; }
.es-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.es-gallery figure { margin: 0; border-radius: var(--es-r); overflow: hidden; background: #e9e9e9; aspect-ratio: 1; }
.es-gallery img { width: 100%; height: 100%; object-fit: contain; display: block; }
.es-faq details { background: var(--ep-surface); border: 1px solid rgba(196,155,77,.2); border-radius: 8px; margin: .6rem auto; max-width: 820px; }
.es-faq summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.es-faq summary::after { content: "+"; color: var(--ep-gold); font-size: 1.3rem; line-height: 1; }
.es-faq details[open] summary::after { content: "\2212"; }
.es-faq summary::-webkit-details-marker { display: none; }
.es-faq details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--ep-muted); }

/* final + subscribe */
.es-final { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(196,155,77,.2), transparent 70%); }
.es-subscribe { max-width: 560px; margin: 0 auto; text-align: center; }
.es-subscribe h3 { margin: 0 0 .8rem; }
.es-subscribe__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.es-subscribe__row input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 0 .9rem; font-size: 1rem; }
.es-consent { display: block; text-align: left; color: var(--ep-muted); font-size: .78rem; margin-top: .6rem; }
.es-msg { padding: .6rem .9rem; border-radius: 6px; } .es-msg--ok { background: rgba(74,222,128,.12); border: 1px solid #3f8f5b; } .es-msg--err { background: rgba(248,113,113,.12); border: 1px solid #a33; }
.es-closed { text-align: center; }

/* cart / checkout / thank you */
.es-cartnote { background: var(--ep-surface); border: 1px solid var(--ep-gold); border-radius: 8px; padding: .8rem 1rem; margin: 0 0 1.2rem; }
.es-reassure { list-style: none; margin: 0 0 1rem; padding: 0; color: var(--ep-muted); font-size: .85rem; }
.es-reassure li::before { content: "\2713"; color: #4ade80; margin-right: .5rem; }
.es-upsell { margin: 1.5rem 0; padding: 1rem 1.2rem; background: var(--ep-surface); border: 1px solid rgba(196,155,77,.3); border-radius: var(--es-r); }
.es-upsell h3 { margin: 0 0 .8rem; font-size: 1.1rem; }
.es-upsell__row { display: grid; gap: .7rem; }
.es-upsell__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.es-thanks { text-align: center; padding: 1.5rem 1rem; background: var(--ep-surface); border: 1px solid var(--ep-gold); border-radius: var(--es-r); margin-bottom: 1.5rem; }
.es-thanks__n { font-size: 1.3rem; } .es-thanks__n strong { color: var(--ep-gold-light); font-size: 2rem; }

/* sticky mobile CTA + consent banner */
.es-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(10,17,24,.97); border-top: 1px solid var(--ep-gold); }
.es-sticky[hidden] { display: none; }
.es-sticky__txt { display: flex; flex-direction: column; line-height: 1.2; font-size: .9rem; } .es-sticky__cd { font-weight: 700; color: var(--ep-gold-light); font-variant-numeric: tabular-nums; } .es-sticky small { color: var(--ep-muted); font-size: .7rem; }
.es-sticky .es-btn { min-height: 44px; padding: .6rem 1rem; font-size: .8rem; }
.es-consent-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 520px; background: var(--ep-surface); border: 1px solid var(--ep-gold); border-radius: 10px; padding: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.es-consent-banner[hidden] { display: none; }
body.has-sticky { padding-bottom: 72px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* checkout form polish */
.woocommerce-checkout .woocommerce-billing-fields h3 { font-size: 1.2rem; }
.woocommerce form .form-row label { color: var(--ep-text); }
.woocommerce-checkout #payment { background: var(--ep-surface); border-radius: var(--es-r); }
.woocommerce-checkout #payment div.payment_box { background: #0f1820; color: var(--ep-text); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #0f1820; }
.woocommerce table.shop_table, .woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: rgba(196,155,77,.25); color: var(--ep-text); }

/* wider screens */
@media (min-width: 760px) {
  .es-hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; padding-top: 3rem; }
  .es-packs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .es-pack--feature { transform: translateY(-8px); }
  .es-trust__grid { grid-template-columns: repeat(4, 1fr); }
  .es-steps { grid-template-columns: repeat(3, 1fr); } .es-steps li { flex-direction: column; }
  .es-gallery { grid-template-columns: repeat(4, 1fr); }
  .es-sticky { display: none !important; } body.has-sticky { padding-bottom: 0; }
}

/* ---- v2: mobile fit, tap targets ---- */
.es-btn { white-space: normal; text-align: center; letter-spacing: .04em; padding: .8rem 1.1rem; max-width: 100%; }
.es-cta-row .es-btn { flex: 1 1 auto; }
.es-announce a { display: inline-block; padding: .55rem .5rem; margin: -.3rem 0; }
.ep-header .wp-block-site-title a, .ep-footer a { display: inline-block; padding: .35rem 0; }
.ep-header .wp-block-navigation a { padding: .4rem .2rem; }
.ep-footer p { line-height: 2; }
select, .woocommerce-ordering select { min-height: 44px; }
.es-hero h1 { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .es-hero h1 { font-size: 2rem; }
  .es-cd-unit { min-width: 0; flex: 1 1 0; padding: .35rem .2rem; }
  .es-cd-unit b { font-size: 1.3rem; }
  .es-cd-label { flex-basis: 100%; }
  .es-countdown { gap: .4rem; flex-wrap: wrap; }
  .es-section, .es-hero, .es-final { padding-inline: 1rem; }
}

/* ---- v3: inputs, header controls, breadcrumbs, overflow ---- */
html, body { overflow-x: clip; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], textarea, .select2-container .select2-selection--single { min-height: 46px; padding: .6rem .8rem; font-size: 1rem; width: 100%; box-sizing: border-box; border-radius: 6px; }
.es-subscribe__row input[type=email] { width: auto; }
.ep-header .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.woocommerce-breadcrumb { margin: 1rem 0; } .woocommerce-breadcrumb a { display: inline-block; padding: .5rem .25rem; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link, .woocommerce ul.products li.product .woocommerce-loop-product__title { display: block; padding: .3rem 0; }
.wp-block-site-logo a, .ep-header a[aria-label] { display: inline-flex; min-height: 44px; align-items: center; }

/* ---- v4: pack product page + shop ---- */
.es-countdown--product { margin: .4rem 0 1rem; }
.es-compare { clear: both; margin-top: 2rem; }
.woocommerce ul.products li.product a { display: block; padding: .5rem 0; }
.single-product .es-compare .es-section { padding-inline: 0; }

/* pack pages: the block template ignores the classic hooks, so hide the clutter here */
.es-pack-page .wp-block-woocommerce-breadcrumbs, .es-pack-page .woocommerce-breadcrumb,
.es-pack-page .wp-block-woocommerce-product-details, .es-pack-page .woocommerce-tabs,
.es-pack-page .wp-block-woocommerce-product-meta, .es-pack-page .product_meta,
.es-pack-page .wp-block-woocommerce-product-collection { display: none !important; }
.wp-block-post-title a, .wc-block-product .wp-block-post-title a { display: block; padding: .5rem 0; }

/* winners / draw proof */
.es-draw { background: var(--ep-surface); border: 1px solid rgba(196,155,77,.3); border-radius: var(--es-r); padding: 1.2rem; margin: 1rem auto; max-width: 820px; }
.es-draw h3 { margin: 0 0 .2rem; } .es-draw__who { color: var(--ep-gold-light); font-weight: 700; margin: 0 0 .8rem; }
.es-draw__facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; font-size: .9rem; } .es-draw__facts dt { color: var(--ep-muted); } .es-draw__facts dd { margin: 0; overflow-wrap: anywhere; }
.es-draw code { font-size: .75rem; color: var(--ep-text); }
.es-verify__out { margin: .6rem 0 0; font-weight: 600; } .es-verify__out.is-ok { color: #4ade80; } .es-verify__out.is-bad { color: #f87171; }

/* ---- v5: button sizing bug, checkout two-column, brand notices ---- */
.es-btn, .es-pack, .es-upsell__item a { box-sizing: border-box; }
.es-btn--block { width: 100%; }
.woocommerce-info, .woocommerce-message, .wc-block-components-notice-banner.is-info { background: var(--ep-surface) !important; color: var(--ep-text) !important; border: 1px solid rgba(196,155,77,.45) !important; border-radius: 8px; }
.woocommerce-info a, .woocommerce-message a { color: var(--ep-gold-light) !important; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ep-gold) !important; }
@media (min-width: 960px) {
  .woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 3rem; align-items: start; }
  .woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
  .woocommerce-checkout form.checkout #customer_details .col-1, .woocommerce-checkout form.checkout #customer_details .col-2 { width: 100%; float: none; }
  .woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
  .woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 1rem; }
  .woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { width: 48%; }
}
.woocommerce-checkout #order_review_heading { font-size: 1.3rem; }

/* ---- v6: header on one row, selects readable ---- */
.ep-header { flex-wrap: nowrap !important; gap: .5rem; }
.ep-header > .wp-block-group { flex-wrap: nowrap !important; }
@media (max-width: 480px) { .ep-header .wp-block-site-title { font-size: .95rem !important; } .ep-header img { height: 42px !important; } }
select, .ep-free-form select, .es-subscribe select { font-size: 1rem; padding: .5rem .7rem; min-height: 46px; }
.ep-free-form label { display: block; margin-bottom: .2rem; }
.ep-free-form p { margin: 0 0 1rem; }
