/* ============================================
   ONWASH PRODUCTS
   ============================================ */
.products-page-wrap,
.product-detail-wrap {
  margin: 0px 20px 0px 20px;
  padding-top: 80px;
  padding-bottom: 40px;
}

.products-hero {
  margin-bottom: 22px;
}
.products-eyebrow,
.product-detail-kicker {
  color: var(--brand, #00a6ff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 7px;
}
.products-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text, #fff);
}
.products-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--text-second, #999);
  font-size: 14px;
  line-height: 1.65;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  background: var(--bg-card, rgba(255,255,255,.035));
  border-radius: 16px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(0,166,255,.35); }
.product-card:focus-visible { outline: 2px solid var(--brand, #00a6ff); outline-offset: 2px; }
.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elevated, #15191d);
}
.product-image,
.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated, #15191d);
  color: var(--text-muted, #777);
}
.product-image-placeholder svg { width: 48px; height: 48px; opacity: .55; }
.product-card-body { padding: 14px; }
.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.product-volume {
  font-size: 11px;
  color: var(--text-second, #999);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 999px;
  padding: 3px 7px;
  white-space: nowrap;
}
.product-price { color: var(--brand, #00a6ff); font-size: 14px; font-weight: 800; white-space: nowrap; }
.product-card h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; color: var(--text, #fff); }
.product-card p { margin: 0 0 12px; color: var(--text-second, #999); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-link { color: var(--brand, #00a6ff); font-size: 12px; font-weight: 700; }
.product-card-link span { margin-left: 3px; }

.products-loading {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-second, #999);
  font-size: 13px;
}
.products-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border, rgba(255,255,255,.1));
  border-top-color: var(--brand, #00a6ff);
  border-radius: 50%;
  animation: products-spin .7s linear infinite;
}
@keyframes products-spin { to { transform: rotate(360deg); } }

.products-empty,
.products-error {
  text-align: center;
  padding: 55px 20px;
  color: var(--text-second, #999);
}
.products-empty-icon,
.products-error-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated, #15191d);
  color: var(--brand, #00a6ff);
}
.products-empty-icon svg { width: 30px; height: 30px; }
.products-error-icon { font-weight: 800; font-size: 22px; color: #ef4444; }
.products-empty h3,
.products-error h3 { margin: 0 0 7px; color: var(--text, #fff); font-size: 17px; }
.products-empty p,
.products-error p { margin: 0 0 18px; font-size: 13px; }

.product-detail-card {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  background: var(--bg-card, rgba(255,255,255,.035));
  border-radius: 20px;
}
.product-detail-image-wrap { aspect-ratio: 16 / 9; background: var(--bg-elevated, #15191d); overflow: hidden; }
.product-detail-image { object-fit: cover; }
.product-detail-content { padding: 22px; }
.product-detail-content h1 { margin: 0 0 12px; color: var(--text, #fff); font-size: 28px; line-height: 1.18; letter-spacing: -.02em; }
.product-detail-purchase-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.product-detail-price { color: var(--brand, #00a6ff); font-size: 22px; font-weight: 800; }
.product-detail-volume { color: var(--text-second, #999); font-size: 12px; border: 1px solid var(--border, rgba(255,255,255,.08)); border-radius: 999px; padding: 5px 9px; }
.product-detail-short { margin: 0 0 22px; color: var(--text-second, #aaa); font-size: 14px; line-height: 1.7; }
.product-detail-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border, rgba(255,255,255,.08)); }
.product-detail-section h2 { margin: 0 0 12px; font-size: 16px; color: var(--text, #fff); }
.product-description { color: var(--text-second, #aaa); font-size: 14px; line-height: 1.8; }
.product-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.product-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-second, #aaa); font-size: 14px; line-height: 1.5; }
.product-feature-check { width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,166,255,.12); color: var(--brand, #00a6ff); font-size: 12px; font-weight: 800; }
.product-back-btn { margin-top: 24px; }

html[data-theme="light"] .product-card,
html[data-theme="light"] .product-detail-card { box-shadow: 0 6px 24px rgba(0,0,0,.05); }

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; gap: 12px; }
  .products-hero h1 { font-size: 24px; }
  .product-card { display: grid; grid-template-columns: 115px 1fr; }
  .product-card-image { aspect-ratio: 1 / 1; }
  .product-card-body { min-width: 0; padding: 12px; }
  .product-card h2 { font-size: 15px; }
  .product-card p { -webkit-line-clamp: 2; }
  .product-detail-image-wrap { aspect-ratio: 1 / 1; }
  .product-detail-content { padding: 18px; }
  .product-detail-content h1 { font-size: 24px; }
}

/* Home Products Banner */
.home-products-banner {
  margin: 15px 20px 25px 20px;
  padding: 16px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 18px;
  background: var(--bg-card, rgba(255,255,255,.035));
  overflow: hidden;
}
.home-products-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.home-products-eyebrow {
  color: var(--brand, #00a6ff);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.home-products-banner h3 {
  margin: 0 0 4px;
  color: var(--text, #fff);
  font-size: 17px;
  line-height: 1.25;
}
.home-products-banner p {
  margin: 0;
  color: var(--text-second, #999);
  font-size: 11px;
  line-height: 1.4;
}
.home-products-see-all {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--brand, #00a6ff);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 0;
  cursor: pointer;
}
.home-products-see-all span { margin-left: 3px; }
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 14px;
  background: var(--bg-elevated, #15191d);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-product-card:active { transform: scale(.985); }
.home-product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elevated, #15191d);
}
.home-product-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.home-product-card-body { padding: 9px 10px 10px; }
.home-product-card-title {
  margin: 0 0 4px;
  color: var(--text, #fff);
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-product-card-price {
  color: var(--brand, #00a6ff);
  font-size: 12px;
  font-weight: 800;
}
.home-products-loading,
.home-products-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-second, #999);
  font-size: 12px;
}
.home-product-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #777);
}
.home-product-image-placeholder svg { width: 34px; height: 34px; opacity: .55; }
