/*
Theme Name: Digital Product Showcase
Description: A sky-blue catalogue for digital downloads with chrome details and optional MailPoet signup.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: digital-product-showcase
License: GNU General Public License v2 or later
*/
:root {
    --ink: #102b44;
    --muted: #405c73;
    --link: #075486;
    --line: #aacde6;
    --sky: #dcefff;
    --chrome: linear-gradient(160deg,#fff 4%,#dce7ef 39%,#a9bfd0 51%,#f9fdff 73%,#c1d6e6);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: #f8fcff; font: 16px/1.6 system-ui, sans-serif; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: #003a61; }
:focus-visible { outline: 3px solid #0273bd; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1,h2,h3 { line-height: 1.12; margin: 0 0 .65em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.65rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.04em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.shell { width: min(1160px, 92%); margin-inline: auto; }
.screen-reader-text,.skip-link:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { display:inline-block; padding: .7rem 1rem; background:white; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.masthead,.footer-inner,.section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.masthead { padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 650; text-decoration: none; }
.brand strong { font-weight: 850; }
.brand-mark { display: grid; gap: 3px; align-content: center; width: 40px; height: 40px; padding: 8px; border: 1px solid #9cb5c9; border-radius: 11px; background: var(--chrome); box-shadow: 0 2px 4px #102b4425; }
.brand-mark i { height: 3px; border-radius: 10px; background: #23638f; }
.brand-mark i:last-child { width: 65%; }
.custom-logo { display: block; width: auto; max-height: 64px; }
.site-header ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; list-style: none; }
.site-header nav a { color: var(--ink); font-size: .95rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.hero { padding: clamp(2.4rem,7vw,5.75rem) 0; background: linear-gradient(120deg,#eff8ff 5%,#afd7f6 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem,5vw,4rem); align-items: center; }
.hero-copy h1 { margin-bottom: .3em; }
.hero-copy p { max-width: 34ch; color: var(--muted); font-size: 1.15rem; margin-bottom: 1.6rem; }
.hero-image { display: block; width: 100%; border: 6px solid transparent; border-radius: 22px; background: var(--chrome) border-box; box-shadow: 0 14px 40px #15467328; }
.button { display: inline-block; background: linear-gradient(145deg,#fff,#b3dcf9 55%,#8ac2e9); border: 1px solid #7baac8; border-radius: 11px; color: #0b2d48; font: inherit; font-weight: 750; padding: .62rem 1rem; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px #fff, 0 4px 9px #17375519; }
.button:hover { background: #d7f0ff; }
.section { padding-block: 2.5rem; }
#collections { padding-bottom: .5rem; }
.collections,.product-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 1rem; }
.product-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); }
.collection,.product-card,.empty,.newsletter,.product-detail { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 22px #1d50780e; }
.collection { padding: 1rem 1.2rem; border-top: 4px solid #4089bf; }
.collection h3 { margin-bottom: .3rem; }
.collection p { margin: 0; color: var(--muted); }
.section-header { margin-bottom: 1.2rem; }
.section-header h2 { margin: 0; }
.catalogue-search { display: flex; flex-wrap: wrap; gap: .5rem; }
.catalogue-search input[type=search] { flex: 1 1 10rem; min-width: 0; font: inherit; color: var(--ink); background: #fff; border: 1px solid #86b4d3; border-radius: 9px; padding: .58rem .75rem; }
.product-card { overflow: hidden; }
.card-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--sky); }
.card-body,.empty { padding: 1.25rem; }
.card-body h2,.card-body h3 { font-size: 1.25rem; }
.card-body h2 a,.card-body h3 a { color: inherit; }
.preview-link { font-weight: 720; }
.archive .catalogue-search { margin-bottom: 1.5rem; }
.pagination { margin-top: 1.5rem; }
.product-detail { padding: clamp(1rem,4vw,3rem); width: min(100%, 900px); margin-inline: auto; overflow-wrap: anywhere; }
.product-detail h1 { font-size: clamp(2rem,5vw,3.65rem); }
.detail-image { display: block; border-radius: 12px; margin-bottom: 1.5rem; }
.wp-block-table { overflow-x: auto; }
.newsletter { padding: 1.5rem; margin-bottom: 2.5rem; background: linear-gradient(125deg,#dcefff,#fff); }
.site-footer { background: #dcefff; border-top: 1px solid var(--line); padding-block: 1.35rem; }
.footer-name { font-weight: 750; }
@media (max-width: 720px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { max-width: 560px; }
}

.showcase-guide { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,400px),1fr)); gap: 1rem; margin: 0 auto 2.5rem; }
.guide-panel { padding: clamp(1.2rem,3vw,1.8rem); background: linear-gradient(135deg,#fff,#e6f3ff); border: 1px solid var(--line); border-radius: 16px; }
.guide-panel ul,.guide-panel ol { list-style: none; margin: 0; padding: 0; }
.guide-panel li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; align-items: center; padding: .65rem 0; }
.guide-panel li + li { border-top: 1px solid var(--line); }
.guide-panel strong { display: block; }
.guide-panel small { display: block; color: var(--muted); font-size: .9rem; }
.guide-icon { display: grid; place-items: center; min-height: 2.5rem; border-radius: 10px; border: 1px solid #8ab3d2; color: #154e79; background: var(--chrome); font-weight: 800; }
.guide-icon svg { width: 21px; height: 21px; }
