/* ==========================================================
   DPRO FLOWER NEXT-4: 写真付き公開商品カタログ
   ========================================================== */

.catalog-brand-link {
  color: inherit;
  text-decoration: none;
}

.catalog-hero {
  background:
    linear-gradient(118deg, rgba(22,57,44,.95), rgba(84,119,87,.88)),
    radial-gradient(circle at 84% 16%, rgba(247,232,230,.30), transparent 18rem);
}

.catalog-filter-card {
  margin: 20px 0 26px;
}

.catalog-filter-heading,
.catalog-section-heading,
.catalog-custom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.catalog-filter-heading h2,
.catalog-custom-card h2 {
  margin: 0;
}

.catalog-filter-heading p,
.catalog-custom-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.catalog-result-count {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--sage-pale);
  border: 1px solid #cfddcf;
  font-weight: 850;
}

.catalog-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin: 18px 0;
}

.catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.catalog-check {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.catalog-check input {
  width: 21px;
  height: 21px;
  min-height: auto;
  accent-color: var(--forest);
}

.catalog-filter-label {
  margin-bottom: 9px;
  color: var(--forest-2);
  font-weight: 850;
  font-size: .91rem;
}

.catalog-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.catalog-category-chip {
  appearance: none;
  border: 1px solid #ced9d0;
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--forest);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.catalog-category-chip:hover,
.catalog-category-chip.active {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.catalog-chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(145,173,147,.20);
  font-size: .72rem;
}

.catalog-category-chip.active .catalog-chip-count {
  background: rgba(255,255,255,.20);
}

.catalog-dark-eyebrow {
  margin-bottom: 3px;
  color: var(--sage);
}

.catalog-section-title {
  margin-top: 0;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.catalog-product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.catalog-product-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 24% 24%, rgba(255,255,255,.65), transparent 6rem),
    linear-gradient(145deg, var(--sage-pale), #f4e6e3);
}

.catalog-product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.catalog-product-card:hover .catalog-product-photo {
  transform: scale(1.025);
}

.catalog-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--forest);
}

.catalog-photo-placeholder span {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.catalog-photo-placeholder small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.catalog-product-badges {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  pointer-events: none;
}

.catalog-product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--forest-2);
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 5px 15px rgba(25,55,42,.13);
  font-size: .72rem;
  font-weight: 850;
}

.catalog-product-badge.recommended {
  color: #714b16;
  background: #fff7e8;
}

.catalog-product-badge.soldout {
  color: #7e2d2d;
  background: #fff0ef;
}

.catalog-soldout-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(31,45,39,.52);
  font-weight: 900;
  letter-spacing: .08em;
}

.catalog-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.catalog-product-category {
  min-height: 1.4em;
  margin-bottom: 4px;
  color: var(--rose);
  font-size: .78rem;
  font-weight: 850;
}

.catalog-product-name {
  margin: 0;
  color: var(--forest-2);
  font-size: 1.14rem;
  line-height: 1.42;
}

.catalog-product-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.25em;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: .86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}

.catalog-meta-tag {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--sage-pale);
  font-size: .72rem;
  font-weight: 750;
}

.catalog-product-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.catalog-product-price {
  color: var(--forest);
  font-size: 1.22rem;
  font-weight: 900;
}

.catalog-product-size {
  color: var(--muted);
  font-size: .76rem;
}

.catalog-product-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 9px;
  margin-top: 15px;
}

.catalog-product-actions .btn {
  width: 100%;
}

.catalog-empty {
  margin-top: 18px;
  text-align: center;
}

.catalog-empty-icon {
  font-size: 3.2rem;
}

.catalog-custom-card {
  margin-top: 34px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.97), rgba(232,240,230,.84));
}

.catalog-custom-card > div {
  max-width: 750px;
}

.catalog-loading-card {
  min-height: 360px;
}

.catalog-loading-image {
  height: 210px;
  margin: -21px -21px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(90deg, #edf2ed 25%, #f7faf7 38%, #edf2ed 63%);
  background-size: 400% 100%;
  animation: catalog-shimmer 1.5s infinite;
}

@keyframes catalog-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.catalog-dialog {
  width: min(960px, calc(100% - 24px));
  max-height: min(90vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(16,40,30,.30);
}

.catalog-dialog::backdrop {
  background: rgba(19,32,26,.66);
  backdrop-filter: blur(4px);
}

.catalog-dialog-shell {
  position: relative;
  max-height: min(90vh, 920px);
  overflow: auto;
}

.catalog-dialog-close {
  position: sticky;
  z-index: 5;
  top: 12px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 12px 12px -56px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest-2);
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 20px rgba(24,50,39,.14);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.catalog-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
}

.catalog-dialog-gallery {
  min-height: 470px;
  padding: 18px;
  background: #f2f6f1;
}

.catalog-dialog-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--sage-pale);
}

.catalog-dialog-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.catalog-dialog-thumb {
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.catalog-dialog-thumb.active {
  border-color: var(--forest);
}

.catalog-dialog-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.catalog-dialog-info {
  padding: 34px 28px 28px;
}

.catalog-dialog-info h2 {
  margin: 4px 0 7px;
  color: var(--forest-2);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.35;
}

.catalog-dialog-description {
  color: var(--muted);
  white-space: pre-wrap;
}

.catalog-dialog-price {
  margin: 16px 0;
  color: var(--forest);
  font-size: 1.55rem;
  font-weight: 900;
}

.catalog-detail-list {
  display: grid;
  gap: 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
}

.catalog-detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.catalog-detail-row span {
  color: var(--muted);
  font-size: .82rem;
}

.catalog-detail-row strong {
  color: var(--forest-2);
}

.catalog-option-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.catalog-option-item {
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--forest-2);
  background: var(--sage-pale);
  font-size: .84rem;
}

.catalog-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 9px;
  margin-top: 20px;
}

.catalog-mobile-nav {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 940px) {
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-dialog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-dialog-gallery {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .catalog-filter-heading,
  .catalog-section-heading,
  .catalog-custom-card {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-result-count {
    align-self: flex-start;
  }

  .catalog-filter-grid,
  .catalog-search-row,
  .catalog-product-grid,
  .catalog-product-actions,
  .catalog-dialog-actions {
    grid-template-columns: 1fr;
  }

  .catalog-product-description {
    min-height: auto;
  }

  .catalog-dialog {
    width: min(100% - 12px, 960px);
    max-height: 94vh;
    border-radius: 17px;
  }

  .catalog-dialog-shell {
    max-height: 94vh;
  }

  .catalog-dialog-gallery {
    padding: 12px;
  }

  .catalog-dialog-info {
    padding: 22px 17px 20px;
  }

  .catalog-detail-row {
    grid-template-columns: 90px 1fr;
  }

  .catalog-mobile-nav a {
    font-size: .58rem;
  }

  .catalog-mobile-nav span {
    font-size: 1rem;
  }
}
