/* ===== Lion Clothing – shared fixes (loaded last on every page) ===== */

/* 1. Header: always available. Hides when scrolling down, returns on a small swipe up. */
body>header{position:sticky;top:0;z-index:50;background:var(--paper,#fff);transition:transform .24s ease,box-shadow .24s ease;will-change:transform}
body>header.is-stuck{box-shadow:0 2px 10px rgba(0,0,0,.12)}
body>header.is-hidden{transform:translateY(-101%);box-shadow:none}
@media(prefers-reduced-motion:reduce){body>header{transition:none}}
/* keep the category bar swipeable and stop the end item looking cut off */
nav.main ul{-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain}
nav.main ul::-webkit-scrollbar{display:none}
nav.main li{flex:none}
nav.main ul::after{content:"";flex:none;width:1px}

/* 4. Product cards: identical structure and sizing on every category page */
.grid{align-items:stretch}
.pc{display:flex;flex-direction:column;height:100%;min-width:0}
.pc>a:not(.add){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.pc .cph{flex:none;width:100%}
.pc .pt{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;padding:12px 14px}
.pc h3{display:block;min-height:2.2em;margin:0;line-height:1.1}
.pc .ds{margin:0;min-height:1.35em}
.pc .pt .pr{margin-top:auto;padding-top:6px}
.pc .add{flex:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:calc(100% - 28px);min-height:48px;margin:0 14px 14px;padding:0 12px;text-align:center;line-height:1.2}
@media(max-width:760px){
 .pc .pt{padding:10px}
 .pc .add{width:calc(100% - 20px);min-height:46px;margin:0 10px 12px;padding:0 6px}
}

/* 2. Bundles: clean tiles. Photo on top, text underneath, so nothing overlaps a photo. */
.bundle-page .bundle-tile{display:flex;flex-direction:column;aspect-ratio:auto;min-height:0;background:#fff;color:var(--ink);border:2px solid var(--ink);transition:transform .2s ease,box-shadow .2s ease}
.bundle-page .bundle-tile::before{display:none}
.bundle-page .bundle-tile:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.14)}
.bundle-media{position:relative;flex:none;width:100%;aspect-ratio:4/3;overflow:hidden;background:repeating-linear-gradient(45deg,#e8e5de 0 14px,#dedad2 14px 28px);border-bottom:2px solid var(--ink)}
.bundle-media>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.bundle-media .img.fill{position:absolute;inset:0;z-index:0}
.bundle-page .bundle-featured .bundle-media{aspect-ratio:21/8}
.bundle-page .bundle-copy{position:static;flex:1 1 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px 18px;z-index:auto}
.bundle-page .bundle-copy>span{display:block}
.bundle-page .bundle-copy small{color:var(--mute);font-size:12px;margin-bottom:6px}
.bundle-page .bundle-copy b{color:var(--ink);font-size:clamp(24px,2.4vw,30px);line-height:1.05;max-width:none}
.bundle-page .bundle-copy i{display:inline-flex;align-items:center;margin:0;padding:9px 16px;font-size:14px;line-height:1;white-space:nowrap;flex:none}
.bundle-page .bundle-featured .bundle-copy{flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px}
.bundle-page .bundle-featured .bundle-copy b{font-size:clamp(28px,3.4vw,42px);max-width:22ch}
.bundle-page .bundle-small-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px;align-items:stretch}
@media(max-width:760px){
 .bundle-page .bundle-small-grid{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:14px}
 .bundle-page .bundle-tile:nth-child(3){grid-column:auto;aspect-ratio:auto;min-height:0}
 .bundle-page .bundle-media,.bundle-page .bundle-featured .bundle-media{aspect-ratio:16/10}
 .bundle-page .bundle-copy,.bundle-page .bundle-featured .bundle-copy{flex-direction:column;align-items:flex-start;gap:12px;padding:14px 16px 16px}
 .bundle-page .bundle-copy b,.bundle-page .bundle-featured .bundle-copy b{font-size:26px}
 .bundle-page .bundle-copy small{font-size:11px}
 .bundle-page .bundle-copy i{font-size:14px;padding:10px 16px}
}

/* Remove the blue/grey flash that mobile browsers draw over anything you tap */
html,body,a,button,summary,label,input,select,textarea,[role="button"],.pc,.tile,.bundle-tile,.btn,nav.main a{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}
a,button,summary,label,[role="button"]{touch-action:manipulation;-webkit-touch-callout:none}
nav.main a,.pc a,.tile,.bundle-tile,.btn{-webkit-user-select:none;user-select:none}
a:focus:not(:focus-visible),button:focus:not(:focus-visible),summary:focus:not(:focus-visible){outline:none}

/* quote basket: total + print/embroidery choice */
.qtotal{margin:14px 0 4px;padding:14px 16px;background:#f2f0eb;border:2px solid #000;border-radius:10px}
.qtotal .qt-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-weight:600}
.qtotal .qt-row b{font:700 30px/1 'Barlow Condensed',sans-serif;letter-spacing:.01em}
.qtotal small{display:block;margin-top:6px;color:#5a574f;font-size:13px;line-height:1.4}
.decor{border:0;margin:0 0 4px;padding:0;min-width:0}
.decor legend{font-weight:600;padding:0;margin-bottom:8px}
.decor .req{color:#c00}
.decor-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.decor-opt{position:relative;display:block;margin:0!important}
.decor-opt input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.decor-opt span{display:block;text-align:center;padding:13px 10px;border:2px solid #000;border-radius:999px;font-weight:600;background:#fff}
.decor-opt input:checked+span{background:#f0b323}
.decor-opt input:focus-visible+span{outline:3px solid #f0b323;outline-offset:2px}
.decor.err .decor-opt span{border-color:#c00;box-shadow:0 0 0 2px rgba(204,0,0,.18)}
.decor-note{margin:0;padding:12px 14px;background:#f2f0eb;border:2px solid #000;border-radius:10px;font-weight:600;font-size:15px}
.qf .decor{margin:0 0 14px}
.qfile-msg{display:block;color:#5a574f;font-size:13px;line-height:1.45}
.qfile-msg a{color:inherit;font-weight:600}
.qfile-msg.err{color:#c00;font-weight:600}
.qerr{margin:0;padding:12px 14px;background:#fdecec;border:2px solid #c00;border-radius:10px;font-weight:600;font-size:15px}
#fnote{width:100%}
.grecaptcha-badge{visibility:hidden}
.cap-note{display:block;margin-top:10px;color:#5a574f;font-size:12px;line-height:1.4}
.cap-note a{color:inherit}
.req{color:#c00;font-weight:700}
label.has-err input,label.has-err textarea{border-color:#c00!important;box-shadow:0 0 0 2px rgba(204,0,0,.15)}
.fld-err{display:block;margin-top:4px;color:#c00;font-size:13px;font-weight:600}

/* SEO intro copy on category pages */
.seo-intro{max-width:46em;margin:12px 0 0;color:var(--mute,#5a574f);font-size:16px;line-height:1.55}
.seo-rel{max-width:46em;margin:8px 0 0;font-size:15px;color:var(--mute,#5a574f)}
.seo-rel a{margin-left:10px;font-weight:600;color:inherit;text-decoration:underline;text-underline-offset:3px}
.seo-rel a:first-child{margin-left:6px}
.nw{white-space:nowrap}

/* footer credit */
footer .credit{display:block;margin-top:6px;opacity:.75}
footer .credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
footer .credit a:hover{opacity:1}
