/* Nanah Affiliate — frontend styles (product boxes, grids, compare tables).
   Neutral, theme-friendly. Scoped under .na-wrap so it does not leak. */

.na-wrap { margin: 1.5em 0; }

.na-disclosure {
	font-size: 0.8em;
	color: #666;
	font-style: italic;
	margin: 0.6em 0 0;
}

/* --- Single product box --- */
.na-product-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
}

.na-product-image { flex: 0 0 180px; }
.na-product-image img,
img.na-product-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.na-product-body { flex: 1 1 auto; min-width: 0; }
.na-product-brand {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
	margin-bottom: 2px;
}
.na-product-title { font-size: 1.15em; margin: 0 0 6px; line-height: 1.3; }
.na-product-title a { text-decoration: none; color: #1a1a1a; }
.na-product-price { font-size: 1.25em; font-weight: 700; margin: 6px 0 2px; }
.na-price-unknown { font-size: 0.95em; font-weight: 400; color: #777; }
.na-product-savings { font-size: 0.9em; color: #067d62; }
.na-product-availability { font-size: 0.9em; margin: 4px 0; }
.na-product-availability.na-in-stock { color: #067d62; }
.na-product-availability.na-avail-other { color: #b32d2e; }
.na-product-features { margin: 8px 0; padding-left: 18px; font-size: 0.92em; }
.na-product-features li { margin-bottom: 2px; }

.na-button {
	display: inline-block;
	background: #ff9900;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 6px;
	margin-top: 10px;
}
.na-button:hover { background: #e8890c; }
.na-button-small { padding: 7px 14px; margin-top: 0; font-size: 0.9em; }

/* --- Grid --- */
.na-grid {
	display: grid;
	gap: 16px;
}
.na-grid-1 { grid-template-columns: 1fr; }
.na-grid-2 { grid-template-columns: repeat(2, 1fr); }
.na-grid-3 { grid-template-columns: repeat(3, 1fr); }
.na-grid-4 { grid-template-columns: repeat(4, 1fr); }
.na-grid .na-product-box { flex-direction: column; height: 100%; }
.na-grid .na-product-image { flex: 0 0 auto; width: 100%; text-align: center; }
.na-grid .na-product-image img { max-height: 180px; width: auto; margin: 0 auto; }
.na-grid .na-product-body { width: 100%; }

/* --- Comparison table --- */
.na-compare-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}
.na-compare-table th,
.na-compare-table td {
	border: 1px solid #e2e2e2;
	padding: 10px 12px;
	vertical-align: middle;
	text-align: left;
}
.na-compare-table th { background: #f6f7f7; }
.na-compare-table .na-col-product img.na-thumb {
	max-width: 56px;
	height: auto;
	vertical-align: middle;
	margin-right: 8px;
}

@media (max-width: 640px) {
	.na-product-box { flex-direction: column; }
	.na-product-image { flex: 0 0 auto; width: 100%; text-align: center; }
	.na-product-image img { max-height: 220px; margin: 0 auto; }
	.na-grid-2, .na-grid-3, .na-grid-4 { grid-template-columns: 1fr; }
	.na-compare-table .na-col-avail { display: none; }
}
