/* WWN Ebook Store — isolated storefront styles. */
.wwn-store,
.wwn-store * { box-sizing: border-box; }
.wwn-store {
    --wwn-green: #518502;
    --wwn-green-bright: #83b944;
    --wwn-bg: #0e120e;
    --wwn-panel: #151c14;
    --wwn-panel-2: #1a2418;
    --wwn-line: rgba(206, 224, 194, .12);
    --wwn-text: #f1f4ed;
    --wwn-muted: #a2ac9b;
    position: relative;
    width: 100%;
    margin: 0 auto 40px;
    overflow: hidden;
    color: var(--wwn-text);
    background: var(--wwn-bg);
    border: 1px solid rgba(170, 194, 150, .10);
    border-radius: 22px;
    font-family: inherit;
    isolation: isolate;
}
.wwn-store a { text-decoration: none; }
.wwn-store a:focus-visible,
.wwn-store input:focus-visible,
.wwn-store select:focus-visible,
.wwn-store button:focus-visible { outline: 2px solid #a6d678; outline-offset: 3px; }

/* Hero */
.wwn-store-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    align-items: center;
    min-height: 390px;
    padding: clamp(32px, 5vw, 64px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 78% 35%, rgba(81, 133, 2, .24), transparent 42%),
        linear-gradient(115deg, #172216 0%, #111811 50%, #0d130d 100%);
    border-bottom: 1px solid var(--wwn-line);
}
.wwn-store-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, #000, transparent 95%);
}
.wwn-store-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.wwn-store-eyebrow,
.wwn-store-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a6ce7b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
}
.wwn-store-eyebrow:before,
.wwn-store-section-kicker:before { content: ""; width: 22px; height: 1px; background: #79aa3e; }
.wwn-store-hero h1 {
    max-width: 640px;
    margin: 18px 0 16px;
    color: #f5f7f2;
    font-size: clamp(34px, 4.8vw, 60px);
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: -.052em;
}
.wwn-store-hero-copy > p { max-width: 530px; margin: 0; color: #b3beab; font-size: 15px; line-height: 1.75; }
.wwn-store-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-top: 28px; }
.wwn-store-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid #679b2c;
    border-radius: 9px;
    background: linear-gradient(135deg, #518502, #416e05);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 9px 26px rgba(54, 91, 7, .25);
    transition: transform .18s ease, filter .18s ease;
}
.wwn-store-primary-link:hover { color: #fff !important; filter: brightness(1.12); transform: translateY(-2px); }
.wwn-store-primary-link span { font-size: 18px; }
.wwn-store-secondary-link { color: #c2cdb9 !important; font-size: 12px; font-weight: 700; }
.wwn-store-secondary-link:hover { color: #a6d678 !important; }
.wwn-store-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 31px; }
.wwn-store-hero-meta span { display: inline-flex; align-items: center; gap: 8px; color: #899783; font-size: 10px; font-weight: 650; }
.wwn-store-hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: #79ab3c; box-shadow: 0 0 10px rgba(121,171,60,.55); }
.wwn-store-hero-art { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 260px; }
.wwn-store-hero-glow { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: rgba(81,133,2,.17); filter: blur(55px); }
.wwn-store-banner-image { position: relative; display: block; width: min(100%, 510px); max-height: 280px; object-fit: contain; filter: drop-shadow(0 24px 34px rgba(0,0,0,.38)); }
.wwn-store-hero-mark { position: relative; display: grid; place-items: center; width: 220px; aspect-ratio: 1; border: 1px solid rgba(178,213,140,.23); border-radius: 50%; color: rgba(180,218,137,.7); font-size: 42px; font-weight: 900; letter-spacing: .12em; box-shadow: inset 0 0 60px rgba(81,133,2,.11), 0 0 90px rgba(81,133,2,.12); }
.wwn-store-hero-index { position: absolute; right: 25px; bottom: 20px; color: rgba(190,205,180,.38); font-size: 9px; font-weight: 800; letter-spacing: .19em; }

/* Section headings */
.wwn-store-collections-section,
.wwn-store-books-section { padding: clamp(28px, 4vw, 48px) clamp(18px, 4vw, 48px); }
.wwn-store-collections-section { background: #111811; border-bottom: 1px solid var(--wwn-line); }
.wwn-store-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.wwn-store-section-heading h2 { margin: 9px 0 5px; color: #f1f5ed; font-size: clamp(24px, 3vw, 32px); font-weight: 820; letter-spacing: -.035em; line-height: 1.15; }
.wwn-store-section-heading p { margin: 0; color: var(--wwn-muted); font-size: 12px; line-height: 1.6; }
.wwn-store-section-index { color: rgba(190,211,174,.25); font-size: 35px; font-weight: 850; letter-spacing: -.06em; }

/* Collection cards */
.wwn-store-collections-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.wwn-store-collection {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(202,220,190,.11);
    border-radius: 13px;
    background: #171f16;
    color: var(--wwn-text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.wwn-store-collection:hover { transform: translateY(-4px); border-color: rgba(130,184,67,.48); color: var(--wwn-text); box-shadow: 0 15px 32px rgba(0,0,0,.22); }
.wwn-store-collection.is-active { border-color: #78a944; box-shadow: 0 0 0 1px rgba(81,133,2,.2); }
.wwn-store-collection-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #293c20, #101710); }
.wwn-store-collection-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a.wwn-store-collection:hover .wwn-store-collection-image { transform: scale(1.045); }
.wwn-store-collection-art:after { content: ""; position: absolute; inset: 35% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.42)); }
.wwn-store-collection-count,
.wwn-store-coming-soon { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(9,14,8,.78); color: #e4eddc; font-size: 9px; font-weight: 750; backdrop-filter: blur(7px); }
.wwn-store-coming-soon { left: 10px; right: auto; border-color: rgba(156,194,104,.4); background: rgba(48,75,22,.82); color: #d9efbd; text-transform: uppercase; letter-spacing: .08em; }
.wwn-store-collection-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 14px 14px 15px; }
.wwn-store-collection-info > strong { display: block; width: 100%; color: #eef3e9; font-size: 14px; font-weight: 800; line-height: 1.3; }
.wwn-store-collection-info > span { display: -webkit-box; min-height: 34px; margin-top: 7px; overflow: hidden; color: #929f8b; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wwn-store-collection-info em { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 13px; color: #a8d17b; font-size: 10px; font-style: normal; font-weight: 800; }
.wwn-store-collection-info em b { font-size: 15px; font-weight: 500; }
.wwn-store-upcoming { border-style: dashed; border-color: rgba(130,165,104,.35); }
.wwn-store-cover-placeholder { display: grid; width: 100%; height: 100%; min-height: 130px; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(105,151,50,.24), transparent 50%), linear-gradient(135deg,#26371e,#111710); color: rgba(193,224,160,.72); font-size: 27px; font-weight: 900; letter-spacing: .15em; }
.wwn-store-empty-collections { padding: 28px; border: 1px dashed var(--wwn-line); border-radius: 12px; color: var(--wwn-muted); text-align: center; }

/* Product catalogue toolbar */
.wwn-store-books-section { background: #0e120e; }
.wwn-store-books-heading { align-items: center; }
.wwn-store-result-count { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--wwn-line); border-radius: 99px; color: #b6c5aa; font-size: 10px; font-weight: 750; }
.wwn-store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 20px; padding-bottom: 15px; border-bottom: 1px solid var(--wwn-line); }
.wwn-store-filter-chips { display: flex; flex: 1; flex-wrap: wrap; gap: 7px; min-width: 0; }
.wwn-store-filter-chips a { display: inline-flex; align-items: center; min-height: 31px; padding: 0 11px; border: 1px solid rgba(200,220,188,.13); border-radius: 99px; background: #151d14; color: #aab6a2; font-size: 10px; font-weight: 700; white-space: nowrap; }
.wwn-store-filter-chips a:hover,
.wwn-store-filter-chips a.is-active { border-color: rgba(129,181,66,.55); background: rgba(81,133,2,.17); color: #c7e8a6; }
.wwn-store-search { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; min-width: 260px; }
.wwn-store-search input[type="search"],
.wwn-store-search select { min-width: 0; height: 36px; margin: 0; padding: 0 10px; border: 1px solid rgba(200,220,188,.15) !important; border-radius: 7px; outline: 0; background: #151d14 !important; color: #e5ecdf !important; box-shadow: none !important; font-family: inherit; font-size: 10px; }
.wwn-store-search input[type="search"] { width: 145px; }
.wwn-store-search select { width: 112px; }
.wwn-store-search button { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #639b27; border-radius: 7px; background: #518502; color: #fff; font-size: 18px; cursor: pointer; }

/* Product cards */
.wwn-store-books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.wwn-store-book { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid rgba(202,220,190,.11); border-radius: 13px; background: #151c14; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wwn-store-book:hover { transform: translateY(-3px); border-color: rgba(130,184,67,.38); box-shadow: 0 12px 28px rgba(0,0,0,.19); }
.wwn-store-book-art { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #202b1d; }
.wwn-store-book-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.wwn-store-book:hover .wwn-store-book-image { transform: scale(1.035); }
.wwn-store-book-content { display: flex; flex: 1; flex-direction: column; padding: 13px; }
.wwn-store-book-series { display: inline-block; align-self: flex-start; max-width: 100%; overflow: hidden; color: #96bd69; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wwn-store-book h3 { margin: 7px 0 0; color: #f0f4eb; font-size: 14px; font-weight: 800; line-height: 1.35; }
.wwn-store-book h3 a { color: inherit; }
.wwn-store-book h3 a:hover { color: #b3da86; }
.wwn-store-book-excerpt { display: -webkit-box; min-height: 48px; margin: 8px 0 12px; overflow: hidden; color: #919e89; font-size: 10px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wwn-store-book-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(204,220,193,.09); }
.wwn-store-book-price { color: #dcebd0; font-size: 13px; font-weight: 850; }
.wwn-store-details { color: #91b967 !important; font-size: 10px; font-weight: 750; }
.wwn-store-details:hover { color: #c6e6a5 !important; }
.wwn-store-buy { margin-top: 11px; }
.wwn-store .edd_download_purchase_form,
.wwn-store .edd_purchase_submit_wrapper { margin: 0 !important; }
.wwn-store .edd-submit,
.wwn-store .edd-add-to-cart,
.wwn-store .wwn-store-fallback-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid #659b29 !important;
    border-radius: 8px !important;
    background: #518502 !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
.wwn-store .edd-submit:hover,
.wwn-store .edd-add-to-cart:hover,
.wwn-store .wwn-store-fallback-button:hover { border-color: #83b944 !important; background: #629b19 !important; color: #fff !important; }
.wwn-store .edd_price_options { margin: 0 0 8px; color: #c7d2be; font-size: 10px; }
.wwn-store .edd_price_options ul { margin: 0; padding: 0; list-style: none; }
.wwn-store .edd_price_options li { margin: 5px 0; }
.wwn-store .edd_price_options label { color: #c7d2be; font-size: 10px; }

/* Pagination and empty state */
.wwn-store-pagination { display: flex; justify-content: center; margin-top: 30px; }
.wwn-store-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wwn-store-pagination li { margin: 0; }
.wwn-store-pagination a,
.wwn-store-pagination span { display: grid; min-width: 36px; min-height: 36px; place-items: center; padding: 0 10px; border: 1px solid var(--wwn-line); border-radius: 7px; background: #151d14; color: #becab5; font-size: 11px; }
.wwn-store-pagination .current { border-color: #629b25; background: #518502; color: #fff; }
.wwn-store-no-results { padding: 48px 20px; border: 1px dashed var(--wwn-line); border-radius: 13px; text-align: center; }
.wwn-store-no-results > span { color: #94bd61; font-size: 34px; }
.wwn-store-no-results h3 { margin: 10px 0 6px; color: #eff4e9; font-size: 19px; }
.wwn-store-no-results p { margin: 0 0 15px; color: var(--wwn-muted); font-size: 12px; }
.wwn-store-no-results a { color: #add47e; font-size: 11px; font-weight: 800; }
.wwn-store-admin-notice { padding: 14px; border: 1px solid #b7792f; border-radius: 8px; background: #21190f; color: #f0d5ad; }

/* Footer note */
.wwn-store-footer-note { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 19px 24px; border-top: 1px solid var(--wwn-line); background: #111811; }
.wwn-store-footer-mark { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(130,184,67,.38); border-radius: 8px; color: #9fc775; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.wwn-store-footer-note p { margin: 0; color: #84917d; font-size: 10px; line-height: 1.5; }

/* Tablet */
@media (max-width: 1024px) {
    .wwn-store-hero { grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr); min-height: 340px; padding: 38px; }
    .wwn-store-collections-grid,
    .wwn-store-books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wwn-store-toolbar { align-items: flex-start; flex-direction: column; }
    .wwn-store-search { width: 100%; }
    .wwn-store-search input[type="search"] { flex: 1; width: auto; }
}

/* Mobile */
@media (max-width: 640px) {
    .wwn-store { border-radius: 14px; }
    .wwn-store-hero { display: block; min-height: 0; padding: 30px 22px 26px; }
    .wwn-store-hero h1 { max-width: 520px; font-size: clamp(34px, 9vw, 47px); }
    .wwn-store-hero-copy > p { font-size: 13px; }
    .wwn-store-hero-art { min-height: 0; height: auto; margin-top: 25px; }
    .wwn-store-banner-image { width: min(100%, 420px); max-height: 155px; }
    .wwn-store-hero-mark { width: 110px; font-size: 24px; }
    .wwn-store-hero-index { right: 14px; bottom: 10px; }
    .wwn-store-hero-meta { gap: 10px 15px; margin-top: 22px; }
    .wwn-store-collections-section,
    .wwn-store-books-section { padding: 27px 16px; }
    .wwn-store-section-heading { margin-bottom: 17px; }
    .wwn-store-section-index { font-size: 26px; }
    .wwn-store-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wwn-store-collection-info { padding: 11px; }
    .wwn-store-collection-info > strong { font-size: 12px; }
    .wwn-store-collection-info > span { font-size: 9px; }
    .wwn-store-collection-info em { font-size: 9px; }
    .wwn-store-books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wwn-store-book-content { padding: 10px; }
    .wwn-store-book h3 { font-size: 12px; }
    .wwn-store-book-excerpt { font-size: 9px; }
    .wwn-store-book-price { font-size: 11px; }
    .wwn-store-search { flex-wrap: wrap; }
    .wwn-store-search input[type="search"] { min-width: 0; }
    .wwn-store-search select { flex: 0 0 112px; }
    .wwn-store-search button { flex: 0 0 36px; }
    .wwn-store-footer-note { align-items: flex-start; padding: 16px; }
}

@media (max-width: 360px) {
    .wwn-store-collections-grid,
    .wwn-store-books-grid { grid-template-columns: 1fr; }
    .wwn-store-collection-art { aspect-ratio: 16 / 9; }
    .wwn-store-book { display: grid; grid-template-columns: 105px minmax(0, 1fr); }
    .wwn-store-book-art { height: 100%; aspect-ratio: auto; min-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    .wwn-store *,
    .wwn-store *:before,
    .wwn-store *:after { scroll-behavior: auto !important; transition: none !important; }
}

/* The shortcode supplies its own editorial hero title, so suppress Madara's duplicate page heading only on this page. */
body.wwn-ebook-store-page .c-page-content .entry-header { display: none !important; }
