/* Hose Network front-end styles (ported from WPCodeBox css_inline_css snippet) */

body {
	padding-top: 64px;
}

@media (max-width: 768px) {
	body {
		padding-top: 52px;
	}
}

button.add_to_cart_button {
	width: 80px !important;
	transition: background-color 0.3s ease;
}

.add_to_cart_button.success {
	background-color: #4CAF50;
}

.added_to_cart {
	display: none !important;
}

/* Hide WooCommerce sorting dropdown */
form.woocommerce-ordering {
	display: none;
}

/* Gap between size and length details for hose products in cart */
.breakdance-woocommerce ul.wc-item-meta li,
.breakdance-woocommerce dl.variation,
.bde-mini-cart .variation,
.hosenetwork ul.wc-item-meta li,
.hosenetwork dl.variation {
	gap: 8px;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew.woocommerce-validated {
	margin-top: 16px;
}

/* Product variation table */
.product-variations-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #ffffff;
	font-size: 15px;
	border-radius: 6px;
}

.product-variations-header {
	font-weight: bold;
	background-color: #f1f1f1;
}

.product-variations-header,
.product-variation-row {
	display: grid;
	grid-template-columns: 200px 240px 1fr minmax(180px, auto);
	align-items: center;
	gap: 10px;
	border: 1px solid #ddd;
	padding: 10px;
}

.variation-qty-add {
	display: grid;
	grid-template-columns: auto auto;
	gap: 10px;
	align-items: center;
}

.variation-quantity {
	display: flex;
	justify-content: flex-end;
}

.quantity-field {
	width: 80px;
	padding: 12px 12px 11px 20px;
	border-radius: 4px;
	border: 1px solid #ccc;
	text-align: right;
}

.variation-sku {
	min-width: 240px;
}

@media (max-width: 768px) {
	.product-variations-header {
		display: none;
	}
	.product-variation-row {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-areas:
			"sku"
			"size"
			"divider"
			"price-qty";
		gap: 8px;
		padding: 16px;
	}
	.variation-sku    { grid-area: sku; font-weight: bold; }
	.variation-size   { grid-area: size; color: #666; }
	.product-variation-row::after {
		content: '';
		grid-area: divider;
		height: 1px;
		background: #ddd;
		margin: 8px 0;
	}
	.variation-price {
		grid-area: price-qty;
		display: flex;
		align-items: center;
		gap: 4px;
	}
	.variation-qty-add {
		grid-area: price-qty;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		gap: 10px;
		flex: 1;
	}
	.quantity-field { width: 60px; }
}

/* Add-to-cart button on single product */
.single-product .add_to_cart_button {
	background-color: #C91515;
	color: #fff;
	border: none;
	padding: 13px 16px;
	cursor: pointer;
	border-radius: 3px;
	width: 80px !important;
	transition: all 0.3s ease;
	opacity: 0.4;
}

.single-product .add_to_cart_button:hover {
	background-color: #e21616;
}

.single-product .add_to_cart_button.success {
	background-color: #4CAF50;
}

.single-product .add_to_cart_button:not(.disabled) {
	opacity: 1;
}

.cart-status-icon {
	display: inline-block;
	animation: hn-spin 1s linear infinite;
	margin-left: 5px;
}

.cart-success-icon {
	color: green;
	margin-left: 5px;
}

@keyframes hn-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* Custom checkout order review */
.custom-order-summary {}
.order-items { border-bottom: 2px solid #cccccc; }
.order-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}
.product-info  { flex: 1; padding-right: 20px; font-weight: 500; }
.product-total { text-align: right; min-width: 100px; }
.total-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
}
.shipping-section { padding: 10px 0; }
.shipping-title   { font-weight: bold; margin-bottom: 10px; }
.shipping-content { line-height: 1.4; }
.order-total {
	border-top: 2px solid #eee;
	margin-top: 10px;
	padding-top: 15px;
	font-weight: bold;
}
.total-label { font-weight: bold; min-width: 100px; }
.total-value { text-align: right; }
