/* bouquet.css - "Build your bouquet" page. Phones first: picture on top, flowers below, bar at the bottom. */
.bq-page { padding-bottom: calc(96px + var(--safe-bottom)); }
.bq-intro { text-align: center; padding-block: var(--s3) var(--s2); }
.bq-intro p { margin-top: var(--s1); font-size: .95rem; }

.bq-stage-wrap { position: sticky; top: var(--header-h); z-index: 5; padding: var(--s2) 0; background: var(--cream); }
.bq-stage { position: relative; width: min(54vw, 240px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: var(--tan-soft); overflow: hidden; }
.bq-hint { position: absolute; inset: 0; display: grid; place-items: center; padding: 18%; text-align: center; font-size: .9rem; }
/* everything inside the picture is sized in % of the picture, so it scales with the screen */
.bq-cone { position: absolute; left: 50%; bottom: 7%; width: 44%; height: 36%; transform: translateX(-50%); background: linear-gradient(180deg, #ecd9b6, #d9bd8f); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 1; }
.bq-leaf { position: absolute; width: 20%; height: 12%; background: var(--leaf); border-radius: 0 100% 0 100%; z-index: 1; }
.bq-flower { position: absolute; z-index: 2; transform: translate(-50%, -50%); transition: left .3s var(--ease), top .3s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.bq-flower > * { width: 100%; height: 100%; object-fit: contain; }
.bq-flower.new { animation: bq-pop .35s var(--ease); }
@keyframes bq-pop { 0% { transform: translate(-50%, -50%) scale(0); } 70% { transform: translate(-50%, -50%) scale(1.2); } 100% { transform: translate(-50%, -50%) scale(1); } }

.bq-note { margin: var(--s3) 0; padding: var(--s3); border-radius: var(--r-md); background: var(--tan-soft); color: var(--brown); font-weight: 700; text-align: center; }
.bq-block h2 { font-size: 1.15rem; margin: var(--s4) 0 var(--s2); }
.bq-flowers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3) var(--s2); padding-top: 6px; }
.bq-card { position: relative; }
.bq-add { width: 100%; display: grid; justify-items: center; gap: 2px; padding: var(--s2) 4px var(--s3); background: var(--white); border: 2px solid var(--border); border-radius: var(--r-md); text-align: center; transition: transform .15s var(--ease), border-color .15s; }
.bq-add:active { transform: scale(.95); }
.bq-add .art { width: 64px; height: 64px; }
.bq-add .art > * { width: 100%; height: 100%; object-fit: contain; }
.bq-add b { font-size: .9rem; }
.bq-add small { font-weight: 800; color: var(--tan); }
.bq-count { position: absolute; top: -6px; right: -4px; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 13px; background: var(--tan); color: #fff; font-size: .85rem; font-weight: 800; }
.bq-minus { position: absolute; top: -6px; left: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 2px solid var(--tan); font-weight: 800; line-height: 1; }
.bq-count[hidden], .bq-minus[hidden] { display: none; }

.bq-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3) calc(var(--s2) + var(--safe-bottom)); background: var(--white); border-top: 2px solid var(--border); }
.bq-bar .sum { flex: 1; line-height: 1.25; }
.bq-bar .sum b { display: block; font-size: 1.2rem; color: var(--brown); }
.bq-bar .sum span { font-size: .85rem; color: var(--brown-soft); }
.bq-bar .btn { flex: none; }

@media (min-width: 768px) {
  .bq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; padding-top: var(--s4); }
  .bq-stage-wrap { top: calc(var(--header-h) + var(--s3)); background: none; }
  .bq-stage { width: min(100%, 440px); }
  .bq-flowers { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .bq-bar { padding-inline: max(var(--s4), calc((100vw - var(--max)) / 2 + var(--s4))); }
}
