/* Dr. Thaj shop: prices, add to cart and the cart drawer (assets/shop.js) */
.prod-price[hidden], .pp-price[hidden], .shop-overlay[hidden], .shop-drawer[hidden], .shop-pill[hidden], .shop-toast[hidden] { display: none; }

.prod-price, .pp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-weight: 800; color: var(--brand-deep); }
.prod-price { margin: -4px 0 14px; font-size: 1.25rem; }
.pp-price { margin: -8px 0 22px; font-size: 1.7rem; }
.prod-price s, .pp-price s { font-size: 0.72em; font-weight: 600; color: var(--muted); }
.prod-price em, .pp-price em { font-style: normal; font-size: 0.62em; font-weight: 700; color: #a3412a; }

.shop-add { font: inherit; font-weight: 700; border: 0; }
.prod-cta .shop-add { border: 1px solid transparent; cursor: pointer; }
.shop-add[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.shop-add.is-loading, .shop-now.is-loading { opacity: 0.75; cursor: progress; }
.pp-cta-row .shop-now { min-height: 56px; padding: 0 28px; font: inherit; font-weight: 700; color: var(--brand-deep); cursor: pointer; }

/* header cart button */
.shop-cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); color: var(--brand-deep); cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.shop-cart-btn:hover { background: #fff; transform: translateY(-1px); }
.shop-cart-btn b, .shop-pill b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; line-height: 1; }
.shop-cart-btn b { position: absolute; top: -4px; right: -4px; background: var(--brand); color: #fff; }
.shop-cart-btn b:empty { display: none; }
.shop-on .topbar-cta { white-space: nowrap; }
@media (min-width: 1121px) and (max-width: 1240px) {
  .shop-on .main-nav { gap: 11px; }
  .shop-on .topbar-right { gap: 8px; }
}

/* floating cart button once the header has scrolled away */
.shop-pill { position: fixed; right: 18px; bottom: 18px; z-index: 950; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px 12px 18px; border: 0; border-radius: 999px; background: var(--brand-deep); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 16px 36px rgba(67, 18, 38, 0.3); cursor: pointer; transition: bottom 0.35s ease; }
.shop-pill b { background: #fff; color: var(--brand-deep); }
body:has(.pp-buybar.show) .shop-pill { bottom: 96px; }

/* drawer */
html.shop-lock, html.shop-lock body { overflow: hidden; }
.shop-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(41, 19, 29, 0.42); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s ease; }
.shop-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; display: flex; flex-direction: column; width: min(420px, 100vw); background: var(--surface-strong); box-shadow: -24px 0 60px rgba(67, 18, 38, 0.22); transform: translateX(100%); transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.25, 1); outline: none; }
.shop-ui.is-open .shop-overlay { opacity: 1; }
.shop-ui.is-open .shop-drawer { transform: none; }
.shop-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.shop-head h2 { margin: 0; font-size: 1.6rem; color: var(--brand-deep); }
.shop-x { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--brand-deep); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.shop-msg { margin: 0; font-size: 0.88rem; line-height: 1.5; color: #8a3a22; }
.shop-msg:not(:empty) { padding: 12px 22px; background: #fff1ec; border-bottom: 1px solid #f3d6cb; }
.shop-lines { flex: 1; overflow-y: auto; padding: 4px 22px; }
.shop-list { margin: 0; padding: 0; list-style: none; }
.shop-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.shop-thumb { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.shop-thumb img { width: auto; height: auto; max-width: 52px; max-height: 52px; object-fit: contain; }
.shop-name { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--brand-deep); text-decoration: none; }
.shop-name:hover { text-decoration: underline; }
.shop-each { font-size: 0.8rem; color: var(--muted); }
.shop-qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.shop-qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--brand-deep); font-size: 1.05rem; cursor: pointer; }
.shop-qty button:hover { background: rgba(143, 22, 63, 0.07); }
.shop-qty output { min-width: 24px; font-size: 0.9rem; font-weight: 700; text-align: center; }
.shop-end { display: grid; justify-items: end; gap: 6px; }
.shop-end strong { color: var(--brand-deep); }
.shop-remove { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.shop-empty { padding: 56px 10px; text-align: center; color: var(--muted); }
.shop-empty a { color: var(--brand); font-weight: 700; }
.shop-foot { display: grid; gap: 8px; padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
.shop-sub { display: flex; align-items: baseline; justify-content: space-between; }
.shop-sub strong { font-size: 1.35rem; color: var(--brand-deep); }
.shop-fine { margin: 0; font-size: 0.8rem; color: var(--muted); }
.shop-checkout { width: 100%; justify-content: center; margin-top: 6px; border: 0; font: inherit; font-weight: 700; }
.shop-checkout[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.shop-trust { text-align: center; }
.shop-ui.is-busy .shop-lines, .shop-ui.is-busy .shop-foot { opacity: 0.6; pointer-events: none; }

.shop-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1002; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--brand-deep); color: #fff; font-size: 0.9rem; box-shadow: 0 16px 36px rgba(67, 18, 38, 0.3); transform: translateX(-50%); }

@media (max-width: 880px) {
  .pp-cta-row .shop-now { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-overlay, .shop-drawer, .shop-pill { transition: none; }
}
