/* =====================================================================
   biscuit gallery — /store/ Shopify integration styles
   Place at: wp-content/themes/biscuit-gallery-theme/assets/css/shopify-store.css
   Loaded automatically by shopify-store-storefront.php via wp_enqueue_style.
   ===================================================================== */

.bsx-root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #0e0e0e;
}

/* ---------- HERO ---------- */
.bsx-hero {
  max-width: 880px;
  margin: 80px auto 96px;
  padding: 0 24px;
  text-align: center;
}
.bsx-hero__title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 0 0 28px;
}
.bsx-hero__lead {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  margin: 0 0 40px;
}
.bsx-hero__cta a {
  display: inline-block;
  padding: 16px 44px;
  background: #0e0e0e;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.16em;
  transition: background 0.2s ease;
}
.bsx-hero__cta a:hover { background: #2a2a2a; }

/* ---------- SECTION ---------- */
.bsx-section { margin: 0 auto 96px; }
.bsx-section__title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  margin: 0 0 40px;
  padding-top: 56px;
  border-top: 1px solid #e5e5e0;
}
.bsx-section__more {
  text-align: center;
  margin: 32px 0 0;
}
.bsx-section__more a {
  display: inline-block;
  padding: 10px 24px;
  color: #0e0e0e;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.16em;
  border: 1px solid #0e0e0e;
  transition: background 0.2s, color 0.2s;
}
.bsx-section__more a:hover { background: #0e0e0e; color: #fff; }

/* ---------- GRID ---------- */
.bsx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 20px;
}
@media (max-width: 640px) {
  .bsx-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}

/* ---------- CARD ---------- */
.bsx-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}
.bsx-card:hover { transform: translateY(-2px); }
.bsx-card__media {
  position: relative;
  overflow: hidden;
  background: #f5f4f0;
  margin-bottom: 12px;
  /* Uniform 4:5 frame so the grid stays calm regardless of source image aspect ratio.
     Overrides any inline `style="aspect-ratio:<w>/<h>"` left by the PHP renderer. */
  aspect-ratio: 4 / 5 !important;
}
.bsx-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  /* contain so artwork is never cropped; cream background shows as letterbox. */
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.bsx-card__badge {
  position: absolute;
  top: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #0e0e0e;
  text-transform: uppercase;
}
.bsx-card__badge--soldout {
  left: 8px;
  background: #0e0e0e;
  color: #fff;
}
.bsx-card__badge--loc {
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #555;
  letter-spacing: 0.12em;
}
.bsx-card__body { padding: 0 2px; }
.bsx-card__vendor {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: #888;
  margin-bottom: 4px;
}
.bsx-card__title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bsx-card__price {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #555;
}
.bsx-card__price.is-soldout {
  text-decoration: line-through;
  color: #999;
}

/* ---------- ARTIST SECTION ---------- */
.bsx-artist { margin: 0 0 56px; }
.bsx-artist__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0eb;
}
.bsx-artist__name {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
}
.bsx-artist__name-en {
  display: inline-block;
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #888;
  font-family: 'DM Sans', sans-serif;
}
.bsx-artist__more {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #555;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.bsx-artist__more:hover { color: #0e0e0e; text-decoration: underline; }

.bsx-grid--artist { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 640px) {
  .bsx-grid--artist { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- COLLECTIONS TILE LIST ---------- */
.bsx-collections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 16px;
}
@media (max-width: 640px) {
  .bsx-collections { grid-template-columns: repeat(2, 1fr); }
}
.bsx-coll {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}
.bsx-coll:hover { transform: translateY(-2px); }
.bsx-coll__media {
  background: #f5f4f0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 10px;
}
.bsx-coll__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bsx-coll__title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------- responsive padding tweaks ---------- */
@media (max-width: 640px) {
  .bsx-root { padding: 0 16px; }
  .bsx-hero { margin: 56px auto 72px; padding: 0 8px; }
  .bsx-section { margin-bottom: 72px; }
  .bsx-section__title { padding-top: 40px; margin-bottom: 28px; }
}
