/* Kamala Studio – shop. Scoped to .stk-shop. */

.stk-shop {
	--stk-bg: #1c1318;
	--stk-accent: #d9a38f;
	--sh-ink: var(--wp--preset--color--ink, #1c1318);
	--sh-text: #2a2025;
	--sh-muted: var(--wp--preset--color--muted, #6b5e64);
	--sh-line: var(--wp--preset--color--line, #e6dbd4);
	--sh-soft: var(--wp--preset--color--sand, #f1e8e2);
	--sh-card: #fff;
	--sh-rose-deep: var(--wp--preset--color--rose-deep, #8f4f3e);
	--sh-serif: "STK Cormorant", "Cormorant Garamond", Georgia, serif;
	--sh-sans: "STK Manrope", Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--sh-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--sh-text);
}

.stk-shop *, .stk-shop *::before, .stk-shop *::after { box-sizing: border-box; }
.stk-shop [hidden] { display: none !important; }
html.stk-noscroll { overflow: hidden; }

.stk-shop-empty, .stk-shop-closed { padding: 18px 20px; border-radius: 18px; background: var(--sh-soft); color: var(--sh-muted); }
.stk-shop-closed { margin: 0 0 24px; color: var(--sh-text); }

.stk-shop-group + .stk-shop-group { margin-top: 44px; }
.stk-shop-cat { margin: 0 0 16px; font-family: var(--sh-serif); font-weight: 600; font-size: 1.875rem; line-height: 1.1; }

.stk-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 560px) { .stk-shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.stk-prod { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--sh-line); border-radius: 22px; background: var(--sh-card); }
.stk-prod-img { position: relative; aspect-ratio: 4 / 5; background: var(--sh-soft); }
.stk-prod-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stk-prod-ph { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in oklab, var(--sh-rose-deep) 40%, transparent); }
.stk-prod-ph svg { width: 34%; height: auto; }
.stk-prod.is-sold .stk-prod-img img { filter: grayscale(.7); opacity: .7; }
.stk-prod-badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: var(--sh-ink); color: #fff; font-size: 12px; font-weight: 700; }
.stk-prod-badge.is-few { background: #fff; color: var(--sh-rose-deep); }

.stk-prod-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.stk-prod-name { overflow-wrap: anywhere; hyphens: auto; margin: 0; font-family: var(--sh-sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.stk-prod-desc { margin: 0; color: var(--sh-muted); font-size: .9375rem; line-height: 1.5; }
.stk-prod-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.stk-prod-price { font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

.stk-prod-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 0 16px 0 12px;
	border: 0;
	border-radius: 99px;
	background: var(--sh-ink);
	color: #fff;
	font: inherit;
	font-size: .875rem;
	font-weight: 700;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.stk-prod-add svg { width: 18px; height: 18px; flex: none; }
.stk-prod-add:hover { background: color-mix(in oklab, var(--sh-ink) 84%, #fff); }
.stk-prod-add:focus-visible { outline: 2px solid var(--sh-rose-deep); outline-offset: 2px; }
.stk-prod-add.is-in { background: var(--stk-accent); color: var(--sh-ink); }
.stk-prod-add.is-pop { animation: stk-pop .3s ease; }
@keyframes stk-pop { 40% { transform: scale(1.06); } }
@media (max-width: 560px) {
	.stk-prod-body { padding: 12px; }
	.stk-prod-add { width: 100%; justify-content: center; }
	.stk-prod-add span { font-size: .8125rem; }
}

.stk-shop-note { margin: 32px 0 0; color: var(--sh-muted); font-size: .875rem; }
.stk-shop-note a { color: inherit; }

/* Order status */
.stk-shop-status { margin: 0 0 32px; padding: clamp(20px, 4vw, 30px); border-radius: 24px; background: var(--sh-soft); scroll-margin-top: 100px; }
.stk-shop-status.is-ok { background: #e8f3ec; }
.stk-shop-status.is-bad { background: #fbe9e3; }
.stk-shop-status h2 { margin: 0 0 6px; font-family: var(--sh-serif); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.stk-shop-status p { margin: 0; }
.stk-shop-status .stk-lines { margin: 16px 0 12px; max-width: 520px; }
.stk-shop-status-meta { font-size: .9375rem; color: var(--sh-muted); }

/* Cart bar */
.stk-cartbar {
	position: fixed;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 0 22px 0 10px;
	transform: translateX(-50%);
	border: 0;
	border-radius: 99px;
	background: var(--sh-ink);
	color: #fff;
	font: inherit;
	font-weight: 700;
	box-shadow: 0 18px 40px -14px rgba(28, 19, 24, .55);
	cursor: pointer;
}
.stk-cartbar-count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 99px; background: var(--stk-accent); color: var(--sh-ink); }
.stk-cartbar-sum { white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .85; }
.stk-cartbar { white-space: nowrap; }
.stk-cartbar:focus-visible { outline: 3px solid var(--stk-accent); outline-offset: 3px; }

/* Drawer */
.stk-drawer { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; }
.stk-drawer-back { position: absolute; inset: 0; background: rgba(28, 19, 24, .45); opacity: 0; transition: opacity .2s; }
.stk-drawer-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(460px, 100%);
	height: 100%;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 20px 20px max(24px, env(safe-area-inset-bottom));
	background: var(--sh-card);
	transform: translateX(100%);
	transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.stk-drawer.is-on .stk-drawer-back { opacity: 1; }
.stk-drawer.is-on .stk-drawer-panel { transform: none; }
.stk-drawer-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.stk-drawer-head h2 { margin: 0; font-family: var(--sh-serif); font-weight: 600; font-size: 2rem; outline: none; }
.stk-x { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--sh-line); border-radius: 50%; background: none; color: var(--sh-ink); cursor: pointer; }
.stk-x svg { width: 20px; height: 20px; }
.stk-drawer-empty { color: var(--sh-muted); }

.stk-lines { margin: 0; padding: 0; list-style: none; }
.stk-line { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sh-line); }
.stk-line img, .stk-line-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--sh-soft); }
.stk-line-main { display: grid; min-width: 0; }
.stk-line-main b { font-size: .9375rem; line-height: 1.3; }
.stk-line-main span { color: var(--sh-muted); font-size: .875rem; }
.stk-qty { display: inline-flex; align-items: center; border: 1px solid var(--sh-line); border-radius: 99px; }
.stk-qty button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--sh-ink); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.stk-qty button[disabled] { opacity: .3; cursor: default; }
.stk-qty button svg { width: 17px; height: 17px; }
.stk-qty output { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stk-lines.is-plain li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid color-mix(in oklab, var(--sh-ink) 10%, transparent); }
.stk-lines.is-plain li.is-total { font-weight: 800; border-bottom: 0; }

.stk-sum { display: flex; justify-content: space-between; margin: 14px 0 6px; font-size: 1.0625rem; }
.stk-sum b { font-variant-numeric: tabular-nums; }

.stk-co { display: grid; gap: 12px; margin-top: 10px; }
.stk-co h3 { margin: 14px 0 0; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); }
.stk-opt { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--sh-line); border-radius: 16px; cursor: pointer; }
.stk-opt:has(input:checked) { border-color: var(--sh-ink); box-shadow: inset 0 0 0 1px var(--sh-ink); }
.stk-opt.is-off { cursor: default; background: #fcfaf8; }
.stk-opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sh-ink); }
.stk-opt span { display: grid; gap: 2px; }
.stk-opt small { color: var(--sh-muted); font-size: .875rem; line-height: 1.45; }
.stk-opt small a { color: var(--sh-ink); }
.stk-co-appt { margin: -4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--sh-soft); font-weight: 600; font-size: .9375rem; }

.stk-f { display: grid; gap: 6px; font-weight: 700; font-size: .9375rem; }
.stk-f small { font-weight: 500; color: var(--sh-muted); }
.stk-f input, .stk-f select {
	width: 100%;
	min-height: 50px;
	padding: 0 14px;
	border: 1px solid var(--sh-line);
	border-radius: 14px;
	background: #fff;
	color: var(--sh-ink);
	font: inherit;
	font-weight: 400;
	font-size: 16px;
}
.stk-f input:focus, .stk-f select:focus { outline: 2px solid var(--sh-ink); outline-offset: 1px; }

.stk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.stk-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sh-ink); }
.stk-consent a { color: var(--sh-ink); }
.stk-co-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fbe6e0; color: #8a3b24; font-weight: 600; font-size: .9375rem; }
.stk-co-btn { min-height: 56px; border: 0; border-radius: 99px; background: var(--sh-ink); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
.stk-co-btn[disabled] { opacity: .6; cursor: default; }
.stk-co-btn:focus-visible { outline: 2px solid var(--sh-rose-deep); outline-offset: 3px; }
.stk-co-small { margin: -2px 0 0; text-align: center; color: var(--sh-muted); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
	.stk-drawer-panel, .stk-drawer-back { transition: none; }
	.stk-prod-add.is-pop { animation: none; }
}

/* discount code */
.stk-sum.is-disc { margin: 4px 0 0; font-size: .9375rem; color: var(--v-muted, #6b5e64); }
.stk-sum.is-disc b { color: #1a7f37; }
.stk-link-btn { margin-left: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: .8125rem; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stk-co-code { margin: 14px 0 4px; }
.stk-co-code summary { cursor: pointer; font-weight: 700; font-size: .9375rem; }
.stk-co-code-row { display: flex; gap: 8px; margin-top: 10px; }
.stk-co-code-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--v-line, #e6dbd4); border-radius: 12px; font: inherit; text-transform: uppercase; letter-spacing: .04em; }
.stk-co-code-btn { flex: none; min-height: 46px; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px; background: none; font: inherit; font-weight: 700; cursor: pointer; }
