/**
 * Breatheazy Product Page Styles
 *
 * Styles for the product page: MRP badge, compliance info, trust badges,
 * specifications table, FAQ accordion, Buy Now button, and responsive layout.
 *
 * Uses CSS custom properties from the child theme's style.css.
 *
 * @package Breatheazy_Child
 * @since   1.0.0
 */

/* =============================================================================
   MRP Badge
   ============================================================================= */

.breatheazy-mrp-badge {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 0.95rem;
	color: var(--breatheazy-text, #1E293B);
}

.breatheazy-mrp-label {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: var(--breatheazy-text-muted, #64748B);
}

.breatheazy-mrp-value {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--breatheazy-text, #1E293B);
}

.breatheazy-gst-note {
	font-size: 0.75rem;
	color: var(--breatheazy-text-muted, #64748B);
	font-weight: 400;
}

/* =============================================================================
   Availability Badge
   ============================================================================= */

.breatheazy-availability {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.breatheazy-availability--in-stock {
	background-color: #ECFDF5;
	color: #047857;
	border: 1px solid #A7F3D0;
}

.breatheazy-availability--out-of-stock {
	background-color: #FEF2F2;
	color: #B91C1C;
	border: 1px solid #FECACA;
}

/* =============================================================================
   Trust Badges
   ============================================================================= */

.breatheazy-trust-badges {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 20px;
	padding: 16px;
	background-color: var(--breatheazy-surface, #F8FAFC);
	border-radius: 8px;
	border: 1px solid #E2E8F0;
}

.breatheazy-trust-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}

.breatheazy-trust-icon {
	font-size: 1.2rem;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--breatheazy-primary, #0D9488);
	color: #fff;
	border-radius: 50%;
	font-size: 0.85rem;
}

.breatheazy-trust-text {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--breatheazy-text, #1E293B);
	line-height: 1.3;
}

/* =============================================================================
   Buy Now Button
   ============================================================================= */

.woocommerce div.product form.cart .breatheazy-buy-now-btn {
	background-color: var(--breatheazy-accent, #F97316);
	color: #fff;
	border: none;
	margin-left: 8px;
}

.woocommerce div.product form.cart .breatheazy-buy-now-btn:hover {
	background-color: #EA580C;
}

/* =============================================================================
   Compliance Info Table
   ============================================================================= */

.breatheazy-compliance-info {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #E2E8F0;
}

.breatheazy-compliance-heading {
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--breatheazy-text-muted, #64748B);
	margin-bottom: 12px;
}

.breatheazy-compliance-table {
	width: 100%;
	border-collapse: collapse;
}

.breatheazy-compliance-table th,
.breatheazy-compliance-table td {
	padding: 8px 12px;
	text-align: left;
	font-size: 0.85rem;
	border-bottom: 1px solid #F1F5F9;
}

.breatheazy-compliance-table th {
	font-weight: 600;
	color: var(--breatheazy-text-muted, #64748B);
	width: 40%;
	white-space: nowrap;
}

.breatheazy-compliance-table td {
	color: var(--breatheazy-text, #1E293B);
}

.breatheazy-compliance-table a {
	color: var(--breatheazy-primary, #0D9488);
	text-decoration: underline;
}

.breatheazy-compliance-table a:hover {
	color: #0B7C72;
}

/* =============================================================================
   Specifications Tab
   ============================================================================= */

.breatheazy-specifications h2,
.breatheazy-use-cases h2,
.breatheazy-box-contents h2,
.breatheazy-how-to-use h2,
.breatheazy-warranty h2,
.breatheazy-faq h2 {
	font-size: 1.25rem;
	margin-bottom: 16px;
	color: var(--breatheazy-text, #1E293B);
}

.breatheazy-specs-table {
	width: 100%;
	border-collapse: collapse;
}

.breatheazy-specs-table tr:nth-child(even) {
	background-color: var(--breatheazy-surface, #F8FAFC);
}

.breatheazy-specs-table th,
.breatheazy-specs-table td {
	padding: 12px 16px;
	text-align: left;
	font-size: 0.9rem;
	border-bottom: 1px solid #E2E8F0;
}

.breatheazy-specs-table th {
	font-weight: 600;
	color: var(--breatheazy-text-muted, #64748B);
	width: 40%;
}

.breatheazy-specs-table td {
	color: var(--breatheazy-text, #1E293B);
	font-weight: 500;
}

/* =============================================================================
   Use Cases
   ============================================================================= */

.breatheazy-use-cases-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.breatheazy-use-cases-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background-color: var(--breatheazy-surface, #F8FAFC);
	border-radius: 8px;
	border: 1px solid #E2E8F0;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--breatheazy-text, #1E293B);
}

.breatheazy-use-cases-list li::before {
	content: "\2713";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--breatheazy-primary, #0D9488);
	color: #fff;
	font-size: 0.7rem;
	flex-shrink: 0;
}

/* =============================================================================
   FAQ Section
   ============================================================================= */

.breatheazy-faq-list {
	margin: 0;
}

.breatheazy-faq-list dt {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--breatheazy-text, #1E293B);
	padding: 14px 0 6px;
	border-bottom: none;
	cursor: default;
}

.breatheazy-faq-list dt::before {
	content: "Q: ";
	color: var(--breatheazy-primary, #0D9488);
}

.breatheazy-faq-list dd {
	margin: 0 0 16px 0;
	padding: 0 0 16px 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--breatheazy-text-muted, #64748B);
	border-bottom: 1px solid #F1F5F9;
}

/* =============================================================================
   Responsive — Mobile First
   ============================================================================= */

@media (max-width: 768px) {
	.breatheazy-trust-badges {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 12px;
	}

	.breatheazy-use-cases-list {
		grid-template-columns: 1fr;
	}

	.breatheazy-specs-table th,
	.breatheazy-specs-table td {
		padding: 10px 12px;
		font-size: 0.85rem;
	}

	.breatheazy-specs-table th {
		width: 45%;
	}

	.breatheazy-compliance-table th {
		width: auto;
		white-space: normal;
	}

	.woocommerce div.product form.cart .breatheazy-buy-now-btn {
		margin-left: 0;
		margin-top: 8px;
		width: 100%;
	}

	.single_add_to_cart_button:not(.breatheazy-buy-now-btn) {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.breatheazy-mrp-badge {
		flex-wrap: wrap;
	}

	.breatheazy-gst-note {
		width: 100%;
	}
}
