/* ============================================================
   ARKE — Gift box builder
   ============================================================ */

.gb { background: var(--sky-mist); padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(80px, 10vw, 140px); }
.gb-wrap { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.gb-side { align-self: stretch; }
.gb-sticky { position: sticky; top: 100px; }

/* ---- the box ---- */
.gb-boxcard { background: var(--cloud); border-radius: 26px; padding: 26px 26px 24px; border: 1px solid rgba(66, 97, 136, 0.1); box-shadow: 0 30px 60px -40px rgba(22, 33, 46, 0.4); }
.gb-boxcard .eyebrow { margin-bottom: 18px; }
.gbox { position: relative; margin: 4px 0 10px; transform-origin: 50% 100%; }
.gbox-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 900 / 650; background: var(--sky-mist); }
.gbox-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.gbox.has-items .gbox-photo img { transform: scale(1.04); }
/* numbered slots under the photo, the first three are the minimum */
.gbox-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: -30px; position: relative; padding: 0 10px; }
.gbox-slot {
  width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); border: 1.5px dashed rgba(66, 97, 136, 0.35);
  font-family: var(--font-display); font-size: 18px; color: var(--sky); backdrop-filter: blur(6px);
}
.gbox-slot.extra { opacity: 0.55; }
.gbox-slot.full { border: 0; background: none; animation: gbPop 0.5s var(--ease-out) both; }
.gbox-slot .gb-th { width: 58px; height: 58px; }
@keyframes gbPop { from { transform: translateY(-16px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* round product photo, ringed in the scent colour when scented */
.gb-th {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--cream); box-shadow: 0 0 0 3px var(--cloud), 0 10px 18px -10px rgba(22, 33, 46, 0.55);
}
.gb-th.is-scented { box-shadow: 0 0 0 2px var(--cloud), 0 0 0 4px var(--tint), 0 10px 18px -10px rgba(22, 33, 46, 0.55); }
.gb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-th em { font-family: var(--font-accent); font-style: italic; font-size: 12px; color: var(--sky-deep); }

.gb-progress-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.gb-progress { height: 4px; border-radius: 4px; background: rgba(66, 97, 136, 0.12); overflow: hidden; margin-top: 10px; }
.gb-progress i { display: block; height: 100%; background: var(--action-blue); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.5s var(--ease-out); }
.gb-rules { margin-top: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.gb-rules span::before { content: '✓ '; color: var(--action-blue); }

/* ---- steps ---- */
.gb-steps { display: grid; gap: 22px; }
.gb-step { background: var(--cloud); border-radius: 26px; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(66, 97, 136, 0.1); box-shadow: 0 30px 60px -45px rgba(22, 33, 46, 0.35); }
.gb-step-h { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.gb-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-mist); color: var(--sky-deep); font-family: var(--font-display); font-weight: 600; flex: none; }
.gb-step h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); line-height: 1; }
.gb-hint { font-size: 14px; color: var(--ink-soft); margin: 4px 0 18px 48px; }

.gb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gb-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  background: var(--cloud); border: 1.5px solid rgba(66, 97, 136, 0.14); border-radius: 18px; padding: 8px 8px 12px;
  font: inherit; color: inherit; transition: border-color 0.25s ease, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.gb-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(22, 33, 46, 0.45); }
.gb-card.sel { border-color: var(--action-blue); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.18); }
.gb-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #cfe0f2, #eef4fb); }
.gb-media video { position: absolute; left: 0; width: 100%; object-fit: cover; }
.gb-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gb-type { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: linear-gradient(180deg, #f8f5ee, var(--cream)); font-family: var(--font-display); text-transform: uppercase; font-size: 20px; letter-spacing: 0.04em; color: var(--sky-deep); line-height: 1; }
.gb-type em { font-family: var(--font-accent); text-transform: none; font-size: 22px; letter-spacing: 0; margin-bottom: 4px; }
.gb-name { font-weight: 600; font-size: 13px; line-height: 1.3; padding: 4px 4px 0; }
.gb-sizes { font-size: 12px; color: var(--ink-soft); padding: 0 4px; }

/* ---- configure panel ---- */
.gb-config { margin-top: 18px; border-top: 1px solid rgba(66, 97, 136, 0.12); padding-top: 20px; }
.gb-config-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.gb-th.gb-preview { width: 64px; height: 64px; }
.gb-config h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1; }
.gb-pick { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.gb-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky-deep); margin: 18px 0 8px; }
.gb-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.gb-ingr i { font-style: normal; color: var(--sky); }
.gb-ingr { font-size: 13px; line-height: 1.7; color: var(--ink); background: var(--sky-mist); border-radius: 14px; padding: 12px 16px; }
.gb-fam { margin-bottom: 12px; }
.gb-fam h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gb-fam h4 i { width: 9px; height: 9px; border-radius: 50%; }
.gb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-chip {
  font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 100px; cursor: pointer;
  border: 1.5px solid rgba(66, 97, 136, 0.18); background: var(--cloud); color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gb-chip:hover { border-color: var(--sky); }
.gb-chip.on { background: var(--action-blue); border-color: var(--action-blue); color: var(--cloud); }
.gb-chip.off { opacity: 0.4; cursor: not-allowed; }
.gb-add { margin-top: 22px; width: 100%; justify-content: center; }

/* ---- box contents ---- */
.gb-list { list-style: none; display: grid; gap: 10px; }
.gb-line { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; background: var(--sky-mist); }
.gb-line-ic { display: grid; flex: none; }
.gb-line-txt { flex: 1; display: grid; font-size: 13px; color: var(--ink-soft); }
.gb-line-txt strong { color: var(--ink); font-size: 14px; }
.gb-remove { font: inherit; font-size: 12px; color: var(--sky-deep); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gb-empty { font-size: 14px; color: var(--ink-soft); padding: 14px; text-align: center; border: 1.5px dashed rgba(66, 97, 136, 0.2); border-radius: 16px; }

/* ---- boxes stepper ---- */
.gb-qty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.gb-stepper { display: inline-flex; align-items: center; border: 1.5px solid rgba(66, 97, 136, 0.2); border-radius: 100px; overflow: hidden; }
.gb-stepper button { width: 48px; height: 48px; border: 0; background: var(--sky-mist); font-size: 22px; color: var(--sky-deep); cursor: pointer; }
.gb-stepper input { width: 80px; height: 48px; border: 0; text-align: center; font-family: var(--font-display); font-size: 24px; color: var(--ink); -moz-appearance: textfield; }
.gb-stepper input::-webkit-outer-spin-button, .gb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gb-qty small { font-size: 13px; color: var(--ink-soft); }

/* ---- quote form ---- */
.gb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.gb-field { display: grid; gap: 6px; }
.gb-field--wide { grid-column: 1 / -1; }
.gb-field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--sky-deep); }
.gb-field input, .gb-field textarea {
  font: inherit; font-size: 15px; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid rgba(66, 97, 136, 0.2); background: var(--cloud); color: var(--ink); width: 100%;
}
.gb-field textarea { min-height: 84px; resize: vertical; }
.gb-field input:focus, .gb-field textarea:focus { outline: none; border-color: var(--action-blue); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.2); }
.gb-submit { grid-column: 1 / -1; justify-content: center; margin-top: 6px; }
.gb-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.gb-gate { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); text-align: center; }
.gb-done { text-align: center; padding: 20px 10px; }
.gb-done h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 28px; margin-bottom: 8px; }
.gb-done p { color: var(--ink-soft); }

/* ---- flying product ---- */
.gb-ghost { position: fixed; left: 0; top: 0; z-index: 200; width: 64px; height: 64px; pointer-events: none; }
.gb-ghost .gb-th { width: 64px; height: 64px; }

/* ---- mobile bottom bar ---- */
.gb-mbar {
  position: fixed; left: 50%; bottom: 14px; z-index: 90; transform: translateX(-50%);
  display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -18px rgba(22, 33, 46, 0.45);
  color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap;
}
.gb-mbar img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.gb-mbar b { background: var(--action-blue); color: var(--cloud); border-radius: 100px; padding: 10px 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 899px) {
  .gb-wrap { grid-template-columns: 1fr; }
  .gb-sticky { position: static; }
  .gb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-hint { margin-left: 0; }
  .gb-mbar { display: inline-flex; }
}
@media (max-width: 560px) {
  .gb-form { grid-template-columns: 1fr; }
  .gbox-slot, .gbox-slot .gb-th { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .gbox-slot.full { animation: none; }
  .gbox-photo img, .gb-progress i { transition: none; }
}
