/* Opt-in boutique design; all original shop layouts keep their own CSS. */
html[data-catalog-style="boutique"]{--boutique-accent:var(--primary,#8A2147);--boutique-paper:#faf8f6;--boutique-line:#eee9e5;--font-body:'Rubik',sans-serif;--font-display:'Rubik',sans-serif;}
html[data-catalog-style="boutique"] body{background:var(--boutique-paper);}
html[data-catalog-style="boutique"] .hero{min-height:440px;text-align:start;background:#f0e8df;}
html[data-catalog-style="boutique"] .hero-bg{opacity:1;background-position:left center;}
html[data-catalog-style="boutique"] .hero-overlay{background:linear-gradient(90deg,transparent 25%,rgba(248,244,239,.65) 60%,#f8f4ef 100%);}
html[data-catalog-style="boutique"] .hero-content{margin-inline-start:0;max-width:600px;padding:70px 40px;color:#242021;}
html[data-catalog-style="boutique"] #heroTitle{font-weight:800;line-height:1.15;}
html[data-catalog-style="boutique"] #heroDesc{color:#514b48;}
html[data-catalog-style="boutique"] .hero-actions{margin-inline:0;}
html[data-catalog-style="boutique"] .hero-primary-action{background:var(--boutique-accent);border-radius:99px;color:white;padding:16px 32px;}
html[data-catalog-style="boutique"] .cat-card{background:transparent;box-shadow:none;border:0;text-align:center;}
html[data-catalog-style="boutique"] .cat-card .cat-image,html[data-catalog-style="boutique"] .cat-card img{border-radius:50%;aspect-ratio:1;object-fit:cover;}
html[data-catalog-style="boutique"] .cat-label{font-weight:700;}
.boutique-card{background:#fff;border:1px solid #f1eeeb;border-radius:24px;overflow:hidden;box-shadow:0 7px 28px rgba(65,35,40,.06);padding:12px;position:relative;}
/* The well keeps theme.css's owner colour (--ui-card-photo-bg, then --ui-card-bg,
   then white) and one square ratio; store-design.js sizes it by the owner's
   «גובה תמונה» in the grid and the deals strip alike. */
.boutique-card .card-img{border-radius:18px;aspect-ratio:1;overflow:hidden;}
.boutique-card .card-img>img{width:100%;height:100%;object-fit:var(--product-fit-desktop,cover);}
.boutique-card .card-name{font:700 21px/1.35 var(--font-body);text-align:center;margin:18px 0 4px;color:#211b1e;}
.boutique-card .boutique-subtitle{font:400 14px/1.5 var(--font-body);color:var(--ink-soft,#675A66);text-align:center;margin:0 0 10px;}
/* The price block (theme.css "Price block") as a static row on the stepper:
   new price, unit and the struck regular price on one baseline, wrapping whole
   pieces (never "22.90" from "₪"). wrap-reverse keeps the new price on the
   bottom line, so a regular price that no longer fits goes above it and the
   new prices of a row still share one baseline. margin-top:auto pins price +
   stepper to the card's foot; boutique.js puts the price straight above
   .qty-row. The
   classic sticker's own properties (max-width, padding, radius, tilt) are
   reset here, in every scope and container size. */
.boutique-card>.price-tag{position:static;transform:none;box-shadow:none;background:transparent;color:var(--boutique-accent);font-size:23px;
  display:flex;flex-wrap:wrap-reverse;align-items:baseline;justify-content:center;gap:2px 8px;width:100%;max-width:none;padding:0;border-radius:0;margin:auto 0 10px;order:initial;}
.boutique-card .price-unit{font-size:12px;}
.boutique-card .qty-row{margin:auto 0 0;border-top:1px solid var(--boutique-line);padding-top:12px;display:flex;align-items:center;gap:6px;}
.boutique-card>.price-tag+.qty-row{margin-top:0;}
.boutique-card .qty-btn{border-radius:12px;width:48px;height:44px;}
.boutique-card .qty-btn.plus{background:var(--boutique-accent);color:white;}
.boutique-card .qty-btn.minus{background:#f7f5f3;border:1px solid var(--boutique-line);}
.boutique-card .qty-value{flex:1;}
.boutique-favorite{position:absolute;top:12px;left:12px;width:40px;height:40px;border:1px solid #eee;border-radius:50%;background:white;color:#4b343f;font:28px/1 sans-serif;z-index:2;cursor:pointer;box-shadow:0 3px 10px #0000000a;}
.boutique-favorite[aria-pressed="true"]{color:var(--boutique-accent);}
.boutique-favorite:disabled{opacity:.6;cursor:default;}
.boutique-options{margin-top:12px;}
.boutique-axis{border:0;padding:0;margin:12px 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.boutique-axis legend{width:100%;font-weight:700;margin-bottom:12px;text-align:start;font-size:16px;}
.boutique-option{border:1px solid #e6e0dd;background:white;border-radius:10px;min-width:46px;min-height:42px;padding:8px 10px;font:inherit;cursor:pointer;position:relative;}
.boutique-option[aria-pressed="true"]{border:2px solid var(--boutique-accent);color:var(--boutique-accent);background:#fcf8fa;}
.boutique-option:disabled{opacity:.35;cursor:not-allowed;}
.boutique-option:disabled:after{content:'';position:absolute;inset:50% 10%;height:1px;background:currentColor;transform:rotate(-35deg);}
.boutique-axis-color .boutique-option{border-radius:50%;padding:4px;width:46px;height:46px;min-width:46px;background:transparent;}
.boutique-color{display:block;width:100%;height:100%;border-radius:50%;box-shadow:inset 0 0 0 1px #0000000c;}
.boutique-option-label{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;padding-top:5px;}
.boutique-axis-color{margin-bottom:35px;}
.is-compact .boutique-axis{justify-content:center;margin:8px 0;gap:7px;}
.is-compact legend,.is-compact .boutique-option-label{display:none;}
.is-compact .boutique-axis-color .boutique-option{width:31px;height:31px;min-width:31px;padding:3px;}
.boutique-more{border:0;border-radius:50%;background:#f4f1ef;width:31px;height:31px;cursor:pointer;font:inherit;font-size:12px;}
.boutique-thumbnails{display:flex;gap:6px;margin:9px 0 0;}
.boutique-thumbnails button{width:25%;padding:0;background:#f5f3f0;border:2px solid transparent;border-radius:9px;overflow:hidden;cursor:pointer;aspect-ratio:1;}
.boutique-thumbnails button[aria-pressed="true"]{border-color:var(--boutique-accent);}
.boutique-thumbnails img{width:100%;height:100%;object-fit:cover;}
.boutique-toolbar{margin:12px 0 0;border:1px solid var(--boutique-line);border-radius:16px;background:white;text-align:start;padding:12px 16px;}
.boutique-toolbar summary{cursor:pointer;font-weight:600;}
.boutique-filter-panel{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding-top:12px;}
.boutique-filter-panel label{display:grid;gap:6px;font-size:13px;}
.boutique-filter-panel input,.boutique-filter-panel select,.boutique-filter-panel button{font:inherit;border:1px solid #e8e0e3;border-radius:10px;background:white;padding:9px 12px;min-height:40px;max-width:170px;}
.boutique-filter-panel button[aria-pressed="true"]{background:var(--boutique-accent);color:white;}
.boutique-filter-status{font-size:13px;color:#827a7c;}
.boutique-filtered-out{display:none!important;}
html[data-catalog-style="boutique"] .rich-product-dialog{width:min(980px,95vw);max-height:94dvh;border-radius:24px;padding:28px;background:#fff;border:0;}
html[data-catalog-style="boutique"] .rich-product-category{color:#8b8184;}
html[data-catalog-style="boutique"] .rich-product-title{font:800 30px/1.2 var(--font-body);margin-bottom:16px;}
html[data-catalog-style="boutique"] .rich-product-purchase{padding:0;border:0;box-shadow:none;overflow:visible;background:transparent;}
html[data-catalog-style="boutique"] .rich-product-purchase>.card-img,html[data-catalog-style="boutique"] .rich-product-purchase>.boutique-thumbnails,html[data-catalog-style="boutique"] .rich-product-purchase>.boutique-subtitle,html[data-catalog-style="boutique"] .rich-product-purchase>.product-details-open{display:none;}
html[data-catalog-style="boutique"] .rich-product-purchase>.price-tag{justify-content:flex-start;font-size:28px;margin-top:0;}
html[data-catalog-style="boutique"] .rich-product-information{display:flex;flex-direction:column;}
html[data-catalog-style="boutique"] .rich-product-information>.rich-product-purchase{order:-1;}
html[data-catalog-style="boutique"] .rich-product-information>section{padding:14px 0;border-top:1px solid var(--boutique-line);}
html[data-catalog-style="boutique"] .rich-product-purchase .rich-add-to-cart{width:auto;flex:1;font-size:15px;min-width:145px;height:48px;}
html[data-catalog-style="boutique"] .rich-product-photo{border-radius:16px;aspect-ratio:4/5;object-fit:contain;background:#f7f3f0;}
.boutique-option:focus-visible,.boutique-favorite:focus-visible,.boutique-thumbnails button:focus-visible{outline:3px solid var(--focus-ring, var(--boutique-accent));outline-offset:3px;}
@media(max-width:640px){
  html[data-catalog-style="boutique"] .hero{min-height:420px;}
  html[data-catalog-style="boutique"] .hero-content{padding:45px 22px;max-width:65%;}
  /* 30px is the phone design. The variable is what #heroTitle and a moved
     layer both read. It loses to #home[data-header], the same way the old
     #heroTitle rule lost to a compact or modern font-size. */
  html[data-catalog-style="boutique"] .hero{--hero-title-size:calc(30px * var(--hero-title-scale, 1));}
  html[data-catalog-style="boutique"] .hero-primary-action{font-size:13px;padding:12px 18px;}
  .boutique-card{padding:8px;border-radius:18px;}
  .boutique-card .card-name{font-size:15px;margin-top:12px;}
  .boutique-card .boutique-subtitle{font-size:11px;}
  .boutique-card>.price-tag{font-size:19px;flex-wrap:wrap-reverse;}
  /* 44×44 is the phone touch target; padding:0 so the fill and the minus
     border are the whole button (theme.css's padded trick does not fit a
     bordered button). */
  .boutique-card .qty-btn{width:44px;height:44px;padding:0;margin:0;}
  .is-compact .boutique-axis{gap:3px;}
  .is-compact .boutique-axis-color .boutique-option{width:24px;height:24px;min-width:24px;padding:2px;}
  .boutique-favorite{width:32px;height:32px;font-size:23px;top:8px;left:8px;}
  html[data-catalog-style="boutique"] .rich-product-dialog{width:100vw;max-width:100vw;max-height:96dvh;margin:auto 0 0;padding:20px 18px;border-radius:24px 24px 0 0;}
  html[data-catalog-style="boutique"] .rich-product-layout{display:grid;grid-template-columns:1fr;}
  html[data-catalog-style="boutique"] .rich-product-title{font-size:23px;}
  html[data-catalog-style="boutique"] .rich-product-photo{max-height:330px;}
}
html[data-catalog-style="boutique"] .boutique-card>.price-tag{position:static!important;transform:none!important;box-shadow:none!important;border:0;background:transparent!important;rotate:none;color:var(--boutique-accent)!important;}
.boutique-card>.price-tag .deal-tag-label{display:none;}
/* An offer's wrapper drops out of the row, so its .price-main and .price-unit
   share the baseline with the regular price beside them. */
.boutique-card>.price-tag .deal-tag-price{font:inherit;display:contents;}
/* The regular price never clips or shrinks: no chip box, no overflow cap; when
   the row is full it wraps whole under the new price. */
html[data-catalog-style="boutique"] .boutique-card>.price-tag .deal-was{position:static;transform:none;box-shadow:none;background:transparent;border:0;padding:0;
  max-width:none;overflow:visible;flex:none;display:inline-block;font-size:14px;color:var(--ink-soft,#675A66);}
.boutique-card>.price-tag .deal-was-label{display:none;}
.boutique-card>.price-tag .deal-was-price::after{left:0;right:0;}
.boutique-sale-badge{position:absolute;right:12px;top:12px;background:var(--boutique-accent);color:white;border-radius:10px;padding:8px 13px;font:600 13px/1.1 var(--font-body);z-index:2;}
html[data-catalog-style="boutique"] .rich-product-gallery{position:relative;}
html[data-catalog-style="boutique"] .rich-product-gallery>.boutique-favorite{left:auto;right:12px;}

html[data-catalog-style="boutique"] .nav-pill{border:0;background:transparent!important;box-shadow:none;}
html[data-catalog-style="boutique"] .cat-card-photo{border-radius:50%;aspect-ratio:1;}
html[data-catalog-style="boutique"] .cat-card-body{background:transparent!important;}
html[data-catalog-style="boutique"] .cat-card-arrow{display:none;}
html[data-catalog-style="boutique"] .boutique-card .variant-picker[hidden]{display:none!important;}
html[data-catalog-style="boutique"] .card.boutique-card{background:var(--ui-card-bg,#fff)!important;border-color:#f0ebe6!important;}
/* The fallbacks match store-design.js's defaults (text 16/14px, price +4px),
   which win wherever a card renders: #catalog and #dealsStrip. */
html[data-catalog-style="boutique"] .boutique-card>.price-tag{font-size:20px!important;line-height:1.3;justify-content:center;}
html[data-catalog-style="boutique"] .boutique-card>.price-tag .deal-tag-price{font-size:inherit!important;}
html[data-catalog-style="boutique"] .boutique-card>.price-tag .deal-was{font-size:15px!important;}
html[data-catalog-style="boutique"] .rich-product-purchase>.price-tag{justify-content:flex-start;font-size:28px!important;order:-1;}
html[data-catalog-style="boutique"] .boutique-card .card-name{font-size:16px!important;}
@media(max-width:640px){
  html[data-catalog-style="boutique"] .boutique-card .card-name{font-size:14px!important;}
  html[data-catalog-style="boutique"] .boutique-card>.price-tag{font-size:18px!important;}
  html[data-catalog-style="boutique"] .rich-product-photo{max-height:260px;}
  html[data-catalog-style="boutique"] .rich-product-purchase>.price-tag{font-size:27px!important;}
}
html[data-catalog-style="boutique"] .boutique-card .qty-row{width:100%;max-width:none;}
html[data-catalog-style="boutique"] .boutique-card>.price-tag .deal-was-price{font:400 15px/1.3 var(--font-body)!important;color:var(--ink-soft,#675A66);}

/* Compact phone cards, in the grid and the deals strip alike (one card, one
   design); full galleries and options stay in product details. */
@media(max-width:640px){
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-card{padding:7px;border-radius:16px;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-card .card-img{aspect-ratio:1;margin-bottom:4px;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-card .card-img>img{padding:0;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-thumbnails{display:none;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-card .card-name{margin:6px 0 3px;font-size:14px!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-subtitle{margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-card>.price-tag{gap:0 4px;margin:auto 0 4px;font-size:18px!important;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-card>.price-tag .deal-was-price{font-size:12px!important;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-options{margin-top:4px;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .is-compact .boutique-axis{margin:4px 0;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .is-compact .boutique-option{min-height:24px;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-card .qty-row{padding-top:6px;}
  html[data-catalog-style="boutique"] :is(#catalog,#dealsStrip) .boutique-sale-badge{padding:5px 8px;font-size:11px;top:8px;right:8px;}
}

/* Compact cards give the number its own row so both tap targets stay usable. */
@media(max-width:640px){
  @container shopcard (max-width:140px){
    .boutique-card .qty-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
    .boutique-card .qty-value{grid-column:1/-1;grid-row:1;width:100%;min-width:0}
    .boutique-card .qty-btn{width:100%;min-width:44px;height:44px;min-height:44px}
  }
  @container shopcard (max-width:90px){
    .boutique-card .qty-row{grid-template-columns:minmax(0,1fr)}
  }
}
