/* ============ Store UI shared by every page: drawer, search, toast, buttons ============ */
.bb-locked, .bb-locked body { overflow: hidden; }

.bb-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 17px 24px; font: 400 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  transition: background .4s, color .4s, border-color .4s, filter .3s;
}
.bb-btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--bg); font-weight: 500; }
.bb-btn--gold:hover { filter: brightness(1.1); }
.bb-btn--line { border: 1px solid rgba(42,28,18,.3); color: var(--ink); }
.bb-btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--gold-light); }
.bb-btn--dark { background: var(--ink); color: var(--gold-light); }
.bb-btn--dark:hover { background: var(--gold); color: var(--bg); }

.bb-scrim { position: fixed; inset: 0; z-index: 180; background: rgba(12,7,4,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.bb-scrim.is-on { opacity: 1; visibility: visible; }

/* cart drawer: slides in from the right */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 190; width: min(440px, 100vw);
  background: var(--ivory); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .8s var(--ease), box-shadow .8s;
}
.drawer.is-open { transform: none; box-shadow: -30px 0 80px rgba(0,0,0,.35); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px 18px; border-bottom: 1px solid rgba(156,122,46,.22); }
.drawer__head h2 { margin: 0; font: italic 400 30px/1 var(--serif); }
.drawer__count { font-size: 20px; color: var(--gold-deep); }
.drawer__close, .search__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(42,28,18,.18); transition: transform .5s var(--ease), background .3s; }
.drawer__close:hover, .search__close:hover { transform: rotate(90deg); background: var(--ink); color: var(--gold-light); }
.drawer__close svg, .search__close svg { width: 16px; height: 16px; }
.drawer__ship { padding: 16px 28px; background: var(--cream); }
.drawer__ship p { margin: 0 0 9px; font-size: 13px; color: var(--ink-soft); }
.drawer__ship b { color: var(--ink); font-weight: 500; }
.drawer__bar { display: block; height: 3px; background: rgba(156,122,46,.2); overflow: hidden; border-radius: 3px; }
.drawer__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; overscroll-behavior: contain; }
.drawer__foot { padding: 20px 28px 26px; border-top: 1px solid rgba(156,122,46,.22); display: grid; gap: 10px; }
.drawer.is-empty .drawer__foot { display: none; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__row span { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.drawer__row strong { font: 500 26px var(--serif); }
.drawer__note { margin: 0 0 6px; font-size: 12px; color: var(--ink-soft); }
.drawer__empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 60px 10px; }
.drawer__empty img { width: 70px; opacity: .8; }
.drawer__empty p { margin: 0; font: italic 400 24px var(--serif); }
.drawer__empty .bb-btn { width: auto; }

.cline { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(156,122,46,.16); animation: lineIn .6s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(20px); } }
.cline__img { width: 84px; height: 105px; overflow: hidden; border-radius: 8px; background: var(--cream); }
.cline__img img { width: 100%; height: 100%; object-fit: cover; }
.cline__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cline__name { font: italic 500 20px/1.15 var(--serif); }
.cline__name:hover { color: var(--gold-deep); }
.cline__meta { font-size: 12px; color: var(--ink-soft); }
.cline__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cline__end strong { font: 500 18px var(--serif); }
.line__remove { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid transparent; }
.line__remove:hover { color: var(--ink); border-color: currentColor; }

.qty { display: inline-flex; align-items: center; border: 1px solid rgba(42,28,18,.25); width: max-content; }
.qty button, .qty input { width: 44px; height: 46px; display: grid; place-items: center; font-size: 18px; color: var(--ink); background: none; border: 0; text-align: center; font-family: var(--sans); }
.qty input { width: 48px; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty span { min-width: 30px; text-align: center; font-size: 14px; }
.qty button:hover { background: var(--ink); color: var(--gold-light); }
.qty--sm { margin-top: auto; }
.qty--sm button { width: 30px; height: 30px; font-size: 15px; }

/* search overlay: drops from the top */
.search { position: fixed; inset: 0; z-index: 185; visibility: hidden; pointer-events: none; }
.search.is-open { visibility: visible; pointer-events: auto; }
.search::before { content: ""; position: absolute; inset: 0; background: rgba(12,7,4,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .6s var(--ease); }
.search.is-open::before { opacity: 1; }
.search__panel {
  position: relative; background: var(--ivory); color: var(--ink); max-height: 86vh; overflow-y: auto;
  padding: 26px var(--gutter) 30px; transform: translateY(-104%); transition: transform .8s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.search.is-open .search__panel { transform: none; }
.search__form { display: flex; align-items: center; gap: 18px; max-width: 1100px; margin: 0 auto; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.search__form > svg { width: 26px; height: 26px; flex: none; color: var(--gold-deep); }
.search__form input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: italic 400 clamp(26px, 3.6vw, 42px) var(--serif); color: var(--ink); }
.search__form input::placeholder { color: rgba(42,28,18,.35); }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__chips { max-width: 1100px; margin: 18px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.search__chips button { padding: 8px 16px; border: 1px solid rgba(156,122,46,.4); border-radius: 30px; font-size: 12px; color: var(--ink); transition: background .3s, color .3s; }
.search__chips button:hover { background: var(--ink); color: var(--gold-light); }
.search__results { max-width: 1100px; margin: 22px auto 0; }
.search__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.search__label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin: 0; }
.search__none { font: italic 22px var(--serif); color: var(--ink-soft); }
.search__grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 18px; }
.hit { display: grid; gap: 4px; animation: lineIn .6s var(--ease) both; }
.hit__img { aspect-ratio: 1 / 1; max-height: 190px; overflow: hidden; border-radius: 10px; background: var(--cream); margin-bottom: 8px; }
.hit__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hit:hover .hit__img img { transform: scale(1.07); }
.hit__name { font: italic 500 19px/1.2 var(--serif); }
.hit__meta { font-size: 12px; color: var(--ink-soft); }
.hit__price { font-size: 13px; color: var(--gold-deep); }
.hit mark { background: rgba(232,201,127,.5); color: inherit; padding: 0 1px; }
.search__all { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--ink); color: var(--gold-light); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; transition: background .3s, color .3s; }
.search__all svg { width: 18px; height: 9px; transition: transform .4s var(--ease); }
.search__all:hover { background: var(--gold); color: var(--bg); }
.search__all:hover svg { transform: translateX(4px); }

/* added-to-cart toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 195; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px; background: var(--ink); color: var(--ivory); border: 1px solid rgba(232,201,127,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.4); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .7s var(--ease), visibility .7s; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast img { width: 42px; height: 52px; object-fit: cover; border-radius: 4px; }
.toast span { font-size: 13px; }
.toast b { font-weight: 500; color: var(--gold-light); }
.toast button { margin-left: 6px; padding: 10px 14px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); border: 1px solid rgba(232,201,127,.5); white-space: nowrap; }
.toast button:hover { background: var(--gold); color: var(--bg); }

.cart__count { transition: transform .3s var(--ease); }
.cart__count.is-bump { transform: scale(1.35); }
[data-add].is-added { pointer-events: none; }
@media (max-width: 640px) {
  .drawer__head, .drawer__ship, .drawer__body, .drawer__foot { padding-left: 20px; padding-right: 20px; }
  .toast span { font-size: 12px; }
}

/* film lightbox */
.filmbox { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 5vw; background: rgba(8,5,3,.94); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.filmbox.is-open { opacity: 1; visibility: visible; }
.filmbox__video { width: min(1200px, 100%); max-height: 86vh; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.6); transform: scale(.94); transition: transform .8s var(--ease); }
.filmbox.is-open .filmbox__video { transform: none; }
.filmbox__close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(232,201,127,.5); transition: transform .5s var(--ease), background .3s; }
.filmbox__close:hover { transform: rotate(90deg); background: var(--gold); color: var(--bg); }
.filmbox__close svg { width: 18px; height: 18px; }

/* play button used on film banners */
.play { display: inline-flex; align-items: center; gap: 18px; color: var(--ivory); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.play__ring { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(232,201,127,.7); display: grid; place-items: center; transition: transform .6s var(--ease), background .4s; }
.play__ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold-light); animation: playPulse 2.4s var(--ease) infinite; }
@keyframes playPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.play__ring svg { width: 22px; height: 22px; margin-left: 4px; fill: var(--gold-light); stroke: none; transition: fill .4s; }
.play:hover .play__ring { transform: scale(1.08); background: var(--gold); }
.play:hover .play__ring svg { fill: var(--bg); }
