.etl-anv-sp { font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif; background: #fff; }
.etl-anv-sp * { box-sizing: border-box; }
.etl-anv-sp-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.etl-anv-sp-head { text-align: center; margin-bottom: 24px; }
.etl-anv-sp-kicker { display: inline-block; padding: 4px 14px; background: #2c2c2c; color: #d4af37; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; border-radius: 999px; margin-bottom: 10px; }
.etl-anv-sp-title { font-size: 24px; font-weight: 800; color: #2c2c2c; margin: 0 0 10px; line-height: 1.4; }
.etl-anv-sp-subtitle { font-size: 15px; color: #555; line-height: 1.7; margin: 0; }

/* Tabs */
.etl-anv-sp-tabs {
  display: flex; gap: 6px; margin-bottom: 18px;
  background: #faf5f4; border-radius: 999px;
  padding: 4px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.etl-anv-sp-tab {
  flex: 1; padding: 12px 14px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: #555; background: transparent; border: none;
  border-radius: 999px; cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.etl-anv-sp-tab.is-active {
  background: #2c2c2c; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.etl-anv-sp-tab:hover:not(.is-active) { color: #2c2c2c; }

.etl-anv-sp-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.etl-anv-sp-list .etl-anv-sp-set { display: block; }
.etl-anv-sp-list[data-anv-active-tab="2"] [data-tab-key]:not([data-tab-key="2"]) { display: none; }
.etl-anv-sp-list[data-anv-active-tab="3"] [data-tab-key]:not([data-tab-key="3"]) { display: none; }
.etl-anv-sp-list[data-anv-active-tab="4"] [data-tab-key]:not([data-tab-key="4"]) { display: none; }
/* Hide set wrappers (shopline-block) of hidden blocks too */
.etl-anv-sp-list[data-anv-active-tab="2"] > div:has([data-tab-key]:not([data-tab-key="2"])) { display: none; }
.etl-anv-sp-list[data-anv-active-tab="3"] > div:has([data-tab-key]:not([data-tab-key="3"])) { display: none; }
.etl-anv-sp-list[data-anv-active-tab="4"] > div:has([data-tab-key]:not([data-tab-key="4"])) { display: none; }

.etl-anv-sp-set {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #faf5f4 100%);
  border: 1px solid #e8e0dc;
  border-radius: 16px;
  padding: 18px 14px 16px;
}

.etl-anv-sp-set-head { text-align: center; margin-bottom: 14px; }
.etl-anv-sp-set-tag {
  display: inline-block; background: #d4817a; color: #fff;
  padding: 3px 12px; font-size: 11px; font-weight: 700;
  border-radius: 999px; margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.etl-anv-sp-set-name { font-size: 18px; font-weight: 800; color: #2c2c2c; margin: 0 0 6px; line-height: 1.4; }
.etl-anv-sp-set-desc { font-size: 14px; color: #555; margin: 0; line-height: 1.6; }

/* Products grid: uniform card sizing, column count by product count via :has() */
.etl-anv-sp-set-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}
/* 3 products → 3 columns on all screens */
.etl-anv-sp-set-products:has(.etl-anv-sp-prod:nth-of-type(3)):not(:has(.etl-anv-sp-prod:nth-of-type(4))) {
  grid-template-columns: repeat(3, 1fr);
}
/* 4 products → 2x2 on mobile (default 2-col), see desktop override below */

.etl-anv-sp-prod {
  display: flex; flex-direction: column; align-items: stretch;
  background: #fff; border: 1px solid #f0e8e3;
  border-radius: 10px;
  padding: 10px 8px 10px;
  text-align: center;
  min-width: 0;
  height: 100%;  /* fill grid cell so cards align uniformly */
}
/* Tighter padding when 3 products in a row (3-col layout) */
.etl-anv-sp-set-products:has(.etl-anv-sp-prod:nth-of-type(3)):not(:has(.etl-anv-sp-prod:nth-of-type(4))) .etl-anv-sp-prod {
  padding: 8px 6px;
}
.etl-anv-sp-prod-img {
  display: block; width: 100%; aspect-ratio: 1/1;
  border-radius: 8px; overflow: hidden;
  background: #faf5f4; margin-bottom: 8px;
}
.etl-anv-sp-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.etl-anv-sp-prod-name {
  display: block; font-size: 13px; color: #2c2c2c;
  text-decoration: none; line-height: 1.4;
  margin-bottom: 8px; min-height: 34px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.etl-anv-sp-prod-name:hover { color: #d4817a; }

.etl-anv-sp-prod-select {
  width: 100%;
  padding: 9px 26px 9px 10px;
  font-size: 13px; font-family: inherit; color: #2c2c2c;
  background: #fff;
  border: 1px solid #d0c8c4; border-radius: 6px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23999'%3E%3Cpath d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 10px;
  cursor: pointer;
}
.etl-anv-sp-prod-select:focus { outline: none; border-color: #d4817a; box-shadow: 0 0 0 2px rgba(212,129,122,0.15); }
.etl-anv-sp-prod-select[data-selected] { color: #2c2c2c; font-weight: 600; border-color: #2c2c2c; }

/* + separators removed — uniform grid handles spacing */

/* Pricing breakdown (4-line: compare / subtotal / discount / final) */
.etl-anv-sp-set-pricing {
  background: #faf5f4; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.etl-anv-sp-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; font-size: 14px;
}
.etl-anv-sp-price-row[hidden] { display: none; }
.etl-anv-sp-price-label { color: #555; font-weight: 600; }
.etl-anv-sp-price-value { color: #2c2c2c; font-weight: 700; font-variant-numeric: tabular-nums; }
.etl-anv-sp-price-strike { color: #888; text-decoration: line-through; font-weight: 500; }
.etl-anv-sp-price-discount-label { color: #c8102e; font-weight: 800; }
.etl-anv-sp-price-discount { color: #c8102e; font-weight: 800; }

.etl-anv-sp-price-row--final {
  margin-top: 4px; padding-top: 8px;
  border-top: 1px dashed #e0d6d1;
}
.etl-anv-sp-price-row--final .etl-anv-sp-price-label {
  font-size: 15px; font-weight: 800; color: #2c2c2c;
}
.etl-anv-sp-price-final {
  font-size: 24px; font-weight: 800; color: #c8102e;
  font-family: 'Playfair Display', serif;
}

/* CTA button */
.etl-anv-sp-cta {
  display: block; width: 100%;
  padding: 15px 16px;
  background: #2c2c2c; color: #fff; border: none;
  font-family: inherit; font-size: 16px; font-weight: 800;
  letter-spacing: 0.04em; border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.etl-anv-sp-cta:hover { filter: brightness(1.2); }
.etl-anv-sp-cta:active { transform: translateY(1px); }
.etl-anv-sp-cta[disabled] { background: #ccc; cursor: not-allowed; }
.etl-anv-sp-cta.is-loading { pointer-events: none; opacity: 0.7; }

.etl-anv-sp-set-note {
  font-size: 13px; color: #666; text-align: center;
  margin: 10px 0 0; line-height: 1.5;
}

/* Hide the internal variants script tag */
.etl-anv-sp-prod script[data-anv-variants-data] { display: none; }

@media (min-width: 720px) {
  .etl-anv-sp-title { font-size: 32px; }
  .etl-anv-sp-subtitle { font-size: 15px; }
  .etl-anv-sp-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .etl-anv-sp-set { padding: 26px 22px 22px; border-radius: 20px; }
  .etl-anv-sp-set-name { font-size: 20px; }
  .etl-anv-sp-set-desc { font-size: 14px; }
  .etl-anv-sp-set-products { gap: 10px; margin-bottom: 18px; }
  .etl-anv-sp-prod { padding: 14px 10px; border-radius: 12px; }
  .etl-anv-sp-prod-name { font-size: 12px; min-height: 36px; }
  .etl-anv-sp-prod-select { font-size: 12px; padding: 9px 26px 9px 12px; }
  /* Desktop: 4-product set uses 4-column layout */
  .etl-anv-sp-set-products:has(.etl-anv-sp-prod:nth-of-type(4)) {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Tighten when in 3- or 4-col layout */
  .etl-anv-sp-set-products:has(.etl-anv-sp-prod:nth-of-type(3)) .etl-anv-sp-prod {
    padding: 12px 8px;
  }
  .etl-anv-sp-set-pricing { padding: 14px 18px; margin-bottom: 16px; gap: 6px; }
  .etl-anv-sp-price-row { font-size: 14px; }
  .etl-anv-sp-price-row--final .etl-anv-sp-price-label { font-size: 15px; }
  .etl-anv-sp-price-final { font-size: 26px; }
  .etl-anv-sp-price-strike { font-size: 13px; }
  .etl-anv-sp-cta { font-size: 15px; padding: 15px 22px; }
  .etl-anv-sp-set-note { font-size: 12px; }
}
