/* gallery grid + order sheet */
.shop,#cakes.shop{padding:6rem clamp(1.25rem,6vw,7rem) 3rem;overflow:visible}
#cakes.shop::before{position:absolute;left:0;right:0;top:0;z-index:0}
#cakes.shop .shop-in{position:relative;z-index:1}
@media (max-width:899px){#cakes.shop{padding-top:3.5rem}}
.shop-page{padding-top:1.5rem;min-height:100dvh;background:linear-gradient(180deg,#F8CDCB,#F6C3C3 40%,#F2A9B0)}
.shop-in{max-width:72rem;margin:0 auto;display:flex;flex-direction:column;gap:1.6rem}
.shop-head{display:flex;flex-direction:column;gap:.7rem}
.shop-sub{margin:0;color:#5A3A40;max-width:32rem}
.filters{display:flex;gap:.5rem;overflow-x:auto;padding:.2rem 0 .4rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.filters::-webkit-scrollbar{display:none}
.filters button{flex:none;border:1.5px solid rgba(110,36,52,.35);background:rgba(255,255,255,.45);color:var(--rose);border-radius:999px;padding:.6rem 1.2rem;min-height:44px;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase}
.filters button[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem}
@media (min-width:700px){.grid{grid-template-columns:repeat(3,1fr);gap:1.2rem}}
@media (min-width:900px){.grid{grid-template-columns:repeat(4,1fr)}}
@media (min-width:1250px){.grid{grid-template-columns:repeat(5,1fr)}}
.cc{display:flex;flex-direction:column;gap:.55rem;padding:0;border:0;background:none;text-align:left;-webkit-tap-highlight-color:transparent}
.cph{position:relative;display:block;aspect-ratio:4/5;border-radius:20px;overflow:hidden;background:#F6E4E6;box-shadow:0 14px 30px -18px rgba(110,36,52,.55);transition:transform .25s}
.cph img{width:100%;height:100%;object-fit:cover;display:block}
.cc:hover .cph{transform:translateY(-4px)}
.tag{position:absolute;left:.6rem;top:.6rem;background:rgba(255,246,241,.94);color:var(--rose);border-radius:999px;padding:.25rem .7rem;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase}
.cnm{font-family:var(--serif);font-size:1.15rem;line-height:1.2;color:var(--ink)}
.cgo{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--rose);border-bottom:1px solid var(--rose);align-self:flex-start;padding-bottom:1px}
.shop-more{margin:.6rem 0 0;color:#5A3A40}
.shop-more a{border-bottom:1px solid var(--ink)}

.sheet{position:fixed;inset:0;z-index:99999;display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet-bg{position:absolute;inset:0;background:rgba(59,28,36,.7)}
.sheet-card{position:relative;background:var(--paper);width:100%;max-width:60rem;max-height:94dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;border-radius:26px 26px 0 0;-webkit-overflow-scrolling:touch}
.sheet-x{position:absolute;right:.8rem;top:.8rem;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.9);font-size:1.6rem;line-height:1;color:var(--ink);box-shadow:0 4px 14px rgba(0,0,0,.18)}
.sheet-body{display:flex;flex-direction:column;min-width:0;max-width:100%}
.sheet-body>*,.sheet-fm>*{min-width:0;max-width:100%}
.sheet-fm input,.sheet-fm select,.sheet-fm textarea{max-width:100%;min-width:0;box-sizing:border-box}
.sheet-ph{background:#F6E4E6;display:flex;justify-content:center}
.sheet-ph{width:100%;overflow:hidden}
.sheet-ph img{display:block;width:100%;max-width:100%;max-height:44dvh;object-fit:cover;object-position:center 35%}
.sheet-fm{padding:1.3rem 1.25rem 1.6rem;display:flex;flex-direction:column;gap:.8rem}
.sheet-fm .shdesc{margin:-.2rem 0 0;font-size:1rem;line-height:1.5;color:#6a5558}
.sheet-fm h3{margin:0;font-family:var(--serif);font-weight:400;font-size:1.9rem;line-height:1.1}
.sheet-fm form{display:flex;flex-direction:column;gap:.85rem;margin-top:.3rem}
.fld[hidden]{display:none}
.fld{display:flex;flex-direction:column;gap:.3rem}
.fl{font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--rose)}
.fl i{text-transform:none;letter-spacing:0;color:var(--faint)}
.fld input,.fld textarea{border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:.8rem .95rem;min-height:48px;font-size:1rem;width:100%}
.fld textarea{resize:vertical}
.opts{display:flex;flex-wrap:wrap;gap:.5rem}
.opts button{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:.55rem 1.1rem;min-height:44px}
.opts button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.qty{display:inline-flex;align-items:center;gap:.4rem;border:1.5px solid var(--line);border-radius:999px;background:#fff;align-self:flex-start}
.qty button{width:44px;height:44px;border:0;background:none;font-size:1.3rem;color:var(--rose)}
.qty output{min-width:2rem;text-align:center;font-size:1.05rem}
.ferr{margin:0;color:#A12B3C;font-size:.92rem}
.fnote{margin:0;text-align:center;color:var(--muted);font-size:.85rem}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.sheet-done{padding:3.5rem 1.5rem 3rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.9rem}
.sheet-done[hidden],.sheet-body[hidden]{display:none}
.sheet-done h3{margin:0;font-family:var(--serif);font-weight:400;font-size:2rem}
.sheet-done p{margin:0;color:#5A3A40;max-width:24rem}
.done-ic{font-size:2rem;color:var(--accent)}
@media (min-width:820px){
 .sheet{align-items:center;padding:2rem}
 .sheet-card{border-radius:26px;max-height:90dvh}
 .sheet-body{flex-direction:row}
 .sheet-ph{flex:0 0 46%;align-items:stretch}
 .sheet-ph img{max-height:none;height:100%;min-height:38rem}
 .sheet-fm{flex:1;padding:2.2rem 2rem 2rem}
}

/* home: sections inside the shop */
.shop-h{margin:1.2rem 0 -.4rem;font-family:var(--serif);font-weight:400;font-size:1.5rem;color:var(--rose)}
.stiles{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem}
@media (min-width:700px){.stiles{grid-template-columns:repeat(4,1fr);gap:1rem}}
.stile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:1/1;border-radius:20px;overflow:hidden;background:#E9A3AC;color:#fff;padding:.9rem;box-shadow:0 14px 30px -18px rgba(110,36,52,.55);transition:transform .25s}
.stile:hover{transform:translateY(-4px)}
.stile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.stile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(80,20,36,0) 45%,rgba(80,20,36,.72))}
.stile .sn,.stile .sc{position:relative;z-index:1}
.stile .sn{font-family:var(--serif);font-size:1.3rem;line-height:1.1;color:#fff}
.stile .sc{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;opacity:.9;margin-top:.2rem}
.stile.all{background:var(--accent);align-items:flex-start;justify-content:center}
.stile.all::after{display:none}
.shop-cta{display:flex;justify-content:center;margin-top:.6rem}
/* cakes page */
.cbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1rem;padding-bottom:.6rem}
.cbar .logo{height:44px;width:auto;display:block}
.cback{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;min-height:44px;display:inline-flex;align-items:center}
.cbar .pill{font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;border:1.5px solid var(--rose);color:var(--rose);border-radius:999px;padding:.6rem 1rem;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
.count{margin:-.6rem 0 0;color:var(--muted);font-size:.9rem}
.filters{position:sticky;top:0;z-index:5;background:linear-gradient(180deg,rgba(248,205,203,.96),rgba(248,205,203,.85));margin:0 calc(-1*clamp(1.25rem,6vw,7rem));padding:.5rem clamp(1.25rem,6vw,7rem) .5rem}


.stile.all{grid-column:span 2;aspect-ratio:auto;min-height:5.5rem;justify-content:center}

.shop-hrow{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:1.2rem 0 -.4rem}
.shop-hrow .shop-h{margin:0}
.shop-link{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--rose);border-bottom:1px solid var(--rose);padding-bottom:1px;min-height:0}

/* round 2: same side margins as every other section, bigger cards, tidy sticky filters */
.shop-in.pad{padding-left:0;padding-right:0}
.shop-page{padding-top:1.5rem}
.filters{margin:0;padding:.5rem 0;box-shadow:0 0 0 100vmax rgba(248,205,203,.94);clip-path:inset(0 -100vmax);background:rgba(248,205,203,.94)}
.about{max-width:72rem}

/* round 3: card size in the middle. New row shows only full rows: 6 (phone, tablet), 8 (4 across), 10 (5 across) */
@media (max-width:899px){#newGrid .cc:nth-child(n+7){display:none}}
@media (min-width:900px) and (max-width:1249px){#newGrid .cc:nth-child(n+9){display:none}}

/* filter chips: never hard-cut the last chip (Tiramisu). Wrap on wide screens, fade hint on narrow */
@media (min-width:821px){.filters{flex-wrap:wrap;overflow:visible}}
@media (max-width:820px){.filters{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 2.5rem),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 2.5rem),transparent);padding-right:2.5rem}}

.sheet-fm label,.sheet-fm label:focus-within{outline:none}
.sheet-fm input:focus,.sheet-fm textarea:focus{outline:none;border-color:#6E2434;box-shadow:0 0 0 3px rgba(110,36,52,.14)}
