/* Galeri foto produk (widget slider Essential Addons).
   Bawaannya tinggi wadah mengikuti foto pertama dan gambar ditarik
   paksa (object-fit: fill), sehingga ukuran galeri berbeda-beda per
   produk dan terlalu besar. Di sini semuanya diseragamkan memakai
   bingkai persegi 1:1 seperti di Shopee (foto marketplace berbentuk
   persegi, jadi tidak ada yang terpotong), dengan lebar dibatasi
   supaya seluruh bingkai muat di layar. */
/* !important diperlukan karena Elementor memasang "max-width: 100%" pada
   semua widget di dalam container dengan spesifisitas yang lebih tinggi. */
.single-product .elementor-widget-eael-woo-product-images {
	width: 100%;
	max-width: min(640px, calc(100vh - 140px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.single-product .eael-single-product-images .swiper-container,
.single-product .eael-single-product-images .swiper {
	height: auto !important;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.single-product .eael-single-product-images .swiper-container .swiper-wrapper,
.single-product .eael-single-product-images .swiper .swiper-wrapper {
	height: 100%;
}

.single-product .eael-single-product-images .swiper-slide {
	height: 100%;
}

/* Matikan efek coverflow (slide miring dan mengecil) agar hanya satu foto
   tampil penuh dalam bingkai, seperti galeri Alchemist. Transformasi
   dipasang Swiper sebagai gaya inline, jadi perlu !important. */
.single-product .eael-single-product-images .swiper-slide {
	transform: none !important;
}

.single-product .eael-single-product-images .swiper-slide-shadow-left,
.single-product .eael-single-product-images .swiper-slide-shadow-right,
.single-product .eael-single-product-images .swiper-slide-shadow-top,
.single-product .eael-single-product-images .swiper-slide-shadow-bottom {
	display: none !important;
}

.single-product .eael-single-product-images .swiper-slide img,
.single-product .eael-single-product-images .image_slider__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Label koleksi + tagline di sekitar judul produk */
.ewu-label {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.55;
}

.ewu-tagline {
	margin: 8px 0 0;
	font-size: 15px;
	font-style: italic;
	opacity: 0.8;
}

/* Accordion detail produk */
.ewu-acc {
	margin: 28px 0 0;
	border-top: 1px solid rgba(128, 128, 128, 0.3);
}

.ewu-acc__item {
	border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.ewu-acc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 2px;
	cursor: pointer;
	list-style: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ewu-acc__summary::-webkit-details-marker {
	display: none;
}

.ewu-acc__summary::after {
	content: "+";
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	opacity: 0.6;
}

.ewu-acc__item[open] .ewu-acc__summary::after {
	content: "\2013";
}

.ewu-acc__body {
	padding: 0 2px 20px;
	font-size: 14px;
	line-height: 1.7;
}

.ewu-acc__body p {
	margin: 0 0 12px;
}

.ewu-acc__body p:last-child {
	margin-bottom: 0;
}

.ewu-acc__row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	padding: 5px 0;
}

.ewu-acc__term {
	flex: 0 0 130px;
	opacity: 0.6;
}

.ewu-acc__desc {
	flex: 1 1 180px;
}

@media (max-width: 480px) {
	.ewu-acc__term {
		flex-basis: 110px;
	}
}

/* Pemilih ukuran: dua kotak kecil sejajar, ukuran dan harga dalam satu blok.
   Kelas ganda dipakai agar menang dari gaya tombol bawaan tema/Elementor,
   yang kalau dibiarkan membuat kotak ukuran berwarna oranye saat disorot. */
.ewu-size {
	margin: 24px 0 4px;
}

.ewu-size__heading {
	margin: 0 0 10px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.55;
}

.ewu-size__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ewu-size .ewu-size__option {
	flex: 0 1 auto;
	min-width: 136px;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: baseline;
	column-gap: 8px;
	row-gap: 2px;
	min-height: 0;
	padding: 10px 14px 11px;
	border: 1px solid #d6d2ca;
	border-radius: 8px;
	background: #fff;
	color: #111;
	font-family: inherit;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ewu-size .ewu-size__option:hover,
.ewu-size .ewu-size__option:focus-visible {
	border-color: #111;
	background: #fff;
	color: #111;
}

.ewu-size .ewu-size__option:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.ewu-size .ewu-size__option.is-active,
.ewu-size .ewu-size__option.is-active:hover {
	border-color: #111;
	background: #111;
	color: #fff;
}

/* Penanda centang tidak dipakai lagi: pilihan aktif cukup ditandai warna. */
.ewu-size__check {
	display: none;
}

.ewu-size__ml {
	grid-column: 1;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.ewu-size__name {
	grid-column: 2;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	opacity: 0.6;
}

.ewu-size__price {
	grid-column: 1 / -1;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.8;
}

.ewu-size__price .woocommerce-Price-amount,
.ewu-size__price bdi {
	color: inherit;
}

.ewu-from {
	font-size: 0.78em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.6;
}

/* Tombol beli marketplace: putih polos dengan ubin logo berwarna merek.
   Saat disorot seluruh tombol terisi warna merek. */
.ewu-mp {
	margin: 22px 0;
}

.ewu-mp__heading {
	margin: 0 0 10px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.55;
}

.ewu-mp__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ewu-mp .ewu-mp__btn {
	--ewu-mp-brand: #111;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex: 1 1 150px;
	min-height: 46px;
	padding: 8px 14px 8px 8px;
	border: 1px solid #d6d2ca;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Warna teks dikunci karena tema memberi warna abu pada semua tautan. */
.ewu-mp .ewu-mp__btn,
.ewu-mp .ewu-mp__btn:visited,
.ewu-mp .ewu-mp__btn .ewu-mp__label {
	color: #111 !important;
	text-decoration: none;
}

.ewu-mp .ewu-mp__btn::after {
	content: "\2197";
	margin-left: auto;
	font-size: 13px;
	opacity: 0.4;
}

.ewu-mp .ewu-mp__btn:hover,
.ewu-mp .ewu-mp__btn:focus-visible {
	border-color: var(--ewu-mp-brand);
	background: var(--ewu-mp-brand);
	text-decoration: none;
}

.ewu-mp .ewu-mp__btn:hover,
.ewu-mp .ewu-mp__btn:hover .ewu-mp__label,
.ewu-mp .ewu-mp__btn:focus-visible,
.ewu-mp .ewu-mp__btn:focus-visible .ewu-mp__label {
	color: #fff !important;
}

.ewu-mp .ewu-mp__btn:hover::after,
.ewu-mp .ewu-mp__btn:focus-visible::after {
	opacity: 0.8;
}

.ewu-mp .ewu-mp__btn:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.ewu-mp .ewu-mp__btn--shopee {
	--ewu-mp-brand: #ee4d2d;
}

.ewu-mp .ewu-mp__btn--tokopedia {
	--ewu-mp-brand: #03ac0e;
}

.ewu-mp .ewu-mp__btn--tiktokshop {
	--ewu-mp-brand: #0b0b0b;
}

.ewu-mp .ewu-mp__btn--whatsapp {
	--ewu-mp-brand: #25d366;
}

/* Grup tombol di halaman Find Us: komponen yang sama, tanpa jarak luar tambahan. */
.ewu-find__buttons.ewu-mp {
	margin: 0;
	gap: 8px;
}

.ewu-find__buttons.ewu-mp .ewu-mp__btn {
	max-width: 240px;
}

@media (max-width: 640px) {
	.ewu-find__buttons.ewu-mp.ewu-mp__buttons {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ewu-find__buttons.ewu-mp .ewu-mp__btn {
		max-width: none;
	}
}

/* Ubin logo: kotak kecil berwarna merek. */
.ewu-mp__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 4px;
	border-radius: 7px;
	background: var(--ewu-mp-brand);
	box-sizing: border-box;
}

.ewu-mp__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* HP: dua kolom. Kalau ketiga tombol lengkap, tombol pertama (Shopee)
   memanjang penuh di atas, lalu dua lainnya berdampingan di bawahnya.
   Kelas ganda dipakai agar spesifikasinya sama dengan aturan dasar. */
@media (max-width: 640px) {
	.ewu-mp__buttons {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ewu-mp .ewu-mp__btn {
		flex: none;
		min-width: 0;
	}

	.ewu-mp .ewu-mp__btn:first-child:nth-last-child(3),
	.ewu-mp .ewu-mp__btn:only-child {
		grid-column: 1 / -1;
	}

	/* Tombol setengah lebar: tanpa panah, tulisan satu baris. */
	.ewu-mp .ewu-mp__btn {
		gap: 8px;
		padding-right: 10px;
		font-size: 12.5px;
	}

	.ewu-mp .ewu-mp__btn .ewu-mp__label {
		white-space: nowrap;
	}

	.ewu-mp .ewu-mp__btn:not(:first-child:nth-last-child(3)):not(:only-child)::after {
		display: none;
	}

	.ewu-mp .ewu-mp__btn:not(:first-child:nth-last-child(3)):not(:only-child) {
		gap: 6px;
		padding: 8px 6px;
		font-size: 12px;
	}

	.ewu-mp .ewu-mp__btn:not(:first-child:nth-last-child(3)):not(:only-child) .ewu-mp__icon {
		width: 26px;
		height: 26px;
		padding: 3px;
	}
}

@media (max-width: 480px) {
	.ewu-size .ewu-size__option {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* Related Product: kartu bawaan melebar mengikuti 4 kolom layar, jadi saat
   hanya ada 2-3 produk fotonya sangat besar. Lebar kartu dibatasi. */
@media (min-width: 768px) {
	.single-product section.related ul.products.elementor-grid {
		grid-template-columns: repeat(4, minmax(0, 240px)) !important;
		justify-content: start;
		column-gap: 28px;
	}
}

@media (max-width: 767px) {
	.single-product section.related ul.products.elementor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 14px;
	}
}
