/* Appily Twenty — Florist Sheet product page (fs-) */

.page-fs-sheet {
  --fs-wine: #2d1b2e;
  --fs-wine-soft: #4a3048;
  --fs-blush: #e8c4c4;
  --fs-blush-deep: #c99595;
  --fs-mint: #7eb8a4;
  --fs-mint-dark: #5a9688;
  --fs-cream: #faf6f1;
  --fs-paper: #fffefb;
  --fs-accent: var(--fs-mint);
  --fs-accent-soft: rgba(126, 184, 164, 0.2);
  --fs-ink: #1a1418;
  --fs-muted: #6b5f66;
  --fs-line: rgba(26, 20, 24, 0.1);
  --fs-shadow: 0 20px 48px rgba(45, 27, 46, 0.09);
  --fs-serif: 'Instrument Serif', Georgia, serif;
  --fs-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fs-mono: 'Consolas', 'Courier New', monospace;
  background: var(--fs-cream);
  font-family: var(--fs-sans);
}

.page-fs-sheet .page-main { padding-top: 0; }

/* Aisle tone accents */
.page-fs-sheet.tone-rose { --fs-accent: #c44569; --fs-accent-soft: rgba(196, 69, 105, 0.18); }
.page-fs-sheet.tone-peony { --fs-accent: #d4a0a8; --fs-accent-soft: rgba(212, 160, 168, 0.25); }
.page-fs-sheet.tone-lily { --fs-accent: #e8c4c4; --fs-accent-soft: rgba(232, 196, 196, 0.35); }
.page-fs-sheet.tone-tulip { --fs-accent: #e85a7a; --fs-accent-soft: rgba(232, 90, 122, 0.18); }
.page-fs-sheet.tone-orchid { --fs-accent: #9b7bb8; --fs-accent-soft: rgba(155, 123, 184, 0.2); }
.page-fs-sheet.tone-wild { --fs-accent: #7eb8a4; --fs-accent-soft: rgba(126, 184, 164, 0.22); }
.page-fs-sheet.tone-exotic { --fs-accent: #4a3048; --fs-accent-soft: rgba(74, 48, 72, 0.12); }

.fs-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fs-mint-dark);
}

/* Trail / breadcrumb */
.fs-trail {
  padding: 14px 0;
  background: var(--fs-paper);
  border-bottom: 1px solid var(--fs-line);
}

.fs-trail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fs-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.fs-crumb a {
  color: var(--fs-muted);
  text-decoration: none;
}

.fs-crumb a:hover { color: var(--fs-wine); }

.fs-crumb span[aria-hidden] {
  color: var(--fs-blush-deep);
  font-size: 0.65rem;
}

.fs-crumb-current {
  color: var(--fs-ink);
  font-weight: 600;
}

.fs-aisle-chip {
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fs-wine);
  background: var(--fs-accent-soft);
  border: 1px solid var(--fs-accent);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.fs-aisle-chip:hover {
  background: var(--fs-accent);
  color: #fff;
}

/* Stage */
.fs-stage {
  padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, var(--fs-accent-soft), transparent 55%),
    var(--fs-cream);
}

.fs-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

/* Easel display */
.fs-easel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fs-easel-wash {
  position: absolute;
  inset: 10% 5% 20%;
  background: radial-gradient(ellipse at 50% 40%, var(--fs-accent-soft), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.fs-easel-board {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 16px;
  background: var(--fs-paper);
  border: 1px solid var(--fs-line);
  border-radius: 4px;
  box-shadow: var(--fs-shadow);
  transform: rotate(-0.5deg);
}

.fs-easel-stand {
  width: 60%;
  max-width: 200px;
  height: 24px;
  margin-top: -2px;
  background: linear-gradient(180deg, #c9b8a4, #a89078);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.fs-hero-img {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--fs-cream);
}

.fs-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-flag {
  position: absolute;
  top: 28px;
  left: 28px;
  padding: 6px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--fs-wine);
  color: #fff;
  border-radius: 4px;
  z-index: 2;
}

.fs-flag-sold {
  background: var(--fs-muted);
}

.fs-vitality-ring {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 72px;
  height: 72px;
  z-index: 2;
}

.fs-vitality-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fs-ring-track {
  fill: none;
  stroke: var(--fs-line);
  stroke-width: 6;
}

.fs-ring-fill {
  fill: none;
  stroke: var(--fs-accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: calc(264 - (264 * var(--fs-score, 0) / 100));
}

.fs-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--fs-wine);
  background: var(--fs-paper);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fs-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.fs-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fs-wine);
  background: var(--fs-paper);
  border: 1px solid var(--fs-line);
  border-radius: 999px;
}

/* Florist sheet panel */
.fs-sheet {
  background: var(--fs-paper);
  border: 1px solid var(--fs-line);
  border-radius: 4px 16px 16px 4px;
  box-shadow: var(--fs-shadow);
  overflow: hidden;
}

.fs-sheet-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--fs-accent-soft), transparent);
  border-bottom: 1px solid var(--fs-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-muted);
}

.fs-sheet-code {
  font-family: var(--fs-mono);
  color: var(--fs-wine);
}

.fs-sheet-body {
  padding: 24px 26px 28px;
}

.fs-sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.fs-sheet-head h1 {
  margin: 0 0 8px;
  font-family: var(--fs-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--fs-ink);
  letter-spacing: -0.02em;
}

.fs-pack {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fs-muted);
}

.fs-pack strong { color: var(--fs-ink); }

.fs-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.fs-star {
  color: var(--fs-line);
  font-size: 1rem;
}

.fs-star.is-on { color: var(--fs-accent); }

.fs-reviews {
  margin-left: 6px;
  font-size: 0.82rem;
  color: var(--fs-muted);
}

/* Vitality petals */
.fs-petals {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--fs-cream);
  border-radius: 12px;
  border: 1px solid var(--fs-line);
}

.fs-petal-row {
  display: grid;
  grid-template-columns: 16px 88px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.fs-petal-icon {
  width: 12px;
  height: 16px;
  border-radius: 50% 50% 40% 40%;
  background: var(--fs-accent);
  opacity: 0.75;
}

.fs-petal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fs-muted);
}

.fs-petal-bar {
  height: 6px;
  background: var(--fs-line);
  border-radius: 999px;
  overflow: hidden;
}

.fs-petal-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fs-accent), var(--fs-mint-dark));
  border-radius: 999px;
}

.fs-petal-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fs-wine);
  text-align: right;
}

/* Price */
.fs-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 20px;
}

.fs-price-was {
  font-size: 1rem;
  color: var(--fs-muted);
  text-decoration: line-through;
}

.fs-price {
  font-family: var(--fs-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 400;
  color: var(--fs-wine);
  line-height: 1;
}

.fs-price.is-sale { color: #c44569; }

.fs-price-unit {
  font-size: 0.88rem;
  color: var(--fs-muted);
}

/* Meta grid */
.fs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.fs-meta-tile {
  padding: 12px;
  background: var(--fs-cream);
  border: 1px solid var(--fs-line);
  border-radius: 10px;
  text-align: center;
}

.fs-meta-key {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-muted);
  margin-bottom: 4px;
}

.fs-meta-tile strong {
  font-size: 0.82rem;
  color: var(--fs-ink);
  word-break: break-word;
}

.fs-desc {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fs-muted);
}

.fs-rule {
  height: 1px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, transparent, var(--fs-blush-deep), transparent);
  opacity: 0.45;
}

/* Buy form */
.fs-buy-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.fs-qty-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-qty-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fs-muted);
}

.fs-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--fs-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--fs-cream);
}

.fs-stepper-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fs-wine);
  cursor: pointer;
}

.fs-stepper-btn:hover {
  background: var(--fs-accent-soft);
}

.fs-stepper input {
  width: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--fs-ink);
  -moz-appearance: textfield;
}

.fs-stepper input::-webkit-outer-spin-button,
.fs-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.2s;
}

.fs-btn-primary {
  background: var(--fs-wine);
  color: #fff;
  flex: 1;
  min-width: 200px;
}

.fs-btn-primary:hover {
  background: var(--fs-wine-soft);
}

.fs-btn-disabled {
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fs-muted);
  background: var(--fs-line);
  cursor: not-allowed;
}

.fs-footnote {
  margin: 16px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--fs-muted);
}

/* Care notes */
.fs-care {
  padding: 0 0 clamp(40px, 5vw, 56px);
}

.fs-care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fs-care-note {
  background: var(--fs-paper);
  border: 1px solid var(--fs-line);
  border-radius: 12px;
  overflow: hidden;
}

.fs-care-note summary {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--fs-ink);
  cursor: pointer;
  list-style: none;
}

.fs-care-note summary::-webkit-details-marker { display: none; }

.fs-care-note summary::after {
  content: "+";
  float: right;
  color: var(--fs-mint-dark);
  font-weight: 800;
}

.fs-care-note[open] summary::after { content: "−"; }

.fs-care-note p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--fs-muted);
}

/* Companion tags */
.fs-companion {
  padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 7vw, 72px);
  background: var(--fs-paper);
  border-top: 1px solid var(--fs-line);
}

.fs-companion-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.fs-companion-head h2 {
  margin: 0;
  font-family: var(--fs-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--fs-ink);
}

.fs-companion-all {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fs-wine);
  text-decoration: none;
}

.fs-companion-all:hover { color: var(--fs-mint-dark); }

.fs-tags {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
}

.fs-tag-card {
  position: relative;
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 12px 16px;
  background: var(--fs-cream);
  border: 1px solid var(--fs-line);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fs-tag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fs-shadow);
}

.fs-tag-string {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  background: var(--fs-blush-deep);
}

.fs-tag-string::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--fs-accent);
}

.fs-tag-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fs-paper);
  border: 2px solid var(--fs-blush);
  margin-bottom: 10px;
}

.fs-tag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-tag-body {
  text-align: center;
}

.fs-tag-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fs-ink);
  line-height: 1.25;
  margin-bottom: 4px;
}

.fs-tag-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--fs-wine);
}

/* Miss state */
.fs-miss {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.fs-miss-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.fs-miss-easel {
  width: 120px;
  height: 100px;
  margin: 0 auto 24px;
  border: 2px dashed var(--fs-blush-deep);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--fs-paper);
}

.fs-miss-frame {
  font-size: 2.5rem;
  opacity: 0.25;
}

.fs-miss-inner h1 {
  margin: 0 0 12px;
  font-family: var(--fs-serif);
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--fs-ink);
}

.fs-miss-inner p {
  margin: 0 0 24px;
  color: var(--fs-muted);
  font-size: 0.94rem;
}

/* Responsive */
@media (max-width: 900px) {
  .fs-stage-grid {
    grid-template-columns: 1fr;
  }

  .fs-easel-board {
    max-width: 100%;
    transform: none;
  }

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

  .fs-care-grid {
    grid-template-columns: 1fr;
  }

  .fs-petal-row {
    grid-template-columns: 16px 1fr 40px;
  }

  .fs-petal-label {
    grid-column: 2;
  }

  .fs-petal-bar {
    grid-column: 1 / -1;
  }

  .fs-petal-val {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 520px) {
  .fs-sheet-body {
    padding: 20px 18px 24px;
  }

  .fs-buy-form {
    flex-direction: column;
    align-items: stretch;
  }

  .fs-btn-primary {
    width: 100%;
  }

  .fs-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fs-tag-card,
  .fs-aisle-chip {
    transition: none;
  }
}
