/*
Theme Name: Lawang
Theme URI: https://demo.jcamp.biz/woocommerce/
Author: JCamp
Author URI: https://jcamp.biz/
Description: Tema WooCommerce untuk toko furnitur. Dibangun dengan Tailwind CSS v4, Alpine.js, Swiper, dan Tabler Icons. Mendukung katalog produk, keranjang, checkout, halaman akun, daftar keinginan, serta blog.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lawang
Tags: e-commerce, custom-menu, featured-images, translation-ready, threaded-comments
WC requires at least: 8.0
WC tested up to: 9.9
*/

/*
Seluruh gaya tampilan tema dikompilasi Tailwind CSS ke assets/css/main.min.css.
Berkas ini menyimpan header tema WordPress dan penyesuaian WooCommerce.
*/

.button:disabled,
button.button[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

#lawang-notices:empty {
	display: none;
}

#lawang-notices:not(:empty) {
	padding-top: 1rem;
}

.lawang-notice {
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
	padding: 1rem 1.25rem;
	margin: 1rem 0;
	border: 1px solid rgba(3, 62, 43, 0.15);
	border-radius: 1rem;
	background: rgba(227, 239, 231, 0.4);
}

@media (min-width: 640px) {
	.lawang-notice {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
}

.lawang-notice__body {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
}

@media (min-width: 640px) {
	.lawang-notice__body {
		align-items: center;
	}
}

.lawang-notice__icon {
	flex-shrink: 0;
	font-size: 1.35rem;
	line-height: 1;
	color: #033e2b;
}

.lawang-notice__text {
	flex: 1;
	min-width: 0;
	font-size: 0.75rem;
	line-height: 1.6;
	color: #111827;
}

@media (min-width: 640px) {
	.lawang-notice__text {
		font-size: 0.875rem;
	}
}

.lawang-notice__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	align-self: flex-end;
}

@media (min-width: 640px) {
	.lawang-notice__actions {
		align-self: center;
	}
}

.lawang-notice__btn,
.lawang-notice .button,
.lawang-notice a.wc-forward {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	padding: 0.5rem 1rem !important;
	border-radius: 9999px !important;
	background: #033e2b !important;
	border: 0 !important;
	color: #fff !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.lawang-notice__btn:hover,
.lawang-notice .button:hover,
.lawang-notice a.wc-forward:hover {
	background: #022f21 !important;
	color: #fff !important;
}

.lawang-notice-dismiss {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem;
	border: 0;
	background: transparent;
	color: #9ca3af;
	border-radius: 9999px;
	cursor: pointer;
}

.lawang-notice-dismiss:hover {
	color: #374151;
}

.lawang-notice--error {
	background: rgba(254, 242, 242, 0.85);
	border-color: rgba(217, 56, 56, 0.3);
}

.lawang-notice--error .lawang-notice__icon {
	color: #d93838;
}

.lawang-notice--error .lawang-notice__btn {
	background: #d93838 !important;
}

.lawang-notice--info {
	background: #f1f0e9;
	border-color: #e5e7eb;
}

.lawang-notice--info .lawang-notice__icon {
	color: #374151;
}

.woocommerce-thankyou-order-received:not(.lawang-notice),
.woocommerce-thankyou-order-failed:not(.lawang-notice) {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(3, 62, 43, 0.15);
	border-radius: 1rem;
	font-size: 0.875rem;
	background: rgba(227, 239, 231, 0.4);
}

.woocommerce-thankyou-order-failed:not(.lawang-notice) {
	background: rgba(254, 242, 242, 0.85);
	border-color: rgba(217, 56, 56, 0.3);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lawang-fieldset {
	display: block;
}

.lawang-fieldset .select2-container,
.woocommerce-form-row .select2-container {
	width: 100% !important;
}

.select2-container .select2-selection--single {
	height: auto !important;
	padding: 0.75rem 1rem !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 0.75rem !important;
}

.required {
	color: #d93838;
}

.stock.in-stock {
	font-size: 0.875rem;
	color: #16a34a;
}

.stock.out-of-stock {
	font-size: 0.875rem;
	color: #dc2626;
}

.lawang-wishlist-toggle[data-active="1"] {
	color: #d93838;
	border-color: rgba(217, 56, 56, 0.3);
}

.lawang-wishlist-toggle--inline {
	position: relative;
	top: auto;
	right: auto;
	opacity: 1;
	flex-shrink: 0;
}

.lawang-wishlist-toggle[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	background: #111827;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.lawang-wishlist-toggle[data-tooltip]:hover::after,
.lawang-wishlist-toggle[data-tooltip]:focus-visible::after {
	opacity: 1;
	visibility: visible;
}

/* Font Tabler di tema tidak punya glif filled; pakai hati yang sama. */
.ti-heart-filled::before {
	content: "\eabe";
}

.label {
	display: inline-block;
	margin-bottom: 0.375rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.input,
textarea.input,
select.input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	background: #fff;
	font-size: 0.875rem;
}

.input:focus,
textarea.input:focus,
select.input:focus {
	outline: none;
	border-color: #033e2b;
	box-shadow: 0 0 0 1px #033e2b;
}

.button {
	display: inline-block;
	background: #033e2b;
	color: #fff;
	border: 1px solid #033e2b;
	border-radius: 9999px;
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
	background: #022f21;
	color: #fff;
}

.button.button-outline {
	background: transparent;
	color: #033e2b;
}

.button.button-outline:hover {
	background: #033e2b;
	color: #fff;
}

.quantity .qty {
	appearance: textfield;
	-moz-appearance: textfield;
	width: 2rem;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: #111827;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr 1fr;
	}

	.form-row-wide,
	.lawang-field.form-row-wide {
		grid-column: 1 / -1;
	}
}

.woocommerce-shipping-totals table,
.woocommerce-shipping-methods {
	width: 100%;
}

.woocommerce-shipping-totals tr,
.woocommerce-shipping-totals .woocommerce-shipping-totals__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

#place_order {
	width: 100%;
}

.single_add_to_cart_button.button.alt {
	background: #f1f0e9;
	color: #111827;
	border-color: transparent;
}

.single_add_to_cart_button.button.alt:hover {
	background: #e5e7eb;
	color: #111827;
}

.woocommerce-variation-price {
	font-size: 1.5rem;
	font-weight: 700;
}

.reset_variations {
	font-size: 0.75rem;
	color: #9ca3af;
}

.product_meta a {
	color: #033e2b;
}

.product_meta a:hover {
	text-decoration: underline;
}

.range-slider-thumb {
	background: transparent;
}

.range-slider-thumb::-webkit-slider-thumb {
	pointer-events: auto;
	appearance: none;
	width: 1rem;
	height: 1rem;
	border-radius: 9999px;
	background: #033e2b;
	border: 2px solid #fff;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(3, 62, 43, 0.2);
}

.range-slider-thumb::-moz-range-thumb {
	pointer-events: auto;
	appearance: none;
	width: 1rem;
	height: 1rem;
	border-radius: 9999px;
	background: #033e2b;
	border: 2px solid #fff;
	cursor: pointer;
}

.lawang-no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.lawang-no-scrollbar::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.lawang-featured-post {
		max-height: 25rem;
	}
}

.woocommerce-pagination .page-numbers {
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1px solid #e5e7eb;
	color: #374151;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.woocommerce-pagination a.page-numbers:hover {
	border-color: #033e2b;
	color: #033e2b;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.active {
	background: #033e2b;
	border-color: #033e2b;
	color: #fff;
	font-weight: 600;
}

.woocommerce-pagination .page-numbers.disabled,
.woocommerce-pagination .page-numbers.dots {
	border-color: #f3f4f6;
	color: #d1d5db;
	cursor: default;
}

.comment-list .children {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0 0 0 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 640px) {
	.comment-list .children {
		padding-left: 3.5rem;
	}
}

.comment-actions .comment-reply-link {
	font-weight: 500;
	color: #033e2b;
	text-decoration: underline;
}

.comment-actions .comment-reply-link:hover {
	color: #022f21;
}

.comment-actions .comment-edit-link {
	font-weight: 500;
	color: #9ca3af;
	text-decoration: underline;
}

.comment-actions .comment-edit-link:hover {
	color: #4b5563;
}

.comment-reply-title small {
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 0.75rem;
	font-weight: 500;
}
