/* Bakeomate storefront: the product page (templates/product.html). Loaded after storefront-pages.css and
   storefront-order.css; colours and fonts come from the variables of partials/sf_head.html.
   Class names the page's script looks for keep their names (.product-option select, .order-controls,
   .product-gallery-thumbs, .video-thumb-wrap, .review-card ..., .star-picker). */

.pd{padding:clamp(20px,3vw,44px) var(--pad) 0}
.pd-in{max-width:1240px;margin-inline:auto}
.pd-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.86rem;color:var(--muted);margin-bottom:clamp(16px,2.2vw,28px)}
.pd-crumbs a{color:var(--lacquer-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.pd-crumbs a:hover{color:var(--ink)}
.pd-crumbs span[aria-hidden]{opacity:.55}

/* ---------- photo + details ---------- */
.product-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(28px,4.5vw,76px);align-items:start;margin-bottom:clamp(44px,6vw,88px)}
.pd-gallery{position:relative;min-width:0}
@media (min-width:901px){.pd-gallery{position:sticky;top:calc(var(--sf-navh) + 20px)}}
.product-image-wrap,.product-media-wrap{display:none;position:relative;border-radius:var(--sf-radius);overflow:hidden;aspect-ratio:4/3.4;background:#fefefe;
  box-shadow:0 2px 0 color-mix(in srgb,var(--wood) 10%,transparent),0 40px 60px -36px color-mix(in srgb,var(--wood) 60%,transparent)}
.product-image-wrap.active,.product-media-wrap.active{display:block}
.product-media-wrap{background:#000}
.product-image{width:100%;height:100%;object-fit:contain;display:block}
.product-image.is-fill{object-fit:cover}
/* the "no photo yet" drawing fills its frame, so no white bands show above and below it */
.product-image[src$="no-photo.svg"]{object-fit:cover}
.product-video{width:100%;height:100%;object-fit:cover;display:block}
.product-gallery-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.product-gallery-thumbs>img,.video-thumb-wrap{width:4.2rem;height:4.2rem;border-radius:10px;object-fit:cover;cursor:pointer;background:#fefefe;opacity:.72;
  box-shadow:0 0 0 1.5px color-mix(in srgb,var(--ink) 18%,transparent);transition:opacity .2s,box-shadow .2s,transform .25s var(--ease)}
.product-gallery-thumbs>img:hover,.video-thumb-wrap:hover{opacity:1;transform:translateY(-2px)}
.product-gallery-thumbs>img.active,.video-thumb-wrap.active{opacity:1;box-shadow:0 0 0 2.5px var(--lacquer)}
.video-thumb-wrap{position:relative;overflow:hidden;flex:none}
.video-thumb-wrap img{width:100%;height:100%;object-fit:cover}
.video-thumb-play{position:absolute;inset:0;margin:auto;width:1.7rem;height:1.7rem;border-radius:50%;background:color-mix(in srgb,var(--ink) 78%,transparent);display:grid;place-items:center}
.video-thumb-play::after{content:"";border-style:solid;border-width:5px 0 5px 9px;border-color:transparent transparent transparent #fff;margin-left:2px}

.product-header{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.dietary-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.dietary-badge svg{width:.8rem;height:.8rem}
.product-method{font-family:var(--hand);font-size:1.3rem;line-height:1.2;color:var(--lacquer-ink);margin-bottom:.3rem}
.product-title{font-size:clamp(2.2rem,4.6vw,4rem);margin-bottom:.35em;overflow-wrap:anywhere}
.pdp-rating{display:inline-flex;align-items:center;gap:8px;margin:0 0 1rem;color:var(--ink);font-size:1rem;line-height:1}
.pdp-rating strong{font-weight:600}
.pdp-rating-count{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.pdp-rating:hover .pdp-rating-count{color:var(--ink)}
.product-long-desc{font-size:1.04rem;line-height:1.7;color:var(--ink);max-width:36em;margin-bottom:1.6rem}
.product-long-desc p{margin:0 0 .8em}
.product-long-desc p:last-child{margin-bottom:0}
.product-long-desc ul,.product-long-desc ol{margin:0 0 .8em;padding-inline-start:1.3em}
.product-long-desc li{margin-bottom:.25em}
.product-long-desc strong,.product-long-desc b{font-weight:600}
.product-long-desc h3,.product-long-desc h4{font-family:var(--display);font-weight:500;font-size:1.2rem;margin:1.1em 0 .4em}
.product-long-desc a{color:var(--lacquer-ink);text-decoration:underline;text-underline-offset:3px}

.pd-buy{align-self:stretch;border-top:1.5px dashed color-mix(in srgb,var(--ink) 24%,transparent);padding-top:1.5rem}
.pd-price-row{display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap;margin-bottom:1.4rem}
.product-price-large{transform:rotate(-2.5deg);padding:10px 20px 8px}
.product-price-large b{font-size:2.3rem;line-height:1}
.product-free{display:inline-flex;align-items:center;gap:8px;font-size:.92rem;font-weight:600;line-height:1.3;margin:0}
.product-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:0 16px}
.product-option{min-width:0}
.order-controls{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap;margin-top:.3rem}
.qty-stepper-large{display:inline-flex;align-items:center;gap:2px;background:var(--sand);border-radius:6px;padding:4px}
.qty-btn-lg{width:2.9rem;height:2.9rem;display:flex;align-items:center;justify-content:center;border-radius:4px;color:var(--ink);transition:background .2s,color .2s}
.qty-btn-lg:hover{background:color-mix(in srgb,var(--ink) 10%,transparent)}
.qty-btn-lg svg{width:1.15rem;height:1.15rem}
.qty-btn-lg--plus{background:var(--ink);color:var(--cream)}
.qty-btn-lg--plus:hover{background:var(--lacquer);color:var(--on-lacquer)}
.qty-value-lg{min-width:2.6rem;text-align:center;font-weight:700;font-size:1.2rem;font-variant-numeric:tabular-nums}
.btn-add-large{flex:1 1 13rem;min-height:3.4rem}
.btn-add-large.is-added,.pd-added{background:var(--success)!important;color:#fff!important}
.btn-add-large.is-added::before{display:none}
.limit-note,.pd-mix{margin-top:14px;font-weight:600}
.rules-box{margin-top:18px}
.rules-box-title{display:flex;align-items:center;gap:8px;font-family:var(--hand);font-size:1.3rem;line-height:1.2;color:var(--lacquer-ink);margin-bottom:.3rem}
.rules-box-title svg{width:1.15rem;height:1.15rem;stroke:currentColor;fill:none;stroke-width:2;flex:none}
.rules-box-lead{font-weight:600;margin-bottom:.3rem}
.rules-box ul{padding-inline-start:1.2em}
.rules-box li{margin:.15em 0}
.rules-box-link{display:inline-block;margin-top:.6rem;font-weight:600;color:var(--lacquer-ink);text-decoration:underline;text-underline-offset:3px}
.collect-note{display:flex;gap:9px;align-items:flex-start;margin-top:16px;font-size:.92rem;line-height:1.5;color:var(--muted)}
.collect-note svg{width:1.15rem;height:1.15rem;flex:none;margin-top:.15rem;color:var(--lacquer-ink)}

/* ---------- good to know: nutrition, allergens ---------- */
.pd-sec{margin-bottom:clamp(44px,6vw,88px)}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,30px)}
.info-card-title{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:400;font-size:1.5rem;line-height:1.15;font-variation-settings:"SOFT" 100,"WONK" 1;
  padding-bottom:.7rem;margin-bottom:1.1rem;border-bottom:1.5px dashed color-mix(in srgb,var(--ink) 22%,transparent)}
.info-card-title svg{width:1.3rem;height:1.3rem;flex:none;color:var(--lacquer-ink)}
.nutrition-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.nutrition-item{text-align:center;padding:.8rem .3rem;background:var(--cream);border-radius:10px}
.nutrition-value{font-family:var(--display);font-size:1.5rem;line-height:1.1;font-variation-settings:"SOFT" 100,"WONK" 1}
.nutrition-unit{font-family:var(--body);font-size:.75rem;color:var(--muted);margin-inline-start:1px}
.nutrition-label{font-size:.74rem;font-weight:600;color:var(--muted);margin-top:.25rem;overflow-wrap:anywhere}
.nutrition-serving{font-size:.86rem;color:var(--muted);margin-top:.9rem}
.pd-quiet{font-size:.94rem;color:var(--muted)}
.allergen-tags,.may-contain-tags{display:flex;flex-wrap:wrap;gap:8px}
.allergen-tag{display:inline-flex;align-items:center;padding:.3rem .85rem;border-radius:999px;background:#fdecea;border:1.5px solid #b3261e;color:#7d1a14;font-size:.86rem;font-weight:600}
.may-contain-label{font-size:.84rem;font-weight:600;margin:1.1rem 0 .5rem}
.may-contain-tag{display:inline-flex;align-items:center;padding:.3rem .85rem;border-radius:999px;background:#fff3d6;border:1.5px solid #b98112;color:#553a00;font-size:.86rem;font-weight:600}
.legal-notice{margin-top:clamp(16px,2vw,30px);font-size:.88rem}
.legal-notice-title{display:flex;align-items:center;gap:8px;font-weight:600;margin-bottom:.3rem}
.legal-notice-title svg{width:1.1rem;height:1.1rem;flex:none}
.legal-notice p{color:var(--muted)}

/* ---------- questions, articles ---------- */
.pdp-extra{max-width:860px}
.pdp-extra-title,.pd-h2{font-size:clamp(1.8rem,3.4vw,2.8rem);margin-bottom:.7em}
.faq-item{border-bottom:1.5px dashed color-mix(in srgb,var(--ink) 22%,transparent)}
.faq-item:first-child{border-top:1.5px dashed color-mix(in srgb,var(--ink) 22%,transparent)}
.faq-item summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:1.05rem 0;font-weight:600;font-size:1.04rem;cursor:pointer;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";flex:none;display:grid;place-items:center;width:1.9rem;height:1.9rem;border-radius:50%;background:var(--sand);font-size:1.2rem;font-weight:400;line-height:1;transition:transform .3s var(--ease),background .25s,color .25s}
.faq-item[open] summary::after{transform:rotate(45deg);background:var(--lacquer);color:var(--on-lacquer)}
.faq-item p{padding:0 0 1.2rem;color:var(--muted);max-width:44em}
.blog-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px}
.blog-link{display:flex;align-items:center;gap:14px;padding:12px;border-radius:14px;background:var(--paper);box-shadow:0 2px 0 color-mix(in srgb,var(--wood) 10%,transparent);transition:transform .3s var(--ease)}
.blog-link:hover{transform:translateY(-3px)}
.blog-link img{width:5.5rem;height:4rem;object-fit:cover;border-radius:8px;flex:none}
.blog-link-kicker{display:block;font-family:var(--hand);font-size:1.05rem;line-height:1.2;color:var(--lacquer-ink)}
.blog-link-title{display:block;font-weight:600;line-height:1.3}

/* ---------- more from the menu (cards come from storefront-order.css) ---------- */
.pd-rail{display:flex;gap:clamp(14px,1.6vw,24px);overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding:6px var(--pad) 34px;margin-inline:calc(-1 * var(--pad))}
.pd-rail>.product-card{flex:0 0 min(78vw,260px);scroll-snap-align:start}
.pd-rail .product-name,.pd-recs .product-name{font-size:1.2rem}
.btn-add[disabled]{background:var(--success);color:#fff;cursor:default}

/* ---------- reviews ---------- */
.pd-reviews{padding:clamp(48px,7vw,104px) var(--pad);margin-top:clamp(8px,2vw,24px)}
.pd-reviews-grid{max-width:1240px;margin-inline:auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(28px,4vw,64px);align-items:start}
.reviews-header{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:1.4rem}
.reviews-title{font-size:clamp(2rem,4vw,3.2rem)}
.reviews-avg{display:inline-flex;align-items:center;gap:6px;font-size:.98rem;color:var(--ink)}
.reviews-avg svg{width:1.2rem;height:1.2rem}
.reviews-avg .filled,.review-stars .filled,.star-picker .filled{fill:var(--gold-ink);stroke:none}
.review-stars .empty,.star-picker .empty{fill:none;stroke:color-mix(in srgb,var(--ink) 40%,transparent);stroke-width:1.5}
#reviews-list .review-card{min-width:0;max-width:none;transform:none;background:var(--paper);border-radius:14px;padding:1.2rem 1.35rem;margin-bottom:12px;box-shadow:0 2px 0 color-mix(in srgb,var(--wood) 10%,transparent)}
.review-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.review-author{font-weight:600}
.review-stars{display:inline-flex;gap:2px}
.review-stars svg{width:1rem;height:1rem}
.review-date{font-size:.8rem;color:var(--muted);margin:.1rem 0 .5rem}
.review-text{font-size:.96rem;line-height:1.6;overflow-wrap:anywhere}
.review-reply{margin-top:.8rem;padding:.7rem .9rem;border-inline-start:3px solid var(--gold);background:var(--cream);border-radius:0 8px 8px 0}
.review-reply-label{font-family:var(--hand);font-size:1.05rem;line-height:1.2;color:var(--lacquer-ink)}
.review-reply-text{font-size:.92rem}
.no-reviews{padding:1.4rem;border:1.5px dashed color-mix(in srgb,var(--ink) 26%,transparent);border-radius:14px;color:var(--muted);text-align:center}
.review-form h3{margin-bottom:1rem}
.review-form .pd-form-photo{float:inline-end;width:4.6rem;height:4.6rem;object-fit:cover;border-radius:10px;margin:0 0 8px 12px;background:#fefefe}
.star-picker{display:inline-flex;gap:4px;margin-bottom:1rem;border-radius:8px}
.star-picker button{padding:3px;transition:transform .2s var(--ease)}
.star-picker button:hover{transform:scale(1.15)}
.star-picker svg{width:1.9rem;height:1.9rem;display:block}
.review-form .field-input{margin-bottom:1rem}
.review-form-msg{margin:0 0 14px}
.review-form-more{margin-top:1rem;font-size:.9rem;color:var(--muted)}
.review-form-more a{color:var(--lacquer-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.review-success{display:none;text-align:center}
.review-success svg{width:2rem;height:2rem;display:block;margin:0 auto .5rem}

/* ---------- the bar with the order so far ---------- */
#product-cart-bar .cart-bar-left{display:flex;align-items:center;gap:10px;font-size:.95rem}
#product-cart-bar .cart-bar-left svg{width:1.4rem;height:1.4rem;flex:none}
#product-cart-bar .cart-bar-left b{font-family:var(--display);font-weight:400;font-size:1.5rem;line-height:1;color:var(--gold-on-ink)}
#product-cart-bar .cart-bar-promo.is-qualified{color:#fff;border-style:solid;border-color:#7fc79a;background:rgba(45,122,79,.4)}

@media (max-width:900px){
  .product-hero{grid-template-columns:minmax(0,1fr)}
  .product-image-wrap,.product-media-wrap{aspect-ratio:4/3.2}
  .pd-reviews-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:700px){
  .info-grid{grid-template-columns:minmax(0,1fr)}
  .nutrition-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .btn-add-large{flex-basis:100%}
  .qty-stepper-large{flex:1;justify-content:space-between}
}
@media (max-width:360px){.nutrition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
[dir="rtl"] .product-price-large{transform:rotate(2.5deg)}
