.nx-ecom { color: #0f172a; max-width: 1100px; margin: 0 auto; }
.nx-ecom-title { font-size: 1.75rem; margin: 0 0 1rem; }
.nx-ecom-muted { color: #475569; }
.nx-ecom-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: .75rem 1rem; border-radius: .5rem; }
.nx-ecom-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .nx-ecom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .nx-ecom-grid { grid-template-columns: repeat(3, 1fr); } }
.nx-ecom-card { border: 1px solid #c5ced9; border-radius: .75rem; background: #f7f9fb; padding: .85rem; }
.nx-ecom-card img { width: 100%; height: 180px; object-fit: cover; border-radius: .5rem; }
.nx-ecom-card-title { font-size: 1.05rem; margin: .65rem 0 .35rem; }
.nx-ecom-card-title a { color: #0f172a; text-decoration: none; }
.nx-ecom-price { font-weight: 600; color: #0f766e; margin: 0; }
.nx-ecom-stock.is-in { color: #065f46; font-size: .875rem; }
.nx-ecom-stock.is-out { color: #b91c1c; font-size: .875rem; }
.nx-ecom-product { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
/* Only reserve an image column when media is present — avoids blank white space when image_url is empty. */
@media (min-width: 768px) {
    .nx-ecom-product:has(.nx-ecom-product-media) { grid-template-columns: 1fr 1.2fr; }
}
.nx-ecom-product-media img { width: 100%; border-radius: .75rem; border: 1px solid #c5ced9; }
.nx-ecom-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem 1rem; background: #0f766e; color: #fff !important; border: none; border-radius: .65rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.nx-ecom-btn-secondary { background: #fff; color: #0f172a !important; border: 1px solid #cbd5e1; }
.nx-ecom-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.nx-ecom-table-wrap { overflow-x: auto; }
.nx-ecom-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.nx-ecom-table th, .nx-ecom-table td { border-bottom: 1px solid #e2e8f0; padding: .65rem; text-align: left; }
.nx-ecom-checkout label { display: block; margin-bottom: .85rem; font-weight: 500; }
.nx-ecom-checkout input, .nx-ecom-checkout textarea { display: block; width: 100%; margin-top: .35rem; min-height: 40px; padding: .5rem .65rem; border: 1px solid #cbd5e1; border-radius: .5rem; }
.nx-ecom-sumup { margin: 1.25rem 0; min-height: 120px; }
.nx-ecom-sumup iframe { max-width: 100%; }
