/*
Theme Name: Stockpresets
Description: The whole of stockpresets.com in the store's design: the blog, the plain pages, the free presets, search and the 404 in the store's own frame. The Stockpresets Store plugin draws the store itself and gives this theme its menu, fonts and colors.
Author: Presetpro INC
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: stockpresets-theme
*/

/* Tokens: the store's own (the plugin's base.css defines the same values; these keep the theme readable without it) */
:root{
  --bg:#0b0b0c; --head:#101010; --surface:#161618; --surface2:#1d1d20; --line:rgba(255,255,255,.06);
  --text:#f5f5f7; --muted:#a1a1a6; --dim:#6e6e73; --accent:#f2c14e; --accent2:#ffd36b; --on-accent:#141414; --blue:#439fe8; --blue-l:#7cbdf1;
  --prose:#d2d2d7;
}
html{background:var(--bg)}
body.th{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.5 Lato,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.th *,.th *::before,.th *::after{box-sizing:border-box}
/* images in the theme's own content only: the store's frame sizes its logos itself */
.th-wrap img,.th-plain img{max-width:100%;height:auto}
.th a{color:inherit}
.th :focus-visible{outline:2px solid var(--blue-l);outline-offset:2px}
.th-skip{position:absolute;left:12px;top:-60px;z-index:100;background:#f5f5f7;color:#111 !important;font-weight:900;padding:10px 16px;border-radius:12px;text-decoration:none}
.th-skip:focus{top:12px}

/* ---------- the column ---------- */
.th-wrap{max-width:1180px;margin:0 auto;padding:8px 0 0}
.th-search{max-width:820px;padding:0 6px 0 14px}
.th-head{margin:18px 0 32px;max-width:760px}
.th-h1{margin:0;font-weight:900;font-size:clamp(32px,4.2vw,48px);line-height:1.08;letter-spacing:-.015em;color:#fff;text-wrap:balance}
.th-lede{margin:14px 0 0;color:var(--muted);font-size:18px;line-height:1.55;max-width:62ch}
.th-lede p{margin:0 0 8px}
.th-meta{margin:12px 0 0;color:var(--dim);font-size:14px;font-weight:700}
.th-empty{color:var(--muted);font-size:17px}
.th-empty a{color:var(--blue-l);text-decoration:underline;text-underline-offset:3px}
.th-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:18px 0 -8px;font-size:13px;font-weight:700;color:var(--dim)}
.th-crumbs a{color:var(--muted);text-decoration:none}
.th-crumbs a:hover{color:#fff}
.th-crumbs svg{color:var(--dim)}
.th-crumbs [aria-current]{color:#d2d2d7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:46ch}

/* ---------- buttons ---------- */
.th-btn{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 22px;border-radius:999px;background:#f5f5f7;color:#111 !important;font-weight:900;font-size:15px;text-decoration:none !important;transition:background .15s,transform .15s}
.th-btn:hover{background:#fff}
.th-btn:active{transform:scale(.98)}
.th-btn-quiet{background:rgba(255,255,255,.08);color:#f5f5f7 !important}
.th-btn-quiet:hover{background:rgba(255,255,255,.14)}
.th-btn-link{min-height:0;padding:0;background:none;color:var(--blue-l) !important;font-weight:700}
.th-btn-link:hover{background:none;text-decoration:underline !important;text-underline-offset:3px}
.th-links{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0}

/* ---------- post cards (the blog, its archives, search) ---------- */
.th-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin:0 0 32px}
.th-card{border-radius:16px;background:var(--surface);overflow:hidden;transition:background .2s}
.th-card:hover{background:var(--surface2)}
.th-card-link{display:flex;flex-direction:column;height:100%;text-decoration:none}
.th-card-img{display:block;aspect-ratio:16 / 10;overflow:hidden;background:#111}
.th-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.th-card:hover .th-card-img img{transform:scale(1.025)}
.th-card-blank{background:var(--mark,none) center / 44px no-repeat,radial-gradient(120% 90% at 30% 20%,#232327,#141416);opacity:.9}
.th-card-body{display:grid;gap:8px;padding:18px 20px 22px}
.th-card-meta{font:500 11.5px/1.4 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:rgba(232,178,92,.9)}
.th-card-title{font-size:20px;line-height:1.25;font-weight:900;color:#fff;text-wrap:balance}
.th-card-text{color:var(--muted);font-size:15px;line-height:1.5}

/* ---------- articles and pages ---------- */
.th-article{max-width:760px}
.th-hero{margin:0 0 36px;border-radius:20px;overflow:hidden;background:#111}
.th-hero img{width:100%;display:block}
.th-prose{color:var(--prose);font-size:17px;line-height:1.72}
.th-prose > :first-child{margin-top:0}
.th-prose p{margin:0 0 1.15em}
.th-prose p:empty{display:none}
.th-prose h2,.th-prose h3,.th-prose h4{color:#fff;font-weight:900;line-height:1.2;letter-spacing:-.01em;text-wrap:balance;scroll-margin-top:96px}
.th-prose h2{font-size:28px;margin:1.9em 0 .6em}
.th-prose h3{font-size:22px;margin:1.6em 0 .5em}
.th-prose h4{font-size:18px;margin:1.4em 0 .4em}
.th-prose a{color:var(--blue-l);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.th-prose a:hover{color:#fff}
.th-prose strong,.th-prose b{color:#fff}
.th-prose ul,.th-prose ol{margin:0 0 1.2em;padding-left:1.3em}
.th-prose li{margin:.35em 0}
.th-prose li::marker{color:var(--dim)}
.th-prose img{border-radius:14px;display:block}
.th-prose figure{margin:1.6em 0}
.th-prose figcaption,.th-prose .wp-caption-text{color:var(--dim);font-size:14px;margin-top:8px}
.th-prose .wp-caption{max-width:100%}
.th-prose blockquote{margin:1.6em 0;padding:18px 22px;border-radius:16px;background:var(--surface);color:#e5e5ea;font-size:18px}
.th-prose blockquote p:last-child{margin:0}
.th-prose hr,.th-hr{border:0;height:1px;background:rgba(255,255,255,.1);margin:2em 0}
.th-prose table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:15px}
.th-prose th,.th-prose td{border-bottom:1px solid rgba(255,255,255,.08);padding:10px 12px;text-align:left;vertical-align:top}
.th-prose th{color:#fff;font-weight:900}
.th-prose code{font:500 .9em "IBM Plex Mono",ui-monospace,monospace;background:var(--surface2);padding:2px 6px;border-radius:6px}
.th-prose iframe{max-width:100%;border:0;border-radius:14px}
.th-prose .alignleft{float:left;margin:.3em 1.4em 1em 0}
.th-prose .alignright{float:right;margin:.3em 0 1em 1.4em}
.th-prose .aligncenter{margin-left:auto;margin-right:auto}
.th-prose .wp-block-image{margin:1.6em 0}
/* the old pages were written for Flatsome's white pages: inline black and cyan text, justified paragraphs, 120% spans.
   On the dark store design the text takes the theme's colors and size, and reads left-aligned (the content is untouched) */
.th-prose [style*="color"]:not(a){color:inherit !important}
.th-prose a[style*="color"]{color:var(--blue-l) !important}
.th-prose [style*="justify"]{text-align:left !important}
.th-prose [style*="font-size"]{font-size:inherit !important}
.th-prose .wp-block-button__link{background:#f5f5f7;color:#111;border-radius:999px;font-weight:900;text-decoration:none;padding:12px 22px}

/* ---------- Flatsome's layout codes (inc/shims.php) ---------- */
.th-gap{display:block}
.th-sec{margin:0 0 24px}
.th-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;margin:0 0 20px}
.th-row-collapse{gap:0}
.th-row-small{gap:12px}
.th-row-large{gap:32px}
.th-v-middle{align-items:center}
.th-v-bottom{align-items:end}
.th-col{grid-column:span var(--span,12);min-width:0}
.th-col > :last-child{margin-bottom:0}
.th-banner{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 24px;background:var(--surface) center / cover no-repeat;border-radius:16px;margin:0 0 20px;isolation:isolate}
.th-banner-dim::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:rgba(0,0,0,.45)}
.th-tb{width:100%;text-align:center;color:#fff}
.th-tb h3{margin:0 0 6px}
.th-tb p{margin:0;color:#d2d2d7}
.th-row > br{display:none}
.th-tb > :last-child{margin-bottom:0}
.th-play{display:grid;place-items:center;width:var(--s,64px);height:var(--s,64px);margin:0 auto;border-radius:50%;background:rgba(10,10,12,.72);border:1px solid rgba(255,255,255,.24);color:#fff !important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .15s,color .15s,transform .2s cubic-bezier(.22,1,.36,1)}
.th-play svg{fill:currentColor;stroke:none;margin-left:3px}
.th-play:hover{background:#f5f5f7;color:#111 !important;transform:scale(1.05)}
.th-anchor{display:block;height:0;scroll-margin-top:96px}
.th-note{margin:1.6em 0;padding:22px 24px;border-radius:16px;background:var(--surface2);border:1px solid rgba(255,255,255,.07);color:#e5e5ea}
.th-note > :last-child{margin-bottom:0}
.th-fbox{display:grid;gap:14px;margin:1.6em 0;justify-items:center;text-align:center}
.th-fbox-img img{border-radius:14px}
.th-fbox-text > :last-child{margin-bottom:0}
.th-text > :last-child{margin-bottom:0}
.th-ibox{display:grid;gap:10px;text-align:center}
.th-ibox-img{display:block;border-radius:14px;overflow:hidden;background:#111}
.th-ibox-img img{width:100%;display:block;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.th-ibox-img:hover img{transform:scale(1.03)}
.th-ibox-text h4{margin:6px 0 2px;font-size:16px}
.th-ibox-text p{margin:0 0 10px;font-size:14px;color:var(--muted)}
.th-ibox .th-btn{min-height:40px;padding:0 18px;font-size:14px}
.th-title{color:#fff;font-size:22px;font-weight:900;margin:1.4em 0 .6em}
.th-block{margin:0 0 24px}
.th-pgrid{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:16px;margin:1.4em 0}
.th-pcard{display:grid;gap:6px;text-decoration:none !important;color:#fff !important}
.th-pcard img{border-radius:12px}
.th-pcard b{font-size:15px}
.th-pcard span{color:var(--muted);font-size:14px}

/* ---------- a free preset ---------- */
.th-pd{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:44px;align-items:start;margin:28px 0 48px}
.th-pd-main{margin:0;border-radius:20px;overflow:hidden;background:#111}
.th-pd-main img{width:100%;display:block}
.th-pd-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.th-pd-thumb{width:88px;padding:0;border:2px solid transparent;border-radius:12px;background:#111;overflow:hidden;cursor:pointer;opacity:.7;transition:opacity .15s,border-color .15s}
.th-pd-thumb img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.th-pd-thumb:hover{opacity:1}
.th-pd-thumb.is-on{border-color:var(--blue);opacity:1}
.th-pd-info{position:sticky;top:96px}
.th-pd-tag{margin:0 0 12px}
.th-pd-tag span{display:inline-block;font:500 12px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;padding:7px 10px;border-radius:999px}
.th-pd-title{font-size:clamp(28px,3vw,40px)}
.th-pd-price{margin:12px 0 0;font-size:22px;font-weight:900}
.th-pd-short{margin:18px 0 0;font-size:17px}
.th-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:24px 0 0}
.th-chips a{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;background:var(--surface2);color:#d2d2d7;font-weight:700;font-size:14px;text-decoration:none;transition:background .15s,color .15s}
.th-chips a:hover{background:rgba(255,255,255,.12);color:#fff}
.th-chips a[aria-current]{background:#f5f5f7;color:#111}
.th-shop .th-chips{margin:-8px 0 28px}
.th-pd-more{margin:0 0 24px;max-width:none}
/* the download button Presetpro Downloads draws for [wpdm_package] */
.th .w3eden .well{margin:10px 0 0;padding:16px;border-radius:16px;background:var(--surface);border:1px solid rgba(255,255,255,.07)}
.th .w3eden .media{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.th .w3eden .pull-left{float:none !important;margin:0 !important}
.th .w3eden .media-body{flex:1;min-width:160px}
.th .w3eden .btn.wpdm-download-link{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 30px !important;border-radius:999px;background:var(--accent);color:var(--on-accent) !important;font:900 16px/1 Lato,system-ui,sans-serif !important;text-decoration:none !important;transition:background .15s,transform .15s}
.th .w3eden .btn.wpdm-download-link:hover{background:var(--accent2)}
.th .w3eden .btn.wpdm-download-link:active{transform:scale(.98)}
.th .w3eden .media-heading{margin:0 !important;padding:0 !important;font-size:13px !important;line-height:1.5}
.th .w3eden .media-heading span{margin:0 !important;font-size:13px !important;font-weight:700 !important;color:var(--muted);display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.th .ppdl-i{fill:currentColor;margin:0 2px 0 8px !important;opacity:.6 !important}

/* ---------- the free presets' categories ---------- */
.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:0 0 32px}
.th-grid .ev-cap{opacity:1;transform:none}

/* ---------- films from the store (a row of the store's own cards) ---------- */
.th-strip{margin:40px 0 0;padding-top:32px;border-top:1px solid var(--line)}
.th-strip .ev-shead h2{color:#fff}

/* ---------- page numbers ---------- */
.th .pagination{margin:8px 0 40px}
.th .pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px}
.th .page-numbers{display:inline-grid;place-items:center;min-width:42px;height:42px;padding:0 14px;border-radius:999px;background:var(--surface2);color:#d2d2d7;font-weight:700;text-decoration:none}
.th .page-numbers.current{background:#f5f5f7;color:#111}
.th a.page-numbers:hover{background:rgba(255,255,255,.12);color:#fff}

/* ---------- forms (the contact form) ---------- */
.th .wpforms-container{max-width:640px}
.th .wpforms-container .wpforms-field-label,.th .wpforms-container .wpforms-field-sublabel,.th .wpforms-container label{color:#d2d2d7 !important}
.th .wpforms-container input[type=text],.th .wpforms-container input[type=email],.th .wpforms-container input[type=url],.th .wpforms-container input[type=tel],.th .wpforms-container textarea,.th .wpforms-container select{background:var(--surface2) !important;border:1px solid rgba(255,255,255,.12) !important;color:#fff !important;border-radius:12px !important;font:400 16px Lato,system-ui,sans-serif !important;box-shadow:none !important}
.th .wpforms-container input[type=text],.th .wpforms-container input[type=email],.th .wpforms-container input[type=url],.th .wpforms-container input[type=tel],.th .wpforms-container select{height:48px !important;padding:0 14px !important;max-width:100% !important}
.th .wpforms-container textarea{min-height:150px !important;padding:12px 14px !important;max-width:100% !important}
.th .wpforms-container .wpforms-field{padding:10px 0 !important}
.th .wpforms-container input[type=checkbox],.th .wpforms-container input[type=radio]{-webkit-appearance:auto !important;appearance:auto !important;width:18px !important;height:18px !important;margin:0 8px 0 0 !important;accent-color:var(--blue);opacity:1 !important;position:relative !important;vertical-align:-3px}
/* 1.0.1: the native box only; WPForms' own drawn box (a positioned ::before) showed beside the Confirm label on live */
.th .wpforms-container input[type=checkbox]::before,.th .wpforms-container input[type=checkbox]::after,.th .wpforms-container input[type=radio]::before,.th .wpforms-container input[type=radio]::after{content:none !important;display:none !important}
.th .wpforms-container input:focus,.th .wpforms-container textarea:focus{border-color:rgba(67,159,232,.6) !important;box-shadow:0 0 0 4px rgba(67,159,232,.14) !important}
.th .wpforms-container button[type=submit],.th .wpforms-submit{background:#f5f5f7 !important;color:#111 !important;border:0 !important;border-radius:999px !important;font:900 15px Lato,system-ui,sans-serif !important;padding:0 26px !important;min-height:46px !important}
.th .wpforms-container .wpforms-required-label{color:var(--accent) !important}

/* ---------- the footer ---------- */
.th-foot{max-width:1180px;margin:0 auto}
.th-copy{color:var(--dim)}

/* ---------- without the store plugin: a plain header ---------- */
.th-plain .th-main{max-width:1240px;margin:0 auto;padding:0 32px}
.th-plainhead{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1240px;margin:0 auto;padding:20px 32px;border-bottom:1px solid var(--line)}
.th-plainlogo{font-weight:900;font-size:20px;text-decoration:none}
.th-plainhead nav{display:flex;gap:18px}
.th-plainhead nav a{color:var(--muted);font-weight:700;text-decoration:none}
.th-plainhead nav a:hover{color:#fff}
.th-plainbody .ev-searchwrap{padding:20px 0 12px}
.th-plainbody .ev-search{max-width:820px;margin:0 auto;height:56px;display:flex;align-items:center;gap:4px;background:var(--surface2);border:1px solid rgba(255,255,255,.08);border-radius:999px}
.th-plainbody #ev-q{flex:1;min-width:0;height:44px;background:none;border:0;outline:none;color:#fff;font:400 16px system-ui,sans-serif;padding:0 14px}
.th-plainbody .ev-go{width:46px;height:46px;border:0;border-radius:50%;background:var(--blue);color:#0b0b0c;display:grid;place-items:center;cursor:pointer}
.th-plainbody .ev-tm{padding:56px 0 80px;color:var(--dim);font-size:12px}

/* ---------- tablets and phones ---------- */
@media (max-width:849px){
  .th-hide-md{display:none !important}
  .th-pd{grid-template-columns:1fr;gap:24px;margin-top:20px}
  .th-pd-info{position:static}
  .th-strip .th-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
  .th-head{margin:12px 0 24px}
  .th-crumbs{margin-top:12px}
  .th-prose{font-size:16.5px}
  .th-prose h2{font-size:24px}
  .th-plainhead,.th-plain .th-main{padding-left:16px;padding-right:16px}
}
@media (max-width:549px){
  .th-hide-sm{display:none !important}
  .th-col{grid-column:span var(--span-sm,12)}
  .th-row{gap:14px}
  .th-pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .th-cards{grid-template-columns:1fr}
  .th-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .th-pd-thumb{width:72px}
  .th-prose .alignleft,.th-prose .alignright{float:none;margin:1em 0}
}
@media (prefers-reduced-motion:reduce){
  .th-card-img img,.th-ibox-img img,.th-play,.th-btn{transition:none}
  .th-card:hover .th-card-img img,.th-ibox-img:hover img,.th-play:hover{transform:none}
}
