/* ============================================================================
   American Jane — "Choose your format" on the product page
   (views/box_product.inc.php + product-formats.inc.php). Palette from home.css.
   ========================================================================== */

.aj-formats { margin: 1.2em 0; }

.aj-formats-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #6B5D50; margin-bottom: .5em;
}

.aj-formats-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: .6rem;
}

.aj-format {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .7rem;
  background: #fff;
  border: 1px solid #E7DCC4;
  border-radius: 10px;
  color: #3B2F28 !important;
  text-decoration: none !important;
  line-height: 1.25;
  transition: border-color .15s, box-shadow .15s;
}
.aj-format:hover, .aj-format:focus-visible {
  border-color: #6B5D50;
  box-shadow: 0 2px 8px rgba(59, 47, 40, .08);
}
.aj-format.is-current {
  border: 2px solid #C1392B;
  padding: calc(.6rem - 1px) calc(.7rem - 1px);
  background: #FBF7EE;
  cursor: default;
}

.aj-format-img {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #F0E8D7;
}

.aj-format-text { display: flex; flex-direction: column; min-width: 0; }
.aj-format-label { font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.aj-format-price { font-size: .95rem; }
.aj-format-note  { font-size: .8rem; color: #6B5D50; }
.aj-format.is-current .aj-format-note { color: #C1392B; font-weight: 700; }
.aj-format--pdf:not(.is-current) .aj-format-note { color: #4A7C82; font-weight: 700; }

@media (max-width: 480px) {
  .aj-formats-list { grid-template-columns: 1fr 1fr; }
  .aj-format { padding: .5rem; gap: .5rem; }
  .aj-format.is-current { padding: calc(.5rem - 1px); }
  .aj-format-img { width: 40px; height: 40px; }
}
