/* Tinkuri Kids — final preview fixes (v1–v10), folded from the approved FINAL preview.
   This file loads LAST, so it overrides main.css / tinkuri-wp.css without editing them.
   Small screens (<=1440px, and all phone rules) are unchanged unless a rule below says so. */

/* --- Large screens: 90px empty space per side (content = viewport - 180px) --- */
@media (min-width:1441px){
  .w,.shw{max-width:calc(100vw - 180px)}
  /* Header: logo at the left corner, mid+search group centred, switch alone at the far-right corner. */
  .top{min-height:var(--hh);padding-right:124px;justify-content:center}
  .lg{position:absolute;left:20px;top:50%;transform:translateY(-50%)}
  .top .skyb{position:absolute;right:20px;top:50%;transform:translateY(-50%)}
  /* Capped, centred grids and shapes at their ORIGINAL card sizes (never stretched). */
  .g5{grid-template-columns:repeat(auto-fit,minmax(170px,204px));justify-content:center}
  .dl{grid-template-columns:repeat(auto-fit,minmax(270px,360px));justify-content:center}
  .bpg{grid-template-columns:repeat(auto-fit,minmax(300px,340px));justify-content:center}
  .vals{grid-template-columns:repeat(auto-fit,minmax(220px,260px));justify-content:center}
  .stats{grid-template-columns:repeat(auto-fit,minmax(150px,260px));justify-content:center}
  .cg{grid-template-columns:repeat(auto-fit,minmax(210px,260px));justify-content:center}
  .promo .pb{flex:0 1 620px;max-width:620px;margin:0}
  .promo{justify-content:center}
  .ob2,.kb,.two{max-width:1200px;margin-left:auto;margin-right:auto}
  .rv{max-width:1100px}
  /* Product page, large only: compact buttons, centred tabs. */
  .pgp .single_add_to_cart_button{flex:0 1 320px}
  .pgp .btn.big.alt{max-width:514px}
  .pgp .tabs2,.pgp .tp{max-width:1100px;margin-left:auto;margin-right:auto}
}
/* Below 1441px the switch stays where it was originally (logo | switch | search). */
@media (max-width:1440px){
  .top .skyb{order:2}
  .top .rt{order:3}
}
/* --- Banner clouds: vw heights, so cloud tops are never sliced at wide widths --- */
.ban .c1{height:7vw}
.ban .c2{height:6vw}
/* --- Home hero clouds, very wide monitors only (>=2143px): fixed heights would slice the
       cloud heads flat. vw heights keep the cloud aspect below the crop point. --- */
@media (min-width:2143px){
  .hero{padding-bottom:12vw}
  .hero .c1{height:10vw}
  .hero .c2{height:8vw}
  .hero .c3{height:6.5vw}
}
/* --- Header track button (desktop only, icon-only like cart/login) --- */
.trk{display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.trk svg{width:40px;height:40px;box-sizing:border-box;padding:4px;background:#fff;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.28)}
@media (max-width:640px){.trk{display:none!important}}
/* --- Track panel on desktop: roll DOWN from the header like the login panel (phone bottom-sheet unchanged) --- */
@media (min-width:641px){
  .trp{display:block;top:calc(var(--hh) + 10px);right:clamp(12px,1.6vw,20px);width:min(340px,calc(100vw - 24px))}
  .trp .sh{clip-path:inset(0 0 100% 0 round 22px)}
}
/* --- Shop filter: three columns on desktop, middle-aligned controls --- */
@media (min-width:801px){
  .fpan{grid-template-columns:0.9fr 1.4fr 0.7fr}
}
.fpan>div .ft2{height:20px;line-height:20px;margin-bottom:8px;text-align:center}
.fpan .ages{height:38px;align-items:center;flex-wrap:nowrap;gap:6px}
.fpan .agc{padding:5px 10px;font-size:14px;white-space:nowrap}
.fpan .sort{height:38px;padding:4px 32px 4px 14px;font-size:15px;line-height:1.3;text-align:center;text-align-last:center}
#prng{margin:9px 0 0}
.fpan .prl{margin-top:2px}
/* --- Shop filter on phone: price + sort on row 1, age (one line, scrollable) on row 2, short panel --- */
@media (max-width:800px){
  .fpan{grid-template-columns:1fr 1fr;padding:12px 14px;gap:10px 12px}
  .fpan>div:nth-child(1){grid-column:1;grid-row:1}
  .fpan>div:nth-child(3){grid-column:2;grid-row:1}
  .fpan>div:nth-child(2){grid-column:1 / -1;grid-row:2}
  .fpan .ages{overflow-x:auto;justify-content:flex-start}
  .fpan .ft2{margin-bottom:6px}
}
/* --- Phone shop toolbar: count text and Filters button on one middle-aligned line --- */
@media (max-width:640px){
  .tb{flex-wrap:nowrap;align-items:center;flex-direction:row;justify-content:space-between}
  .cnt{flex:1;min-width:0;font-size:14px;text-align:left}
  .tbr{display:flex;flex:none}
  .fbtn{padding:8px 12px;font-size:14px}
  /* Phone chips: shop AND blog in 2 lines, 4 on top + 3 below. Other widths untouched. */
  .chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex-wrap:wrap;overflow:visible;margin:0 0 12px;padding:0}
  .chips .chip{white-space:normal;flex:none;padding:7px 4px;font-size:13px;text-align:center;line-height:1.2}
  /* Phone help icon raised 22px. */
  .help{bottom:calc(var(--bar) + 62px + env(safe-area-inset-bottom,0px))}
}
/* --- Message icon glow: base soft glow, two blurred ripple rings, no stick, continuous flow.
       Ring slightly thicker (4px border, 4px max blur) so it is visible, not washed-out thin. --- */
.hb{position:relative;animation:none;box-shadow:0 0 16px 4px rgba(255,61,139,.35)}
.hb::before,.hb::after{content:"";position:absolute;inset:0;border-radius:50%;border:4px solid rgba(255,61,139,.55);background:transparent;pointer-events:none;z-index:-1;animation:tkflow 3s linear infinite}
.hb::after{animation-delay:1.5s}
@keyframes tkflow{
  0%{transform:scale(1);opacity:.7;filter:blur(0px)}
  100%{transform:scale(1.9);opacity:0;filter:blur(4px)}
}

/* WP live-preview fixes v11 (2026-10-29): only the reported live-site parts.
   1) Cart badge: WooCommerce fragments can replace <b> with another tag, so
      badge styling must follow the class, not the tag, in header and bottom bar. */
.cart .tk-cart-count{position:absolute;top:-5px;right:-7px;min-width:18px;height:18px;border-radius:9px;background:var(--yel);color:var(--navy);font-size:11px;display:grid;place-items:center}
.bn .tk-cart-count{position:absolute;top:-5px;right:12px;z-index:1;min-width:17px;height:17px;border-radius:9px;background:var(--yel);color:var(--navy);font-size:10px;display:grid;place-items:center}
/* 2) Login/Track panels now live inside header .rt (like the preview): on desktop
   they drop down from the header under the icons, instead of sitting fixed at the
   viewport far-right. Phone keeps the fixed bottom sheet (position:fixed from
   main.css, untouched below 641px). */
@media (min-width:641px){
  .rt{position:relative}
  .lgp,.trp{position:absolute;top:calc(100% + 14px);right:100px;left:auto;bottom:auto;width:min(340px,calc(100vw - 24px));z-index:82}
  .trp{display:block}
}
/* 3) Logged-in panel: My Account / Logout are two separate buttons, not one block. */
.lgp .sh p{margin:0 0 10px}
.lgp .sh p:last-child{margin-bottom:0}

/* --- v13 (2026-10-29): promo bar cap was written as .promo.pb (same element) so it never applied; fix to descendant, and centre the Shop page chips / "happiest picks" line / filter panel like the preview --- */
@media (min-width:641px){
  body.woocommerce-shop .chips, body.tax-product_cat .chips, body.tax-product_tag .chips{justify-content:center}
  body.woocommerce-shop .tb, body.tax-product_cat .tb, body.tax-product_tag .tb{justify-content:center;text-align:center;flex-direction:column;align-items:center;gap:6px}
  body.woocommerce-shop .fpan, body.tax-product_cat .fpan, body.tax-product_tag .fpan{max-width:1100px;margin-left:auto;margin-right:auto}
}

/* --- v14 (2026-10-29): incremental fixes from user screenshots --- */
/* Shop filter: one line on desktop — Price | Age | Sort | Apply, controls middle-aligned, chips and sort dropdown centred under their labels. */
@media (min-width:801px){
  body.woocommerce-shop .fpan, body.tax-product_cat .fpan, body.tax-product_tag .fpan{
    grid-template-columns:1.2fr 1.7fr 1fr auto; align-items:center; gap:16px;
  }
  .fpan>div{display:flex;flex-direction:column;justify-content:center;align-items:stretch}
  .fpan .ages{justify-content:center}
  .fpan .sort{margin:0 auto;display:block}
  .fpan .apply-col{align-items:center;justify-content:center}
  .fpan .apply-col .btn{margin-top:28px;white-space:nowrap}
}
@media (max-width:800px){
  .fpan>div:nth-child(4){grid-column:1 / -1;grid-row:3;text-align:center}
  .fpan .apply-col .btn{margin-top:0}
}
/* Product page buy row like the preview: qty + pink Add to Cart + heart on ONE straight row, no wrap, no tilt, no "20 in stock" line inside the form. */
.pgp .buy{flex-wrap:nowrap;align-items:center}
.pgp .buy form.cart{width:auto;flex:1 1 auto;flex-wrap:nowrap;transform:none}
.pgp .quantity{transform:none}
.pgp .single_add_to_cart_button{background:var(--pink);transform:none}
.pgp .single_add_to_cart_button:hover{background:var(--pink);transform:scale(1.04)}
.pgp .buy p.stock{display:none}
.pgp .buy .heart{flex:none}

/* --- v14.1: Add to Cart was navy because .woocommerce button.button.alt (3 classes) beats .pgp .single_add_to_cart_button (2 classes); use 4 classes so pink wins. Load More JS now targets the theme's .pc cards in the same section, not ul.products li. --- */
body.woocommerce .pgp button.single_add_to_cart_button.alt, body.woocommerce .pgp .single_add_to_cart_button{background:var(--pink)}
body.woocommerce .pgp button.single_add_to_cart_button.alt:hover, body.woocommerce .pgp .single_add_to_cart_button:hover{background:var(--pink);transform:scale(1.04)}

/* --- v15 (2026-10-29, batch 2): product buy row — heart must sit right next to Add to Cart, not far right. The 320px button cap + flex:1 form left a huge empty gap inside the form; now the form shrinks to fit qty+button, so the heart follows immediately. --- */
.pgp .buy form.cart{flex:0 0 auto;width:auto}
.pgp .single_add_to_cart_button{flex:0 1 auto}
@media (min-width:1441px){
  .pgp .single_add_to_cart_button{flex:0 1 auto;max-width:none}
}
/* Shop Apply button: remove the double offset (dummy label + margin-top) so it sits on the same line as the other controls. */
body.woocommerce-shop .fpan .apply-col, body.tax-product_cat .fpan .apply-col, body.tax-product_tag .fpan .apply-col{justify-content:flex-start}
@media (min-width:801px){
  .fpan .apply-col .btn{margin-top:28px}
}
/* Blog page: cards left-aligned so the first card's left edge lines up with the chips above it (was centred, so chips and cards did not line up). */
body.blog .bpg, body.archive .bpg{justify-content:flex-start}
@media (min-width:1441px){
  body.blog .bpg, body.archive .bpg{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));justify-content:flex-start}
}

/* --- v16 (2026-10-30): only the six problems reported on 2026-10-30 --- */
/* 1+2+6) Panels could not be typed in / tabs could not switch, and on phones they
   looked dimmed and sat under the page. Root cause: the panels live inside the
   sticky header (.top, z-index 50), so they could never rise above the full-screen
   close overlay (.scr, z-index 70) that sits after the footer. Every tap on a panel
   actually hit that overlay label (for="shn") and closed the panel, and on phones
   the overlay's dark background dimmed the panel underneath it. Raising the header
   above the overlay fixes all three at once: panel taps now reach the panel, the
   Login/Register tab labels work, outside taps still hit the overlay and close,
   and the phone panel is crisp above the dimmed page instead of under it. */
.top{z-index:100}
/* 3) Product buy row: quantity + Add to Cart + heart must be ONE middle-aligned row
   whose total width equals the Buy Now button below it (heart at Buy Now's right
   edge, quantity at its left edge). v15 shrank the form to fit its button, which
   left the heart short of Buy Now's right edge. Now the form stretches (flex:1)
   and the Add to Cart button stretches inside it, so the row fills the column.
   Quantity +/- buttons were rendering with the browser's default grey button
   background (the JS step buttons carry no class, so the preview .qty rules never
   applied to them): they are now plain, background-free, navy-bold symbols, a
   little bigger, with the number middle-aligned between them. All three controls
   share one height (52px) so they sit on the same middle line. */
.pgp .buy{width:100%;flex-wrap:nowrap;align-items:center;gap:10px}
.pgp .buy form.cart{flex:1 1 auto;width:auto;display:flex;gap:10px;align-items:center;flex-wrap:nowrap;margin:0}
.pgp .quantity{height:52px;align-items:center;flex:none;background:transparent}
.pgp .quantity button{width:48px;height:52px;background:none!important;background:transparent;border:0;font-size:26px;font-weight:800;color:var(--navy);cursor:pointer;display:grid;place-items:center;padding:0}
.pgp .quantity input.qty{width:46px;height:52px;font-size:18px;font-weight:800;color:var(--navy);padding:0}
.pgp .buy form.cart .single_add_to_cart_button{flex:1 1 auto;height:52px;display:inline-flex;align-items:center;justify-content:center;padding:0 24px;font-size:18px;max-width:none}
.pgp .buy .heart{width:52px;height:52px;font-size:26px;flex:none}
.pgp .btn.big.alt{width:100%}
@media (min-width:1441px){
  .pgp .buy form.cart .single_add_to_cart_button{flex:1 1 auto;max-width:none}
}
/* 4) Blog page: 4 cards per row on desktop (was 5 on a 1920px screen, because the
   large-screen grid auto-fit 300px tracks into the wide container). A fixed
   4-column grid, left-aligned, also puts the first card's left edge exactly on
   the chips' left edge (both start at the .shw container's left edge). On large
   screens the grid is capped at 1440px so cards stay near their original size. */
@media (min-width:801px){
  body.blog .bpg, body.archive .bpg{grid-template-columns:repeat(4,minmax(0,1fr));justify-content:flex-start}
}
@media (min-width:1441px){
  body.blog .bpg, body.archive .bpg{grid-template-columns:repeat(4,minmax(0,1fr));justify-content:flex-start;max-width:1440px}
}
/* 5) Inner-page banner clouds on phones: the large-screen vw heights (7vw/6vw)
   shrank to ~27px/23px on a 390px phone, shorter than the 56px cream section
   divider that overlaps the banner bottom, so the pink/orange banner clouds were
   completely hidden behind the white divider and only the white cloud shape
   showed. A floor (90px/70px) keeps the banner clouds taller than the divider
   on every width, so they peek above it like the home hero clouds do. */
.ban .c1{height:max(7vw,90px)}
.ban .c2{height:max(6vw,70px)}

/* --- v17 (2026-10-30): only the three problems reported 2026-10-30 11:16 --- */
/* 1) Product buy row was LONGER than Buy Now on wide screens. Cause: v16 stretched
   the row to the full info-column width, but Buy Now keeps its original large-screen
   cap of 514px (from the preview fixes), so on a 1920px screen the row (~850px) ran
   far past Buy Now (~514px). Fix, large screens only: cap the buy row at the same
   514px, so row and Buy Now share exactly the same width and the same left/right
   edges. Below 1441px the info column is already at or under that width, so both
   stay full-width and equal there, unchanged. */
@media (min-width:1441px){
  .pgp .buy{max-width:514px}
  .pgp .btn.big.alt{max-width:514px}
}
/* 2) Blog page: v16 capped the 4-card grid at 1440px but left-aligned it inside the
   wider .shw container, so the whole block sat too far left with empty space on
   the right. Centre the capped grid AND the chips block (same 1440px, auto margins)
   so chips still line up with the first card, but the block as a whole is centred
   in the page. Below 1441px the container already fills .shw, which is centred. */
@media (min-width:1441px){
  body.blog .bpg, body.archive .bpg{max-width:1440px;margin-left:auto;margin-right:auto}
  body.blog .shw .chips, body.archive .shw .chips{max-width:1440px;margin-left:auto;margin-right:auto}
}
/* 3) Shop page last row: a CSS grid always places last-row cards in the first
   tracks, so a 3-card last row looked left-aligned even when the grid itself was
   centred. Shop loop grids only (home rows untouched) are now flex rows with
   centred wrapping: cards grow from 170px up to the original 204px cap, so a full
   row still fills the width with the same card sizes as before, but a partial
   last row (3 cards after the first 12, or the final cards after Load More) is
   centred as a row. Load More still works: hidden cards are display:none, shown
   cards reflow and the new last row recentres. Phones keep two per row. */
body.woocommerce-shop .g5.gs, body.tax-product_cat .g5.gs, body.tax-product_tag .g5.gs{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch}
body.woocommerce-shop .g5.gs .pc, body.tax-product_cat .g5.gs .pc, body.tax-product_tag .g5.gs .pc{flex:1 1 170px;max-width:204px}
@media (max-width:600px){
  body.woocommerce-shop .g5.gs .pc, body.tax-product_cat .g5.gs .pc, body.tax-product_tag .g5.gs .pc{max-width:calc(50% - 6px)}
}

/* --- v18 (2026-10-30): shop chips, selected state --- */
/* Root cause: .chip.on sets pink background + white text, but the later rule
   .chips a.chip{color:inherit} has higher specificity (two classes + an element
   beats two classes), so it overrode the white text back to dark ink while the
   pink background stayed - pink chip with dark text. Unselected chips are
   untouched (white card, dark text as now). This rule outranks both, so a
   selected chip is pink with white text. */
.chips a.chip.on{background:var(--pink);color:#fff;border-color:var(--pink)}

/* --- v19 (2026-10-30): only the two problems reported 2026-10-30 14:00 --- */
/* 1) Sale-card prices were cut off behind the + button. Cause: .pr is a
   no-wrap flex row with no right padding, while .pl is an absolute 66px-wide
   button sitting over the price row's bottom-right corner. A single price
   (~70px) stays left of the button and looks fine, but a sale price pair
   (old + new, ~160px) runs under the button, so its right end is hidden -
   exactly the two red-marked cards (Lotion 899->649, Play Mat 1599->1099).
   Widening the card alone cannot fix this, because the button would still
   cover the price's right end. Fix, shared .pc only (so every page's cards
   keep exactly the same size): reserve the button's width as right padding
   on .pr and allow the two prices to wrap, so the full old and new prices
   always show left of the + button. No card width, height cap or button
   size is changed. */
.pc .pr{flex-wrap:wrap;padding-right:72px}
.pc .pr>*{min-width:0}
@media (max-width:600px){
  .pc .pr{padding-right:56px}
}
/* 2) Coming Soon tag was assigned to every placeholder product in the
   backend, but no card template ever rendered product tags, so the tag
   never appeared on any card. Fix: product-card.php now outputs a small
   pink "Coming Soon" pill (top-right of the card, opposite the orange OFF
   badge on the left, same pill style/size as .of) only when the product
   carries the coming-soon tag. Real products without that tag show nothing
   extra, and because this is the one shared card template, the pill appears
   identically on home, shop, category and search cards. */
.pc .cs{position:absolute;top:12px;right:12px;background:var(--pink);color:#fff;font-size:12px;font-weight:700;padding:1px 12px;border-radius:14px;z-index:1}
@media (max-width:600px){
  .pc .cs{font-size:11px;padding:0 9px;top:8px;right:8px}
}

/* --- v20 (2026-10-30): Coming Soon pill moved, as the user suggested --- */
/* Problem: on a 204px shop card the orange OFF pill (top-left) and the pink
   Coming Soon pill (top-right) together are almost as wide as the card, so
   on sale cards they touch/overlap (see the red-marked Lotion and Play Mat
   cards). Fix: the OFF badge stays alone at the top-left, and Coming Soon
   moves out of the image entirely to below the price, on the left, in the
   same bottom strip as the + button (price above, Coming Soon left, + right).
   The pill is a static inline-block after .pr (not absolute), so it can
   never overlap the OFF badge or the + button: its width (~110px) plus the
   66px + button (50px on phones) fits the card's inner width, and the v19
   .pr right padding still keeps prices clear of the + button. Because this
   is the one shared card template, home, shop, category and search cards
   all get the same bottom-strip layout, and products without the tag show
   no extra row. */
.pc .cs{position:static;display:inline-block;top:auto;right:auto;margin:0 0 12px;max-width:calc(100% - 78px);white-space:nowrap;overflow:hidden}
@media (max-width:600px){
  .pc .cs{font-size:11px;padding:0 9px;margin-bottom:10px;max-width:calc(100% - 62px)}
}

/* --- v21 (2026-10-30): v20 follow-up, pill text was clipped --- */
/* v20 verification found a new flaw in its own fix: on narrow shop cards
   the pill's max-width (100% - 78px) plus nowrap/overflow:hidden clipped the
   text to "Coming S..." instead of showing the full "Coming Soon". Fix:
   drop the max-width/overflow clip, slim the pill padding slightly so its
   natural width (~105px) plus the 66px + button fits a shop card, and give
   shop/category cards a little more room (max 204px -> 216px, same flex
   basis, same centred last row, phone 2-per-row restored by the media rule
   below). Home cards were already wide enough and are untouched. */
.pc .cs{padding:1px 10px;max-width:none;overflow:visible}
body.woocommerce-shop .g5.gs .pc, body.tax-product_cat .g5.gs .pc, body.tax-product_tag .g5.gs .pc{flex:1 1 180px;max-width:216px}
@media (max-width:600px){
  .pc .cs{padding:0 8px;max-width:none}
  body.woocommerce-shop .g5.gs .pc, body.tax-product_cat .g5.gs .pc, body.tax-product_tag .g5.gs .pc{max-width:calc(50% - 6px)}
}

/* --- v22 (2026-10-30): Coming Soon pill at the same height on every card --- */
/* Problem: the pill sits in normal flow after the price, so its height
   follows whatever is above it. A 2-line title (Building Block Castle Set)
   or a 2-line sale price (Lotion: 899 struck on one line, 649 on the next)
   pushes the pill lower than on 1-line cards, so pills in the same row sit
   at different heights (the two red-marked cards in the user's screenshot).
   Fix, card template untouched: make .pc a flex column and give the pill
   margin-top:auto with align-self:flex-start. The auto margin absorbs all
   the height difference above it, so the pill is always pinned to the
   card's bottom strip (same strip as the + button, left vs right, clear
   gap), no matter how many lines the title or price wraps to. Cards in a
   row already stretch to the same height, so pills now line up exactly
   across the row, on home, shop, category and search cards alike. The +
   button stays absolute bottom-right, unchanged, and no card width changes. */
.pc{display:flex;flex-direction:column}
.pc .cs{margin-top:auto;align-self:flex-start;flex:none}

/* --- v23 (2026-10-30): card images spilling out of their pastel box --- */
/* Problem: the four red-marked cards (Feeding Bottle, Spoon & Bowl, Building
   Block car, Puppy teddy) all use the transparent 3D PNGs, and those PNGs'
   subjects touch the canvas edges on two or three sides (measured: teddy
   left+bottom at 0, bottle left+top at 0, car left+top+bottom at 0, stroller
   left+top+bottom at 0). With object-fit:contain the subject therefore
   touches the pastel image box's edges, so it looks like it bursts out of
   the card and crowds the design and the text below — while emoji cards,
   whose symbols sit small in the middle, never show this. Fix, card images
   only: give .pc .sl img a clear 18px inset (12px on phones, where the
   image box is only 104px tall) and clip .pc .im to its rounded box, so
   every card image sits fully inside its pastel box with a visible margin
   on all sides and can never spill onto the design or text below. Card
   size, title, price, Coming Soon pill and + button are all untouched. */
.pc .im{overflow:hidden}
.pc .sl img{padding:18px;box-sizing:border-box}

/* --- v24 (2026-10-30): user-supplied images in place of emojis --- */
/* User images (assets/img/user/, 768px, transparent) replace the named
   emojis through tinkuri_emoji_or_user_img() in helpers.php, in every
   decorative spot where that emoji sat, product cards excluded: home hero
   (bear, puzzle, yoyo, car, feeder), age cards, category cards, offer
   banner, About banner (heart-footprint in place of the yellow baby emoji)
   and About art, inner-page banners, single-post floats and hero, blog
   cards, and the Contact Call-us icon. Only phone banner sizes need a
   rule here: banner images keep their desktop sizes (92/56/46px) but must
   shrink to the phone emoji sizes (66/56/34px) under 800px, or the 92px
   image would crowd a 375px banner. */
@media (max-width:800px){
  .ban .fl img{width:56px !important;height:56px !important}
  .ban .fl.bear img{width:66px !important;height:66px !important}
  .ban .fl.lo img{width:34px !important;height:34px !important}
}

/* --- v26 (2026-10-30): two phone-only problems reported 2026-10-30 22:14 --- */
/* 1) Home hero on phones: bear and feeder sat almost on top of each other
   (their centres were only ~1px apart horizontally: bear left 30% + 160px
   centre, feeder right 8% + 52px centre, on a ~343px phone content width),
   so they looked crowded. Small phone-only nudges, desktop untouched
   (inline styles need !important here): bear left 30% -> 22% and top
   60 -> 40, so it sits a little more over the purple sphere and away
   from the feeder; feeder right 8% -> 0, so it sits over the cyan shape;
   car left 8% -> 2% and bottom 30 -> 20, so it sits over the pink shape;
   yoyo right 6% -> 2% and top 30 -> 20, so it sits closer to the yellow
   shape. Each move is only 4-8% / 10-20px, as the user asked, and the
   wiggle animation is unchanged. */
/* 2) Footer on phones: the right tree was at right:84px, which put it in
   the middle of the centred copyright text ("reserved." sat under it),
   while the left tree was at left:9%. Phone-only fix: right tree to
   right:9%, so both trees have the same 9% edge gap and the right tree
   sits under the message icon instead of on the text; message icon
   raised a little more (var(--bar)+62px -> +74px) so it clears the tree
   top a touch better. Desktop/large screens untouched. */
@media (max-width:800px){
  .toys img.tw{left:22% !important;top:40px !important}
  .toys span.tw:nth-of-type(2){right:2% !important;top:20px !important}
  .toys span.tw:nth-of-type(3){left:2% !important;bottom:20px !important}
  .toys span.tw:nth-of-type(4){right:0 !important}
}
@media (max-width:640px){
  .fx .tr:nth-of-type(2){right:9% !important}
  .help{bottom:calc(var(--bar) + 74px + env(safe-area-inset-bottom,0px))}
}

/* --- v25 (2026-10-30): three small problems reported 2026-10-30 21:55 --- */
/* 1) Home blog cards: the bear image spilled below its pastel box onto the
   title. Cause: .bc .im has no overflow clipping, so a blog-card image
   taller than the 150px box (its height rule is not applied to the image
   element itself) hangs over the title below. Fix: clip .bc .im to its box
   and cap its image at the box height (150px desktop, 120px on phones),
   so the bear — and every blog-card image — always stays fully inside its
   pastel box. Blog-card padding also drops 18px -> 12px so the image reads
   a touch bigger inside the box. */
/* 2) Blog category pages had no chips at all, unlike Shop, because only
   the Blog index (index.php) renders chips; category archives use
   archive.php, which had none. The chips block is now in archive.php for
   category archives too (All + categories, current category pink via the
   existing .chip.bc2.on rule), so a selected chip keeps all chips visible
   exactly like Shop. */
/* 3) User images a bit bigger, balanced, everywhere they already sit:
   banners 92/56/46 -> 108/68/56 (About heart-footprint stays 92, as the
   user asked; phone banner sizes unchanged), home hero bear 280 -> 320,
   hero floats 80/90 -> 95/105, age/category cards 62/64 -> 72/74, offer
   banner 96 -> 112, About art bear/feeder/star 130/70/50 -> 150/85/62 and
   rainbow only slightly 64 -> 72, Contact call icon 36 -> 44, single-post
   floats 56/46 -> 68/56. Product cards are untouched. */
.bc .im{overflow:hidden}
.bc .im img{max-height:150px}
@media (max-width:800px){
  .bc .im img{max-height:120px}
}
@media (max-width:600px){
  .pc .sl img{padding:12px}
}
