*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f0;
  color: #1a1a1a;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.5rem;
  color: #b5451b;
  letter-spacing: -0.5px;
}

header p {
  color: #666;
  margin-top: 0.2rem;
  font-size: .9rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e5e5e0;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.section-title::-webkit-details-marker { display: none; }

.section-title::after {
  content: ' ▾';
  font-size: .8em;
  color: #bbb;
}

details[open] .section-title::after {
  content: ' ▴';
}

details .product-grid {
  margin-top: 1rem;
}

details + details {
  margin-top: 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 2), 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
}

.product-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.badge {
  display: inline-block;
  background: #b5451b;
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin: .75rem .25rem .75rem 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-summary {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  margin-bottom: 0;
}

.product-summary::-webkit-details-marker { display: none; }

details[open] .product-summary {
  margin-bottom: 1rem;
}

.product-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.product-name {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: #444;
}

.product-card p {
  font-size: .9rem;
  color: #555;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.card-warn {
  border: 1.5px solid #e53e3e;
}

.badge-warn {
  background: #e53e3e;
}

.review {
  font-size: .85rem;
  color: #444;
  line-height: 1.5;
  border-left: 3px solid #b5451b;
  padding-left: .75rem;
  margin-bottom: 1.25rem;
}

.review-warn {
  border-left-color: #e53e3e;
}

.recommended-alt {
  font-size: .85rem;
  background: #f0fff4;
  border-left: 3px solid #38a169;
  padding: .5rem .75rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.25rem;
}

.buy-btn-muted {
  background: #999;
  color: white;
}

.buy-btn-muted:hover {
  background: #777;
}

a.review-link {
  color: #b5451b;
  display: inline;
  background: none;
  padding: 0;
  border-radius: 0;
  font-weight: inherit;
  text-decoration: underline;
  -moz-appearance: none;
  appearance: none;
}

.buy-btn {
  display: inline-block;
  background: #ff9900;
  color: #111;
  font-weight: 700;
  padding: .6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background .15s;
}

.buy-btn:hover {
  background: #e68a00;
}

footer {
  text-align: center;
  margin-top: 3rem;
  font-size: .8rem;
  color: #999;
}

@media (min-width: 601px) {
  .product-card {
    cursor: zoom-in;
  }

  #modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  #modal-backdrop[hidden] {
    display: none;
  }

  #modal-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,.3);
  }

  #modal-box .product-card {
    box-shadow: none;
    padding: 0;
    cursor: default;
  }
}
