/* Appily Seventeen — Specimen Frame Gallery product */

.page-specimen-frame .page-main {
  background: linear-gradient(180deg, #f4f0e8 0%, #faf8f5 22%, #fff 100%);
}

/* ── Breadcrumb trail ── */
.sf-trail {
  padding: 16px 0;
  background: #faf8f5;
  border-bottom: 1px solid #ebe4d8;
}
.sf-trail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sf-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.sf-crumb a {
  color: #6b7280;
  text-decoration: none;
}
.sf-crumb a:hover {
  color: #3bb77e;
}
.sf-crumb-current {
  color: #253d4e;
  font-weight: 600;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 183, 126, 0.12);
  border: 1px solid rgba(59, 183, 126, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  color: #2d8a5e;
  text-decoration: none;
  transition: background 0.2s;
}
.sf-cat-chip:hover {
  background: rgba(59, 183, 126, 0.22);
}

/* ── Gallery stage ── */
.sf-gallery {
  padding: 40px 0 48px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59, 183, 126, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #faf8f5 0%, #fff 100%);
}
.sf-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

/* Specimen frame showcase */
.sf-frame-wrap {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 4px;
  background: linear-gradient(145deg, #fffef9 0%, #f5f0e8 100%);
  border: 1px solid #d8cfc0;
  box-shadow:
    inset 0 0 0 8px #ebe4d8,
    inset 0 0 0 10px #f5f0e8,
    0 24px 64px rgba(61, 46, 31, 0.1);
}
.sf-frame-bg {
  position: absolute;
  inset: 16px;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23253d4e' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sf-specimen-frame {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}
.sf-frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #a07830;
}
.sf-frame-corner-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.sf-frame-corner-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.sf-frame-corner-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.sf-frame-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.sf-frame-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 4px;
  background: rgba(37, 61, 78, 0.85);
  color: #7ee0ad;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sf-germ-ring {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 72px;
  height: 72px;
}
.sf-germ-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.sf-germ-track {
  fill: none;
  stroke: #ebe4d8;
  stroke-width: 6;
}
.sf-germ-fill {
  fill: none;
  stroke: #3bb77e;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 214;
  stroke-dashoffset: calc(214 - (214 * var(--sf-score, 90) / 100));
  transition: stroke-dashoffset 0.6s ease;
}
.sf-germ-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #253d4e;
  text-align: center;
  line-height: 1.2;
}
.sf-hero-img {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #eef6f1;
  border: 1px solid #dceee4;
}
.sf-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(59, 183, 126, 0.35);
}
.sf-badge-sold {
  background: linear-gradient(145deg, #6b7280, #4b5563);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sf-assurances {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.sf-assurances li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ebe4d8;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
}

/* Tone accents */
.sf-gallery.tone-annual { --sf-accent: #e74c3c; --sf-accent-soft: rgba(231, 76, 60, 0.12); }
.sf-gallery.tone-cut { --sf-accent: #e91e63; --sf-accent-soft: rgba(233, 30, 99, 0.12); }
.sf-gallery.tone-meadow { --sf-accent: #8bc34a; --sf-accent-soft: rgba(139, 195, 74, 0.15); }
.sf-gallery.tone-climber { --sf-accent: #009688; --sf-accent-soft: rgba(0, 150, 136, 0.12); }
.sf-gallery.tone-perennial { --sf-accent: #9c27b0; --sf-accent-soft: rgba(156, 39, 176, 0.12); }
.sf-gallery.tone-fragrant { --sf-accent: #ff9800; --sf-accent-soft: rgba(255, 152, 0, 0.12); }
.sf-gallery.tone-pollinator { --sf-accent: #ffc107; --sf-accent-soft: rgba(255, 193, 7, 0.15); }
.sf-gallery.tone-seed { --sf-accent: #3bb77e; --sf-accent-soft: rgba(59, 183, 126, 0.12); }
.sf-gallery.tone-annual .sf-frame-corner { border-color: #c0392b; }
.sf-gallery.tone-meadow .sf-frame-corner { border-color: #689f38; }
.sf-gallery.tone-pollinator .sf-frame-corner { border-color: #f9a825; }

/* Lot card */
.sf-lot-card {
  position: relative;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dceee4;
  box-shadow: 0 20px 56px rgba(30, 61, 50, 0.08);
  overflow: hidden;
}
.sf-card-tab {
  position: absolute;
  top: 20px;
  right: -1px;
  padding: 8px 14px 8px 18px;
  border-radius: 8px 0 0 8px;
  background: #253d4e;
  color: #7ee0ad;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  letter-spacing: 0.06em;
}
.sf-card-body {
  padding: 28px 28px 32px;
}
.sf-card-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3bb77e;
}
.sf-card-head h1 {
  margin: 0 0 8px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  line-height: 1.2;
  color: #253d4e;
}
.sf-variant {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7280;
}
.sf-variant strong {
  color: #253d4e;
}
.sf-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sf-rating {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.sf-star {
  font-size: 0.95rem;
  color: #dceee4;
}
.sf-star.is-on {
  color: #ffc107;
}
.sf-reviews {
  margin-left: 4px;
  font-size: 0.78rem;
  color: #8a9aa8;
}

.sf-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef6f1 0%, #e4f3eb 100%);
  border: 1px solid #c8ddd2;
}
.sf-price {
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #253d4e;
}
.sf-price-unit {
  font-size: 0.85rem;
  color: #6b7280;
}

.sf-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.sf-meta-cell {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fafcfb;
  border: 1px solid #eef6f1;
}
.sf-meta-icon {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #3bb77e;
}
.sf-meta-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9aa8;
}
.sf-meta-cell strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #253d4e;
}

.sf-desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
}
.sf-perf {
  height: 1px;
  margin: 0 0 20px;
  background: repeating-linear-gradient(90deg, #253d4e 0, #253d4e 4px, transparent 4px, transparent 8px);
  opacity: 0.12;
}

/* Buy form */
.sf-buy-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.sf-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf-qty-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}
.sf-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #c8ddd2;
  border-radius: 10px;
  overflow: hidden;
  background: #fafcfb;
}
.sf-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  border: none;
  background: #eef6f1;
  font-size: 1.1rem;
  font-weight: 700;
  color: #253d4e;
  cursor: pointer;
  transition: background 0.2s;
}
.sf-qty-btn:hover {
  background: #dceee4;
}
.sf-qty-stepper input {
  width: 48px;
  padding: 10px 4px;
  border: none;
  border-left: 1px solid #c8ddd2;
  border-right: 1px solid #c8ddd2;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.sf-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: #8a9aa8;
  line-height: 1.5;
}

/* Buttons */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.sf-btn-primary {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  color: #fff;
  box-shadow: 0 6px 20px rgba(59, 183, 126, 0.35);
}
.sf-btn-primary:hover {
  background: linear-gradient(145deg, #45c98a, #359f72);
  transform: translateY(-1px);
}
.sf-btn-disabled {
  flex: 1;
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}
.sf-btn-icon {
  font-size: 1.1rem;
}

/* Guide cards */
.sf-guides {
  padding: 0 0 48px;
}
.sf-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sf-guide-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dceee4;
  box-shadow: 0 8px 24px rgba(30, 61, 50, 0.04);
}
.sf-guide-card summary {
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #253d4e;
  cursor: pointer;
  list-style: none;
}
.sf-guide-card summary::-webkit-details-marker {
  display: none;
}
.sf-guide-card summary::before {
  content: '▸ ';
  color: #3bb77e;
}
.sf-guide-card[open] summary::before {
  content: '▾ ';
}
.sf-guide-card p {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Related scroll */
.sf-related {
  padding: 0 0 64px;
}
.sf-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sf-related-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3bb77e;
}
.sf-related-head h2 {
  margin: 0;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.35rem;
  color: #253d4e;
}
.sf-related-all {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3bb77e;
  text-decoration: none;
}
.sf-related-all:hover {
  text-decoration: underline;
}
.sf-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.sf-scroll-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dceee4;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sf-scroll-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30, 61, 50, 0.1);
}
.sf-scroll-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eef6f1;
}
.sf-scroll-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-scroll-body {
  padding: 10px 12px 12px;
}
.sf-scroll-name {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #253d4e;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-scroll-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2d8a5e;
}
.sf-scroll-card.tone-annual { border-top: 3px solid #e74c3c; }
.sf-scroll-card.tone-meadow { border-top: 3px solid #8bc34a; }
.sf-scroll-card.tone-pollinator { border-top: 3px solid #ffc107; }
.sf-scroll-card.tone-climber { border-top: 3px solid #009688; }
.sf-scroll-card.tone-perennial { border-top: 3px solid #9c27b0; }
.sf-scroll-card.tone-fragrant { border-top: 3px solid #ff9800; }
.sf-scroll-card.tone-cut { border-top: 3px solid #e91e63; }

/* 404 miss */
.sf-miss {
  position: relative;
  min-height: 420px;
  padding: 72px 0;
  background: linear-gradient(180deg, #f4f0e8 0%, #faf8f5 100%);
}
.sf-miss-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23253d4e' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sf-miss-inner {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.sf-miss-frame {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  background: #fff;
  border: 8px solid #ebe4d8;
  box-shadow: 0 16px 48px rgba(61, 46, 31, 0.1);
}
.sf-miss-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #a07830;
}
.sf-miss-corner-tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; }
.sf-miss-corner-tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; }
.sf-miss-corner-bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; }
.sf-miss-corner-br { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }
.sf-miss-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.4;
}
.sf-miss-tag {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a7d68;
}
.sf-miss-inner h1 {
  margin: 0 0 12px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.55rem;
  color: #253d4e;
}
.sf-miss-inner p {
  margin: 0 0 24px;
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .sf-gallery-grid {
    grid-template-columns: 1fr;
  }
  .sf-guides-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .sf-frame-wrap {
    padding: 20px 16px 16px;
  }
  .sf-card-body {
    padding: 22px 18px 26px;
  }
  .sf-card-head {
    flex-direction: column;
  }
  .sf-meta-grid {
    grid-template-columns: 1fr;
  }
  .sf-buy-form {
    flex-direction: column;
    align-items: stretch;
  }
  .sf-btn-primary {
    min-width: 0;
  }
  .sf-related-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
