body {
  background: #1a1a1a;
  color: #ddd;
  font-family: "Friz Quadrata", sans-serif;
  margin: 0;
  padding: 0;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, footer {
  text-align: center;
  padding: 1em;
  background: #222;
  color: #FFF;
  font-size: 1.25rem;
}

footer {
  text-align: center;
  padding: 1em;
  background: #222;
  font-size: 14px;
}

.content {
  width: 96%;
  max-width: 800px;
  margin: 25px auto;
}

/* Main container (wide) */
.product-grid {
  display: block;        /* main is a container for accordions */
  max-width: 800px;
  margin: 25px auto;
}

/* Sticky footer spacing behavior */
main.product-grid {
  flex: 1;
}

/* Accordion */
.accordion-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-section {
  width: 100%;
}

/*
.accordion-header {
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  cursor: pointer;
}

.accordion-header.active {
  background: #444;
  color: #ffd100;
  border: 1px solid #888;
}

.accordion-header[aria-expanded="true"] {
  background: #444;
  color: #ffd100;
  border: 1px solid #888;
}

*/

.accordion-header {
  position: relative;
  width: 100%;
  padding-right: 30px; /* space for icon */
  font-size: 1.1rem;
  padding: 10px;
}

/* default (closed) */
.accordion-header::after {
  content: "▶";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  color: #aaa;
}

.accordion-header[aria-expanded="true"] {
  background: #444;
  color: #ffd100;
  border: 1px solid #888;
}

/* open state */
.accordion-header[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(90deg);
  color: #ffd100;
}

.accordion-panel {
  padding: 10px 0;
  width: 100%;
}

/* Inner grid (fills width) */
.product-grid-inner {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  justify-items: center;
}

/* Product card — vertically centered layout */
.product {
  background: #2c2c2c;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #555;
  max-width: 230px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* vertical centering */
  gap: 8px;
}

/* Image locked to 200x200 max */
.product img {
  width: 128px;
  height: 128px;
  max-width: 128px;
  max-height: 128px;
  object-fit: contain; /* keep aspect ratio, no cropping */
  cursor: default !important;        /* normal arrow cursor */
  display: block;
}

/* Make name look hoverable too */
.product-name {
  text-decoration: none !important;  /* no underline ever */
  cursor: default !important;        /* normal arrow cursor */
  pointer-events: auto;
  display: inline-block;
  margin: 0;
}

.product-name:hover {
  text-decoration: none !important;  /* prevent hover underline */
}

/* Price line */
.product-price {
  margin-top: 0;
  font-size: 0.95rem;
}

/* Tooltip style */
.wow-tooltip {
  position: absolute;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #666;
  padding: 10px;
  color: #ffd100;
  max-width: 300px;
  font-family: "Friz Quadrata", sans-serif;
  font-size: 13px;
  border-radius: 5px;
  pointer-events: none;
}

/* Coin colors */
.price-g { color: #d4af37; }  /* gold */
.price-s { color: #c0c0c0; }  /* silver */
.price-c { color: #cd7f32; }  /* bronze */
