/* WordPress-specific additions on top of the demo styles (main.css). */

a{text-decoration:none}
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--brand);color:var(--brand-ink);padding:8px 14px;border-radius:0 0 8px 0}
.skip:focus{left:0}
.logo{color:inherit}
.logo-img{max-height:44px;width:auto}
.hotline{border:0;background:none;text-align:left;padding:0;cursor:pointer}

/* links styled like the demo's buttons */
nav.cats a{padding:8px 12px;border-radius:8px;white-space:nowrap;font-weight:500;color:var(--ink)}
nav.cats a:hover,nav.cats a.on{background:var(--brand-soft);color:var(--brand)}
a.chip{color:var(--ink);display:inline-block}
a.chip.on{color:var(--brand-ink)}
a.btn{text-decoration:none}
a.btn.pri{color:var(--brand-ink)}
a.btn.sec{color:var(--brand)}
a.btn.ghost{color:var(--ink)}
.linkbtn{color:var(--brand)}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--brand)}
.card .thumb{display:block;position:relative}
.card .name{color:var(--ink)}
.card .name:hover{color:var(--brand)}
a.tile{color:var(--ink)}
.hero a.art{display:block}

/* media: photos and illustrations share one square frame */
.ht-media{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--thumb)}
.ht-art svg{display:block;width:100%;height:100%}
.hero .art .ht-media{border-radius:16px}
.tile .ht-media{border-radius:10px}
.pd .gallery .ht-media{border-radius:16px;border:1px solid var(--line)}
.gallery-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}
.gallery-thumbs button{border:2px solid transparent;border-radius:10px;padding:0;background:none;flex:none;width:72px;height:72px;overflow:hidden}
.gallery-thumbs button.on{border-color:var(--brand)}
.gallery-thumbs img{width:100%;height:100%;object-fit:cover}
.ht-icon{display:block;width:40px;height:40px;background:var(--thumb);border-radius:8px;overflow:hidden}
.comprow.off .nm{color:var(--muted)}
.subnote{font-size:12.5px;color:var(--warn-ink);background:var(--warn-bg);border-radius:6px;padding:2px 8px;margin-top:4px;display:inline-block}
.pricebox .price{font-size:26px}
.pd-desc{margin-top:10px;color:var(--muted)}
.pd-long{max-width:72ch}
.list-title{font-size:26px}
.list-tools{display:flex;gap:8px;align-items:center}
.sortform select{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:7px 10px}
.cat-desc{color:var(--muted);margin:-6px 0 14px;max-width:72ch}
.filters-head,.filters-foot{display:none}

.pager{margin-top:24px;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.pager .page-numbers{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:6px 12px;color:var(--ink)}
.pager .page-numbers.current{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}

.page-body{max-width:860px}
.page-title{font-size:28px;margin-bottom:16px}
.entry-content{line-height:1.7}

footer.site-footer{background:var(--surface);border-top:1px solid var(--line);padding-block:28px;font-size:13.5px;color:var(--muted)}
footer.site-footer .wrap{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px}
footer.site-footer b{color:var(--ink);display:block;margin-bottom:6px}
footer.site-footer a{color:var(--muted)}

.bottomnav a{padding:8px 2px 7px;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted)}
.bottomnav a.on{color:var(--brand);font-weight:600}

/* cart drawer (rendered by main.js) */
.citem img,.citem .ht-media{width:64px;height:64px;border-radius:8px}
.drawer .loading{padding:24px;text-align:center;color:var(--muted)}

@media (max-width:860px){
	.bottomnav{grid-template-columns:repeat(5,1fr)}
	.bottomnav a svg{width:22px;height:22px}
	footer.site-footer .wrap{grid-template-columns:1fr}
	/* filters become a bottom sheet */
	.filters{display:none}
	body.filters-open .filters{display:flex;position:fixed;left:0;right:0;bottom:0;top:auto;max-height:82vh;overflow:auto;z-index:51;border-radius:18px 18px 0 0;padding:0 16px calc(16px + env(safe-area-inset-bottom,0px))}
	body.filters-open::after{content:"";position:fixed;inset:0;background:rgba(10,15,12,.45);z-index:50}
	body.filters-open .filters-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--surface);padding:14px 0;border-bottom:1px solid var(--line);z-index:1}
	body.filters-open .filters-foot{display:block;position:sticky;bottom:0;background:var(--surface);padding-top:10px}
	body.filters-open .filters-foot .btn{width:100%}
	.list-title{font-size:22px}
}

/* checkout */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.seg label{display:inline-flex;align-items:center;padding:8px 14px;border-radius:8px;font-weight:600;font-size:14px;color:var(--muted);cursor:pointer}
.seg label.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.seg input,.slots input{position:absolute;opacity:0;pointer-events:none}
.seg label:focus-within,.slots label:focus-within{outline:2px solid var(--brand);outline-offset:2px}
.slots label{cursor:pointer}
.slots label.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.slots label.off{opacity:.4;text-decoration:line-through;cursor:not-allowed}
.field .label,.field .label-sp{font-size:13px;font-weight:600}
.field .label em{color:var(--accent);font-style:normal}
.gift-only.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gift-only[hidden]{display:none}
.payopt{cursor:pointer}
.mini .ht-media,.mini img{width:48px;height:48px;border-radius:8px}
.mini-nm{font-weight:600;line-height:1.3}
.qrbox{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.qrbox img{width:200px;height:auto;object-fit:contain;background:#fff;border-radius:10px;padding:6px;border:1px solid var(--line)}
.track-link{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13.5px;margin-top:4px}
.success .page-title{margin-bottom:6px}
.kv dd p{margin:0}
@media (max-width:560px){ .gift-only.fields{grid-template-columns:1fr} .field .label-sp{display:none} }
