/* ==========================================================
   DPRO FLOWER NEXT-5
   カタログ注文＋オーダーメイド注文統合画面
   ========================================================== */

.next-order-hero {
  background:
    linear-gradient(118deg, rgba(22,57,44,.96), rgba(75,113,83,.90)),
    radial-gradient(circle at 86% 16%, rgba(247,232,230,.32), transparent 18rem);
}

.next-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.next-mode-card {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 19px;
  border: 2px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(38,68,54,.05);
  text-align: left;
  cursor: pointer;
}

.next-mode-card:hover {
  border-color: var(--sage);
  transform: translateY(-1px);
}

.next-mode-card.active {
  border-color: var(--forest);
  background:
    linear-gradient(135deg, rgba(232,240,230,.92), rgba(255,255,255,.98));
  box-shadow: 0 0 0 4px rgba(33,76,59,.10);
}

.next-mode-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--sage-pale);
  font-size: 1.8rem;
}

.next-mode-copy strong,
.next-mode-copy small {
  display: block;
}

.next-mode-copy strong {
  color: var(--forest-2);
  font-size: 1.08rem;
}

.next-mode-copy small {
  margin-top: 4px;
  color: var(--muted);
}

.next-mode-check {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #f3f5f3;
  font-size: .73rem;
  font-weight: 850;
  white-space: nowrap;
}

.next-mode-card.active .next-mode-check {
  color: #fff;
  background: var(--forest);
}

.next-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.next-card-heading h2 {
  margin-bottom: 4px;
}

.next-card-heading p {
  margin: 0;
  color: var(--muted);
}

.next-section-card {
  margin-top: 18px;
}

.next-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.next-product-option {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.next-product-option:hover {
  border-color: var(--sage);
}

.next-product-option:has(input:checked) {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(33,76,59,.10);
}

.next-product-option.is-disabled {
  opacity: .66;
  cursor: not-allowed;
}

.next-product-option input[type="radio"] {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  width: 22px;
  height: 22px;
  min-height: auto;
  accent-color: var(--forest);
}

.next-product-thumb {
  width: 112px;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
  background: var(--sage-pale);
}

.next-product-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 112px;
  min-height: 142px;
  color: var(--forest);
  background:
    linear-gradient(145deg, var(--sage-pale), var(--rose-pale));
  font-size: 2.1rem;
}

.next-product-copy {
  min-width: 0;
  padding: 15px 14px 14px 0;
}

.next-product-category {
  margin-bottom: 3px;
  color: var(--rose);
  font-size: .72rem;
  font-weight: 850;
}

.next-product-name {
  display: block;
  color: var(--forest-2);
  font-size: 1rem;
  font-weight: 900;
}

.next-product-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 9px;
  color: var(--muted);
  font-size: .79rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.next-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.next-product-tag {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--sage-pale);
  font-size: .66rem;
  font-weight: 750;
}

.next-product-soldout {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #7e2d2d;
  background: #fff0ef;
  font-size: .68rem;
  font-weight: 850;
}

.next-selected-product {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  margin-top: 17px;
  padding: 15px;
  border: 1px solid #cdddcf;
  border-radius: 15px;
  background: linear-gradient(135deg, #f7fbf7, #fff);
}

.next-selected-product img,
.next-selected-photo-placeholder {
  width: 148px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sage-pale);
}

.next-selected-photo-placeholder {
  display: grid;
  place-items: center;
  font-size: 2.1rem;
}

.next-selected-product h3 {
  margin: 0 0 5px;
}

.next-selected-product p {
  margin: 5px 0;
  color: var(--muted);
}

.next-selected-price {
  color: var(--forest);
  font-size: 1.15rem;
  font-weight: 900;
}

.next-product-options {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.next-product-options h3 {
  margin: 0 0 10px;
}

.next-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

.next-inline-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  color: var(--forest-2);
  font-weight: 750;
}

.next-summary-card {
  position: sticky;
  bottom: 12px;
  z-index: 9;
  border-color: #cbdccd;
  box-shadow: 0 16px 42px rgba(30,63,48,.15);
}

.next-summary-card .actions {
  justify-content: flex-end;
}

.next-summary-card .btn-primary {
  min-width: min(100%, 300px);
}

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

@media (max-width: 880px) {
  .next-mode-grid,
  .next-product-list,
  .next-option-grid {
    grid-template-columns: 1fr;
  }

  .next-summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .next-mode-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .next-mode-check {
    grid-column: 2;
    justify-self: start;
  }

  .next-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .next-product-option {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .next-product-thumb,
  .next-product-thumb-placeholder {
    width: 92px;
  }

  .next-selected-product {
    grid-template-columns: 1fr;
  }

  .next-selected-product img,
  .next-selected-photo-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

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

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