/**
 * Storefront Child – front-end styles.
 *
 * Palet:
 *   Primary   #0c335e  (navy)
 *   Secondary #4a8fa2  (teal blue)
 *   Accent    #78c1bd  (glacier teal)
 *   Surface   #ffffff / #f5f8fb
 *
 * Dimuat setelah style Storefront sehingga aman untuk override.
 */

:root {
	/* Brand */
	--sc-primary: #0c335e;
	--sc-primary-hover: #082544;
	--sc-primary-soft: #e9eff6;
	--sc-secondary: #4a8fa2;
	--sc-secondary-hover: #3b7788;
	--sc-accent: #78c1bd;
	--sc-accent-hover: #5aa9a7;
	--sc-accent-ink: #2a6c6e;
	--sc-ink: var(--sc-primary);
	--sc-ink-hover: var(--sc-primary-hover);
	--sc-cta-bg: var(--sc-accent);
	--sc-cta-ink: var(--sc-primary);
	--sc-cta-hover: var(--sc-accent-hover);

	/* Netral */
	--sc-text: #14212e;
	--sc-text-muted: #5b6b7b;
	--sc-border: #e2e8f0;
	--sc-surface: #ffffff;
	--sc-surface-alt: #f5f8fb;
	--sc-success: #2f7d5c;

	/* Layout & bentuk */
	--sc-container: 1200px;
	--sc-gap: 1.5rem;
	--sc-radius-xs: 8px;
	--sc-radius-sm: 12px;
	--sc-radius: 18px;
	--sc-radius-lg: 26px;
	--sc-radius-pill: 999px;
	--sc-shadow-sm: 0 1px 2px rgba(12, 51, 94, 0.05), 0 4px 12px rgba(12, 51, 94, 0.04);
	--sc-shadow: 0 10px 30px rgba(12, 51, 94, 0.08);
	--sc-shadow-lg: 0 20px 50px rgba(12, 51, 94, 0.14);

	/* Tipografi */
	--sc-font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sc-font-heading: var(--sc-font-sans);
	--sc-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------
 * Dasar
 * ---------------------------------------------------------------------- */

body.storefront-child {
	background: var(--sc-surface);
	color: var(--sc-text);
	font-family: var(--sc-font-sans);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.storefront-child button,
.storefront-child input,
.storefront-child select,
.storefront-child textarea {
	font-family: var(--sc-font-sans);
}

.storefront-child h1,
.storefront-child h2,
.storefront-child h3,
.storefront-child h4,
.storefront-child h5,
.storefront-child h6 {
	font-family: var(--sc-font-heading);
	color: var(--sc-ink);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.storefront-child h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.storefront-child h2 {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.storefront-child h3 {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.storefront-child p,
.storefront-child li {
	line-height: 1.75;
}

.storefront-child a {
	color: var(--sc-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--sc-transition);
}

.storefront-child a:hover,
.storefront-child a:focus {
	color: var(--sc-accent-ink);
}

.storefront-child ::selection {
	background: var(--sc-primary);
	color: #fff;
}

.storefront-child .entry-content img,
.storefront-child .wp-block-image img {
	border-radius: var(--sc-radius-sm);
}

/* Aksesibilitas: outline jelas saat navigasi keyboard. */
.storefront-child a:focus-visible,
.storefront-child button:focus-visible,
.storefront-child input:focus-visible,
.storefront-child textarea:focus-visible,
.storefront-child select:focus-visible {
	outline: 2px solid var(--sc-accent);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Announcement bar
 * ---------------------------------------------------------------------- */

.sc-announcement {
	background: var(--sc-primary);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.sc-announcement[hidden],
.sc-announcement.is-dismissed {
	display: none;
}

.sc-announcement__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	max-width: var(--sc-container);
	margin: 0 auto;
	padding: 0.65rem 3rem;
	position: relative;
}

.sc-announcement__text {
	margin: 0;
	text-align: center;
	color: inherit;
}

.sc-announcement__text a {
	color: var(--sc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sc-announcement__close {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: inherit;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--sc-transition);
}

.sc-announcement__close:hover,
.sc-announcement__close:focus {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Header & navigasi
 * ---------------------------------------------------------------------- */

/* Storefront memakai overflow-x: hidden pada body dan .site.
   Itu membuat scroll container baru dan mematikan position: sticky.
   `clip` tetap memotong overflow tanpa membuat scroll container. */
body.storefront-child,
.storefront-child .site {
	overflow-x: visible;
	overflow-x: clip;
}

.storefront-child .site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--sc-border);
}

.admin-bar.storefront-child .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar.storefront-child .site-header {
		top: 46px;
	}
}

/* Bar utama */
.sc-navbar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 76px;
}

/* Brand */
.sc-navbar__brand {
	display: flex;
	align-items: center;
	align-self: center;
	flex: 0 0 auto;
	min-width: 0;
	line-height: 0;
}

.sc-navbar__brand .custom-logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	line-height: 0;
}

.sc-navbar__brand .custom-logo {
	display: block;
	width: auto;
	max-height: 46px;
	border-radius: 0;
	vertical-align: middle;
}

.sc-navbar__brand-link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: center;
	line-height: 1.15;
	text-decoration: none;
}

.sc-navbar__title {
	color: var(--sc-ink);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.sc-navbar__brand-link:hover .sc-navbar__title {
	color: var(--sc-ink-hover);
}

.sc-navbar__tagline {
	margin-top: 0.15rem;
	color: var(--sc-text-muted);
	font-size: 0.75rem;
	font-weight: 500;
}

/* Menu desktop */
.sc-navbar__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.sc-navbar__nav ul.sc-menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-navbar__nav .menu-item {
	position: relative;
	margin: 0;
}

.sc-navbar__nav .menu-item > a {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.85rem;
	border-radius: var(--sc-radius-pill);
	color: var(--sc-text);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--sc-transition), color var(--sc-transition);
}

.sc-navbar__nav .menu-item > a:hover,
.sc-navbar__nav .menu-item > a:focus-visible,
.sc-navbar__nav .menu-item.current-menu-item > a,
.sc-navbar__nav .menu-item.current-menu-ancestor > a {
	background: var(--sc-primary-soft);
	color: var(--sc-ink);
}

/* Dropdown desktop */
.sc-navbar__nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 1000;
	min-width: 230px;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: var(--sc-surface);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius-sm);
	box-shadow: var(--sc-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--sc-transition), transform var(--sc-transition),
		visibility var(--sc-transition);
}

.sc-navbar__nav .menu-item:hover > .sub-menu,
.sc-navbar__nav .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sc-navbar__nav .sub-menu .menu-item {
	width: 100%;
}

.sc-navbar__nav .sub-menu .menu-item > a {
	display: flex;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border-radius: var(--sc-radius-xs);
	font-size: 0.9rem;
	white-space: normal;
}

.sc-navbar__nav .sub-menu .sub-menu {
	top: 0;
	left: calc(100% + 6px);
}

/* Tombol accordion submenu (hanya mobile) */
.sc-navbar__nav .sc-submenu-toggle {
	display: none;
}

/* Aksi kanan */
.sc-navbar__actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 0 0 auto;
}

.sc-nav-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sc-ink);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--sc-transition), color var(--sc-transition);
}

.sc-nav-icon:hover,
.sc-nav-icon:focus-visible {
	background: var(--sc-primary-soft);
	color: var(--sc-ink);
}

.sc-nav-icon svg {
	display: block;
}

.sc-cart {
	position: relative;
}

.sc-cart-count {
	position: absolute;
	top: 3px;
	right: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: var(--sc-radius-pill);
	background: var(--sc-accent);
	color: var(--sc-primary);
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 1;
}

.sc-cart-count.is-empty {
	display: none;
}

.sc-navbar .sc-navbar__cta {
	padding: 0.65rem 1.25rem;
	font-size: 0.875rem;
	box-shadow: none;
}

/* Warna CTA mengikuti Customizer; teks otomatis kontras. */
.storefront-child .sc-navbar .sc-navbar__cta {
	background: var(--sc-cta-bg);
	color: var(--sc-cta-ink);
}

.storefront-child .sc-navbar .sc-navbar__cta:hover,
.storefront-child .sc-navbar .sc-navbar__cta:focus-visible {
	background: var(--sc-cta-hover);
	color: var(--sc-cta-ink);
	box-shadow: none;
}

/* Hamburger */
.sc-navbar__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sc-border);
	border-radius: 50%;
	background: var(--sc-surface);
	color: var(--sc-ink);
	cursor: pointer;
	transition: background var(--sc-transition), border-color var(--sc-transition);
}

.sc-navbar__toggle:hover {
	background: var(--sc-primary-soft);
	border-color: var(--sc-primary-soft);
}

.sc-navbar__toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--sc-transition), opacity var(--sc-transition);
}

.sc-navbar__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.sc-navbar__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.sc-navbar__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Panel pencarian desktop */
.sc-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 1001;
	width: min(360px, calc(100vw - 2rem));
	padding: 1rem;
	background: var(--sc-surface);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	box-shadow: var(--sc-shadow-lg);
}

.sc-search-panel[hidden] {
	display: none;
}

.sc-search-panel .search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sc-search-panel .search-form label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.sc-search-panel .search-field {
	width: 100%;
}

.sc-search-panel .search-submit {
	flex: 0 0 auto;
	padding: 0.7rem 1.1rem;
}

/* Panel preferensi: bahasa + tema terang/gelap */
.sc-prefs-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 1002;
	width: min(340px, calc(100vw - 2rem));
	padding: 1rem;
	background: var(--sc-surface);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	box-shadow: var(--sc-shadow-lg);
}

.sc-prefs-panel[hidden] {
	display: none;
}

.sc-prefs-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.sc-prefs-panel__title {
	margin: 0;
	color: var(--sc-ink);
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.sc-prefs-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sc-surface-alt);
	color: var(--sc-ink);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--sc-transition), color var(--sc-transition);
}

.sc-prefs-close:hover,
.sc-prefs-close:focus-visible {
	background: var(--sc-primary-soft);
}

.sc-prefs-group + .sc-prefs-group {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--sc-border);
}

.sc-prefs-label {
	margin: 0 0 0.55rem;
	color: var(--sc-text-muted);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sc-prefs-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.storefront-child .sc-prefs-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius-sm);
	background: var(--sc-surface);
	color: var(--sc-text);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--sc-transition), border-color var(--sc-transition),
		color var(--sc-transition), box-shadow var(--sc-transition);
}

.storefront-child .sc-prefs-option:hover,
.storefront-child .sc-prefs-option:focus-visible {
	background: var(--sc-surface-alt);
	border-color: var(--sc-secondary);
	color: var(--sc-text);
	text-decoration: none;
}

.storefront-child .sc-prefs-option.is-active {
	background: var(--sc-primary-soft);
	border-color: var(--sc-ink);
	color: var(--sc-ink);
	box-shadow: inset 0 0 0 1px var(--sc-ink);
}

.storefront-child .sc-prefs-option svg {
	flex: 0 0 auto;
}

.sc-prefs-flag {
	font-size: 1.05rem;
	line-height: 1;
}

/* Pencarian hanya lewat ikon navbar.
   Sembunyikan widget & block search di area header, termasuk Header
   widget region Storefront (block WooCommerce Product Search). */
.storefront-child .header-widget-region .widget_search,
.storefront-child .header-widget-region .widget_product_search,
.storefront-child .header-widget-region .wp-block-search,
.storefront-child .header-widget-region .wp-block-woocommerce-product-search,
.storefront-child .header-widget-region .wc-block-product-search,
.storefront-child .site-header .wp-block-search,
.storefront-child .site-header .wp-block-woocommerce-product-search,
.storefront-child .site-header .wc-block-product-search {
	display: none !important;
}

/* Widget wrapper yang isinya hanya search ikut dihilangkan agar tidak
   menyisakan ruang kosong di bawah header. */
.storefront-child .header-widget-region .widget:has(.wp-block-woocommerce-product-search),
.storefront-child .header-widget-region .widget:has(.wp-block-search),
.storefront-child .header-widget-region .widget:has(.wc-block-product-search) {
	display: none !important;
}

/* Konten tambahan di panel mobile */
.sc-navbar__mobile-extra {
	display: none;
}

.sc-navbar__mobile-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--sc-border);
}

.sc-navbar__mobile-link {
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

/* Tablet & mobile */
@media screen and (max-width: 1023px) {
	.sc-navbar {
		min-height: 66px;
	}

	.sc-navbar__nav {
		display: none;
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		z-index: 1000;
		max-height: calc(100vh - 160px);
		padding: 0.75rem;
		overflow-y: auto;
		background: var(--sc-surface);
		border: 1px solid var(--sc-border);
		border-radius: var(--sc-radius);
		box-shadow: var(--sc-shadow-lg);
	}

	.sc-navbar__nav.is-open {
		display: block;
	}

	.sc-navbar__nav ul.sc-menu {
		display: block;
	}

	.sc-navbar__nav .menu-item {
		display: block;
	}

	.sc-navbar__nav .menu-item > a {
		display: flex;
		width: 100%;
		padding: 0.7rem 0.85rem;
		border-radius: var(--sc-radius-sm);
		white-space: normal;
	}

	.sc-navbar__nav .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin: 0 0 0 0.9rem;
		padding: 0.15rem 0 0.15rem 0.75rem;
		border: 0;
		border-left: 2px solid var(--sc-border);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.sc-navbar__nav .sub-menu .menu-item > a {
		padding: 0.5rem 0.75rem;
		font-size: 0.9rem;
	}

	.storefront-child .sc-navbar__actions .sc-nav-account,
	.storefront-child .sc-navbar__actions .sc-navbar__cta {
		display: none;
	}

	.sc-navbar__toggle {
		display: inline-flex;
	}

	.sc-navbar__mobile-extra {
		display: block;
	}

	.sc-search-panel {
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		width: auto;
	}

	.sc-prefs-panel {
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		width: auto;
	}

	/* Accordion submenu setelah JS aktif */
	.sc-navbar__nav.is-enhanced .menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.sc-navbar__nav.is-enhanced .menu-item-has-children > a {
		flex: 1 1 auto;
	}

	.sc-navbar__nav.is-enhanced .sc-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 36px;
		height: 36px;
		margin-right: 0.25rem;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--sc-primary-soft);
		color: var(--sc-ink);
		cursor: pointer;
	}

	.sc-navbar__nav.is-enhanced .sc-submenu-toggle svg {
		transition: transform var(--sc-transition);
	}

	.sc-navbar__nav.is-enhanced .sc-submenu-toggle[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	.sc-navbar__nav.is-enhanced .sub-menu {
		display: none;
		width: 100%;
	}

	.sc-navbar__nav.is-enhanced .menu-item.is-submenu-open > .sub-menu {
		display: block;
	}
}

/* -------------------------------------------------------------
 * Tombol & form
 * ---------------------------------------------------------- */

.storefront-child .button,
.storefront-child input[type="button"],
.storefront-child input[type="reset"],
.storefront-child input[type="submit"],
.storefront-child .sc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--sc-radius-pill);
	background: var(--sc-primary);
	color: #fff;
	font-family: var(--sc-font-sans);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--sc-shadow-sm);
	transition: background var(--sc-transition), color var(--sc-transition),
		border-color var(--sc-transition), box-shadow var(--sc-transition),
		transform var(--sc-transition);
}

.storefront-child .button:hover,
.storefront-child input[type="submit"]:hover,
.storefront-child .sc-button:hover {
	background: var(--sc-primary-hover);
	color: #fff;
	text-decoration: none;
	box-shadow: var(--sc-shadow);
}

.storefront-child .button:active,
.storefront-child .sc-button:active {
	transform: translateY(1px);
}

/* Varian tombol */
.sc-button--accent,
.storefront-child .sc-button--accent {
	background: var(--sc-accent);
	color: var(--sc-primary);
}

.sc-button--accent:hover,
.storefront-child .sc-button--accent:hover {
	background: var(--sc-accent-hover);
	color: var(--sc-primary);
}

.sc-button--secondary,
.storefront-child .sc-button--secondary {
	background: var(--sc-surface);
	border-color: var(--sc-border);
	color: var(--sc-ink);
	box-shadow: none;
}

.sc-button--secondary:hover,
.storefront-child .sc-button--secondary:hover {
	background: var(--sc-primary-soft);
	border-color: var(--sc-primary-soft);
	color: var(--sc-ink);
	box-shadow: none;
}

.sc-button--ghost,
.storefront-child .sc-button--ghost {
	background: transparent;
	border-color: var(--sc-ink);
	color: var(--sc-ink);
	box-shadow: none;
}

.sc-button--ghost:hover,
.storefront-child .sc-button--ghost:hover {
	background: var(--sc-primary);
	border-color: var(--sc-primary);
	color: #fff;
	box-shadow: none;
}

/* Input & form */
.storefront-child input[type="text"],
.storefront-child input[type="email"],
.storefront-child input[type="url"],
.storefront-child input[type="password"],
.storefront-child input[type="search"],
.storefront-child input[type="tel"],
.storefront-child input[type="number"],
.storefront-child input[type="date"],
.storefront-child textarea,
.storefront-child select {
	padding: 0.7rem 1rem;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius-sm);
	background: var(--sc-surface);
	color: var(--sc-text);
	font-size: 0.9375rem;
	transition: border-color var(--sc-transition), box-shadow var(--sc-transition);
}

.storefront-child input[type="text"]:focus,
.storefront-child input[type="email"]:focus,
.storefront-child input[type="url"]:focus,
.storefront-child input[type="password"]:focus,
.storefront-child input[type="search"]:focus,
.storefront-child input[type="tel"]:focus,
.storefront-child input[type="number"]:focus,
.storefront-child input[type="date"]:focus,
.storefront-child textarea:focus,
.storefront-child select:focus {
	border-color: var(--sc-secondary);
	box-shadow: 0 0 0 4px rgba(61, 111, 158, 0.14);
	outline: 0;
}

.storefront-child ::placeholder {
	color: #94a3b3;
	opacity: 1;
}

/* -------------------------------------------------------------------------
 * Konten & blok
 * ---------------------------------------------------------------------- */

.storefront-child .entry-content {
	font-size: 1.0625rem;
}

.storefront-child .entry-content > * + * {
	margin-top: 1.25rem;
}

.storefront-child blockquote,
.storefront-child .wp-block-quote {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	border: 0;
	border-left: 3px solid var(--sc-accent);
	border-radius: 0 var(--sc-radius) var(--sc-radius) 0;
	background: var(--sc-surface-alt);
	color: var(--sc-text);
	font-size: 1.075rem;
	font-style: normal;
}

.storefront-child blockquote p:last-child,
.storefront-child .wp-block-quote p:last-child {
	margin-bottom: 0;
}

.storefront-child .wp-block-button__link {
	padding: 0.8rem 1.75rem;
	border-radius: var(--sc-radius-pill);
	background: var(--sc-primary);
	color: #fff;
	font-family: var(--sc-font-sans);
	font-weight: 700;
	text-decoration: none;
}

.storefront-child .wp-block-button__link:hover {
	background: var(--sc-primary-hover);
	color: #fff;
}

.storefront-child .has-primary-background-color {
	background-color: var(--sc-primary) !important;
}

.storefront-child .has-primary-color {
	color: var(--sc-primary) !important;
}

.storefront-child .has-accent-background-color {
	background-color: var(--sc-accent) !important;
}

.storefront-child .has-accent-color {
	color: var(--sc-accent-ink) !important;
}

.storefront-child .entry-content table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius-sm);
	overflow: hidden;
}

.storefront-child .entry-content table th,
.storefront-child .entry-content table td {
	border-color: var(--sc-border);
	padding: 0.8rem 1rem;
}

.storefront-child .entry-content table th {
	background: var(--sc-surface-alt);
	color: var(--sc-ink);
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * WooCommerce – arsip produk
 * ---------------------------------------------------------------------- */

.storefront-child .woocommerce ul.products {
	gap: var(--sc-gap);
}

.storefront-child .woocommerce ul.products li.product,
.storefront-child .woocommerce-page ul.products li.product {
	background: var(--sc-surface);
	border: 1px solid transparent;
	border-radius: var(--sc-radius);
	box-shadow: var(--sc-shadow-sm);
	overflow: hidden;
	transition: box-shadow var(--sc-transition), transform var(--sc-transition);
}

.storefront-child .woocommerce ul.products li.product:hover,
.storefront-child .woocommerce-page ul.products li.product:hover {
	box-shadow: var(--sc-shadow);
	transform: translateY(-4px);
}

.storefront-child .woocommerce ul.products li.product a img {
	margin-bottom: 0;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.storefront-child .woocommerce ul.products li.product:hover a img {
	transform: scale(1.03);
}

.storefront-child .woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 1rem 1.1rem 0.4rem;
	color: var(--sc-text);
	font-family: var(--sc-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.storefront-child .woocommerce ul.products li.product .price {
	padding: 0 1.1rem;
	color: var(--sc-ink);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.storefront-child .woocommerce ul.products li.product .price del {
	color: var(--sc-text-muted);
	font-weight: 500;
	opacity: 1;
}

.storefront-child .woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

.storefront-child .woocommerce ul.products li.product .button {
	width: calc(100% - 2.2rem);
	margin: 0.85rem 1.1rem 1.1rem;
	padding: 0.65rem 1rem;
	font-size: 0.875rem;
	box-shadow: none;
}

.storefront-child .woocommerce ul.products li.product .button:hover {
	box-shadow: none;
}

.storefront-child .woocommerce ul.products li.product .star-rating {
	margin: 0 1.1rem 0.5rem;
	color: var(--sc-accent);
}

.storefront-child .woocommerce .star-rating::before {
	color: rgba(12, 51, 94, 0.18);
}

/* Badge diskon */
.storefront-child .sc-onsale {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 28px;
	padding: 0 0.7rem;
	border-radius: var(--sc-radius-pill);
	background: var(--sc-accent);
	color: var(--sc-primary);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
}

/* -------------------------------------------------------------
 * WooCommerce – single product
 * ---------------------------------------------------------- */

.storefront-child .woocommerce div.product div.images img {
	border-radius: var(--sc-radius);
}

.storefront-child .woocommerce div.product div.images .flex-control-thumbs li img {
	border-radius: var(--sc-radius-xs);
	opacity: 0.6;
}

.storefront-child .woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.storefront-child .woocommerce div.product div.images .flex-control-thumbs li img:hover {
	opacity: 1;
}

.storefront-child .woocommerce div.product .product_title {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.storefront-child .single-product .product .summary .price {
	color: var(--sc-ink);
	font-size: 1.85rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.storefront-child .single-product .product .summary .price del {
	color: var(--sc-text-muted);
	font-size: 1.125rem;
	font-weight: 500;
}

.storefront-child .single-product .product .summary .price ins {
	text-decoration: none;
}

.storefront-child .woocommerce div.product form.cart .button {
	padding: 0.9rem 2.25rem;
}

.storefront-child .woocommerce div.product form.cart div.quantity {
	margin-right: 0.75rem;
}

.storefront-child .woocommerce .quantity .qty {
	width: 4.5rem;
	padding: 0.7rem 0.5rem;
	border-radius: var(--sc-radius-pill);
	text-align: center;
}

.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--sc-border);
}

.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs::before,
.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 0.25rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 0.75rem 1.1rem;
	border-radius: var(--sc-radius-pill) var(--sc-radius-pill) 0 0;
	color: var(--sc-text-muted);
	font-weight: 600;
}

.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--sc-ink);
	box-shadow: inset 0 -3px 0 var(--sc-accent);
}

.storefront-child .woocommerce div.product .woocommerce-tabs .panel {
	padding: 1.5rem;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	background: var(--sc-surface);
}

/* Trust badges & catatan pengiriman */
.sc-trust-badges {
	display: grid;
	gap: 0.65rem;
	margin: 1.25rem 0 0;
	padding: 1.1rem 1.25rem;
	list-style: none;
	background: var(--sc-primary-soft);
	border: 0;
	border-radius: var(--sc-radius);
}

.sc-trust-badges__item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	color: var(--sc-ink);
	font-size: 0.875rem;
	font-weight: 500;
}

.sc-trust-badges__icon {
	font-size: 1.1rem;
	line-height: 1;
}

.sc-shipping-note {
	margin-top: 1rem;
	padding: 0.8rem 1.1rem;
	border-left: 3px solid var(--sc-success);
	border-radius: 0 var(--sc-radius-sm) var(--sc-radius-sm) 0;
	background: rgba(47, 125, 92, 0.08);
	color: var(--sc-success);
	font-size: 0.875rem;
	font-weight: 500;
}

/* Notices & pagination */
.storefront-child .woocommerce-message,
.storefront-child .woocommerce-info,
.storefront-child .woocommerce-error,
.storefront-child .woocommerce-noreviews {
	padding: 1rem 1.25rem;
	border: 0;
	border-left: 3px solid var(--sc-primary);
	border-radius: var(--sc-radius-sm);
	background: var(--sc-surface-alt);
	color: var(--sc-text);
	font-weight: 500;
}

.storefront-child .woocommerce-message {
	border-left-color: var(--sc-success);
}

.storefront-child .woocommerce-error {
	border-left-color: #c0392b;
}

.storefront-child .woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 0.4rem;
	margin-top: 2rem;
	border: 0;
}

.storefront-child .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.storefront-child .woocommerce-pagination ul.page-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.75rem;
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius-pill);
	color: var(--sc-text);
	font-weight: 600;
	text-decoration: none;
}

.storefront-child .woocommerce-pagination ul.page-numbers .page-numbers:hover,
.storefront-child .woocommerce-pagination ul.page-numbers .page-numbers.current {
	border-color: var(--sc-primary);
	background: var(--sc-primary);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Floating actions
 * ---------------------------------------------------------------------- */

.sc-floating-actions {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 900;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.sc-floating-actions a,
.sc-floating-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: var(--sc-shadow);
	cursor: pointer;
	transition: transform var(--sc-transition), background var(--sc-transition);
}

.sc-floating-actions a:hover,
.sc-floating-actions button:hover {
	transform: translateY(-3px);
}

.sc-whatsapp {
	background: #25d366;
	color: #fff;
}

.sc-whatsapp:hover {
	background: #1ebe5b;
	color: #fff;
}

.sc-back-to-top {
	background: var(--sc-primary);
	color: #fff;
}

.sc-back-to-top:hover {
	background: var(--sc-primary-hover);
	color: #fff;
}

.sc-back-to-top[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.storefront-child .site-footer {
	border-top: 0;
	background: var(--sc-primary);
	color: rgba(255, 255, 255, 0.72);
}

.storefront-child .site-footer h1,
.storefront-child .site-footer h2,
.storefront-child .site-footer h3,
.storefront-child .site-footer h4 {
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.storefront-child .site-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.storefront-child .site-footer a:hover,
.storefront-child .site-footer a:focus {
	color: var(--sc-accent);
}

.storefront-child .site-footer .widget ul li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.storefront-child .site-footer .widget ul li a {
	padding: 0.35rem 0;
	display: inline-block;
}

.sc-site-info {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
}

.sc-site-info__custom {
	margin-bottom: 0.5rem;
	color: rgba(255, 255, 255, 0.78);
}

.sc-site-info__legal {
	margin: 0;
}

.sc-site-info__legal a {
	color: #fff;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Tema gelap
 * ---------------------------------------------------------------------- */

html[data-theme="dark"] {
	color-scheme: dark;
	background-color: #0b1622;
	--sc-primary: #12365c;
	--sc-primary-hover: #0a2742;
	--sc-primary-soft: #17293c;
	--sc-secondary: #6fb3c2;
	--sc-secondary-hover: #4a8fa2;
	--sc-accent: #78c1bd;
	--sc-accent-hover: #5aa9a7;
	--sc-accent-ink: #9bd8d3;
	--sc-ink: #b9d4ef;
	--sc-ink-hover: #dceaf8;
	--sc-text: #e6edf5;
	--sc-text-muted: #a7b7c8;
	--sc-border: #26384c;
	--sc-surface: #0b1622;
	--sc-surface-alt: #101f2f;
	--sc-success: #6fd3a7;
	--sc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
	--sc-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	--sc-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] body.storefront-child,
html[data-theme="dark"] body.storefront-child #page,
html[data-theme="dark"] body.storefront-child .site,
html[data-theme="dark"] body.storefront-child .site-content,
html[data-theme="dark"] body.storefront-child .content-area,
html[data-theme="dark"] body.storefront-child .widget-area {
	background-color: var(--sc-surface);
	color: var(--sc-text);
}

html[data-theme="dark"] body.storefront-child .site-header {
	background: rgba(11, 22, 34, 0.94);
	border-bottom-color: var(--sc-border);
}

html[data-theme="dark"] body.storefront-child .sc-announcement {
	background: #0e2a46;
}

html[data-theme="dark"] body.storefront-child .site-footer {
	background: #07131e;
}

html[data-theme="dark"] body.storefront-child .sc-navbar__brand .custom-logo {
	filter: brightness(0) invert(1);
}

html[data-theme="dark"] body.storefront-child .sc-navbar__toggle,
html[data-theme="dark"] body.storefront-child .sc-prefs-close {
	background: var(--sc-surface-alt);
}

html[data-theme="dark"] body.storefront-child .sc-navbar__toggle:hover,
html[data-theme="dark"] body.storefront-child .sc-prefs-close:hover {
	background: var(--sc-primary-soft);
}

html[data-theme="dark"] body.storefront-child .sc-search-panel,
html[data-theme="dark"] body.storefront-child .sc-prefs-panel,
html[data-theme="dark"] body.storefront-child .sc-navbar__nav,
html[data-theme="dark"] body.storefront-child .sc-navbar__nav .sub-menu {
	background: var(--sc-surface);
	border-color: var(--sc-border);
}

html[data-theme="dark"] body.storefront-child ::placeholder {
	color: #7e91a5;
}

html[data-theme="dark"] body.storefront-child .has-primary-color {
	color: var(--sc-ink) !important;
}

html[data-theme="dark"] body.storefront-child .sc-shipping-note {
	background: rgba(111, 211, 167, 0.12);
	color: var(--sc-success);
}

html[data-theme="dark"] body.storefront-child .sc-trust-badges {
	background: var(--sc-primary-soft);
}

html[data-theme="dark"] body.storefront-child .woocommerce ul.products li.product,
html[data-theme="dark"] body.storefront-child .woocommerce div.product .woocommerce-tabs .panel {
	background: var(--sc-surface);
	border-color: var(--sc-border);
}

html[data-theme="dark"] body.storefront-child .woocommerce-message,
html[data-theme="dark"] body.storefront-child .woocommerce-info,
html[data-theme="dark"] body.storefront-child .woocommerce-error,
html[data-theme="dark"] body.storefront-child .woocommerce-noreviews {
	background: var(--sc-surface-alt);
	color: var(--sc-text);
}

html[data-theme="dark"] body.storefront-child .woocommerce table.shop_table,
html[data-theme="dark"] body.storefront-child .woocommerce table.shop_attributes,
html[data-theme="dark"] body.storefront-child .woocommerce .cart_totals,
html[data-theme="dark"] body.storefront-child .woocommerce-checkout #payment {
	background: var(--sc-surface);
	color: var(--sc-text);
	border-color: var(--sc-border);
}

html[data-theme="dark"] body.storefront-child .woocommerce table.shop_table th,
html[data-theme="dark"] body.storefront-child .woocommerce table.shop_table td,
html[data-theme="dark"] body.storefront-child .woocommerce table.shop_attributes th,
html[data-theme="dark"] body.storefront-child .woocommerce table.shop_attributes td {
	background: transparent;
	color: var(--sc-text);
	border-color: var(--sc-border);
}

html[data-theme="dark"] body.storefront-child .woocommerce table.shop_table th,
html[data-theme="dark"] body.storefront-child .woocommerce table.shop_attributes th {
	background: var(--sc-surface-alt);
}

html[data-theme="dark"] body.storefront-child .storefront-breadcrumb,
html[data-theme="dark"] body.storefront-child .woocommerce-breadcrumb {
	background: var(--sc-surface-alt);
	color: var(--sc-text-muted);
}

html[data-theme="dark"] body.storefront-child .woocommerce table.cart td.actions,
html[data-theme="dark"] body.storefront-child .woocommerce-cart .cart-collaterals .cart_totals table {
	background: transparent;
}

html[data-theme="dark"] body.storefront-child .woocommerce-MyAccount-navigation ul li a {
	background: var(--sc-surface-alt);
	color: var(--sc-text);
}

html[data-theme="dark"] body.storefront-child .woocommerce-MyAccount-navigation ul li.is-active a,
html[data-theme="dark"] body.storefront-child .woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--sc-primary-soft);
	color: var(--sc-ink);
}

html[data-theme="dark"] body.storefront-child .woocommerce-checkout #payment div.payment_box {
	background: var(--sc-surface-alt);
	color: var(--sc-text);
}

html[data-theme="dark"] body.storefront-child .woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--sc-surface-alt);
}

html[data-theme="dark"] body.storefront-child .woocommerce form.checkout_coupon,
html[data-theme="dark"] body.storefront-child .woocommerce form.login,
html[data-theme="dark"] body.storefront-child .woocommerce form.register,
html[data-theme="dark"] body.storefront-child .woocommerce #reviews #comments ol.commentlist li .comment-text {
	background: var(--sc-surface-alt);
	border-color: var(--sc-border);
	color: var(--sc-text);
}

html[data-theme="dark"] body.storefront-child .woocommerce .woocommerce-breadcrumb,
html[data-theme="dark"] body.storefront-child .woocommerce .woocommerce-result-count,
html[data-theme="dark"] body.storefront-child .woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--sc-text-muted);
}

html[data-theme="dark"] body.storefront-child .woocommerce .star-rating::before,
html[data-theme="dark"] body.storefront-child .woocommerce .star-rating span::before {
	color: rgba(185, 212, 239, 0.28);
}

html[data-theme="dark"] body.storefront-child .woocommerce .star-rating span::before {
	color: var(--sc-accent);
}

html[data-theme="dark"] body.storefront-child .select2-container--default .select2-selection--single,
html[data-theme="dark"] body.storefront-child .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] body.storefront-child .select2-container--default .select2-search--dropdown .select2-search__field,
html[data-theme="dark"] body.storefront-child .select2-dropdown {
	background: var(--sc-surface);
	border-color: var(--sc-border);
	color: var(--sc-text);
}

html[data-theme="dark"] body.storefront-child .select2-container--default .select2-results__option[aria-selected="true"],
html[data-theme="dark"] body.storefront-child .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--sc-primary-soft);
	color: var(--sc-ink);
}

/* -------------------------------------------------------------------------
 * Responsif
 * ---------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
	:root {
		--sc-gap: 1rem;
		--sc-radius: 16px;
		--sc-radius-lg: 22px;
	}

	.sc-announcement__inner {
		padding-right: 2.9rem;
		padding-left: 1rem;
	}

	.sc-announcement__text {
		font-size: 0.78125rem;
		text-align: left;
	}

	.storefront-child .woocommerce ul.products li.product .button {
		width: calc(100% - 1.7rem);
		margin: 0.7rem 0.85rem 0.9rem;
	}

	.storefront-child .woocommerce div.product .woocommerce-tabs .panel {
		padding: 1.1rem;
	}

	.sc-floating-actions {
		right: 0.85rem;
		bottom: 0.85rem;
	}
}

@media screen and (max-width: 480px) {
	.sc-navbar {
		gap: 0.45rem;
		min-height: 60px;
	}

	.sc-nav-icon {
		width: 38px;
		height: 38px;
	}

	.sc-navbar__toggle {
		width: 40px;
		height: 40px;
	}

	.sc-navbar__brand .custom-logo {
		max-height: 38px;
		max-width: 100%;
	}

	.sc-navbar__brand {
		max-width: 42%;
	}

	.sc-prefs-options {
		grid-template-columns: 1fr;
	}
}

/* Hormati preferensi pengguna yang mengurangi animasi. */
@media (prefers-reduced-motion: reduce) {
	.storefront-child *,
	.storefront-child *::before,
	.storefront-child *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
