/* Shop classic (generalized from Kenya) layout — flexible cards, no SiteBuilder absolute/fixed heights */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
}
a { color: #fff; }
a:visited { color: #ccc; }

.shop-page {
  width: 938px;
  max-width: 100%;
  margin: 0 auto;
  padding: 9px 0 24px;
}

/* Top nav */
.shop-topnav {
  display: flex;
  justify-content: center;
  gap: 0;
  width: 800px;
  max-width: 100%;
  /* Match banner→engraving gap (~6px black between top buttons and gold marquis) */
  margin: 0 auto 6px;
}
.shop-topnav a {
  display: block;
  line-height: 0;
}
.shop-topnav img { display: block; border: 0; }

.shop-banner {
  display: block;
  width: 800px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
  vertical-align: bottom;
}

.shop-engraving {
  width: 800px;
  max-width: 100%;
  /* Tight band: ~6px black above/below gold label (classic was ~1–3px) */
  margin: 6px auto 6px;
  padding: 0;
  background: #101010;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: bold;
  color: #d4af37;
  letter-spacing: 0.02em;
}

/* Main: side navs + product grid — stretch so sidenavs match grid height */
.shop-main {
  display: grid;
  grid-template-columns: 149px minmax(0, 1fr) 149px;
  gap: 8px;
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  align-items: stretch;
}

/* Spread collection buttons evenly along the full height of the card grid */
.shop-sidenav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  min-height: 100%;
  height: 100%;
  gap: 0;
}
.shop-sidenav a {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
}
.shop-sidenav img {
  display: block;
  width: 145px;
  height: auto;
  border: 0;
}

/* 2×2 product cards — equal row heights, stretch all four to match */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 8px;
  border: 2px inset #dcdcdc;
  padding: 4px;
  background: #000;
  min-width: 0;
}

.shop-card {
  background: #fff;
  color: #000;
  border: 2px outset #dcdcdc;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: visible;
}

/* Form fills the card so internal stack can distribute elegantly */
.shop-card > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.shop-card img.product {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 8px;
  border: 0;
  flex: 0 0 auto;
}

.shop-card .desc {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #000;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  flex: 1 1 auto;
}

.shop-card .price-size {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.2;
  color: #000;
  flex: 0 0 auto;
}

.shop-card .price {
  font-weight: bold;
  white-space: nowrap;
}

.shop-card .size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font: 12px/1.2 Arial, Helvetica, sans-serif;
}

.shop-card .size-wrap select {
  font: 12px/1.2 Arial, Helvetica, sans-serif;
  max-width: 72px;
  vertical-align: middle;
  margin: 0;
}

.shop-card .btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 0;
  flex: 0 0 auto;
}

/* Fallback styles if cart-hooks has not painted yet */
.shop-card input[type="submit"],
.shop-card button.mmr-buy-now {
  padding: 3px 6px;
  margin: 0;
  font: 11px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #111;
  border-radius: 2px;
  vertical-align: middle;
  white-space: nowrap;
}
.shop-card button.mmr-buy-now,
.shop-card .mmr-buy-now {
  border-color: #0b5fff !important;
  background: #0b5fff !important;
  color: #fff !important;
}

/* Buy-now row injected by cart-hooks stays with btn-row at bottom */
.shop-card .mmr-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Below grid — natural document flow */
.shop-below {
  width: 800px;
  max-width: 100%;
  margin: 14px auto 0;
  text-align: center;
}

.shop-metal-bar {
  height: 14px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    #f5e6a8 0%,
    #d4af37 22%,
    #b8860b 48%,
    #f0d060 70%,
    #8b6914 100%
  );
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.35);
  margin-bottom: 10px;
}

.shop-quotes {
  font-size: 12px;
  line-height: 1.4;
  font-weight: bold;
  color: #d4af37;
  margin: 8px 0;
}

.shop-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 10px;
}
.shop-thumbs a { line-height: 0; }
.shop-thumbs img {
  display: block;
  border: 0;
  width: 252px;
  max-width: 100%;
  height: auto;
}

.shop-sizer {
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.4;
}
.shop-sizer a {
  color: #6af;
  text-decoration: underline;
}

.shop-logo {
  display: block;
  margin: 12px auto 8px;
  width: 120px;
  height: auto;
  border: 0;
}

.shop-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.4;
  color: #ccc;
  margin-top: 8px;
  padding: 0 4px;
}
.shop-foot span { flex: 1 1 200px; }
.shop-foot .right { text-align: right; }

@media (max-width: 860px) {
  .shop-main {
    grid-template-columns: 1fr;
    width: 96%;
  }
  .shop-sidenav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    min-height: 0;
  }
  .shop-topnav,
  .shop-banner,
  .shop-engraving,
  .shop-below {
    width: 96%;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}


/* Alpine collection: 150px side buttons */
.shop-page.alpine .shop-main {
  grid-template-columns: 154px minmax(0, 1fr) 154px;
}
.shop-page.alpine .shop-sidenav img {
  width: 150px;
}

/* Single-product grids stay one column of cards when only one article */
.shop-grid.shop-grid--1 {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}
.shop-grid.shop-grid--2 {
  grid-template-columns: 1fr 1fr;
}
.shop-grid.shop-grid--3 {
  grid-template-columns: 1fr 1fr;
}
.shop-grid.shop-grid--4 {
  grid-template-columns: 1fr 1fr;
}

/* SEO intro — classic look, no chrome redesign */
.shop-seo-intro {
  width: 800px;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 8px 12px 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  text-align: center;
}
.shop-seo-h1 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 18px;
  line-height: 22px;
  font-weight: bold;
  color: #d4af37;
  font-family: "Times New Roman", Times, serif;
}
.shop-seo-copy {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 16px;
  color: #ddd;
  font-family: Verdana, Arial, sans-serif;
}
@media (max-width: 860px) {
  .shop-seo-intro { width: 96%; }
}
