/* ==========================================================
   Green Product Box — theme color #006022
   ========================================================== */

.gpb-box {
	--gpb-primary: #006022;
	--gpb-primary-soft: rgba(0, 96, 34, 0.10);
	--gpb-btn-text: #ffffff;
	--gpb-radius: 8px;
	--gpb-border: #e5e7eb;
	--gpb-text: #1f2937;
	--gpb-muted: #6b7280;

	font-family: inherit;
	color: var(--gpb-text);
}

.gpb-grid {
	display: grid;
	grid-template-columns: 420px 1fr;
	gap: 40px;
	align-items: start;
}

.gpb-gallery {
	background: #f3f4f6;
	border-radius: var(--gpb-radius);
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gpb-gallery img {
	width: 100%;
	height: auto;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
}

/* Badges */
.gpb-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	line-height: 1.4;
	white-space: nowrap;
}

.gpb-badge-solid {
	background: var(--gpb-primary);
	color: #fff;
}

.gpb-badge-soft {
	background: var(--gpb-primary-soft);
	color: var(--gpb-primary);
}

.gpb-title {
	font-size: 28px;
	font-weight: 800;
	margin: 10px 0 8px;
	line-height: 1.25;
}

.gpb-meta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.gpb-review-count {
	color: var(--gpb-muted);
	font-size: 13px;
	margin-left: 4px;
}

.gpb-views {
	font-size: 12px;
}

/* Tabs (Buy / Rent / Refill) */
.gpb-tabs {
	display: inline-flex;
	background: #f3f4f6;
	border-radius: var(--gpb-radius);
	padding: 4px;
	gap: 4px;
	margin-bottom: 16px;
}

.gpb-tab {
	border: 0;
	background: transparent;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: calc(var(--gpb-radius) - 2px);
	cursor: pointer;
	color: var(--gpb-text);
	transition: all 0.15s ease;
}

.gpb-tab.active {
	background: var(--gpb-primary);
	color: #fff;
}

.gpb-price-panel .gpb-price {
	font-size: 32px;
	font-weight: 800;
	color: var(--gpb-primary);
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.gpb-price-panel .gpb-price del {
	color: var(--gpb-muted);
	font-size: 18px;
	font-weight: 500;
	margin-right: 6px;
}

.gpb-price-panel .gpb-unit,
.gpb-price-sub {
	font-size: 14px;
	font-weight: 500;
	color: var(--gpb-muted);
}

.gpb-price-sub {
	margin-top: 4px;
}

.gpb-badges-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 16px 0;
}

.gpb-divider {
	border: none;
	border-top: 1px solid var(--gpb-border);
	margin: 16px 0;
}

.gpb-short-desc {
	color: var(--gpb-muted);
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 20px;
}

/* Quantity stepper */
.gpb-qty-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.gpb-qty-row label {
	font-weight: 600;
	font-size: 14px;
}

.gpb-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--gpb-border);
	border-radius: 6px;
	overflow: hidden;
}

.gpb-qty-stepper button {
	background: #f9fafb;
	border: none;
	width: 34px;
	height: 34px;
	font-size: 16px;
	cursor: pointer;
}

.gpb-qty-input {
	width: 48px;
	text-align: center;
	border: none;
	border-left: 1px solid var(--gpb-border);
	border-right: 1px solid var(--gpb-border);
	height: 34px;
	-moz-appearance: textfield;
}

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

/* Action buttons */
.gpb-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.gpb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--gpb-radius);
	cursor: pointer;
	text-decoration: none;
	border: 2px solid var(--gpb-primary);
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.gpb-btn:hover {
	opacity: 0.88;
}

.gpb-btn:active {
	transform: translateY(1px);
}

.gpb-btn-solid {
	background: var(--gpb-primary);
	color: var(--gpb-btn-text);
}

.gpb-btn-outline {
	background: #fff;
	color: var(--gpb-primary);
}

.gpb-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.gpb-footer-note {
	background: var(--gpb-primary-soft);
	color: var(--gpb-primary);
	font-size: 13px;
	font-weight: 500;
	padding: 12px 16px;
	border-radius: var(--gpb-radius);
}

.gpb-cart-msg {
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

.gpb-cart-msg.success {
	background: var(--gpb-primary-soft);
	color: var(--gpb-primary);
}

.gpb-cart-msg.error {
	background: #fee2e2;
	color: #b91c1c;
}

/* ==========================================================
   Native WooCommerce / Elementor Pro widgets — matched styling
   (Product Data Tabs + Related Products + Sale badge)
   Uses the same #006022 theme so the whole page feels unified.
   ========================================================== */

.woocommerce-tabs ul.tabs,
.woocommerce-tabs ul.wc-tabs {
	border-bottom: 1px solid var(--gpb-border, #e5e7eb);
	padding-left: 0;
	margin-bottom: 20px;
}

.woocommerce-tabs ul.tabs li,
.woocommerce-tabs ul.wc-tabs li {
	list-style: none;
	display: inline-block;
	margin-right: 8px;
}

.woocommerce-tabs ul.tabs li a,
.woocommerce-tabs ul.wc-tabs li a {
	display: inline-block;
	padding: 10px 4px;
	font-weight: 700;
	color: #6b7280;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.wc-tabs li.active a {
	color: #006022;
	border-bottom-color: #006022;
}

.woocommerce-tabs h2 {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 12px;
}

/* Sale badge */
.woocommerce span.onsale,
ul.products li.product .onsale {
	background: #006022 !important;
	color: #fff !important;
	font-weight: 700;
}

/* Related products heading + buttons */
.related.products > h2,
.up-sells > h2 {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 16px;
}

.related.products ul.products li.product .button,
.up-sells ul.products li.product .button {
	background: #006022;
	color: #fff;
	border-radius: 6px;
}

.related.products ul.products li.product .price ins,
ul.products li.product .price ins {
	color: #006022;
	text-decoration: none;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1024px) {
	.gpb-grid {
		grid-template-columns: 360px 1fr;
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.gpb-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.gpb-gallery {
		padding: 16px;
	}

	.gpb-title {
		font-size: 22px;
	}

	.gpb-price-panel .gpb-price {
		font-size: 26px;
	}

	.gpb-tabs {
		display: flex;
		width: 100%;
	}

	.gpb-tab {
		flex: 1;
		text-align: center;
		padding: 10px 8px;
	}

	.gpb-actions {
		flex-direction: column;
	}

	.gpb-btn {
		width: 100%;
		justify-content: center;
	}

	.gpb-qty-row {
		justify-content: space-between;
	}
}

@media (max-width: 480px) {
	.gpb-title {
		font-size: 19px;
	}

	.gpb-price-panel .gpb-price {
		font-size: 22px;
	}

	.gpb-badge {
		font-size: 11px;
		padding: 4px 10px;
	}
}
