[hidden]{display:none!important}
.hero-photo{position:relative;min-height:320px;isolation:isolate}
.hero-photo::before{content:"";position:absolute;inset:12% 13%;border-radius:50%;background:#f4faffaf;filter:blur(45px)}
.hero-photo img{position:absolute;width:35%;height:62%;object-fit:contain;mix-blend-mode:normal;filter:drop-shadow(0 16px 14px #2b5b7f35)}
.hero-photo .hero-front{width:50%;left:25%;top:18%;rotate:-6deg;z-index:2}
.hero-photo .hero-left{left:7%;top:30%;rotate:-16deg}
.hero-photo .hero-right{right:6%;top:25%;rotate:16deg}
.card,.primary,.secondary,.chip,.qty button,.style-option{transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
@media(hover:hover){.product:hover{transform:translateY(-3px)}}
.product{transition:transform .2s,border-color .2s,box-shadow .2s}
.card:active,.primary:active,.chip:active,.style-option:active{transform:scale(.98)}
.card[data-picked="true"] .add{background:#dceeff;color:#074989}
.basket-style{margin-top:11px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 11px;text-align:left}
.style-count{font-size:.77rem;color:var(--blue)}
.preview-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;line-height:1.2}
.preview-caption .secondary{white-space:nowrap;padding:5px 7px;font-size:.73rem}
.basket-preview{animation:scene-in .35s ease both}
@keyframes scene-in{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}
.crate-back,.crate-front,.ornaments{transition:opacity .38s,transform .38s cubic-bezier(.2,.8,.2,1)}
.crate-rear{z-index:0;mix-blend-mode:multiply;clip-path:polygon(5% 13%,62% 9%,96% 28%,40% 50%,7% 33%);opacity:0;transition:opacity .38s}
.crate-scene.is-open .crate-rear{opacity:1}
.crate-scene.is-open .crate-back,.crate-scene.is-open .crate-front,.crate-scene.is-open .ornaments{opacity:0;transform:translateY(24px) rotate(3deg)}
.crate-scene.is-open .preview-items.closed-items{opacity:0;pointer-events:none}
.closed-items{transition:opacity .2s}
.preview-item{transition:left .35s,bottom .35s,width .35s,rotate .35s}
.lining{position:absolute;inset:0;z-index:1;clip-path:polygon(13% 36%,20% 32%,32% 32%,38% 29%,48% 30%,55% 25%,66% 24%,75% 26%,84% 29%,91% 35%,79% 48%,39% 61%,16% 46%);background:repeating-linear-gradient(123deg,#ffffff36 0 2%,transparent 3% 6%,#1221361e 7% 8%,transparent 9% 13%),repeating-linear-gradient(38deg,#ffffff4c 0 4%,transparent 5% 8%,#32466120 9% 11%,transparent 12% 20%),var(--lining,transparent);transition:background-color .24s;opacity:.94}
.lining:not(.has-color){opacity:0}
.crate-scene.is-open .lining.has-color{clip-path:polygon(9% 35%,62% 20%,94% 31%,91% 77%,37% 89%,9% 73%);opacity:.48;transition:clip-path .35s,opacity .35s}
.ornaments{position:absolute;inset:0;z-index:3;pointer-events:none}
.ornaments .ornament{position:absolute;left:var(--ornament-left);top:var(--ornament-top);width:var(--ornament-size,12%);aspect-ratio:1;rotate:-13deg;filter:drop-shadow(1px 3px 1px #684d3e77);animation:scene-in .3s ease both}
.emblem{display:block;width:100%;height:100%}
.emblem.star{clip-path:polygon(50% 0,64% 34%,100% 38%,72% 61%,81% 98%,50% 78%,18% 98%,26% 62%,0 38%,37% 33%);background:linear-gradient(135deg,#fff1ad,#d29c34 55%,#a36b1c)}
.emblem.heart{clip-path:polygon(50% 95%,12% 61%,2% 42%,6% 22%,19% 10%,35% 9%,50% 22%,65% 9%,81% 10%,94% 22%,98% 42%,88% 61%);background:repeating-linear-gradient(12deg,#a7644223 0 2%,transparent 2% 10%),linear-gradient(130deg,#f6dfb4,#bd875a)}
.emblem.bow{clip-path:polygon(4% 11%,45% 36%,53% 36%,96% 11%,100% 67%,60% 56%,75% 97%,52% 81%,48% 59%,37% 95%,19% 86%,37% 56%,0 67%);background:conic-gradient(from 25deg,#0855a0,#a8dcff,#186abd,#59a4ef,#0855a0)}
.open-items{position:absolute;z-index:3;inset:25% 7% 11%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:50px;align-content:start;gap:5px;overflow:auto;overscroll-behavior:contain;padding:7px;scrollbar-width:thin;border-radius:12px;background:#ffffff66;animation:scene-in .28s ease both}
.open-item{position:relative;display:grid;place-items:center;min-width:0;min-height:0;border-radius:8px;background:#fff9}
.open-item img{width:100%;height:48px;object-fit:contain;padding:3px;filter:drop-shadow(0 2px 2px #4c352531)}
.open-item .preview-quantity{font-size:.63rem;right:1px;top:1px}
.basket{max-height:calc(100dvh - 94px);overflow:auto;scrollbar-width:thin}
.chosen{max-height:clamp(56px,calc(100dvh - 550px),260px)}
dialog[open]{animation:scene-in .24s ease both}
.style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:6px 0}
.style-choice{display:grid;gap:3px;min-width:0}
.style-option{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;min-height:46px;gap:7px;text-align:left}
.style-option strong{overflow-wrap:anywhere;line-height:1.15}
.style-option [data-style-price]{white-space:nowrap;font-size:.75rem}
.style-option[aria-pressed=true]{border-color:#5c9ad0;background:var(--pale);box-shadow:inset 0 0 0 1px #5c9ad0}
.swatch{width:24px;height:24px;border-radius:7px;border:1px solid #142b4026;background:repeating-linear-gradient(130deg,#ffffff36 0 3px,transparent 4px 7px),var(--swatch)}
.style-source{font-size:.75rem;padding-left:4px;color:var(--muted)}
@media(max-width:680px){
.hero-photo{min-height:0}
.basket{max-height:84dvh}
.basket:not(.expanded) .basket-style{display:none}
.style-grid{grid-template-columns:1fr}
.open-items{grid-auto-rows:36px}
.open-item img{height:34px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.style-source a:focus-visible{outline-offset:1px}

.basket-style{text-decoration:none}
.builder-options{margin:0 0 16px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;scroll-margin-top:6px}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.section-title h3,.gift-options-title{font-size:1.18rem}
.section-title span{font-size:.84rem;color:var(--muted)}
.gift-options-title{margin:20px 0 8px}
.lining-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,122px),1fr))}
.ornament-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.lining-grid .style-option{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:24px auto;align-content:center}
.lining-grid .swatch{grid-column:1/-1;width:100%;height:24px}
.lining-grid .style-option strong{font-size:.8rem}
.style-choice .style-source{line-height:1.3}
.lining-grid .style-source{font-size:.71rem}
@media(max-width:680px){
.lining-grid,.ornament-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.builder-options{padding:10px}
}
/* The same close-up gives each lining swatch and the crate a consistent texture. */
.lining,.lining-gaps{
  background:var(--lining) url(dekor/papirove-prouzky.webp) center/145px auto repeat;
  background-blend-mode:multiply;
}
.lining{
  clip-path:polygon(13% 38%,16% 35%,22% 35%,25% 32%,30% 34%,34% 30%,39% 31%,45% 28%,48% 30%,54% 26%,60% 26%,64% 23%,69% 25%,74% 25%,78% 27%,83% 27%,88% 31%,92% 35%,80% 47%,39% 61%,17% 49%);
  filter:drop-shadow(0 2px 2px #372b2552);
}
.lining-gaps{
  position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.85;
  clip-path:polygon(42% 59%,90% 39%,90% 41%,42% 62%,42% 73%,90% 52%,90% 54%,42% 75%);
  transition:opacity .32s;
}
.crate-scene.is-open .lining-gaps{opacity:0}
.style-choice .style-option .swatch:empty,.row .swatch:empty{
  background:var(--swatch) url(dekor/papirove-prouzky.webp) center/96px auto repeat;
  background-blend-mode:multiply;
}
.ornaments .ornament{rotate:var(--ornament-angle,-13deg)}
.emblem.heart{
  background:linear-gradient(130deg,#f8eaca55,#ba835e4d),url(drevena-bedynka.png) 67% 71%/480% auto;
}
.emblem.ribbon,.emblem.plaque{
  background-position:center;background-repeat:no-repeat;background-size:contain;
}
.emblem.ribbon{background-image:url(dekor/latkova-masle.webp)}
.emblem.plaque{background-image:url(dekor/srdce.webp)}
.emblem.tag{
  clip-path:polygon(22% 1%,79% 1%,96% 20%,96% 97%,4% 97%,4% 20%);
  background:radial-gradient(circle at 50% 15%,#694f38 0 6%,transparent 7%),linear-gradient(130deg,#e1b992,#a67448);
}
@media(min-width:1050px){
  .lining-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
  .lining-grid .style-option{grid-template-columns:minmax(0,1fr);grid-template-rows:24px auto auto;gap:4px;padding:8px}
}
@media(min-width:681px){.chosen{max-height:clamp(56px,calc(100dvh - 580px),260px)}}
.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hero-actions .secondary{text-decoration:none;padding:11px 15px}
.base-price{display:flex;justify-content:space-between;gap:8px;margin:6px 0 8px;padding:8px 0;border-bottom:1px solid var(--line);font-size:.875rem}
.gallery-link{display:inline-block;margin-top:8px;color:var(--dark);font-size:.85rem;text-underline-offset:2px}
@media(max-width:680px){.basket:not(.expanded) .base-price,.basket:not(.expanded) .gallery-link{display:none}}
