/**
 * PrintDrop — full-width premium single product (override teme).
 * Stil: Luxury Minimal / premium e-commerce.
 */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ---- Full-width override (neutrališe boxed temu) ---- */
body.pdi-pdp-active #content .ast-container,
body.pdi-pdp-active .site-content > .ast-container,
body.pdi-pdp-active #primary,
body.pdi-pdp-active .content-area,
body.pdi-pdp-active .entry-content {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}
body.pdi-pdp-active #secondary,
body.pdi-pdp-active .ast-single-post .entry-header,
body.pdi-pdp-active .ast-woocommerce-container > .woocommerce-breadcrumb,
body.pdi-pdp-active .ast-breadcrumbs-wrapper { display: none !important; }
body.pdi-pdp-active #primary { float: none !important; }

/* ---- Tokens ---- */
.pdi-pdp {
	--bg: #ffffff;
	--paper: #faf9f6;
	--ink: #14140f;
	--muted: #6f6a60;
	--line: #e9e5dd;
	--accent: #14140f;
	--gold: #a98a54;
	--ok: #2f7d4f;
	--low: #b4791f;
	--out: #b23b3b;
	--radius: 4px;
	--maxw: 1440px;
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--bg);
	width: 100%;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.pdi-pdp *, .pdi-pdp *::before, .pdi-pdp *::after { box-sizing: border-box; }

.pdi-pdp__crumbs {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 22px clamp(18px, 4vw, 60px) 6px;
	font-size: 12.5px;
	color: var(--muted);
	letter-spacing: .02em;
}
.pdi-pdp__crumbs a { color: var(--muted); text-decoration: none; }
.pdi-pdp__crumbs a:hover { color: var(--ink); }

/* ---- HERO ---- */
.pdi-pdp__hero {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 10px clamp(18px, 4vw, 60px) clamp(40px, 6vw, 90px);
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
	gap: clamp(28px, 4vw, 72px);
	align-items: start;
}

/* Galerija */
.pdi-pdp__gallery {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 16px;
	position: sticky;
	top: 24px;
}
.pdi-pdp__thumbs { display: flex; flex-direction: column; gap: 12px; }
.pdi-thumb {
	border: 1px solid var(--line);
	background: var(--paper);
	border-radius: var(--radius);
	padding: 0; overflow: hidden; cursor: pointer;
	aspect-ratio: 1; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pdi-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.pdi-thumb:hover { transform: translateY(-2px); }
.pdi-thumb.is-active { border-color: var(--ink); }

.pdi-pdp__stage {
	margin: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	aspect-ratio: 1;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.pdi-pdp__main {
	width: 100% !important; height: 100% !important; max-height: 100% !important; object-fit: contain !important;
	mix-blend-mode: multiply;
	transition: opacity .35s var(--ease);
}
.pdi-pdp__main.is-swapping { opacity: 0; }

/* Panel */
.pdi-pdp__panel { position: relative; }
.pdi-pdp__panel-inner { position: sticky; top: 24px; }

.pdi-pdp__eyebrow {
	font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
	color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.pdi-pdp__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(30px, 3.6vw, 52px);
	line-height: 1.02;
	letter-spacing: -.01em;
	margin: 0 0 16px;
	color: var(--ink);
}
.pdi-pdp__meta {
	display: flex; flex-wrap: wrap; gap: 6px 18px;
	font-size: 12.5px; color: var(--muted); margin-bottom: 22px;
	padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.pdi-pdp__meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.pdi-pdp__meta a:hover { color: var(--ink); border-color: var(--ink); }

.pdi-pdp__price {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.4vw, 32px); font-weight: 500;
	color: var(--ink); margin-bottom: 6px;
}
.pdi-pdp__price del { color: var(--muted); font-weight: 400; margin-right: 10px; opacity: .7; }
.pdi-pdp__price ins { text-decoration: none; }
.pdi-pdp__price .pdi-unit { font-family: var(--font-body); font-size: 13px; color: var(--muted); }

.pdi-pdp__short { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 16px 0 4px; }
.pdi-pdp__short p { margin: 0 0 8px; }

/* Field (boja/veličina) */
.pdi-pdp__field { margin-top: 26px; }
.pdi-pdp__field-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pdi-pdp__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.pdi-pdp__chosen { font-size: 13px; color: var(--muted); }

.pdi-pdp__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pdi-swatch {
	width: 38px; height: 38px; padding: 3px; cursor: pointer;
	border: 1px solid var(--line); border-radius: 50%; background: #fff;
	transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pdi-swatch__dot { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pdi-swatch:hover { transform: scale(1.08); }
.pdi-swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.pdi-pdp__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdi-size {
	min-width: 50px; padding: 11px 14px; cursor: pointer;
	border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
	font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--ink);
	transition: all .18s var(--ease);
}
.pdi-size:hover { border-color: var(--ink); }
.pdi-size.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pdi-size.is-out { opacity: .32; cursor: not-allowed; text-decoration: line-through; }

/* Buy */
.pdi-pdp__buy { margin-top: 30px; }
.pdi-pdp__buyrow { display: flex; gap: 12px; }
.pdi-qtybox { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pdi-qtybtn { width: 44px; height: 54px; border: none; background: #fff; cursor: pointer; font-size: 18px; color: var(--ink); transition: background .15s; }
.pdi-qtybtn:hover { background: var(--paper); }
.pdi-qtybox input { width: 54px; height: 54px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-family: var(--font-body); font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.pdi-qtybox input::-webkit-outer-spin-button, .pdi-qtybox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdi-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: var(--font-body); font-weight: 600; font-size: 14.5px; letter-spacing: .02em;
	border-radius: var(--radius); cursor: pointer; text-decoration: none;
	transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), opacity .18s;
	border: 1px solid var(--ink);
}
.pdi-btn--primary { flex: 1; height: 54px; background: var(--ink); color: #fff; }
.pdi-btn--primary:hover:not(:disabled) { transform: translateY(-1px); background: #2a2a22; }
.pdi-btn--primary:disabled { opacity: .4; cursor: not-allowed; }
.pdi-btn--ghost { width: 100%; height: 50px; margin-top: 12px; background: transparent; color: var(--ink); }
.pdi-btn--ghost:hover { background: var(--ink); color: #fff; }
.pdi-btn--ghost svg { transition: transform .2s var(--ease); }
.pdi-btn--ghost:hover svg { transform: rotate(-8deg); }

.pdi-pdp__trust { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pdi-pdp__trust li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.pdi-pdp__trust li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }

.pdi-pdp__notice { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; display: none; }
.pdi-pdp__notice.is-ok { display: block; background: #edf6f0; color: var(--ok); border: 1px solid #cfe7d9; }
.pdi-pdp__notice.is-err { display: block; background: #fbeeee; color: var(--out); border: 1px solid #f0d3d3; }
.pdi-pdp__notice a { color: inherit; font-weight: 700; }

/* ---- DETAILS ---- */
.pdi-pdp__details {
	max-width: var(--maxw); margin: 0 auto;
	padding: clamp(30px, 5vw, 70px) clamp(18px, 4vw, 60px) clamp(50px, 7vw, 100px);
	border-top: 1px solid var(--line);
	display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 80px);
}
.pdi-pdp__section { margin-bottom: 40px; }
.pdi-pdp__h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 27px); margin: 0 0 18px; letter-spacing: -.01em; }
.pdi-pdp__prose { color: #45423b; font-size: 15px; line-height: 1.75; }
.pdi-pdp__prose p { margin: 0 0 12px; }
.pdi-pdp__muted { color: var(--muted); font-size: 13px; margin-top: 12px; }
.pdi-pdp__positions { display: flex; flex-wrap: wrap; gap: 8px; }
.pdi-pos-chip { padding: 7px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }

/* Stock table (nasleđeno) — premium retuširanje */
.pdi-pdp__details .pdi-stock, .pdi-pdp__details table { width: 100%; }

/* ---- Stagger reveal ---- */
.pdi-pdp__panel-inner > *, .pdi-pdp__gallery { opacity: 0; transform: translateY(14px); animation: pdiFadeUp .7s var(--ease) forwards; }
.pdi-pdp__gallery { animation-delay: .05s; }
.pdi-pdp__eyebrow { animation-delay: .10s; }
.pdi-pdp__title { animation-delay: .16s; }
.pdi-pdp__meta { animation-delay: .22s; }
.pdi-pdp__price { animation-delay: .28s; }
.pdi-pdp__short { animation-delay: .32s; }
.pdi-pdp__field { animation-delay: .36s; }
.pdi-pdp__buy { animation-delay: .42s; }
@keyframes pdiFadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pdi-pdp__panel-inner > *, .pdi-pdp__gallery { animation: none; opacity: 1; transform: none; } }

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.pdi-pdp__hero { grid-template-columns: 1fr; }
	.pdi-pdp__gallery, .pdi-pdp__panel-inner { position: static; }
	.pdi-pdp__details { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	/* Galerija: složi u jednu kolonu — glavna slika puna širina gore, thumbnails horizontalno ispod */
	.pdi-pdp__gallery { grid-template-columns: 1fr !important; gap: 12px; }
	.pdi-pdp__stage { order: 0; width: 100%; }
	.pdi-pdp__thumbs { order: 1; flex-direction: row !important; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; }
	.pdi-thumb { flex: 0 0 64px; width: 64px; }
}
@media (max-width: 560px) {
	.pdi-pdp__buyrow { flex-wrap: wrap; }
	.pdi-btn--primary { width: 100%; flex: none; }
}

/* ---- Availability panel (u desnoj koloni ispod kupovine) ---- */
.pdi-pdp__stock { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pdi-pdp__stock-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.pdi-pdp__stock-color { font-size: 13px; color: var(--muted); font-weight: 500; }
.pdi-pdp__stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pdi-stk {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--paper); font-size: 13px;
}
.pdi-stk__sz { font-weight: 600; color: var(--ink); }
.pdi-stk__q { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pdi-stk--out { opacity: .6; }
.pdi-stk--out .pdi-stk__sz { text-decoration: line-through; }
.pdi-stk--low .pdi-stk__q { color: var(--low); }
.pdi-stk--out .pdi-stk__q { color: var(--out); }
.pdi-stk--in .pdi-stk__q { color: var(--ok); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.in { background: var(--ok); }
.dot.low { background: var(--low); }
.dot.out { background: var(--out); }

.pdi-pdp__stock-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.pdi-pdp__stock-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* single-column donji deo (bez stock kolone) */
.pdi-pdp__details--single { grid-template-columns: 1fr; max-width: 900px; }

/* ---- Swatch sa slikom (kad nema hex, npr. MidOcean) ---- */
.pdi-swatch--img .pdi-swatch__dot {
	background-image: var(--img);
	background-size: cover;
	background-position: center;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}

/* ---- Thumbnail scroller (duge liste boja) ---- */
.pdi-pdp__thumbs {
	max-height: 560px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #cfcabf transparent;
	scroll-behavior: smooth;
}
.pdi-pdp__thumbs::-webkit-scrollbar { width: 6px; }
.pdi-pdp__thumbs::-webkit-scrollbar-track { background: transparent; }
.pdi-pdp__thumbs::-webkit-scrollbar-thumb { background: #cfcabf; border-radius: 6px; }
.pdi-pdp__thumbs::-webkit-scrollbar-thumb:hover { background: #b7b1a3; }
.pdi-thumb { flex: 0 0 auto; }

/* Swatch lista takođe skrolabilna ako je jako duga */
.pdi-pdp__swatches { max-height: 190px; overflow-y: auto; padding: 2px 4px 2px 2px; scrollbar-width: thin; scrollbar-color: #cfcabf transparent; }
.pdi-pdp__swatches::-webkit-scrollbar { width: 6px; }
.pdi-pdp__swatches::-webkit-scrollbar-thumb { background: #cfcabf; border-radius: 6px; }

@media (max-width: 980px) {
	.pdi-pdp__thumbs { max-height: none; display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
}
