/* ===== The Boutique (shop.html) ===== */
.shoppage { background: var(--cream); }
.bk-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 6vw; border-bottom: 1px solid rgba(17,17,17,0.07); background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; }
.bk-brand { display: flex; align-items: center; gap: 11px; color: var(--ink-2); }
.bk-brand img { width: 36px; height: 36px; object-fit: contain; }
.bk-brand span { font-family: var(--serif); font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.shop-topnav { display: flex; align-items: center; gap: 22px; }
.shop-topnav a { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.shop-topnav a:hover { color: var(--ink-2); }
.shop-topbook { background: var(--ink); color: #fff !important; padding: 10px 20px; border-radius: 999px; transition: all .3s var(--ease); }
.shop-topbook:hover { background: var(--gold); color: var(--ink-2) !important; }

.shop-hero { text-align: center; padding: 80px 6vw 30px; max-width: 760px; margin: 0 auto; }
.shop-hero__title { font-family: var(--serif); font-weight: 800; font-size: clamp(44px, 6vw, 74px); letter-spacing: -0.02em; margin: 18px 0 0; }
.shop-hero__title em { font-style: italic; color: var(--gold-text); }
.shop-hero__sub { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 18px auto 0; max-width: 580px; }

.shop-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 6vw 100px; }
.shop-filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.shop-filters__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-search { flex: 1; min-width: 180px; padding: 11px 16px; border: 1.5px solid #E2DFD4; border-radius: 999px; font-size: 14px; font-family: var(--sans); }
.shop-search:focus, .shop-filters select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,199,0,.2); }
.shop-filters select { padding: 10px 14px; border: 1.5px solid #E2DFD4; border-radius: 999px; font-size: 13.5px; font-family: var(--sans); background: #fff; cursor: pointer; }
.shop-instock { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.shop-count { color: var(--muted-2); font-size: 13px; font-weight: 600; margin: 18px 2px 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.shop-loading { color: var(--muted-2); grid-column: 1/-1; text-align: center; padding: 40px; }
.shop-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer; transition: all .4s var(--ease); display: flex; flex-direction: column; }
.shop-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(11,11,11,.12); border-color: #ddd; }
.shop-card__img { position: relative; height: 260px; background: #eee; overflow: hidden; }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shop-card:hover .shop-card__img img { transform: scale(1.06); }
.shop-card__vid { position: absolute; top: 12px; right: 12px; background: rgba(11,11,11,.7); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.shop-card__b { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.shop-card__cat { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #aaa; }
.shop-card__name { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.shop-card__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.shop-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.shop-card__price { font-weight: 800; font-size: 18px; }
.shop-card__view { font-size: 12.5px; font-weight: 800; color: var(--gold-text); }
.shop-card__link { display: flex; flex-direction: column; color: inherit; flex: 1; }
.shop-card__add { margin: 0 22px 22px; padding: 12px; border: 1.5px solid var(--ink-2); background: #fff; color: var(--ink-2); font-weight: 800; font-size: 13.5px; border-radius: 999px; cursor: pointer; transition: all .2s ease; }
.shop-card__add:hover { background: var(--ink-2); color: #fff; }
.shop-empty { grid-column: 1/-1; text-align: center; color: var(--muted-2); padding: 60px 20px; }

/* detail overlay — only displays when NOT [hidden] (base rule must not set display,
   or it would override the hidden attribute and block the whole page) */
.pd { position: fixed; inset: 0; z-index: 200; padding: 20px; }
.pd:not([hidden]) { display: grid; place-items: center; }
.pd__backdrop { position: absolute; inset: 0; background: rgba(11,11,11,.6); backdrop-filter: blur(4px); }
.pd__card { position: relative; background: #fff; border-radius: 24px; width: min(920px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.pd__inner { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd__media { background: #faf8f1; padding: 24px; }
.pd__stage { border-radius: 16px; overflow: hidden; background: #eee; aspect-ratio: 1; }
.pd__stage img, .pd__stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pd__thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #ddd; position: relative; }
.pd__thumb.on { border-color: var(--ink-2); }
.pd__thumb img, .pd__thumb video { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb .vtag { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font-size: 16px; }
.pd__body { padding: 34px 34px 30px; display: flex; flex-direction: column; }
.pd__cat { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.pd__name { font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 8px 0 10px; }
.pd__price { font-family: var(--serif); font-weight: 800; font-size: 28px; margin-bottom: 16px; }
.pd__desc { font-size: 15px; line-height: 1.7; color: #444; margin: 0 0 20px; }
.pd__stock { font-size: 13px; font-weight: 700; color: var(--ok); margin-bottom: 18px; }
.pd__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.pd__x { position: absolute; top: 14px; right: 16px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); font-size: 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); }

.shop-foot { background: var(--ink); color: rgba(255,255,255,.6); text-align: center; padding: 50px 6vw; }
.shop-foot .footer__brand { justify-content: center; margin-bottom: 14px; }
.shop-foot a { color: var(--gold); }

@media (max-width: 720px) {
  .pd__inner { grid-template-columns: 1fr; }
  .pd__body { padding: 24px; }
}
