/* ===========================================================
   Stone Artistry HISUI — Etsy Shop Mockup CSS (DEMO ONLY)
   Etsy 風（白基調・繊細な細字フォント・控えめな色彩）
   =========================================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Variables */
:root {
  --etsy-orange: #f1641e;
  --etsy-orange-dark: #d4500a;
  --etsy-bg: #ffffff;
  --etsy-bg-soft: #f9f9f7;
  --etsy-bg-alt: #f5efe6;
  --etsy-border: #e1e3df;
  --etsy-border-soft: #ececec;
  --etsy-text: #222222;
  --etsy-text-soft: #595959;
  --etsy-text-light: #898989;
  --etsy-link: #2f466c;
  --etsy-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --serif: 'Graphik','Helvetica Neue', Arial, 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  --display: 'Playfair Display', 'Times New Roman', Georgia, serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--etsy-text);
  background: var(--etsy-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* DEMO ONLY ラベル */
.demo-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(192, 57, 43, .35);
  pointer-events: none;
  font-family: var(--serif);
}

/* ============= TOP UTILITY BAR ============= */
.utility-bar {
  background: #f9f3eb;
  border-bottom: 1px solid var(--etsy-border-soft);
  font-size: 12px;
  color: var(--etsy-text-soft);
}
.utility-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-bar a { margin-left: 16px; }

/* ============= MAIN HEADER ============= */
.etsy-header {
  border-bottom: 1px solid var(--etsy-border);
  background: #fff;
  padding: 12px 0;
}
.etsy-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.etsy-logo {
  font-family: 'Guthen Bloots', 'Times New Roman', cursive;
  font-size: 32px;
  color: var(--etsy-orange);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-style: italic;
}
.search-bar {
  display: flex;
  align-items: center;
  border: 2px solid var(--etsy-text);
  border-radius: 28px;
  background: #fff;
  height: 44px;
  overflow: hidden;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 14px;
  background: transparent;
  font-family: inherit;
}
.search-bar__btn {
  width: 44px;
  height: 44px;
  background: var(--etsy-orange);
  color: #fff;
  border-radius: 0 24px 24px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.header-actions {
  display: flex; gap: 18px; align-items: center;
  font-size: 12px; color: var(--etsy-text-soft);
}
.header-actions__item { display: flex; flex-direction: column; align-items: center; }
.header-actions__icon { font-size: 22px; color: var(--etsy-text); }

/* ============= NAV ============= */
.etsy-nav {
  border-bottom: 1px solid var(--etsy-border);
  background: #fff;
  font-size: 13px;
}
.etsy-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.etsy-nav a {
  color: var(--etsy-text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.etsy-nav a:hover { border-color: var(--etsy-text); }

/* ============= SHOP COVER (横長カバー) ============= */
.shop-cover {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 0;
}
.shop-cover__banner {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(120deg, #1a0d0d 0%, #3a1a2a 50%, #5b1c2b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-cover__banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
}
.shop-cover__overlay {
  position: relative; z-index: 2;
  text-align: center;
  color: #f5e9d4;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  padding: 0 24px;
}
.shop-cover__overlay h1 {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-style: italic;
}
.shop-cover__overlay p {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4b88a;
}

/* ============= SHOP HEADER (アイコン+情報) ============= */
.shop-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.shop-avatar {
  width: 100px; height: 100px;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: var(--etsy-shadow);
  background: #1a0d12;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-info h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.shop-info__tagline { color: var(--etsy-text-soft); font-size: 14px; margin-bottom: 8px; font-style: italic; }
.shop-info__meta { font-size: 13px; color: var(--etsy-text-soft); display: flex; gap: 16px; flex-wrap: wrap; }
.shop-info__meta strong { color: var(--etsy-text); }
.star { color: #f3a712; }

.follow-btn {
  background: #fff;
  border: 1px solid var(--etsy-text);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
}
.follow-btn:hover { background: var(--etsy-bg-alt); }

/* ============= ANNOUNCEMENT ============= */
.shop-announcement {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  border: 1px solid var(--etsy-border-soft);
  border-radius: 8px;
  margin-left: 20px; margin-right: 20px;
  background: #fbf6ee;
  color: var(--etsy-text);
  font-size: 14px;
  line-height: 1.65;
}
.shop-announcement strong { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }

/* ============= TABS / SECTIONS ============= */
.shop-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid var(--etsy-border);
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.shop-tabs a {
  padding: 14px 0;
  color: var(--etsy-text-soft);
  border-bottom: 3px solid transparent;
}
.shop-tabs a.active { color: var(--etsy-text); border-color: var(--etsy-text); font-weight: 600; }

/* ============= PRODUCT GRID ============= */
.products-section {
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 20px;
}
.section-heading {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: space-between;
}
.section-heading small {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 13px;
  color: var(--etsy-text-soft);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.product-card__image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #1a0d12;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card__fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.product-card__bestseller {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}
.product-card__info { padding: 12px 4px 0; }
.product-card__title {
  font-size: 14px;
  line-height: 1.45;
  color: var(--etsy-text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__seller {
  font-size: 12px;
  color: var(--etsy-text-soft);
  margin-bottom: 6px;
}
.product-card__seller .star { font-size: 11px; }
.product-card__price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.product-card__price-now {
  font-size: 18px; font-weight: 700; color: var(--etsy-text);
}
.product-card__price-old {
  font-size: 13px; color: var(--etsy-text-light); text-decoration: line-through;
}
.product-card__shipping {
  font-size: 11px; color: #007e3a; font-weight: 600;
}

/* ============= POLICIES SECTION ============= */
.policies-section {
  background: var(--etsy-bg-soft);
  padding: 48px 0;
  margin-top: 40px;
}
.policies-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.policies-section h3 {
  font-family: var(--display);
  font-size: 24px;
  margin-bottom: 28px;
}
.policies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.policy-card {
  background: #fff;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--etsy-border-soft);
}
.policy-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--etsy-text);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.policy-card h4::before {
  content: '';
  width: 22px; height: 22px;
  background: var(--etsy-bg-alt);
  border-radius: 50%;
}
.policy-card p {
  font-size: 13px;
  color: var(--etsy-text-soft);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ============= FOOTER ============= */
.etsy-footer {
  background: #fff;
  border-top: 1px solid var(--etsy-border);
  padding: 32px 20px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--etsy-text-soft);
  text-align: center;
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--etsy-text-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--etsy-link); }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
}
.detail-gallery { display: grid; gap: 12px; }
.detail-gallery__main {
  border-radius: 6px;
  overflow: hidden;
  background: #1a0d12;
  aspect-ratio: 1;
}
.detail-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.detail-gallery__thumb {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}
.detail-gallery__thumb.active { border-color: var(--etsy-text); }
.detail-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-side h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.detail-shop-link {
  font-size: 13px;
  color: var(--etsy-link);
  margin-bottom: 18px;
  display: inline-block;
  border-bottom: 1px solid var(--etsy-link);
}
.detail-price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-vat-note {
  font-size: 13px;
  color: var(--etsy-text-soft);
  margin-bottom: 12px;
}
.bestseller-tag {
  display: inline-block;
  background: var(--etsy-bg-alt);
  color: var(--etsy-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.detail-meta { font-size: 13px; color: var(--etsy-text-soft); margin-bottom: 18px; }
.detail-meta strong { color: var(--etsy-text); font-weight: 600; }

.option-block { margin-bottom: 16px; }
.option-label {
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px; display: block;
}
.option-select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--etsy-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.cta-stack { display: grid; gap: 8px; margin: 18px 0; }
.btn-primary {
  background: #2f466c;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 999px;
  text-align: center;
  letter-spacing: 0.04em;
  width: 100%;
}
.btn-secondary {
  background: #fff;
  color: var(--etsy-text);
  border: 1px solid var(--etsy-text);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 999px;
  text-align: center;
  letter-spacing: 0.04em;
  width: 100%;
}
.btn-fav {
  background: #fff;
  color: var(--etsy-text);
  border: 1px solid var(--etsy-text);
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
  border-radius: 999px;
  text-align: center;
  width: 100%;
}

.guarantees {
  border: 1px solid var(--etsy-border-soft);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  color: var(--etsy-text-soft);
  margin: 16px 0;
}
.guarantees__row { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
.guarantees__row:last-child { margin-bottom: 0; }
.guarantees__icon {
  width: 22px; height: 22px;
  background: var(--etsy-bg-alt);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

.detail-tabs {
  margin-top: 36px;
  border-top: 1px solid var(--etsy-border);
  padding-top: 24px;
}
.detail-section { margin-bottom: 32px; }
.detail-section h3 {
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 700;
}
.detail-section p {
  margin-bottom: 12px;
  color: var(--etsy-text);
  line-height: 1.75;
  font-size: 15px;
}
.detail-section blockquote {
  border-left: 3px solid #c0392b;
  padding: 8px 16px;
  background: #fbf6ee;
  margin: 16px 0;
  font-style: italic;
  color: #5b3a3a;
}
.stones-list {
  display: grid; gap: 10px;
  background: #fbf6ee;
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
}
.stones-list li {
  font-size: 14px; line-height: 1.6;
}
.stones-list li strong { color: var(--etsy-text); font-weight: 700; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag-cloud li {
  background: #fff;
  border: 1px solid var(--etsy-border);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--etsy-text);
}

.disclaimer {
  font-size: 12px;
  color: var(--etsy-text-light);
  background: #f9f9f7;
  border-left: 3px solid var(--etsy-border);
  padding: 12px 16px;
  margin-top: 16px;
  line-height: 1.6;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 960px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .policies-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .shop-cover__overlay h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .policies-grid { grid-template-columns: 1fr; }
  .shop-cover__banner { height: 220px; }
  .shop-cover__overlay h1 { font-size: 26px; letter-spacing: 0.06em; }
  .shop-cover__overlay p { font-size: 11px; letter-spacing: 0.12em; }
  .shop-header { grid-template-columns: 80px 1fr; gap: 14px; }
  .shop-header .follow-btn { grid-column: 1 / -1; }
  .shop-avatar { width: 80px; height: 80px; }
  .shop-info h2 { font-size: 22px; }
  .etsy-header__inner { grid-template-columns: 1fr auto; }
  .search-bar { display: none; }
  .utility-bar__inner > span:first-child { display: none; }
  .etsy-nav__inner { gap: 14px; font-size: 12px; overflow-x: auto; flex-wrap: nowrap; }
  .shop-tabs { gap: 16px; overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .demo-badge { font-size: 10px; padding: 4px 9px; top: 8px; right: 8px; }
  .shop-cover { padding: 12px 12px 0; }
  .shop-header { padding: 16px 12px; }
  .products-section { padding: 0 12px; margin-top: 20px; }
  .shop-announcement { margin-left: 12px; margin-right: 12px; padding: 14px; }
}
