:root {
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #24222a;
  background: #fff9fb;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff9fb; }
a { color: inherit; }
button, input, select { -webkit-tap-highlight-color: transparent; }
.hero { background: linear-gradient(135deg, #fff0f6, #f7f3ff); border-bottom: 1px solid #eadde6; }
.hero-inner, main, footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero-inner { padding: 42px 0 32px; }
.eyebrow { margin: 0 0 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; }
.hero p { max-width: 780px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; }
.hero-meta a { font-weight: 700; }
main { padding: 28px 0 56px; }
.filters { background: #fff; border: 1px solid #eadde6; border-radius: 18px; padding: 20px; box-shadow: 0 8px 24px rgba(55, 37, 50, .05); }
.search-wrap { display: grid; gap: 7px; font-weight: 700; }
.search-wrap input, select { width: 100%; border: 1px solid #d9ccd5; border-radius: 10px; background: #fff; padding: 11px 12px; font: inherit; }
.filter-block { margin-top: 18px; }
.filter-title { font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #d9ccd5; border-radius: 999px; background: #fff; padding: 7px 11px; cursor: pointer; font: inherit; }
.chip.active { background: #2b2430; color: #fff; border-color: #2b2430; }
.select-row { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.select-row label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.clear-button { margin-top: 14px; border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 2px 14px; }
.results-head h2 { margin: 0; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { overflow: hidden; background: #fff; border: 1px solid #eadde6; border-radius: 16px; box-shadow: 0 8px 20px rgba(55,37,50,.04); display: flex; flex-direction: column; min-width: 0; }
.card-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-clickable:hover { transform: translateY(-2px); border-color: #d7c6d1; box-shadow: 0 12px 26px rgba(55,37,50,.08); }
.card-clickable:focus-visible { outline: 3px solid rgba(211, 124, 169, .28); outline-offset: 2px; }
.card-image {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.card-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}
.no-image { font-size: 13px; color: #8a7e86; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; height: 100%; min-width: 0; }
.card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.price { font-size: 19px; font-weight: 800; line-height: 1.35; }
.card-meta { font-size: 11px; color: #6d6269; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 48px; overflow: hidden; }
.tag { padding: 4px 7px; border-radius: 7px; background: #f7f1f5; font-size: 11px; }
.card-popup-cta { margin-top: auto; padding-top: 10px; border-top: 1px solid #eee4ea; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #74646e; font-size: 11px; font-weight: 800; }
.card-popup-cta b { font-size: 22px; line-height: 1; font-weight: 500; color: #4a3d45; }
.empty { text-align: center; padding: 48px 0; color: #766a72; }
footer { padding: 24px 0 42px; border-top: 1px solid #eadde6; color: #6d6269; font-size: 12px; line-height: 1.7; }

.product-modal {
  width: min(650px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  padding: 0;
  border: 1px solid #e0d2da;
  border-radius: 24px;
  background: #fffdfd;
  color: #24222a;
  box-shadow: 0 30px 90px rgba(55, 37, 50, .28);
  overflow: hidden;
}
.product-modal::backdrop { background: rgba(37, 27, 34, .56); backdrop-filter: blur(4px); }
.product-modal-shell { position: relative; padding: 22px; max-height: min(820px, calc(100dvh - 28px)); overflow: auto; overscroll-behavior: contain; }
.product-modal-handle { display: none; }
.product-modal-close { position: absolute; z-index: 3; right: 16px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ded2da; background: #fff; color: #302930; font-size: 24px; line-height: 1; cursor: pointer; }
.product-modal-head { padding: 0 50px 16px 0; border-bottom: 1px solid #eee3e9; }
.product-modal-eyebrow { display: block; margin-bottom: 6px; color: #b04e81; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.product-modal-head strong { display: block; font-size: 18px; line-height: 1.5; }
.product-modal-summary { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 18px 0 14px; align-items: center; }
.product-modal-image { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 15px; overflow: hidden; background: #fff; border: 1px solid #eadfe5; }
.product-modal-image img { display: block; width: auto; height: auto; max-width: 96%; max-height: 96%; object-fit: contain; object-position: center center; margin: auto; background: #fff; }
.product-modal-summary-text { min-width: 0; }
.product-modal-status { color: #6d6269; font-size: 12px; line-height: 1.5; margin-bottom: 9px; }
.product-modal-price { font-size: 25px; font-weight: 900; line-height: 1.3; }
.product-modal-release { margin-top: 9px; color: #786c74; font-size: 11px; line-height: 1.6; }
.product-modal-tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 14px; }
.product-modal-tags span { font-size: 10px; color: #5f535a; border: 1px solid #e3d6de; padding: 5px 8px; border-radius: 8px; background: #fff7fa; }
.product-modal-shops { margin-top: 12px; }
.product-modal-shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.product-modal-shop-head strong { font-size: 15px; }
.product-modal-shop-head small { color: #857982; font-size: 10px; text-align: right; }
.product-modal-shop-list { display: grid; gap: 8px; }
.product-modal-shop-link { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid #e1d5dc; border-radius: 13px; background: #fff; text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.product-modal-shop-link:hover { border-color: #cfaabc; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(55,37,50,.06); }
.product-modal-shop-main, .product-modal-shop-side { display: grid; gap: 4px; min-width: 0; }
.product-modal-shop-main { flex: 1; }
.product-modal-shop-side { flex: 0 0 auto; text-align: right; }
.product-modal-shop-main strong, .product-modal-shop-side strong { font-size: 13px; line-height: 1.4; }
.product-modal-shop-main small, .product-modal-shop-side small { color: #7a6d75; font-size: 10px; line-height: 1.4; }
.product-modal-shop-main small b { color: #b04e81; }
.product-modal-no-shop { padding: 20px; border: 1px dashed #d9cbd4; border-radius: 12px; text-align: center; color: #857982; font-size: 11px; }
.product-modal-note { margin: 14px 0 0; color: #988b93; font-size: 9px; line-height: 1.6; }
body.product-modal-open { overflow: hidden; }

@media (max-width: 920px) { .products { grid-template-columns: repeat(3, minmax(0,1fr)); } }

@media (max-width: 680px) {
  .hero-inner, main, footer { width: min(100% - 22px, 1180px); }
  .hero-inner { padding-top: 28px; }
  .filters { padding: 15px; border-radius: 14px; }
  .select-row { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .card { border-radius: 15px; }
  .card-image img { max-width: 96%; max-height: 96%; }
  .card-body { padding: 11px; gap: 7px; }
  .card-title { font-size: 13px; -webkit-line-clamp: 3; }
  .price { font-size: 17px; }
  .card-meta { font-size: 10px; }
  .tag { font-size: 10px; padding: 4px 6px; }
  .card-popup-cta { padding-top: 8px; font-size: 9px; }
  .card-popup-cta b { font-size: 19px; }

  .product-modal {
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
  }
  .product-modal-shell { max-height: 88dvh; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); }
  .product-modal-handle { display: block; width: 42px; height: 4px; margin: 0 auto 9px; border-radius: 999px; background: #d0c2ca; }
  .product-modal-close { right: 12px; top: 14px; width: 34px; height: 34px; }
  .product-modal-head { padding: 2px 44px 12px 2px; }
  .product-modal-head strong { font-size: 14px; line-height: 1.45; }
  .product-modal-summary { grid-template-columns: 104px minmax(0,1fr); gap: 13px; padding: 13px 0 11px; }
  .product-modal-image { border-radius: 12px; }
  .product-modal-image img { max-width: 96%; max-height: 96%; }
  .product-modal-price { font-size: 21px; }
  .product-modal-release { margin-top: 7px; font-size: 9px; }
  .product-modal-status { margin-bottom: 7px; font-size: 10px; }
  .product-modal-tags { padding-bottom: 10px; }
  .product-modal-shops { margin-top: 10px; }
  .product-modal-shop-head { align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: 8px; }
  .product-modal-shop-head small { text-align: left; }
  .product-modal-shop-link { min-height: 58px; padding: 11px 12px; }
  .product-modal-shop-main strong, .product-modal-shop-side strong { font-size: 11px; }
  .product-modal-shop-main small, .product-modal-shop-side small { font-size: 9px; }
  .product-modal-shop-side { max-width: 44%; }
}

@media (max-width: 390px) {
  .products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-inner, main, footer { width: min(100% - 18px, 1180px); }
  .card-body { padding: 9px; }
  .card-title { font-size: 12.5px; }
  .price { font-size: 15px; }
  .card-popup-cta span { max-width: 80%; }
}
