/* V28: product cards only. Keep the storefront palette and original buttons. */
.atelier-store .product .photo .beldi-card-heart{display:grid;place-items:center;position:absolute;inset:auto;top:9px;left:9px;z-index:5;width:38px;height:38px;min-width:38px;padding:0;border:1px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(255,253,248,.24);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);color:#49382b;box-shadow:none;cursor:pointer;transition:transform .18s ease,background .18s ease,color .18s ease}
.atelier-store .product .photo .beldi-card-heart.is-liked{background:rgba(255,253,248,.56);color:#8d2638;border-color:rgba(255,255,255,.95)}
.atelier-store .product .photo .beldi-card-heart svg{width:21px;height:21px;stroke-width:1.65;pointer-events:none;filter:drop-shadow(0 0 1px rgba(255,255,255,.7))}
.atelier-store .product .photo .beldi-card-heart:active{transform:scale(.88)}
.atelier-store .product .photo .tag{left:auto;right:9px;top:9px}
.atelier-store .product .photo .beldi-card-discount{top:auto;right:auto;bottom:9px;left:9px;z-index:4;max-width:calc(100% - 18px)}
.atelier-store .product .photo .beldi-card-sold{top:auto;left:auto;right:9px;bottom:9px;z-index:4;max-width:calc(100% - 18px)}
.atelier-store .product .photo .beldi-card-discount:has(+ .beldi-card-sold){bottom:42px}
.atelier-store .product .beldi-card-colors{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin:3px 0 5px;min-height:29px;}
.atelier-store .product .beldi-card-color{display:grid;place-items:center;flex:0 0 27px;width:27px;height:29px;padding:0;margin:0;background:transparent;border:0;cursor:pointer;box-shadow:none;position:relative;}
.atelier-store .product .beldi-card-color>span{display:block;position:relative;width:21px;height:21px;box-sizing:border-box;border:1px solid #211e1b22;border-radius:50%;background:var(--card-swatch,#b69a68);box-shadow:0 0 0 1px #fffdf8,0 0 0 2px #b69a68;}
.atelier-store .product .beldi-card-color[data-unavailable=true]>span{opacity:.42}
.atelier-store .product .beldi-card-color[data-unavailable=true]::after,.atelier-store .product .beldi-card-color[data-unavailable=true]::before{content:"";position:absolute;width:19px;height:1px;background:#963844;transform:rotate(45deg);pointer-events:none;}
.atelier-store .product .beldi-card-color[data-unavailable=true]::after{transform:rotate(-45deg)}
.atelier-store .product .beldi-card-color:focus-visible,.atelier-store .product .beldi-card-heart:focus-visible{outline:2px solid #9a7746;outline-offset:2px}
.atelier-store .product .beldi-card-price-row{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;margin:8px 0;}
.atelier-store .product .beldi-card-price-values{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;min-width:0;}
.atelier-store .product .beldi-card-price-values del{font-size:.6em;font-weight:400;}
.atelier-store .product .beldi-card-rating{font-size:12px;font-weight:400;line-height:1.4;color:#695f52;white-space:nowrap;}
.atelier-store .product .beldi-card-rating b{font-weight:700;color:var(--ink,#211e1b)}
@media(prefers-reduced-motion:reduce){.atelier-store .product .photo .beldi-card-heart{transition:none;}}

/* Single star beside the actual review average. */
.atelier-store .product .beldi-card-rating-value{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;}
.atelier-store .product .beldi-card-rating-star{color:#b18a48;font-size:1.15em;line-height:1;flex:none;}

/* V28 storefront: portrait product frames, with no cropping of the source photo. */
.atelier-store .product .photo,
.atelier-store .product:hover .photo,
.atelier-store .product:focus-within .photo{
  aspect-ratio:3 / 4 !important;
  border-radius:12px 12px 0 0 !important;
  height:auto !important;
  overflow:hidden !important;
}
.atelier-store .product .photo img,
.atelier-store .product:hover .photo img,
.atelier-store .product:focus-within .photo img{
  display:block;
  width:100% !important;
  height:100% !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center top !important;
  transform:none !important;
  scale:1 !important;
}
@media(min-width:768px){
  .atelier-store .product .photo,
  .atelier-store .product:hover .photo,
  .atelier-store .product:focus-within .photo{border-radius:16px 16px 0 0 !important;}
}

/* V28: modern related-product carousel; full portrait, no arch cropping. */
#beldiRelated #relatedTrack{gap:12px;padding:9px 2px 12px;}
#beldiRelated #relatedTrack .related-card{box-sizing:border-box;grid-template-rows:auto minmax(2.8em,auto) auto auto auto;align-content:start;gap:9px;padding:6px 6px 10px;background:#fffdf8;border:1px solid #e9e2d6;border-radius:18px;box-shadow:0 4px 12px #24180f09;cursor:default;}
#beldiRelated .related-photo{position:relative;min-width:0;overflow:hidden;border-radius:13px;background:#f1ece3;aspect-ratio:3/4;}
#beldiRelated .related-image-button{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;}
#beldiRelated #relatedTrack .related-card .related-photo img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;object-position:center;border-radius:0;transform:none;}
#beldiRelated .related-placeholder{display:grid;height:100%;place-items:center;font-size:12px;}
#beldiRelated #relatedTrack .related-card strong{font-size:14px;padding:0 3px;line-height:1.4;}
#beldiRelated .related-price{display:flex;align-items:baseline;justify-content:center;gap:5px;flex-wrap:wrap;min-height:26px;color:#211e1b;font-size:17px;}
#beldiRelated .related-price del{font-size:12px;color:#786f64;}
#beldiRelated .related-action{background:#211e1b;color:#fffdf8;border:1px solid #211e1b;border-radius:999px;min-height:38px;padding:8px 4px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;width:100%;}
#beldiRelated .related-card .beldi-card-heart{display:grid;place-items:center;position:absolute;top:7px;left:7px;z-index:2;width:34px;height:34px;min-width:34px;padding:0;border:1px solid #ffffffe6;border-radius:50%;background:#fffdf85c;backdrop-filter:blur(5px);color:#49382b;cursor:pointer;box-shadow:none;}
#beldiRelated .related-card .beldi-card-heart.is-liked{background:#fffdf8b0;color:#8d2638;}
#beldiRelated .related-card .beldi-card-heart svg{width:19px;height:19px;pointer-events:none;}
#beldiRelated .related-discount{position:absolute;bottom:7px;left:7px;background:#963844;color:white;border-radius:5px;padding:3px 6px;font-size:11px;pointer-events:none;}
#beldiRelated .beldi-card-colors{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:3px;min-height:27px;}
#beldiRelated .beldi-card-color{display:grid;place-items:center;position:relative;width:25px;height:27px;padding:0;border:0;background:transparent;cursor:pointer;box-shadow:none;}
#beldiRelated .beldi-card-color>span{display:block;width:19px;height:19px;border-radius:50%;background:var(--card-swatch,#b69a68);border:1px solid #211e1b22;box-shadow:0 0 0 1px #fffdf8,0 0 0 2px #b69a68;}
#beldiRelated .beldi-card-color[data-unavailable=true]>span{opacity:.42;}
#beldiRelated .beldi-card-color[data-unavailable=true]::before,#beldiRelated .beldi-card-color[data-unavailable=true]::after{content:"";position:absolute;width:19px;height:1px;background:#963844;transform:rotate(45deg);pointer-events:none;}
#beldiRelated .beldi-card-color[data-unavailable=true]::after{transform:rotate(-45deg);}
#beldiRelated button:focus-visible{outline:2px solid #9a7746;outline-offset:2px;}
