/* ShopOnContext – moștenește fonturile și culorile temei.
   Valorile implicite sunt cele de pe lun.studio; orice variabilă poate fi
   suprascrisă din tema copil sau din CSS-ul adițional. */
.soc {
	--soc-ink: var(--wp--preset--color--contrast, #111111);
	--soc-bg: var(--wp--preset--color--base, #ffffff);
	--soc-soft: #f9f9f9;
	--soc-line: rgba(17, 17, 17, 0.12);
	--soc-muted: rgba(17, 17, 17, 0.6);
	--soc-glow: #e9c779;
	--soc-radius: 20px;
	--soc-err: #d8613c;
	font-family: inherit;
	color: var(--soc-ink);
	margin: 0 auto;
	max-width: 1100px;
	-webkit-tap-highlight-color: transparent;
}
.soc *, .soc *::before, .soc *::after { box-sizing: border-box; }

/* ---- introducere ---- */
.soc__intro { margin: 0 0 20px; }
.soc__h { margin: 0 0 8px; }
.soc__d { color: var(--soc-muted); font-weight: 300; max-width: 62ch; }
.soc__d p { margin: 0 0 0.6em; }

/* ---- îndemn înainte de scenă ---- */
.soc__lead { margin: 0 0 14px; }
.soc__lh { margin: 0 0 4px; font-size: 1.2rem; font-weight: 400; }
.soc__lt { margin: 0; color: var(--soc-muted); font-weight: 300; max-width: 62ch; }

/* ---- file (scene) ---- */
.soc__tabs { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.soc__tabs::-webkit-scrollbar { display: none; }
.soc__tabs[hidden] { display: none; }
.soc__tab {
	appearance: none; flex: 0 0 auto; cursor: pointer; font: inherit; color: inherit; white-space: nowrap;
	padding: 6px 16px; min-height: 40px; border-radius: 999px; border: 1px solid var(--soc-line); background: transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.soc__tab:hover { border-color: var(--soc-ink); }
.soc__tab.is-on { background: var(--soc-ink); color: var(--soc-bg); border-color: var(--soc-ink); }

/* ---- dimensiuni sub imagine ---- */
.soc__dims { margin: 8px 0 0; color: var(--soc-muted); font-size: 0.9rem; }
.soc__dims[hidden] { display: none; }

/* ---- imaginea ---- */
.soc__stage { position: relative; width: 100%; overflow: hidden; background: var(--soc-soft); line-height: 0; }
.soc__slide { container-type: inline-size; position: relative; width: 100%; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.soc__slide[hidden] { display: none; }
.soc__slide.is-zoomed { touch-action: none; cursor: grab; }
.soc__view { position: relative; width: 100%; transform-origin: 0 0; will-change: transform; }
.soc__view.is-anim { transition: transform 0.25s ease; }
.soc__img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.soc__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* butoane peste imagine */
.soc__nav, .soc__zb {
	appearance: none; display: grid; place-items: center; cursor: pointer; font: inherit; line-height: 1; padding: 0;
	width: 40px; height: 40px; border-radius: 50%; border: 0; color: var(--soc-ink);
	background: rgba(255, 255, 255, 0.88); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); z-index: 4;
}
.soc__nav:hover:not(:disabled), .soc__zb:hover:not(:disabled) { background: #fff; }
.soc__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 26px; padding-bottom: 3px; }
.soc__nav--prev { left: 10px; }
.soc__nav--next { right: 10px; }
.soc__zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.soc__zb { font-size: 20px; }
.soc__zb:disabled { opacity: 0.4; cursor: default; }
/* pe telefon: înghițim gesturile (swipe, pinch); rămâne doar „imaginea întreagă" când e mărită */
@media (max-width: 600px), (hover: none) {
	.soc__nav, .soc__zb:not(.soc__zb--r) { display: none; }
	.soc__zb--r:disabled { display: none; }
	.soc__zb { width: 36px; height: 36px; }
}

.soc__dim { fill: #000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.soc__slide.is-hover .soc__dim { opacity: var(--soc-dim, 0.16); }
.soc__hole { opacity: 0; transition: opacity 0.3s ease; }

.soc__glow { fill: none; stroke: var(--soc-glow); stroke-linejoin: round; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.soc__glowg { mix-blend-mode: screen; pointer-events: none; }
.soc__glow.is-sel { opacity: 0.85; }
.soc__glow.is-hov { opacity: 1; }

.soc__hit { fill: transparent; pointer-events: all; cursor: pointer; outline: none; }
.soc__hit.is-sold { cursor: not-allowed; }
.soc__hit:focus-visible { stroke: var(--soc-ink); stroke-width: 3; stroke-dasharray: 8 6; }

/* ---- etichete ---- */
.soc__tag {
	position: absolute; transform: translateX(-50%) scale(var(--iz, 1)); transform-origin: 50% 0; margin-top: calc(6px * var(--iz, 1)); line-height: 1;
	padding: 0.4em 0.9em; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--soc-ink);
	font-size: clamp(8px, 1.25cqw, 12px); letter-spacing: 0.5px; pointer-events: none; white-space: nowrap;
}
.soc__tag[hidden], .soc__tip[hidden], .soc__soldout[hidden] { display: none; }

.soc__tip {
	position: absolute; z-index: 3; pointer-events: none; line-height: 1.35;
	transform: translate(14px, 14px); display: flex; left: 0; top: 0; flex-direction: column; gap: 2px;
	padding: 10px 14px; border-radius: 14px; background: var(--soc-bg); color: var(--soc-ink);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16); font-size: 0.85rem; max-width: 240px;
}
.soc__tip.is-left { transform: translate(calc(-100% - 14px), 14px); }
.soc__tip-n { font-weight: 500; }
.soc__tip-m, .soc__tip-s { color: var(--soc-muted); font-size: 0.78rem; }

.soc__soldout {
	position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none;
	background: rgba(255, 255, 255, 0.55); font-size: clamp(1.4rem, 5vw, 3rem); letter-spacing: 0.3em; font-weight: 300;
}

/* ---- panoul ---- */
.soc__panel { padding: 22px 0 0; }
.soc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--soc-line); }
.soc__title { font-size: 1.05rem; font-weight: 400; }
.soc__headr { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; }
.soc__count { color: var(--soc-muted); font-size: 0.85rem; }
.soc__cart { color: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.soc__hint { margin: 16px 0; color: var(--soc-muted); font-weight: 300; }

.soc__list { list-style: none; margin: 0; padding: 0; }
.soc__row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--soc-line); }
.soc__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.soc__rm { color: var(--soc-muted); font-size: 0.8rem; }
.soc__rp { white-space: nowrap; }
.soc__qty { display: inline-flex; align-items: center; gap: 4px; }
.soc__qn { min-width: 1.6em; text-align: center; }
.soc__qb, .soc__x {
	appearance: none; border: 1px solid var(--soc-line); background: transparent; color: inherit;
	width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font: inherit; line-height: 1; padding: 0;
}
.soc__x { border-color: transparent; font-size: 1.2rem; }
.soc__qb:hover:not(:disabled), .soc__x:hover { border-color: var(--soc-ink); }
.soc__qb:disabled { opacity: 0.35; cursor: default; }

.soc__total { display: flex; justify-content: space-between; padding: 16px 0 6px; font-size: 1.05rem; }

.soc__btn {
	appearance: none; display: inline-block; margin-top: 14px; cursor: pointer; font: inherit;
	padding: 6px 16px; min-height: 40px; border-radius: var(--soc-radius); border: 1px solid var(--soc-ink);
	background: var(--soc-ink); color: var(--soc-bg); letter-spacing: 1px; text-transform: none;
	transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.soc__btn:hover:not(:disabled) { background: transparent; color: var(--soc-ink); }
.soc__btn:disabled { opacity: 0.35; cursor: default; }
.soc__btn.is-done, .soc__btn.is-done:disabled { opacity: 1; background: var(--soc-ink); color: var(--soc-bg); cursor: default; }

.soc__msg { margin: 12px 0 0; font-size: 0.9rem; }
.soc__msg.is-err { color: var(--soc-err); }
.soc__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.soc__noscript { margin: 12px 0 0; padding-left: 1.2em; }

/* ---- galerie ---- */
.soc__galhead { margin: 64px 0 14px; padding-top: 28px; border-top: 1px solid var(--soc-line); }
.soc__gh { margin: 0 0 2px; font-size: 0.95rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soc-muted); }
.soc__gt { margin: 0; color: var(--soc-muted); font-size: 0.85rem; font-weight: 300; }
.soc__galhead + .soc__gal { margin-top: 0; }
.soc__gal { position: relative; margin-top: 64px; }
.soc__galtrack {
	display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	-webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.soc__galtrack::-webkit-scrollbar { display: none; }
.soc__gi {
	appearance: none; flex: 0 0 min(58%, 230px); scroll-snap-align: start; padding: 0; border: 0; background: var(--soc-soft);
	cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; line-height: 0; border-radius: 4px;
}
.soc__gi img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; -webkit-user-drag: none; }
.soc__gi:hover img { transform: scale(1.03); }
.soc__gi:focus-visible { outline: 2px solid var(--soc-ink); outline-offset: 2px; }
.soc__gnav {
	appearance: none; display: none; place-items: center; position: absolute; top: calc(50% - 20px); width: 40px; height: 40px;
	border-radius: 50%; border: 0; cursor: pointer; font: inherit; font-size: 26px; line-height: 1; padding: 0 0 3px; color: var(--soc-ink);
	background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.soc__gnav--prev { left: 8px; }
.soc__gnav--next { right: 8px; }
.soc__gnav:disabled { opacity: 0; pointer-events: none; }
.soc__gal.has-scroll .soc__gnav { display: grid; }
@media (max-width: 600px), (hover: none) { .soc__gal.has-scroll .soc__gnav { display: none; } }

@media (max-width: 600px) {
	.soc__row { flex-wrap: wrap; }
	.soc__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.soc__dim, .soc__hole, .soc__glow, .soc__btn, .soc__view.is-anim, .soc__tab, .soc__gi img { transition: none; }
}

/* ---- fereastra mare (în afara .soc) ---- */
.soc-lb {
	position: fixed; inset: 0; z-index: 100000; display: none; place-items: center; background: rgba(10, 10, 10, 0.93);
	touch-action: pan-y; font-family: inherit;
}
.soc-lb.is-open { display: grid; }
.soc-lb__img { max-width: 94vw; max-height: 86vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.soc-lb__x, .soc-lb__nav {
	appearance: none; position: absolute; display: grid; place-items: center; cursor: pointer; border: 0; padding: 0;
	border-radius: 50%; color: #111; background: rgba(255, 255, 255, 0.94); font: inherit; line-height: 1;
}
.soc-lb__x { top: 14px; right: 14px; width: 48px; height: 48px; font-size: 20px; }
.soc-lb__nav { top: calc(50% - 24px); width: 48px; height: 48px; font-size: 30px; padding-bottom: 4px; }
.soc-lb__nav--prev { left: 14px; }
.soc-lb__nav--next { right: 14px; }
.soc-lb__x:hover, .soc-lb__nav:hover { background: #fff; }
.soc-lb__x:focus-visible, .soc-lb__nav:focus-visible { outline: 3px solid #e9c779; outline-offset: 2px; }
.soc-lb__ct { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }
.soc-lb [hidden] { display: none; }
@media (max-width: 600px) { .soc-lb__nav { width: 40px; height: 40px; top: calc(50% - 20px); } .soc-lb__img { max-width: 100vw; } }
