/* ==========================================================================
   PlushieeZone — WooCommerce base styles (Phase 2)
   Sitewide pieces only: notices, prices, sale badge, ratings, quantity,
   mini-cart drawer. Shop / product / checkout layouts come in Phases 4–5.
   ========================================================================== */

/* Notices */
.pz-theme .woocommerce-message,
.pz-theme .woocommerce-info,
.pz-theme .woocommerce-error {
	border-radius: var(--pz-radius-md);
	border: 1px solid rgba(21, 46, 85, 0.08);
	border-left: 5px solid var(--pz-notice-accent, var(--pz-blue));
	font-size: var(--pz-text-sm);
	color: var(--pz-text);
}
.pz-theme .woocommerce-message { background: #EAF6EF; --pz-notice-accent: var(--pz-success); }
.pz-theme .woocommerce-info    { background: var(--pz-blue-50); --pz-notice-accent: var(--pz-blue); }
.pz-theme .woocommerce-error   { background: #FCECEF; --pz-notice-accent: var(--pz-sale); }
.pz-theme .woocommerce-message::before,
.pz-theme .woocommerce-info::before,
.pz-theme .woocommerce-error::before { color: inherit; }

/* Prices */
.pz-theme .woocommerce .price,
.pz-theme .woocommerce-Price-amount {
	font-family: var(--pz-font-heading);
	font-weight: 600;
	color: var(--pz-navy);
}
.pz-theme .price del,
.pz-theme .price del .woocommerce-Price-amount { color: var(--pz-text-muted); font-weight: 400; }
.pz-theme .price ins { text-decoration: none; }
.pz-theme .price ins .woocommerce-Price-amount { color: var(--pz-sale); }

/* Sale badge (markup from inc/woocommerce.php) */
.pz-theme .woocommerce span.onsale.pz-badge,
.pz-theme span.onsale.pz-badge {
	min-height: 0;
	min-width: 0;
	padding: 0.35em 0.8em;
	line-height: 1.2;
	border-radius: var(--pz-radius-pill);
	background: var(--pz-sale);
	color: var(--pz-white);
}

/* Ratings */
.pz-theme .star-rating span::before,
.pz-theme .star-rating::before { color: var(--pz-rating); }

/* Quantity */
.pz-theme .quantity .qty {
	min-height: 48px;
	border-radius: var(--pz-radius-md);
	font-weight: 700;
}

/* Mini-cart drawer (Kadence slide cart) */
.pz-theme #cart-drawer .drawer-inner { background: var(--pz-white); }
.pz-theme #cart-drawer .drawer-header {
	border-bottom: 1px solid var(--pz-border);
}
.pz-theme #cart-drawer .side-cart-header {
	font-family: var(--pz-font-heading);
	font-weight: 600;
	color: var(--pz-navy);
}
.pz-theme .woocommerce-mini-cart__total {
	border-top: 1px solid var(--pz-border);
	padding-top: var(--pz-space-3);
}
.pz-theme .woocommerce-mini-cart__empty-message {
	padding: var(--pz-space-5) 0;
	text-align: center;
	color: var(--pz-text-muted);
}

/* Single product: Add to cart + Buy Now (inc/buy-now.php) --------------- */
.pz-theme .pz-buy-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	width: 100%;
}
.pz-theme .pz-buy-actions .quantity { margin: 0; }
.pz-theme .pz-buy-actions .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	margin: 0;
	padding: 0 28px;
	font-size: 1.0625rem;
	float: none;
}
/* "Add to cart" becomes the secondary (outline) action… */
.pz-theme .pz-buy-actions .single_add_to_cart_button:not(.pz-buy-now) {
	background: var(--pz-white);
	color: var(--pz-navy);
	border: 2px solid var(--pz-navy);
	box-shadow: 0 4px 0 var(--pz-navy);
}
.pz-theme .pz-buy-actions .single_add_to_cart_button:not(.pz-buy-now):hover {
	background: var(--pz-blue-50);
	color: var(--pz-navy);
}
/* …and Buy Now is the primary action. */
.pz-theme .pz-buy-actions .pz-buy-now {
	background: var(--pz-blue);
	color: var(--pz-white);
	border: 2px solid var(--pz-blue);
	box-shadow: var(--pz-shadow-press);
}
.pz-theme .pz-buy-actions .pz-buy-now:hover { background: var(--pz-blue-700); border-color: var(--pz-blue-700); color: var(--pz-white); }
.pz-theme .pz-buy-actions .pz-buy-now .pz-icon { color: var(--pz-yellow); flex: none; }
.pz-theme .pz-buy-actions .single_add_to_cart_button.disabled,
.pz-theme .pz-buy-actions .single_add_to_cart_button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

/* Mobile: keep both buttons in a bar fixed to the bottom of the screen. */
@media (max-width: 767px) {
	.pz-theme.single-product { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	.pz-theme.single-product .pz-buy-actions::after {
		content: "";
		position: fixed;
		left: 0; right: 0; bottom: 0;
		height: calc(76px + env(safe-area-inset-bottom, 0px));
		background: var(--pz-white);
		box-shadow: 0 -8px 24px -12px rgba(21, 46, 85, 0.3);
		z-index: 90;
	}
	.pz-theme.single-product .pz-buy-actions .single_add_to_cart_button {
		position: fixed;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		z-index: 91;
		width: calc(50% - 22px);
		min-height: 50px;
		padding: 0 10px;
		font-size: 1rem;
	}
	.pz-theme.single-product .pz-buy-actions .single_add_to_cart_button:not(.pz-buy-now) { left: 16px; }
	.pz-theme.single-product .pz-buy-actions .pz-buy-now { right: 16px; }
	/* If Buy Now is not offered (grouped/external), Add to cart takes the full width. */
	.pz-theme.single-product .pz-buy-actions .single_add_to_cart_button:only-of-type { width: calc(100% - 32px); }
}
