/* =========================================================
   SNH Product Studio – Frontend styles (v2.0.0)
   Warna & radius dikontrol via CSS variables dari backend.
   ========================================================= */

:root {
	--snh-accent: #a8874f;
	--snh-accent-dark: #8d6f3d;
	--snh-ink: #2b2320;
	--snh-muted: #8a7f78;
	--snh-radius: 14px;
	--snh-btn-radius: 999px;
	--snh-select-radius: 10px;
	--snh-select-border: #e6ddd6;
}

/* ---------- Galeri produk ---------- */
.single-product div.product .woocommerce-product-gallery {
	border-radius: var(--snh-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}
.single-product div.product .woocommerce-product-gallery img {
	border-radius: var(--snh-radius);
}
.single-product div.product .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}
.single-product div.product .flex-control-thumbs li {
	width: 72px;
	flex: 0 0 72px;
}
.single-product div.product .flex-control-thumbs img {
	border-radius: 8px;
	border: 2px solid transparent;
	opacity: .65;
	transition: all .2s ease;
}
.single-product div.product .flex-control-thumbs img:hover { opacity: 1; }
.single-product div.product .flex-control-thumbs img.flex-active {
	border-color: var(--snh-accent);
	opacity: 1;
}

/* ---------- Video produk ---------- */
.snh-video {
	margin: 18px 0 0;
	border-radius: var(--snh-radius);
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
	background: #000;
}
.snh-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}
.snh-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.snh-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ---------- Badge SALE ---------- */
.single-product span.onsale,
.single-product .onsale {
	background: var(--snh-accent);
	color: #fff;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: 12px;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

/* ---------- Judul & harga ---------- */
.single-product .product_title {
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	line-height: 1.25;
	color: var(--snh-ink);
	letter-spacing: -.01em;
}
.single-product p.price {
	font-size: 1.6rem;
	color: var(--snh-ink);
	font-weight: 700;
}
.single-product p.price del {
	color: var(--snh-muted);
	font-size: .7em;
	font-weight: 400;
}
.single-product p.price ins {
	text-decoration: none;
	color: var(--snh-accent-dark);
}

/* ---------- Tombol utama ---------- */
.single-product .single_add_to_cart_button,
.single-product .button.alt {
	background: var(--snh-ink);
	color: #fff;
	border-radius: var(--snh-btn-radius);
	padding: 15px 34px !important;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .03em;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.single-product .single_add_to_cart_button:hover {
	background: var(--snh-accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

/* ---------- Dropdown atribut / variasi ---------- */
.single-product table.variations select,
.single-product .variations select {
	appearance: none;
	-webkit-appearance: none;
	border: 1.5px solid var(--snh-select-border);
	border-radius: var(--snh-select-radius);
	padding: 12px 40px 12px 14px;
	font-size: 15px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8874f' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.single-product table.variations select:focus,
.single-product .variations select:focus {
	outline: none;
	border-color: var(--snh-accent);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}
.single-product table.variations td.label {
	font-weight: 600;
}
.single-product .reset_variations {
	color: var(--snh-muted);
}

/* ---------- Input jumlah ---------- */
.single-product .quantity input[type="number"] {
	border: 1.5px solid var(--snh-select-border);
	border-radius: var(--snh-select-radius);
	padding: 12px 8px;
	font-weight: 700;
	text-align: center;
	width: 84px;
}

/* ---------- Tombol WhatsApp ---------- */
.snh-wa,
.single-product div.product form.cart a[href*="wa.me"],
.single-product div.product form.cart a[href*="api.whatsapp.com"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 12px 0 0;
	width: 100%;
	max-width: 100%;
	background: #25d366;
	color: #fff;
	border-radius: var(--snh-btn-radius);
	padding: 14px 26px !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.snh-wa:hover,
.single-product div.product form.cart a[href*="wa.me"]:hover,
.single-product div.product form.cart a[href*="api.whatsapp.com"]:hover {
	background: #1fb457;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(37, 211, 102, .45);
}
.snh-wa svg { flex: 0 0 auto; }

/* ---------- Countdown Stok Terbatas ---------- */
.snh-urgency {
	margin: 18px 0 0;
	padding: 14px 16px;
	border: 1px solid #f4dcc4;
	border-radius: var(--snh-radius);
	background: linear-gradient(135deg, #fff7ee 0%, #fdf0e2 100%);
}
.snh-urgency__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 14.5px;
	color: var(--snh-ink);
}
.snh-urgency__head strong {
	color: #c2410c;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 13.5px;
}
.snh-urgency__head b { color: #c2410c; font-size: 16px; }
.snh-urgency__bar {
	height: 10px;
	border-radius: 999px;
	background: #f3e2ce;
	overflow: hidden;
	margin: 0 0 10px;
}
.snh-urgency__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #f97316, #dc2626);
	animation: snh-pulse 2.2s ease-in-out infinite;
}
@keyframes snh-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .75; }
}
.snh-urgency__timer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13.5px;
	color: var(--snh-ink);
}
.snh-countdown {
	display: inline-block;
	min-width: 96px;
	text-align: center;
	background: var(--snh-ink);
	color: #fff;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .08em;
	border-radius: 8px;
	padding: 5px 10px;
}

/* ---------- Badge kepercayaan ---------- */
.snh-trust {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}
.snh-trust__item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #faf6f0;
	border: 1px solid #efe6da;
	border-radius: var(--snh-radius);
	padding: 10px 12px;
}
.snh-trust__icon { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.snh-trust__text { display: flex; flex-direction: column; line-height: 1.25; }
.snh-trust__text strong { font-size: 13px; color: var(--snh-ink); }
.snh-trust__text small { font-size: 11.5px; color: var(--snh-muted); }

/* ---------- Panduan ukuran ---------- */
.snh-size-guide {
	margin: 16px 0 0;
	border: 1px dashed var(--snh-select-border);
	border-radius: var(--snh-radius);
	background: #fffdf8;
	overflow: hidden;
}
.snh-size-guide summary {
	cursor: pointer;
	padding: 12px 16px;
	font-weight: 600;
	color: var(--snh-accent-dark);
	list-style: none;
	user-select: none;
}
.snh-size-guide summary::before {
	content: "＋";
	display: inline-block;
	margin-right: 8px;
}
.snh-size-guide[open] summary::before { content: "－"; }
.snh-size-guide__body { padding: 0 16px 16px; }
.snh-size-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.snh-size-table th,
.snh-size-table td {
	border-bottom: 1px solid #efe6da;
	padding: 9px 10px;
	text-align: left;
}
.snh-size-table th {
	background: #faf6f0;
	font-weight: 700;
	color: var(--snh-ink);
}

/* ---------- Sticky bar (mobile) ---------- */
.snh-sticky {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border: 1px solid #efe6da;
	border-radius: 16px;
	padding: 10px 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	transform: translateY(140%);
	transition: transform .25s ease;
	opacity: 0;
}
.snh-sticky.is-visible { transform: translateY(0); opacity: 1; }
.snh-sticky img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 10px;
	flex: 0 0 46px;
}
.snh-sticky__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.snh-sticky__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--snh-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.snh-sticky__price { font-size: 14px; font-weight: 800; color: var(--snh-accent-dark); }
.snh-sticky__btn {
	flex: 0 0 auto;
	background: var(--snh-ink);
	color: #fff;
	border: 0;
	border-radius: var(--snh-btn-radius);
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.snh-sticky__btn:active { transform: scale(.97); }
@media (min-width: 769px) { .snh-sticky { display: none; } }
@media (max-width: 768px) {
	.single-product .site-footer,
	.single-product footer { padding-bottom: 96px; }
}

/* =========================================================
   v2.6.0 — Chip Marketplace Indonesia
   ========================================================= */
.snh-mp {
	margin-top: 18px;
}
.snh-mp__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--snh-muted, #8a7f78);
	margin-bottom: 8px;
}
.snh-mp__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.snh-mp__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1.5px solid #eee6dc;
	background: #fff;
	color: var(--snh-ink, #2b2320);
	border-radius: 999px;
	padding: 6px 14px 6px 6px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
	transition: transform .15s ease, box-shadow .15s ease;
}
.snh-mp__chip:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
	color: var(--snh-ink, #2b2320);
}
.snh-mp__icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	flex: 0 0 28px;
	overflow: hidden;
}
.snh-mp__icon img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.snh-mp__chip--shopee .snh-mp__icon { background: #ee4d2d; }
.snh-mp__chip--tokopedia .snh-mp__icon { background: #03ac0e; }
.snh-mp__chip--tiktok .snh-mp__icon { background: #111; }
.snh-mp__chip--lazada .snh-mp__icon { background: #1a2b8f; }
.snh-mp__chip--blibli .snh-mp__icon { background: #e5335c; }
.snh-mp__chip--instagram .snh-mp__icon {
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
