/* ===== Shared store styles: header, cart drawer, product page, checkout ===== */
.btn--block { display: block; width: 100%; }
.store-body { background: var(--cream); min-height: 100vh; }

/* header */
.store-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 6vw; border-bottom: 1px solid rgba(17,17,17,.08); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 60; }
.store-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.store-brand img { width: 34px; height: 34px; object-fit: contain; }
.store-brand span { font-family: var(--serif); font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.store-nav { display: flex; align-items: center; gap: 22px; }
.store-nav a { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.store-nav a:hover { color: var(--ink-2); }
.store-nav .store-book { background: var(--ink); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.store-nav .store-book:hover { background: var(--gold); color: var(--ink-2) !important; }
.cartbtn { position: relative; background: none; border: none; cursor: pointer; padding: 6px; display: grid; place-items: center; color: var(--ink-2); }
.cartbtn svg { width: 24px; height: 24px; }
.cartbtn__count { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--ink-2); font-size: 11px; font-weight: 800; display: none; place-items: center; }
.accbtn { display: grid; place-items: center; padding: 6px; color: var(--ink-2); transition: color .2s; }
.accbtn svg { width: 23px; height: 23px; }
.accbtn:hover, .accbtn--on { color: var(--gold); }

/* cart drawer */
.cartdrawer { position: fixed; inset: 0; z-index: 120; }
.cartdrawer__back { position: absolute; inset: 0; background: rgba(11,11,11,.5); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.cartdrawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.25); animation: slidein .35s var(--ease); }
@keyframes slidein { from { transform: translateX(100%); } }
.cartdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cartdrawer__head h3 { font-family: var(--serif); font-size: 22px; margin: 0; }
.cartdrawer__head button { border: none; background: none; font-size: 26px; cursor: pointer; color: #999; line-height: 1; }
.cartdrawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cartdrawer__empty { color: var(--muted-2); text-align: center; padding: 50px 0; }
.cartitem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cartitem__img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #eee; }
.cartitem__img img { width: 100%; height: 100%; object-fit: cover; }
.cartitem__name { font-weight: 700; font-size: 14.5px; }
.cartitem__price { font-size: 13px; color: var(--muted-2); margin: 2px 0 8px; }
.cartqty { display: flex; align-items: center; gap: 8px; }
.cartqty button { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.cartqty b { min-width: 16px; text-align: center; font-weight: 800; }
.cartitem__rm { border: none !important; background: none !important; width: auto !important; font-size: 12px; font-weight: 700; color: #c62828; text-decoration: underline; margin-left: 4px; }
.cartitem__line { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.cartdrawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cartdrawer__sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cartdrawer__sub span { font-weight: 700; }
.cartdrawer__sub b { font-family: var(--serif); font-size: 24px; }
.cartdrawer__note { font-size: 12.5px; color: var(--muted-2); margin: 0 0 14px; }

/* price + discount + stock badges */
.price-now { font-weight: 800; }
.price-was { text-decoration: line-through; color: #aaa; font-weight: 600; margin-left: 8px; font-size: .86em; }
.price-off { display: inline-block; margin-left: 8px; background: #e8f6ec; color: var(--ok); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.badge-off { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink-2); font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.badge-soldout { position: absolute; top: 12px; left: 12px; background: rgba(11,11,11,.82); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.shop-card.is-out .shop-card__img, .shop.is-out .shop__img { opacity: .55; }

/* card cover (image or video) + hover-to-play video — shared by shop & homepage cards */
.card-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-hovervid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.shop-card:hover .card-hovervid, .shop:hover .card-hovervid { opacity: 1; }

/* product page */
.pp-wrap { max-width: 1120px; margin: 0 auto; padding: 30px 6vw 90px; }
.pp-crumb { font-size: 13px; color: var(--muted-2); margin-bottom: 24px; }
.pp-crumb a:hover { color: var(--ink-2); }
.pp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; }
.pp-gallery { position: sticky; top: 90px; }
.pp-stage { border-radius: 20px; overflow: hidden; background: #eee; aspect-ratio: 1; }
.pp-stage img, .pp-stage video { width: 100%; height: 100%; object-fit: cover; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pp-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #ddd; position: relative; }
.pp-thumb.on { border-color: var(--ink-2); }
.pp-thumb img, .pp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.pp-thumb .vtag { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; }
.pp-cat { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.pp-title { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 10px 0 6px; }
.pp-price { font-family: var(--serif); font-weight: 800; font-size: 30px; margin-bottom: 6px; }
.pp-tax { font-size: 12.5px; color: var(--muted-2); margin-bottom: 22px; }
.pp-desc { font-size: 15.5px; line-height: 1.7; color: #444; margin: 0 0 24px; }
.pp-qtyrow { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pp-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink-2); border-radius: 999px; overflow: hidden; }
.pp-qty button { width: 44px; height: 46px; border: none; background: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.pp-qty b { min-width: 34px; text-align: center; font-weight: 800; }
.pp-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.pp-actions .btn { padding: 16px; font-size: 15px; }
.pp-ship { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.pp-ship div { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #444; }
.pp-ship .ic { font-size: 17px; }
.pp-details { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.pp-details h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; }
.pp-details p { font-size: 14.5px; line-height: 1.7; color: #444; white-space: pre-wrap; }
.pp-rich { font-size: 14.5px; line-height: 1.7; color: #444; }
.pp-rich p { margin: 0 0 12px; }
.pp-rich h2, .pp-rich h3, .pp-rich h4 { font-family: var(--serif); color: var(--ink-2); margin: 18px 0 8px; }
.pp-rich ul, .pp-rich ol { margin: 0 0 12px; padding-left: 22px; }
.pp-rich li { margin: 4px 0; }
.pp-rich a { color: var(--gold-text); font-weight: 700; text-decoration: underline; }
.pp-rich strong, .pp-rich b { color: var(--ink-2); }
.pp-rich img { max-width: 100%; border-radius: 12px; margin: 8px 0; }
.pp-related { max-width: 1120px; margin: 0 auto; padding: 0 6vw 90px; }
.pp-related h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 24px; }

/* checkout */
.co-wrap { max-width: 1080px; margin: 0 auto; padding: 36px 6vw 90px; }
.co-h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4vw, 42px); margin: 0 0 28px; }
.co-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 50px; align-items: start; }
.co-sec { margin-bottom: 26px; }
.co-sec h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 14px; }
.co-form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 800; margin-bottom: 14px; }
.co-form input, .co-form select, .co-form textarea { font-family: var(--sans); font-size: 15px; padding: 13px 15px; border: 1.5px solid #E2DFD4; border-radius: 12px; background: #fff; width: 100%; }
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,199,0,.22); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-row label { margin-bottom: 0; }
.co-pay { display: flex; flex-direction: column; gap: 10px; }
.co-pay label { display: flex; align-items: center; gap: 12px; border: 1.5px solid #E2DFD4; border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14px; margin: 0; }
.co-pay label.on { border-color: var(--ink-2); box-shadow: 0 0 0 1.5px var(--ink-2) inset; }
.co-pay input { width: auto; }
.co-summary { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: sticky; top: 90px; }
.co-summary h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 18px; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-line__img { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #eee; position: relative; }
.co-line__img img { width: 100%; height: 100%; object-fit: cover; }
.co-line__qty { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.co-line__name { font-size: 13.5px; font-weight: 700; }
.co-line__price { font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.co-tot { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.co-tot--grand { border-top: 2px solid var(--ink-2); margin-top: 8px; padding-top: 14px; font-family: var(--serif); font-weight: 800; font-size: 22px; }
.co-status { min-height: 22px; text-align: center; font-weight: 700; font-size: 14px; margin: 12px 0 0; }
.co-status.err { color: #c62828; }
.co-empty { text-align: center; padding: 70px 20px; color: var(--muted-2); }
.co-done { max-width: 560px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px; text-align: center; }
.co-done__mark { width: 70px; height: 70px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 32px; margin: 0 auto 18px; }
.co-done h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; }
.co-done p { color: var(--muted); line-height: 1.6; }
.co-done__no { font-weight: 800; color: var(--ink-2); }

/* blog */
.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 6vw 90px; }
.blog-head { text-align: center; max-width: 700px; margin: 30px auto 50px; }
.blog-title { font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 6vw, 68px); letter-spacing: -.02em; margin: 16px 0 0; }
.blog-title em { font-style: italic; color: var(--gold-text); }
.blog-sub { font-size: 16.5px; color: var(--muted); margin: 16px 0 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blogcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: all .4s var(--ease); color: inherit; }
.blogcard:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(11,11,11,.1); }
.blogcard__img { height: 200px; background: #eee; }
.blogcard__img img { width: 100%; height: 100%; object-fit: cover; }
.blogcard__b { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blogcard__date { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.blogcard__title { font-family: var(--serif); font-weight: 800; font-size: 23px; line-height: 1.18; margin: 0; }
.blogcard__excerpt { font-size: 14.5px; line-height: 1.6; color: var(--muted); flex: 1; margin: 0; }
.blogcard__more { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-top: 4px; }
.blog-article { max-width: 760px; margin: 0 auto; }
.blog-back { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.blog-back:hover { color: var(--ink-2); }
.blog-article__date { font-size: 13px; font-weight: 700; color: var(--gold-text); margin: 24px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.blog-article__title { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 24px; }
.blog-article__cover { border-radius: 20px; overflow: hidden; margin-bottom: 30px; }
.blog-article__cover img { width: 100%; display: block; }
.blog-article__body { font-size: 17px; line-height: 1.8; color: #333; }
.blog-article__body h2, .blog-article__body h3 { font-size: 26px; }
.blog-article__foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }

/* account */
.acc-wrap { max-width: 920px; margin: 0 auto; padding: 40px 6vw 90px; }
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.acc-h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -.02em; margin: 14px 0 0; }
.acc-h1 em { font-style: italic; color: var(--gold-text); }
.acc-sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 12px 0 0; }
.acc-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; margin-bottom: 18px; }
.acc-card__h { font-family: var(--serif); font-size: 21px; margin: 0 0 14px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acc-grid .acc-card { margin-bottom: 0; }
.acc-tip { font-size: 12.5px; color: var(--muted-2); margin: -6px 0 14px; }
.acc-form { display: grid; gap: 14px; }
.acc-form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; }
.acc-form input { padding: 12px 14px; border: 1.5px solid #E2DFD4; border-radius: 12px; font-size: 14.5px; font-family: var(--sans); }
.acc-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,199,0,.2); }
.acc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-saved { color: var(--ok); font-weight: 700; font-size: 13px; }
.acc-pets { display: flex; flex-direction: column; gap: 10px; }
.acc-pet { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #FBFAF5; border-radius: 12px; }
.acc-pet__name { font-weight: 700; }
.acc-pet__meta { font-size: 12.5px; color: var(--muted); }
.acc-list { display: flex; flex-direction: column; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acc-row:last-child { border-bottom: none; }
.acc-row b { font-weight: 700; }
.acc-row__sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.acc-row__right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.acc-empty { color: var(--muted-2); font-size: 14px; }
.acc-empty a { color: var(--gold-text); font-weight: 700; }
.acc-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #eee; color: #777; text-transform: capitalize; }
.acc-pill--completed, .acc-pill--delivered { background: #e7f6ec; color: #1c7d3a; }
.acc-pill--confirmed, .acc-pill--assigned, .acc-pill--packed, .acc-pill--shipped { background: #fff6da; color: #b8860b; }
.acc-pill--cancelled { background: #fdeaea; color: #c62828; }
.acc-login { max-width: 480px; margin: 30px auto; text-align: center; }
.acc-loginform { display: grid; gap: 12px; margin-top: 24px; }
.acc-loginform input { padding: 14px 16px; border: 1.5px solid #E2DFD4; border-radius: 999px; font-size: 15px; text-align: center; font-family: var(--sans); }
.acc-loginform input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,199,0,.2); }
.acc-note { font-size: 13px; color: var(--muted-2); margin-top: 16px; }
.acc-note a { color: var(--gold-text); font-weight: 700; }
.acc-sent { background: #FFFBEA; border: 1px solid #F2E3A8; border-radius: 14px; padding: 20px; font-size: 15px; line-height: 1.6; margin-top: 24px; }
@media (max-width: 640px) { .acc-grid { grid-template-columns: 1fr; } .acc-form__row { grid-template-columns: 1fr; } }

.store-foot { background: var(--ink); color: rgba(255,255,255,.6); text-align: center; padding: 46px 6vw; }
.store-foot a { color: var(--gold); }

@media (max-width: 860px) {
  .pp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pp-gallery { position: static; }
  .co-grid { grid-template-columns: 1fr; gap: 30px; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .store-nav { gap: 14px; }
  .store-nav .nav-hide { display: none; }
  .co-row { grid-template-columns: 1fr; }
  .cartdrawer__panel { width: 100%; }
}
