/* =============================================================================
   Product page (theme 2.4.0)
   Loaded on product pages only, after bakery.css. Everything here is under
   .bk-pdp / .bk-sticky / .bk-zoom, so the shop and the rest of the site are
   untouched. Markup: woocommerce/content-single-product.php. Script:
   assets/js/product.js.
   ========================================================================== */

.bk-pdp{max-width:1280px;margin:0 auto;padding:4px 40px 96px;color:var(--bk-ink);font-family:var(--font-body)}
.bk-pdp *,.bk-sticky *,.bk-zoom *{box-sizing:border-box}
.bk-pdp .amount,.bk-pdp .amount *,.bk-sticky .amount,.bk-sticky .amount *{color:inherit}
.bk-pdp del,.bk-sticky del{color:var(--bk-ink-soft);font-weight:500;font-size:.7em;margin-right:6px}
.bk-pdp ins,.bk-sticky ins{text-decoration:none}
.bk-pdp .bk-from,.bk-sticky .bk-from{font-size:.62em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--bk-ink-soft);margin-right:2px}

/* --- The two columns -------------------------------------------------------- */
.bk-pdp-top{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(28px,4vw,56px);align-items:start}

/* --- Photos: a rail of thumbnails beside one big photo ----------------------- */
.bk-gal{position:sticky;top:calc(var(--bk-nav-h,64px) + 16px);display:flex;gap:14px;align-items:flex-start;min-width:0}
.bk-gal-rail{flex:0 0 76px;display:flex;flex-direction:column;gap:10px;max-height:min(680px,calc(100vh - 140px));overflow-y:auto;padding:2px;scrollbar-width:thin}
.bk-gal-thumb{flex:none;width:72px;height:72px;padding:2px;border:2px solid transparent;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s ease}
.bk-gal-thumb:hover{border-color:var(--bk-line-soft)}
.bk-gal-thumb[aria-current="true"]{border-color:var(--bk-ink)}
.bk-gal-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
.bk-gal-stage{position:relative;flex:1 1 auto;min-width:0}
.bk-gal-open{display:block;width:100%;padding:0;border:0;border-radius:24px;background:#fff;overflow:hidden;cursor:zoom-in}
.bk-gal-img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#fff}
.bk-gal-count{position:absolute;left:18px;bottom:22px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.92);font-size:13px;font-weight:600;color:var(--bk-ink);pointer-events:none}
.bk-gal-arrows{position:absolute;right:18px;bottom:18px;display:flex;gap:10px}
.bk-gal-arrows[hidden],.bk-gal-count[hidden]{display:none}
.bk-gal-dots{display:none}
.bk-round{width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(67,33,18,.18);color:var(--bk-ink);display:grid;place-items:center;cursor:pointer}
.bk-round:hover{background:var(--bk-flour)}
.bk-round svg,.bk-chip svg,.bk-ship svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* --- The product column ------------------------------------------------------ */
.bk-info{display:flex;flex-direction:column;gap:22px;min-width:0}
.bk-info-head{display:flex;flex-direction:column;gap:10px}
.bk-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:4px 12px 4px 4px;border-radius:999px;background:var(--tint,#FFE0BF);color:var(--bk-ink);font-size:14px;font-weight:600;text-decoration:none}
.bk-chip:hover{color:var(--bk-ink);text-decoration:underline}
.bk-face{display:block;width:28px;height:28px;border-radius:50%;background:#fff;object-fit:cover}
.bk-pdp .bk-title{margin:0;font-family:var(--font-body);font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--bk-ink)}
.bk-title-main{display:block;font-size:clamp(28px,2.6vw,36px);line-height:1.12}
.bk-title-sub{display:block;margin-top:6px;font-size:17px;line-height:1.4;font-weight:400;letter-spacing:0;color:var(--bk-ink-soft)}
.bk-pdp .bk-price{margin:4px 0 0;font-size:24px;font-weight:700;line-height:1.2;color:var(--bk-ink)}

/* Colour tiles and size buttons (they drive WooCommerce's hidden menus) */
.bk-pickers{display:flex;flex-direction:column;gap:22px;margin:0 0 22px}
.bk-pickers[hidden]{display:none}
.bk-pick-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 10px}
.bk-pick-label{margin:0;font-size:15px;line-height:1.4}
.bk-pick-value{color:var(--bk-ink-soft)}
.bk-guide-link{font-size:14px;font-weight:600;color:var(--bk-link);text-underline-offset:3px}
.bk-pick--color .bk-pick-opts{display:flex;flex-wrap:wrap;gap:8px}
.bk-swatch{flex:none;width:56px;height:56px;padding:2px;border:2px solid #F0DEC4;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s ease}
.bk-swatch img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
.bk-swatch:hover{border-color:var(--bk-ink-soft)}
.bk-swatch[aria-pressed="true"]{border-color:var(--bk-ink)}
.bk-swatch.is-off{opacity:.45}
.bk-pick--size .bk-pick-opts,.bk-pick--other .bk-pick-opts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bk-pick--color .bk-pill{width:auto;padding:0 16px}
.bk-pill{min-height:48px;padding:0 8px;border:1.5px solid #D9BD99;border-radius:12px;background:#fff;color:var(--bk-ink);font:600 15px/1.2 var(--font-body);cursor:pointer;transition:border-color .15s ease,background .15s ease}
.bk-pill:hover{border-color:var(--bk-ink)}
.bk-pill[aria-pressed="true"]{background:var(--bk-ink);border-color:var(--bk-ink);color:var(--bk-flour)}
.bk-pill.is-off,.bk-pill.is-off:hover{background:#F6EEE2;border-color:#EADBC6;color:#8A6E58;text-decoration:line-through;cursor:not-allowed}
.bk-pick-note{margin:10px 0 0;font-size:14px;line-height:1.45;color:var(--bk-ink-soft)}
.bk-pick-note.is-alert{color:#A3361B;font-weight:700}
.bk-pick-note[hidden]{display:none}
.bk-specs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;list-style:none}
.bk-specs li{padding:7px 12px;border:1.5px solid var(--bk-line-soft);border-radius:999px;background:#fff;font-size:14px;font-weight:600}

/* WooCommerce's form, restyled; its menus hide once the tiles are working */
#main .bk-pdp form.cart{margin:0;padding:0}
#main .bk-pdp form.variations_form.bk-js table.variations,#main .bk-pdp form.variations_form.bk-js .reset_variations{display:none!important}
#main .bk-pdp table.variations{width:100%;margin:0 0 16px;border:0}
#main .bk-pdp table.variations th,#main .bk-pdp table.variations td{display:block;padding:0 0 6px;border:0;background:none;text-align:left}
#main .bk-pdp table.variations select{width:100%;min-height:48px;padding:0 12px;border:1.5px solid #D9BD99;border-radius:12px;background:#fff;font:16px var(--font-body);color:var(--bk-ink)}
#main .bk-pdp .single_variation_wrap .woocommerce-variation-price,#main .bk-pdp .single_variation_wrap .woocommerce-variation-description{display:none}
#main .bk-pdp .woocommerce-variation-availability p{margin:0 0 12px;font-size:14px;color:var(--bk-ink-soft)}
#main .bk-pdp .woocommerce-variation-availability .out-of-stock{color:#A3361B;font-weight:700}
#main .bk-pdp .woocommerce-variation-add-to-cart,#main .bk-pdp form.cart:not(.variations_form){display:flex;align-items:stretch;gap:10px;flex-wrap:nowrap}
#main .bk-pdp form.cart .quantity{display:none}
#main .bk-pdp .bk-buy--qty form.cart .quantity{display:flex;align-items:center;flex:none;margin:0;border:1.5px solid #D9BD99;border-radius:999px;background:#fff}
#main .bk-pdp .bk-buy--qty form.cart .quantity input.qty{width:40px;height:54px;padding:0;border:0;background:transparent;font:700 16px var(--font-body);color:var(--bk-ink);text-align:center;-moz-appearance:textfield}
#main .bk-pdp .bk-buy--qty form.cart .quantity input.qty::-webkit-outer-spin-button,#main .bk-pdp .bk-buy--qty form.cart .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bk-qty-btn{width:44px;height:54px;padding:0;border:0;background:none;color:var(--bk-ink);font:400 22px/1 var(--font-body);cursor:pointer}
#main .bk-pdp form.cart button.single_add_to_cart_button{flex:1 1 auto;float:none;width:auto;min-height:58px;margin:0;padding:0 24px;border:2.5px solid var(--bk-ink);border-radius:999px;background:var(--bk-crust);color:var(--bk-ink);font:700 17px/1.2 var(--font-body);letter-spacing:0;text-transform:none;opacity:1;cursor:pointer;transition:background .15s ease}
#main .bk-pdp form.cart button.single_add_to_cart_button:hover{background:var(--bk-crust-hi);color:var(--bk-ink)}
#main .bk-pdp form.cart button.single_add_to_cart_button:focus-visible{outline:3px solid var(--bk-ink);outline-offset:3px}
#main .bk-pdp form.cart button.single_add_to_cart_button.disabled{opacity:.7;cursor:pointer}
#main .bk-pdp form.cart button.single_add_to_cart_button.loading{opacity:.7}
.bk-btn-sep{margin:0 .35em;opacity:.7}
#main .bk-pdp #wc-stripe-express-checkout-element,#main .bk-pdp .wc-stripe-product-checkout-container,#main .bk-pdp #wc-stripe-payment-request-wrapper{display:none!important}

.bk-ship{display:flex;gap:10px;align-items:flex-start;margin:-8px 0 0;font-size:14px;line-height:1.45;color:var(--bk-ink-soft)}
.bk-ship svg{flex:none;color:var(--bk-ink);stroke-width:2}
.bk-lead{font-size:16px;line-height:1.6}
.bk-lead p{margin:0}

/* The folds */
.bk-folds{border-bottom:1px solid var(--bk-line-soft)}
.bk-fold{border-top:1px solid var(--bk-line-soft)}
.bk-fold > summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:4px 0;list-style:none;font-size:16px;font-weight:600;color:var(--bk-ink);cursor:pointer}
.bk-fold > summary::-webkit-details-marker{display:none}
.bk-fold > summary::after{content:"+";flex:none;width:24px;text-align:center;font-size:24px;font-weight:400;line-height:1}
.bk-fold[open] > summary::after{content:"\2212"}
.bk-fold > summary:hover{text-decoration:underline;text-underline-offset:3px}
.bk-fold-body{padding:0 0 20px;font-size:15px;line-height:1.7;overflow-wrap:break-word}
.bk-fold-body p{margin:0 0 10px}
.bk-fold-body ul,.bk-fold-body ol{margin:0 0 12px;padding-left:20px}
.bk-fold-body li{margin:0 0 4px}
.bk-faq p > strong:first-child,.bk-faq p > b:first-child{display:block}
.bk-table-scroll{overflow-x:auto;margin:0 0 8px}
.bk-table-scroll table{width:100%;min-width:420px;border-collapse:collapse;font-size:13px}
.bk-table-scroll td,.bk-table-scroll th{padding:8px 10px 8px 0;border-bottom:1px solid var(--bk-line-soft);text-align:left;white-space:nowrap}
.bk-table-scroll tr:first-child td,.bk-table-scroll td:first-child{font-weight:700}

/* --- The cat's own section ---------------------------------------------------- */
.bk-meet2{display:flex;flex-wrap:wrap;gap:48px;align-items:center;margin-top:88px;padding:48px 56px;border-radius:32px;background:var(--tint,#FFE0BF);scroll-margin-top:calc(var(--bk-nav-h,64px) + 16px)}
.bk-meet2-art{display:block;flex:0 1 300px;max-width:100%}
.bk-meet2-img{display:block;width:100%;height:auto}
.bk-meet2-text{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:14px}
.bk-meet2-kicker{margin:0;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--bk-ink-soft)}
.bk-pdp .bk-meet2-name{margin:0;font-family:var(--font-display);font-weight:400;font-size:clamp(48px,5vw,72px);line-height:.92;letter-spacing:.01em;text-transform:none;color:var(--bk-ink)}
.bk-meet2-bio{margin:0;max-width:58ch;font-size:18px;line-height:1.6}
.bk-meet2-says{margin:4px 0 0;font-family:var(--font-display);font-size:40px;line-height:1}
.bk-meet2-links{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin-top:6px}
.bk-friend{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--bk-ink);font-weight:600;text-decoration:none}
.bk-friend .bk-face{width:32px;height:32px}
.bk-friend:hover{color:var(--bk-ink);text-decoration:underline}

/* --- More of the cat, more from the bakery ------------------------------------ */
.bk-row{margin-top:64px}
.bk-pdp .bk-row-title{margin:0 0 20px;font:700 24px/1.2 var(--font-body);letter-spacing:0;text-transform:none;color:var(--bk-ink)}
.bk-row-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.bk-card{display:flex;flex-direction:column;gap:8px;min-width:0;color:var(--bk-ink);text-decoration:none}
.bk-card-img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:18px;background:#fff}
.bk-card-name{font-size:15px;font-weight:600;line-height:1.3}
.bk-card-price{font-size:15px;color:var(--bk-ink-soft)}
.bk-card:hover{color:var(--bk-ink)}
.bk-card:hover .bk-card-name{text-decoration:underline;text-underline-offset:3px}

/* --- The button again, at the bottom of the screen ------------------------------ */
.bk-sticky{position:fixed;left:0;right:0;bottom:0;z-index:90;display:flex;align-items:center;gap:12px;padding:10px max(16px,calc((100vw - 1200px) / 2)) calc(10px + env(safe-area-inset-bottom,0px));background:rgba(255,248,236,.97);border-top:1px solid var(--bk-line-soft);box-shadow:0 -6px 18px rgba(67,33,18,.08);font-family:var(--font-body);color:var(--bk-ink);transform:translateY(110%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
.bk-sticky.show{transform:none;visibility:visible;transition:transform .25s ease}
.bk-sticky-img{flex:none;width:44px;height:44px;border-radius:8px;object-fit:cover;background:#fff}
.bk-sticky-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.3}
.bk-sticky-name{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-sticky-price{font-size:15px}
.bk-sticky-pick{color:var(--bk-ink-soft)}
.bk-sticky .bk-btn{flex:none;padding:10px 22px;font-size:15px}

/* --- A photo, big ----------------------------------------------------------------- */
.bk-zoom{position:fixed;inset:0;margin:auto;width:min(96vw,1100px);height:min(92vh,1100px);max-width:none;max-height:none;padding:0;border:0;border-radius:24px;background:#fff;overflow:hidden}
.bk-zoom::backdrop{background:rgba(67,33,18,.62)}
.bk-zoom-img{display:block;width:100%;height:100%;object-fit:contain}
.bk-zoom .bk-round{position:absolute}
.bk-zoom-close{top:16px;right:16px}
.bk-zoom-prev{left:16px;top:50%;transform:translateY(-50%)}
.bk-zoom-next{right:16px;top:50%;transform:translateY(-50%)}
.bk-zoom [hidden]{display:none}

/* --- Phones and small tablets ---------------------------------------------------- */
@media (max-width:899px){
	.bk-pdp{padding:0 20px 112px}
	.bk-pdp-top{display:block}
	.bk-gal{position:static;display:block;margin:0 -20px}
	.bk-gal-rail,.bk-gal-arrows{display:none}
	.bk-gal-open{border-radius:0;cursor:pointer}
	.bk-gal-img{touch-action:pan-y}
	.bk-gal-count{left:auto;right:12px;top:12px;bottom:auto}
	.bk-gal-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:6px;pointer-events:none}
	.bk-dot{width:8px;height:8px;border-radius:4px;background:rgba(67,33,18,.25);transition:width .2s ease}
	.bk-dot.is-on{width:22px;background:var(--bk-ink)}
	.bk-info{margin-top:18px;gap:20px}
	.bk-title-main{font-size:28px}
	.bk-title-sub{font-size:15px}
	.bk-pdp .bk-price{font-size:22px}
	.bk-pick--color .bk-pick-opts{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px;padding:2px 20px 6px;scrollbar-width:none}
	.bk-pick--color .bk-pick-opts::-webkit-scrollbar{display:none}
	.bk-ship{justify-content:center;text-align:left}
	.bk-meet2{flex-direction:column;align-items:flex-start;gap:12px;margin:40px -20px 0;padding:32px 20px;border-radius:0}
	.bk-meet2-art{align-self:center;flex:none;width:200px}
	.bk-pdp .bk-meet2-name{font-size:52px}
	.bk-meet2-bio{font-size:16px}
	.bk-meet2-says{font-size:34px}
	.bk-row{margin-top:36px}
	.bk-pdp .bk-row-title{font-size:20px;margin-bottom:14px}
	.bk-row-cards{display:flex;gap:12px;overflow-x:auto;margin:0 -20px;padding:0 20px 6px;scroll-snap-type:x mandatory;scrollbar-width:none}
	.bk-row-cards::-webkit-scrollbar{display:none}
	.bk-card{flex:0 0 150px;scroll-snap-align:start}
	.bk-card-img{border-radius:14px}
	.bk-card-name,.bk-card-price{font-size:14px}
	.bk-sticky-name{display:none}
	.bk-zoom{width:100vw;height:100vh;height:100dvh;border-radius:0}
}
@media (prefers-reduced-motion:reduce){
	.bk-sticky,.bk-sticky.show,.bk-dot,.bk-swatch,.bk-pill,.bk-gal-thumb{transition:none}
}
