/* ───────── Shop (sample boutique) ───────── */
.shop-page { background: #000; }
.shop-page .site-header { background: rgba(0, 0, 0, .82); }
.shop-nav .nav-item > a { font-size: 14px; }
.bag { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-size: 13px; letter-spacing: .1em; margin-left: clamp(14px, 2vw, 34px); }
.bag svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.bag span { min-width: 1.2em; text-align: left; transition: color .3s; }
.bag.is-bump span { color: var(--gold-soft); }
.bag.is-bump svg { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-4px) scale(1.12); } }

.shop { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); padding: clamp(120px, 15vh, 170px) var(--pad) 120px; max-width: 1760px; margin: 0 auto; }

/* side bar */
.shop-side { position: sticky; top: 120px; align-self: start; }
.shop-side h1 { font-size: clamp(40px, 3.6vw, 60px); margin-bottom: 18px; }
.shop-note { font-size: 15px; color: var(--cream-dim); max-width: 22em; margin-bottom: 40px; }
.shop-cats { border-top: 1px solid rgba(207, 165, 108, .22); margin-bottom: 40px; }
.shop-cats li { border-bottom: 1px solid rgba(207, 165, 108, .22); }
.shop-cats button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; font-family: var(--serif); font-size: 23px; color: var(--cream-dim); text-align: left; transition: color .35s, padding-left .45s var(--ease); }
.shop-cats button span { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: rgba(244, 236, 220, .4); }
.shop-cats button:hover { color: var(--cream); }
.shop-cats button[aria-pressed="true"] { color: var(--gold-soft); font-style: italic; padding-left: 14px; }

/* grid */
.shop-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(244, 236, 220, .1); font-size: 13px; letter-spacing: .08em; color: var(--cream-dim); }
.shop-sample { color: rgba(244, 236, 220, .38); text-align: right; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; }
.shop-card { position: relative; background: #000; padding: 26px 22px 24px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 0 0 1px rgba(244, 236, 220, .08); }
/* the queue: each bake drops into its place, left to right, row after row */
.shop-card { opacity: 0; transform: translateY(-46px); }
.shop-card.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.shop-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 20px; }
.shop-stage::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(160, 100, 44, .26) 0%, transparent 68%); opacity: .55; transition: opacity .6s, transform .8s var(--ease); }
.shop-stage img { position: relative; width: 50%; height: auto; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .75)); transition: transform .9s var(--ease); }
.shop-card:hover .shop-stage img { transform: translateY(-8px) scale(1.05) rotate(-3deg); }
.shop-card:hover .shop-stage::before { opacity: 1; transform: scale(1.15); }
.shop-card h2 { font-size: 23px; line-height: 1.12; margin-bottom: 6px; }
.shop-card p { font-size: 13.5px; line-height: 1.45; color: var(--cream-dim); flex: 1; margin-bottom: 4px; }
.shop-price { font-size: 15px; letter-spacing: .06em; color: var(--cream); }
/* name on the left, price on the right */
.shop-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.shop-row h2 { margin-bottom: 0; }
.shop-row .shop-price { white-space: nowrap; }
/* bag icon, top-right corner of each card */
.shop-add { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; color: var(--cream-dim); transition: background .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.shop-add svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.shop-add .tick { display: none; }
.shop-card:hover .shop-add { border-color: var(--line); color: var(--gold-soft); }
.shop-add:hover { background: var(--cream); color: var(--ink) !important; border-color: var(--cream) !important; transform: scale(1.06); }
.shop-add.is-added { background: var(--gold-soft); color: var(--ink) !important; border-color: var(--gold-soft) !important; }
.shop-add.is-added .bagi { display: none; }
.shop-add.is-added .tick { display: block; }

/* ───────── Bag drawer ───────── */
.cart { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0); transition: background .45s ease; }
.cart.is-open { background: rgba(0, 0, 0, .6); }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #0b0806; border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
.cart.is-open .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 28px 30px 20px; border-bottom: 1px solid rgba(244, 236, 220, .1); }
.cart-head h2 { font-size: 34px; }
.cart-close { font-size: 30px; line-height: 1; color: var(--cream-dim); width: 40px; height: 40px; border-radius: 50%; }
.cart-close:hover { color: var(--cream); background: rgba(244, 236, 220, .08); }
.cart-list { flex: 1; overflow-y: auto; padding: 8px 30px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid rgba(244, 236, 220, .08); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; background: #000; border-radius: 6px; }
.cart-info h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; margin-bottom: 2px; }
.cart-info > span { font-size: 13px; color: var(--cream-dim); letter-spacing: .04em; }
.cart-qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; }
.cart-qty button { width: 32px; height: 30px; color: var(--cream); font-size: 16px; }
.cart-qty button:hover { color: var(--gold-soft); }
.cart-qty output { min-width: 26px; text-align: center; font-size: 14px; }
.cart-remove { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 236, 220, .45); padding-top: 4px; }
.cart-remove:hover { color: var(--gold-soft); }
.cart-empty { padding: 40px 0; color: var(--cream-dim); font-family: var(--serif); font-size: 22px; font-style: italic; }
.cart-foot { padding: 22px 30px 30px; border-top: 1px solid rgba(244, 236, 220, .1); }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 8px; }
.cart-sub strong { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: 0; text-transform: none; color: var(--cream); }
.cart-note { font-size: 12.5px; color: rgba(244, 236, 220, .45); margin-bottom: 18px; }
.cart-go { width: 100%; justify-content: center; }
.cart-go:disabled { opacity: .4; cursor: not-allowed; }
.cart-msg { margin-top: 12px; font-size: 13px; color: #e8a27c; min-height: 1em; }
.bag { cursor: pointer; }

/* ───────── Preloader: the whole bake counter gliding past, in step ───────── */
.loader { position: fixed; inset: 0; z-index: 200; background: #000; overflow: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* one sheet of bakes in staggered columns, bigger than the screen, drifting as a whole */
.loader-sheet { position: absolute; left: 50%; top: 50%; display: flex; transform: translate(-50%, -50%); opacity: 0; animation: loaderIn .7s ease forwards; will-change: transform; }
@keyframes loaderIn { to { opacity: 1; } }
.ls-col { display: flex; flex-direction: column; width: var(--cell); }
.ls-col[data-off] { transform: translateY(calc(var(--cell) * .5)); }
.ls-col img { width: calc(var(--cell) * .52); height: calc(var(--cell)); object-fit: contain; margin: 0 auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .7)); }
.loader::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, .75) 100%); }
.is-loading { overflow: hidden; }

@media (max-width: 1080px) {
  .shop-page .bag { margin-left: auto; margin-right: 6px; }
  .shop-page .menu-toggle { display: none; }
}
@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); padding-top: 104px; gap: 26px; }
  .shop-side { position: static; min-width: 0; }
  .shop-note { margin-bottom: 22px; }
  .shop-cats { display: flex; gap: 8px; overflow-x: auto; border: 0; margin: 0 calc(var(--pad) * -1) 6px; padding: 0 var(--pad) 6px; scrollbar-width: none; }
  .shop-cats::-webkit-scrollbar { display: none; }
  .shop-cats li { border: 0; flex: none; }
  .shop-cats button { font-size: 18px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; gap: 8px; white-space: nowrap; }
  .shop-cats button[aria-pressed="true"] { padding-left: 16px; border-color: var(--gold); }
  .shop-side .text-link { display: none; }
  .shop-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shop-main { min-width: 0; }
  .shop-add { top: 8px; right: 8px; }
  .shop-stage img { width: 62%; }
  .shop-card { padding: 16px 12px 18px; }
  .shop-card h2 { font-size: 19px; }
  .shop-buy { flex-direction: column; align-items: flex-start; }
  .shop-sample { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shop-card { opacity: 1; transform: none; } .loader { display: none; } }

/* round bakes turn as the page scrolls (bag.js sets --spin); `rotate` is separate from the hover transform */
.is-spin { rotate: calc(var(--spin, 0) * 1deg); will-change: rotate; }
@media (prefers-reduced-motion: reduce) { .is-spin { rotate: none; } }
