/* Toast Bouquets — "Shop Today's Bouquets" (homepage section + shop.html).
   Cards are filled in by js/shop.js from /api/public (your Notion → Website → Shop database). */

.shop { background: var(--cream-light); }
.shop[hidden] { display: none; }

/* hero pill that jumps to the shop */
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.hero-shop-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--green); color: var(--cream-light);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2px;
  box-shadow: 0 6px 16px rgba(31, 58, 46, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-shop-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31, 58, 46, 0.24); }
.hero-shop-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); animation: shopPulse 2s infinite; }
.hero-shop-pill[hidden] { display: none; }
@keyframes shopPulse { 70% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }

/* grid of bouquet cards */
.shop-grid {
  --cols: 4; --gap: 26px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--gap);
}
.shop-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.shop-grid > .shop-empty { flex-basis: 100%; max-width: 720px; }
.shop-card {
  display: flex; flex-direction: column;
  background: var(--cream-light);
  border: 1px solid rgba(31, 58, 46, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 58, 46, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(31, 58, 46, 0.13); border-color: rgba(212, 175, 55, 0.6); }
.shop-photo {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 5; background: #EFE7D6;
  border: 0; padding: 0; cursor: zoom-in; overflow: hidden;
}
.shop-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shop-card:hover .shop-photo img { transform: scale(1.04); }
.shop-price {
  position: absolute; top: 14px; left: 14px;
  background: var(--cream-light); color: var(--green);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.2px;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.shop-more-photos {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(20, 40, 34, 0.78); color: var(--cream-light);
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.shop-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.shop-body h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.shop-body p {
  color: var(--text-soft); font-size: 0.92rem; line-height: 1.55; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-actions { display: flex; gap: 10px; margin-top: auto; }
.shop-actions .btn { flex: 1; padding: 12px 10px; font-size: 0.92rem; text-align: center; box-shadow: none; }
.shop-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: 999px;
  border: 2px solid rgba(31, 58, 46, 0.18); color: var(--green);
  font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.shop-call:hover { border-color: var(--green); }
.shop-call svg, .shop-text svg { width: 16px; height: 16px; flex: none; }
.shop-text { display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; }

.shop-more { text-align: center; margin-top: 46px; }
.shop-more .btn { display: inline-flex; align-items: center; gap: 10px; }
.shop-note { text-align: center; color: var(--text-soft); font-size: 0.9rem; margin-top: 16px; }

/* loading shimmer + empty state */
.shop-skel { border-radius: 18px; background: linear-gradient(100deg, #EFE7D6 30%, #F7F1E6 50%, #EFE7D6 70%); background-size: 300% 100%; animation: shopShimmer 1.4s infinite linear; aspect-ratio: 4 / 6.2; }
@keyframes shopShimmer { to { background-position: -150% 0; } }
.shop-empty {
  text-align: center;
  background: var(--cream-light); border: 1px dashed rgba(31, 58, 46, 0.2); border-radius: 18px;
  padding: 54px 24px;
}
.shop-empty-icon { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: 12px; }
.shop-empty h3 { font-size: 1.5rem; margin-bottom: 8px; }
.shop-more[hidden] { display: none; }
.shop-empty p { color: var(--text-soft); max-width: 460px; margin: 0 auto 22px; }
.shop-empty .shop-actions { justify-content: center; max-width: 360px; margin: 0 auto; }
.shop-empty .shop-actions .btn { flex: 0 1 auto; padding-left: 26px; padding-right: 26px; }

/* tap a photo → bigger view */
.shop-modal {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(15, 28, 22, 0.72);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.shop-modal.open { display: flex; }
.shop-modal-card {
  position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 48px);
  background: var(--cream-light); border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.shop-modal-photo { position: relative; background: #EFE7D6; min-height: 0; }
.shop-modal-photo img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: cover; }
.shop-modal-thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.shop-modal-thumbs button { width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.shop-modal-thumbs button.on { border-color: var(--gold); }
.shop-modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.shop-modal-info { padding: 40px 34px; overflow-y: auto; display: flex; flex-direction: column; }
.shop-modal-info .eyebrow { margin-bottom: 6px; }
.shop-modal-info h3 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 10px; }
.shop-modal-price { font-size: 1.5rem; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.shop-modal-info p { color: var(--text-soft); line-height: 1.65; margin-bottom: 26px; }
.shop-modal-info .shop-actions { margin-top: auto; flex-wrap: wrap; }
.shop-modal-info .shop-actions .btn { padding: 15px 14px; font-size: 1rem; }
.shop-modal-fine { font-size: 0.82rem; color: var(--text-soft); margin-top: 14px; }
.shop-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(253, 251, 246, 0.94); color: var(--green); font-size: 1.5rem; line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
body.shop-modal-open { overflow: hidden; }

@media (max-width: 1100px) {
  .shop-grid { --cols: 2; --gap: 20px; }
}
@media (max-width: 860px) {
  .shop-grid { --gap: 14px; }
  .shop-photo { aspect-ratio: 1 / 1; }
  .shop-price { top: 10px; left: 10px; font-size: 0.88rem; padding: 4px 11px; }
  .shop-body { padding: 14px 14px 16px; }
  .shop-body h3 { font-size: 1.02rem; }
  .shop-body p { font-size: 0.84rem; -webkit-line-clamp: 2; margin-bottom: 14px; }
  .shop-actions { flex-direction: column; gap: 8px; }
  .shop-actions .btn, .shop-call { padding: 10px 6px; font-size: 0.86rem; width: 100%; white-space: nowrap; }
  .shop-grid .shop-actions svg { display: none; }
  .shop-more { margin-top: 32px; }
  .shop-modal { padding: 0; align-items: flex-end; }
  .shop-modal-card { grid-template-columns: 1fr; max-height: 94vh; border-radius: 22px 22px 0 0; overflow-y: auto; }
  .shop-modal-photo img { max-height: 52vh; height: 52vh; }
  .shop-modal-photo img { max-height: 46vh; height: 46vh; }
  .shop-modal-info { padding: 22px 20px 0; overflow: visible; }
  .shop-modal-info .shop-actions {
    position: sticky; bottom: 0; margin: 4px -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: var(--cream-light); box-shadow: 0 -8px 18px rgba(31, 58, 46, 0.08);
  }
  .shop-modal-fine { order: 1; margin: 0 0 16px; }
  .shop-modal-info .shop-actions { order: 2; }
  .shop-modal-info h3 { font-size: 1.5rem; }
  .shop-modal-info .shop-actions { flex-direction: row; }
}
@media (max-width: 340px) {
  .shop-grid { --cols: 1; }
}

/* homepage: link from today's bouquets to the full catalog (flowers.html) */
.shop-catalog-link { text-align: center; margin-top: 18px; }
.shop-catalog-link p { color: var(--text-soft); font-size: 0.95rem; }
.shop-catalog-link a { color: var(--green); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.shop-catalog-link a:hover { color: var(--gold); }

/* ---------- product cards + each item's own page (flowers.html and shop.html) ---------- */
/* catalog grid: square photo, then name + price (whole card is a link to its own page) */
.fg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.fg-card { display: block; color: inherit; min-width: 0; }
.fg-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 14px; }
.fg-photo { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 14px; overflow: hidden; background: #EFE7D6; box-shadow: 0 8px 22px rgba(31,58,46,0.08); }
.fg-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.fg-card:hover .fg-photo img { transform: scale(1.04); }
.fg-name { font-family: "Playfair Display", Georgia, serif; color: var(--green); font-size: 1.08rem; line-height: 1.3; margin: 14px 0 4px; text-wrap: balance; }
.fg-price { font-weight: 700; font-size: 1.05rem; color: var(--green); letter-spacing: 0.2px; font-variant-numeric: tabular-nums; }
.fg-card:hover .fg-name { color: var(--gold-deep, #B8922A); }
.fg-skel { aspect-ratio: 1 / 1.25; border-radius: 14px; background: linear-gradient(100deg, #EFE7D6 30%, #F7F1E6 50%, #EFE7D6 70%); background-size: 300% 100%; animation: fgShimmer 1.4s infinite linear; }
@keyframes fgShimmer { to { background-position: -150% 0; } }
/* product page (flowers.html#item=classic-dozen-red-roses) */
.pdp { padding: 128px 0 40px; }
.pdp-back { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; font-size: 0.95rem; margin-bottom: 22px; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.pdp-back:hover { color: var(--gold); }
.pdp-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 54px; align-items: start; }
.pdp-photo { position: sticky; top: 110px; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 18px; overflow: hidden; background: #EFE7D6; box-shadow: 0 16px 40px rgba(31,58,46,0.12); }
.pdp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .eyebrow { margin-bottom: 8px; }
.pdp-info h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 12px; text-wrap: balance; }
.pdp-price { font-size: 1.8rem; font-weight: 700; color: var(--green); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.pdp-desc { color: var(--text-soft); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; max-width: 52ch; }
.pdp-info .shop-actions { max-width: 440px; }
.pdp-info .shop-actions .btn { padding: 16px 14px; font-size: 1rem; }
.pdp-info .shop-call { padding: 14px 22px; font-size: 1rem; }
.pdp-notes { margin-top: 26px; display: grid; gap: 10px; max-width: 460px; }
.pdp-notes div { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--text-soft); line-height: 1.5; }
.pdp-notes b { color: var(--green); }
.pdp-notes span.ic { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(212,175,55,0.18); display: grid; place-items: center; font-size: 0.95rem; }
.pdp-similar { margin-top: 80px; }
.pdp-similar h2 { font-size: 1.9rem; text-align: center; margin-bottom: 30px; }
@media (max-width: 860px) {
  .fg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .fg-name { font-size: 0.98rem; margin-top: 10px; }
  .fg-price { font-size: 0.98rem; }
  .pdp { padding: 92px 0 30px; }
  .pdp-back { margin-bottom: 14px; }
  .pdp-main { grid-template-columns: 1fr; gap: 22px; }
  .pdp-photo { position: static; border-radius: 14px; }
  .pdp-info h1 { font-size: 1.9rem; }
  .pdp-price { font-size: 1.5rem; margin-bottom: 14px; }
  .pdp-desc { font-size: 1rem; margin-bottom: 22px; }
  .pdp-info .shop-actions { flex-direction: row; max-width: none; }
  .pdp-similar { margin-top: 56px; }
  .pdp-similar h2 { font-size: 1.5rem; margin-bottom: 20px; }
}
@media (min-width: 861px) and (max-width: 1100px) { .fg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* sold-out / empty message spans the whole grid */
.fg-grid > .shop-empty { grid-column: 1 / -1; max-width: 720px; justify-self: center; width: 100%; }
/* extra photos on a daily bouquet's page */
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.pdp-thumbs button.on { border-color: var(--gold); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media { position: sticky; top: 110px; }
.pdp-media .pdp-photo { position: static; }
@media (max-width: 860px) { .pdp-media { position: static; } }
/* fewer than 4 cards: keep the same card size, centered */
.fg-grid.fg-few { display: flex; flex-wrap: wrap; justify-content: center; }
.fg-grid.fg-few > .fg-card { width: calc((100% - 3 * 22px) / 4); }
@media (min-width: 861px) and (max-width: 1100px) { .fg-grid.fg-few > .fg-card { width: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 860px) { .fg-grid.fg-few > .fg-card { width: calc((100% - 14px) / 2); } }

/* homepage: 4 "order any day" designs under today's fresh bouquets */
.shop-sig { margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(31, 58, 46, 0.12); text-align: center; }
.shop-sig-title { font-size: 2rem; margin-bottom: 10px; }
.shop-sig-sub { color: var(--text-soft); max-width: 560px; margin: 0 auto 34px; }
.shop-sig .fg-grid { text-align: left; }
.shop-sig-more { margin-top: 38px; }
@media (max-width: 860px) {
  .shop-sig { margin-top: 44px; padding-top: 36px; }
  .shop-sig-title { font-size: 1.6rem; }
  .shop-sig-sub { margin-bottom: 24px; font-size: 0.95rem; }
  .shop-sig-more { margin-top: 28px; }
}

/* "working on fresh bouquets" — one small line instead of a big card */
.fg-grid > .shop-soon { grid-column: 1 / -1; justify-self: center; }
.shop-soon {
  display: inline-block; text-align: center;
  font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; color: var(--green);
  background: rgba(212, 175, 55, 0.14); border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px; padding: 12px 24px;
}
@media (max-width: 860px) { .shop-soon { font-size: 0.84rem; padding: 9px 14px; white-space: nowrap; } }
@media (max-width: 340px) { .shop-soon { white-space: normal; } }
