:root {
  --ink: #27322b;
  --muted: #69736c;
  --cream: #f7f3eb;
  --paper: #fffdf8;
  --green: #335846;
  --green-light: #dbe5dc;
  --peach: #e2a98f;
  --line: rgba(39, 50, 43, 0.14);
  --serif: "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Quicksand", "PingFang SC", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.hero {
  min-height: 78vh;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(24, 43, 33, 0.72), rgba(24, 43, 33, 0.08)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=1800&q=85")
      center/cover;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-contact {
  padding: 0 0 4px;
  border: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
}

.hero-copy {
  display: flex;
  min-height: 62vh;
  max-width: 1180px;
  margin: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 10vw, 5.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.hero-text {
  max-width: 390px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.8;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
}

.primary-button {
  color: white;
  background: var(--green);
}

.hero .primary-button {
  color: var(--green);
  background: white;
}

.how-to {
  position: relative;
  display: grid;
  max-width: 1080px;
  margin: -32px 20px 34px;
  padding: 24px 22px;
  gap: 20px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(39, 50, 43, 0.1);
}

.how-to-title {
  position: relative;
}

.how-to-title .eyebrow {
  color: var(--peach);
}

.how-to h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.how-to ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.how-to li {
  display: flex;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.how-to li:last-child {
  border-bottom: 0;
}

.how-to li span {
  color: var(--peach);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-lead {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 0;
  align-items: center;
  gap: 16px;
  color: var(--peach);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.service-lead::before,
.service-lead::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(226, 169, 143, 0.42);
}

.service-lead span {
  flex: none;
}

.intro {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 60px;
  gap: 26px;
}

.intro article {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.intro span {
  color: var(--peach);
  font-size: 0.88rem;
  font-weight: bold;
  letter-spacing: 0.06em;
}

.intro h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.intro p,
.section-heading > p,
.custom-card p,
footer p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.catalog {
  padding: 68px 20px 90px;
  background: var(--cream);
}

.section-heading,
.filters,
.subfilters,
.bouquet-grid {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: flex;
  margin-bottom: 30px;
  flex-direction: column;
  gap: 8px;
}

.section-heading h2,
.custom-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 600;
}

.section-heading > p {
  margin: 0;
}

.swipe-hint {
  max-width: 1180px;
  margin: 0 auto 10px;
  color: var(--peach);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: right;
}

.swipe-hint span {
  display: inline-block;
  margin-left: 4px;
  animation: swipe-nudge 1.5s ease-in-out infinite;
}

@keyframes swipe-nudge {
  50% {
    transform: translateX(4px);
  }
}

.filters {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 4px;
  gap: 8px;
  overflow-x: auto;
}

.subfilters {
  display: none;
  margin-bottom: 26px;
  padding: 14px;
  border-left: 3px solid var(--peach);
  gap: 8px;
  overflow-x: auto;
  background: rgba(255, 253, 248, 0.68);
}

.subfilters.visible {
  display: flex;
}

.subfilter {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 0;
  border-radius: 100px;
  color: var(--muted);
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
}

.subfilter.active {
  color: white;
  background: var(--peach);
}

.filter {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter.active {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

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

.empty-state {
  grid-column: 1 / -1;
  margin: 24px 0;
  padding: 36px 20px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.7);
  text-align: center;
  line-height: 1.8;
}

.bouquet-card {
  cursor: pointer;
}

.bouquet-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #eeeae2;
  transition: transform 250ms ease;
}

.bouquet-card:hover img {
  transform: translateY(-4px);
}

.bouquet-info {
  display: flex;
  padding-top: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bouquet-info h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 0.95rem;
}

.bouquet-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.bouquet-info strong {
  flex: 0 0 auto;
  font-size: 0.88rem;
}

.custom-card {
  max-width: 920px;
  margin: 80px 20px;
  padding: 52px 26px;
  background: var(--green-light);
  text-align: center;
}

.custom-card p:not(.eyebrow) {
  max-width: 480px;
  margin: 16px auto 26px;
}

.secondary-button {
  border: 1px solid var(--green);
  color: var(--green);
}

footer {
  display: flex;
  padding: 44px 20px;
  flex-direction: column;
  gap: 25px;
  color: white;
  background: var(--ink);
}

footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.contact-list strong {
  display: inline-block;
  min-width: 76px;
  color: white;
}

.product-dialog {
  position: fixed;
  inset: 0;
  width: min(92vw, 720px);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
}

.contact-dialog {
  width: min(90vw, 430px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(22, 31, 26, 0.28);
}

.contact-dialog::backdrop {
  background: rgba(22, 31, 26, 0.72);
}

.contact-profile {
  padding: 34px 28px 24px;
  text-align: center;
  background: var(--cream);
}

.owner-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(39, 50, 43, 0.16);
}

.owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.28);
}

.contact-profile .eyebrow {
  margin-bottom: 8px;
  color: var(--peach);
}

.contact-profile h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.contact-intro {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-details {
  padding: 20px 28px 10px;
}

.contact-details p {
  display: grid;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 72px 1fr;
  gap: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.contact-details span {
  color: var(--muted);
}

.contact-details strong {
  font-weight: 600;
}

.contact-actions {
  display: grid;
  padding: 14px 28px 4px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-actions .primary-button {
  grid-column: 1 / -1;
}

.contact-actions .secondary-button {
  border: 1px solid var(--line);
  background: transparent;
}

.contact-tip {
  min-height: 36px;
  margin: 0;
  padding: 8px 28px 14px;
  color: var(--green);
  font-size: 0.75rem;
  text-align: center;
}

.product-dialog::backdrop {
  background: rgba(22, 31, 26, 0.72);
}

.product-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  background: #eeeae2;
}

.dialog-scroll-hint {
  margin: 0;
  padding: 10px 16px;
  color: white;
  background: rgba(51, 88, 70, 0.94);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.dialog-scroll-hint span {
  display: inline-block;
  margin-right: 5px;
  animation: hint-bounce 1.4s ease-in-out infinite;
}

@keyframes hint-bounce {
  50% {
    transform: translateY(3px);
  }
}

.dialog-close {
  position: fixed;
  z-index: 10;
  display: grid;
  top: calc(5vh + 12px);
  right: max(calc(4vw + 12px), calc((100vw - 720px) / 2 + 12px));
  margin: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.5rem;
  place-items: center;
}

.contact-dialog .dialog-close,
.shortlist-dialog .dialog-close {
  position: absolute;
  margin: 0;
  top: 12px;
  right: 12px;
}

.dialog-content {
  padding: 26px;
}

.dialog-tag,
.dialog-materials,
.copy-tip {
  color: var(--muted);
  font-size: 0.8rem;
}

.dialog-content h2 {
  margin: 5px 0 14px;
  font-family: var(--serif);
}

.dialog-description {
  line-height: 1.75;
}

.dialog-bottom {
  display: flex;
  margin-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dialog-price-wrap span {
  color: var(--muted);
  font-size: 0.68rem;
}

.copy-tip {
  min-height: 20px;
  margin-bottom: 0;
  text-align: right;
}

.shortlist-bar {
  position: fixed;
  z-index: 8;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: auto;
  display: none;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 100px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  background: var(--green);
  box-shadow: 0 10px 28px rgba(39, 50, 43, 0.28);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
}

.shortlist-bar.visible {
  display: flex;
}

.shortlist-bar strong {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  place-items: center;
  color: var(--green);
  background: white;
  font-size: 0.75rem;
}

.music-toggle {
  position: fixed;
  z-index: 7;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 14px;
  display: flex;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 8px 24px rgba(39, 50, 43, 0.16);
  cursor: pointer;
  transition: bottom 0.3s ease;
}

.music-disc {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  color: white;
  background: radial-gradient(circle at center, var(--green) 0 58%, #35443b 59% 100%);
  font-size: 1.1rem;
  font-weight: 700;
}

.music-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  font-size: 0.68rem;
  transition: max-width 0.35s ease, opacity 0.25s ease;
}

.music-toggle.playing .music-disc {
  animation: music-spin 5s linear infinite;
}

@keyframes music-spin {
  to {
    transform: rotate(360deg);
  }
}

.shortlist-dialog {
  width: min(94vw, 820px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}

.shortlist-dialog::backdrop {
  background: rgba(22, 31, 26, 0.72);
}

.shortlist-heading {
  position: relative;
  padding: 28px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.shortlist-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
}

.shortlist-heading > div > p:last-child {
  margin: 8px 42px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.shortlist-close {
  top: 22px;
}

.shortlist-items {
  display: grid;
  padding: 20px 26px;
  gap: 12px;
}

.shortlist-empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.shortlist-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.shortlist-item img {
  width: 64px;
  height: 72px;
  object-fit: cover;
}

.shortlist-item h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.shortlist-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.remove-pick {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
}

.request-form {
  display: grid;
  padding: 24px 26px 30px;
  border-top: 1px solid var(--line);
  gap: 14px;
}

.request-form h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
}

.request-form label {
  display: grid;
  gap: 6px;
}

.request-form label span {
  color: var(--muted);
  font-size: 0.75rem;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: white;
  font: inherit;
}

.request-form textarea {
  resize: vertical;
}

.form-tip {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.7;
  text-align: center;
}

@media (min-width: 720px) {
  .music-toggle {
    width: auto;
    padding: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .music-toggle:hover .music-label,
  .music-toggle.playing .music-label {
    max-width: 120px;
    opacity: 1;
  }

  .music-toggle {
    bottom: 18px;
    left: 18px;
  }

  .shortlist-bar {
    right: 18px;
    bottom: 18px;
    left: auto;
    justify-content: flex-start;
  }

  .hero {
    padding: 30px 40px;
  }

  .intro {
    grid-template-columns: repeat(4, 1fr);
    padding: 80px 40px;
    gap: 30px;
  }

  .how-to {
    grid-template-columns: 190px 1fr;
    margin: -42px auto 40px;
    padding: 28px 34px;
    align-items: center;
  }

  .how-to ol {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .how-to li {
    min-height: 48px;
    padding: 0 20px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .how-to li:last-child {
    border-right: 0;
  }

  .intro article {
    border-bottom: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 24px;
  }

  .catalog {
    padding: 90px 40px 120px;
  }

  .swipe-hint {
    display: none;
  }

  .section-heading {
    margin-bottom: 40px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .bouquet-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 42px 22px;
  }

  .bouquet-info h3 {
    font-size: 1.1rem;
  }

  .custom-card {
    margin: 100px auto;
    padding: 70px 40px;
  }

  .request-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .request-form h3,
  .full-field {
    grid-column: 1 / -1;
  }

  footer {
    padding: 60px max(40px, calc((100% - 1180px) / 2));
    flex-direction: row;
    justify-content: space-between;
  }
}
