/* Store page: clickable product cards, product detail dialog and store contact buttons. */
.st-product { cursor: pointer; }
.st-product-copy h3 { margin: 0; }
.st-product-open { all: unset; font: inherit; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--st-ink); cursor: pointer; overflow-wrap: anywhere; }
.st-product-open:focus-visible { outline: 3px solid var(--st-brand-ring); outline-offset: 3px; border-radius: 6px; }
.st-product > .st-add-form, .st-product > .st-product-cta { position: relative; z-index: 2; cursor: auto; }
.st-product-more { font-size: .76rem; font-weight: 700; color: var(--st-brand-600); display: inline-flex; align-items: center; gap: 4px; }
.st-product:hover .st-product-more i { transform: translateX(2px); }
.st-product-more i { transition: transform .15s ease; font-size: .7rem; }
.st-product-media img { transition: transform .25s ease; }
.st-product:hover .st-product-media img { transform: scale(1.05); }
.st-price-unit { font-size: .78rem; font-weight: 700; color: var(--st-muted); }

html.st-pd-lock { overflow: hidden; }
.st-pd { border: 0; padding: 0; width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border-radius: 26px; background: var(--st-surface); color: var(--st-ink); box-shadow: var(--st-shadow-lg); overflow: auto; overscroll-behavior: contain; }
.st-pd::backdrop { background: rgba(2, 6, 23, .55); backdrop-filter: blur(3px); }
.st-pd[open] { animation: st-pd-in .18s ease-out; }
@keyframes st-pd-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.st-pd-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.st-pd-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 999px; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0f172a; box-shadow: var(--st-shadow-sm); font-size: 1rem; }
.st-pd-close:hover { background: #fff; }
.st-pd-gallery { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: linear-gradient(135deg, var(--st-brand-50), #fff7ed); min-height: 320px; justify-content: center; }
.st-pd-main { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: #fff; }
.st-pd-emoji { font-size: 5rem; text-align: center; }
.st-pd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.st-pd-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .7; }
.st-pd-thumbs button.active, .st-pd-thumbs button:hover { border-color: var(--st-brand-600); opacity: 1; }
.st-pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.st-pd-body { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-pd-cat { font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--st-brand-600); padding-right: 44px; }
.st-pd-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; line-height: 1.25; margin: 0; padding-right: 44px; overflow-wrap: anywhere; }
.st-pd-price { padding-top: 0; margin-top: 0; }
.st-pd-price strong { font-size: 1.45rem; }
.st-pd-desc { margin: 0; color: var(--st-ink-2); font-size: .92rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.st-pd-form { display: flex; flex-direction: column; gap: 14px; margin-top: 2px; }
.st-pd-options { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; list-style: none; }
.st-pd-options legend { font-size: .85rem; font-weight: 800; margin-bottom: 8px; float: none; width: auto; padding: 0; }
.st-pd-option, .st-pd-options.is-static li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--st-line-2); background: var(--st-surface); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.st-pd-options.is-static li { cursor: default; }
.st-pd-option input { position: absolute; opacity: 0; pointer-events: none; }
.st-pd-option span, .st-pd-options.is-static li span { font-weight: 700; font-size: .88rem; }
.st-pd-option strong, .st-pd-options.is-static li strong { font-size: .86rem; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.st-pd-option:has(input:checked) { border-color: var(--st-brand-600); background: var(--st-brand-50); }
.st-pd-option:has(input:checked) strong { color: var(--st-brand-700); }
.st-pd-option:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--st-brand-ring); }
.st-pd-actions { display: flex; gap: 10px; align-items: center; }
.st-pd-actions .st-qty { height: 46px; }
.st-pd-actions .st-add-btn { min-height: 46px; justify-content: center; font-weight: 800; }
.st-pd-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid #22c55e; color: #15803d; font-weight: 800; font-size: .9rem; text-decoration: none; }
.st-pd-wa:hover { background: #22c55e; color: #fff; }
.st-pd-wa i { font-size: 1.1rem; }
.st-pd-store { margin: 0; font-size: .82rem; color: var(--st-muted); display: flex; gap: 6px; align-items: center; }
[data-bs-theme="dark"] .st-pd-gallery { background: var(--st-surface-3); }
[data-bs-theme="dark"] .st-pd-wa { color: #4ade80; }
@media (max-width: 720px) {
  .st-pd { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .st-pd[open] { animation-name: st-pd-up; }
  .st-pd-inner { grid-template-columns: minmax(0, 1fr); }
  .st-pd-gallery { min-height: 0; padding: 14px; }
  .st-pd-main { max-height: 300px; }
  .st-pd-body { padding: 18px 16px 22px; }
  .st-pd-desc { max-height: none; }
  .st-pd-actions { position: sticky; bottom: -22px; padding: 10px 0 2px; background: var(--st-surface); }
}
@keyframes st-pd-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

.st-store-contact { display: flex; gap: 8px; }
.st-store-contact .btn { flex: 1; justify-content: center; white-space: nowrap; font-weight: 700; }
.st-store-contact .st-store-wa { --bs-btn-color: #15803d; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #22c55e; --bs-btn-hover-border-color: #22c55e; }
@media (max-width: 991.98px) { .st-store-contact { flex-wrap: wrap; } }
