/* relmccoy.com store (store.html + js/store.js) */
.store-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 2rem 3rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 8px 8px;
  color: #1a1a1a;
}

.store-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.store-top .press-title { margin-bottom: 0; }
.store-intro { color: #444; font-size: 1rem; line-height: 1.7; margin: 0.75rem 0 2rem; max-width: 640px; }

/* Cart button */
.store-cart-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #1a1a1a;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.store-cart-bar .count {
  background: var(--accent, #00bcd4);
  color: #000;
  border-radius: 999px;
  min-width: 1.6em;
  padding: 0 0.4em;
  text-align: center;
}
.store-cart-bar.has-items { position: sticky; top: 1rem; z-index: 5; }

/* Grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}
.store-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
a.store-card { text-decoration: none; }
/* a section with a single card (Exclusive Beats): centred, one column wide */
.store-section.is-centred { text-align: center; }
.store-card-solo { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 230px; text-align: center; align-items: center; }
.store-card-img {
  display: block;
  aspect-ratio: 1;
  background: #f2f2f2;
  border-radius: 6px;
  overflow: hidden;
}
.store-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.store-card:hover .store-card-img img { transform: scale(1.04); }
.store-card-title { font-weight: 600; font-size: 0.98rem; line-height: 1.35; margin-top: 0.7rem; }
.store-card-price { color: #555; font-size: 0.92rem; margin-top: 0.25rem; }
.store-card.is-sold .store-card-img img { opacity: 0.45; }
.store-card.is-sold .store-card-price { color: #b23b3b; font-weight: 600; }
.store-card-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #555; border: 1px solid #ccc; border-radius: 3px; padding: 0 0.35em; margin-left: 0.3em; vertical-align: 1px; }
.store-section { grid-column: 1 / -1; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2rem; letter-spacing: 0.02em; margin: 1.5rem 0 -0.5rem; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.store-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.store-section-note { grid-column: 1 / -1; color: #666; margin: -0.5rem 0 0; }
.store-qty[hidden], .store-row[hidden], #cartShipping[hidden] { display: none; }

/* Modals */
body.store-locked { overflow: hidden; }
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow-y: auto;
}
.store-modal[hidden] { display: none; }
.store-panel {
  position: relative;
  background: #fff;
  color: #1a1a1a;
  border-radius: 8px;
  width: 100%;
  max-width: 920px;
  padding: 2rem;
}
.store-panel.narrow { max-width: 560px; }
.store-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

/* Product view */
.store-pv { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; }
.store-pv-media img#pvImg { width: 100%; border-radius: 6px; background: #f2f2f2; display: block; }
.store-pv-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.store-pv-thumbs button { width: 64px; height: 64px; padding: 0; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; cursor: pointer; background: #f2f2f2; }
.store-pv-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-pv-info h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 0.04em; line-height: 1; margin: 0 2rem 0.5rem 0; }
.store-pv-price { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.store-opt { display: block; margin-bottom: 0.9rem; }
.store-opt span { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #555; margin-bottom: 0.3rem; }
.store-opt select { width: 100%; padding: 0.6rem; font: inherit; font-size: 1rem; border: 1px solid #bbb; border-radius: 4px; background: #fff; color: #1a1a1a; }
.store-pv-buy { display: flex; gap: 0.8rem; align-items: center; margin: 1.2rem 0 0.4rem; }
.store-pv-note { color: #b23b3b; font-size: 0.9rem; min-height: 1.2em; margin: 0 0 1rem; }
.store-pv-desc { font-size: 0.95rem; line-height: 1.7; color: #333; border-top: 1px solid #eee; padding-top: 1rem; }
.store-pv-desc img { max-width: 100%; height: auto; }

.store-qty { display: inline-flex; align-items: center; border: 1px solid #bbb; border-radius: 4px; }
.store-qty button { background: none; border: 0; width: 2.4rem; height: 2.6rem; font-size: 1.2rem; cursor: pointer; color: #1a1a1a; }
.store-qty button:disabled { color: #ccc; cursor: default; }
.store-qty span { min-width: 1.8rem; text-align: center; font-weight: 600; }
.store-qty.small button { width: 2rem; height: 2rem; font-size: 1rem; }

.store-btn {
  flex: 1;
  background: var(--accent, #00bcd4);
  color: #000;
  border: 0;
  border-radius: 4px;
  padding: 0.8rem 1.4rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.store-btn:disabled { background: #ddd; color: #888; cursor: default; }
.store-btn.full { width: 100%; }
.store-link-btn { background: none; border: 0; color: #555; text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.9rem; margin-top: 0.8rem; }

/* Cart */
.store-panel h2.store-cart-title { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.06em; margin: 0 0 1rem; }
.store-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: start; padding: 0.9rem 0; border-bottom: 1px solid #eee; }
.store-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: #f2f2f2; }
.store-line-name { font-weight: 600; line-height: 1.3; }
.store-line-var { color: #666; font-size: 0.88rem; margin: 0.15rem 0 0.4rem; }
.store-line-warn { color: #b23b3b; font-size: 0.85rem; margin-top: 0.3rem; }
.store-line-price { text-align: right; font-weight: 600; }
.store-line-remove { display: block; margin-top: 0.4rem; background: none; border: 0; color: #888; font-size: 0.8rem; text-decoration: underline; cursor: pointer; margin-left: auto; }
.store-sums { margin-top: 1rem; }
.store-sums label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #555; margin-bottom: 0.3rem; }
.store-sums select { width: 100%; padding: 0.55rem; font: inherit; border: 1px solid #bbb; border-radius: 4px; margin-bottom: 0.8rem; background: #fff; color: #1a1a1a; }
.store-row { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.store-row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid #eee; margin-top: 0.4rem; padding-top: 0.6rem; }
.store-ship-note { color: #666; font-size: 0.85rem; line-height: 1.5; margin: 0.3rem 0 1rem; }
.store-ship-note a { color: inherit; }
.store-error { color: #b23b3b; font-size: 0.92rem; min-height: 1.2em; margin: 0.6rem 0 0; }
.store-fine { color: #777; font-size: 0.8rem; text-align: center; margin-top: 0.8rem; }
.store-empty { color: #666; padding: 1rem 0; }

@media (max-width: 760px) {
  .store-content { padding: 2rem 16px; }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .store-pv { grid-template-columns: 1fr; gap: 1.2rem; }
  .store-panel { padding: 1.5rem 1rem; }
  .store-pv-info h2 { font-size: 1.8rem; }
}
