/* Christmas pre-orders page (v19). The colours (--pine, --gold, --berry)
   are set in the Christmas block at the end of site.css. */

.xm-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 80% at 80% 40%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 70%),
    var(--pine);
  padding-block: clamp(44px, 7vw, 96px) clamp(48px, 7vw, 100px);
}
.xm-hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.xm-hero .eyebrow { color: var(--blush); }
.xm-hero .eyebrow::before { background: var(--gold); }
.xm-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.9rem); }
.xm-hero .lede { color: rgba(255, 255, 255, .88); margin-top: 1rem; max-width: 46ch; }
.xm-collect { margin: 1.1rem 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); max-width: 46ch; font-size: .95rem; }
.xm-collect b { color: #fff; }
.xm-hero .actions { margin-top: 1.5rem; }
.xm-hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.xm-hero .btn:hover { background: var(--blush); border-color: var(--blush); }
.xm-status { margin: 1rem 0 0; color: rgba(255, 255, 255, .85); min-height: 1.4em; }
.xm-status b { color: #fff; }

.xm-art { position: relative; aspect-ratio: 1 / .92; }
.xm-art img { position: absolute; width: 62%; height: auto; border-radius: 22px; border: 6px solid #fff; box-shadow: 0 22px 40px rgba(0, 0, 0, .28); background: #fff; }
.xm-art .a1 { left: 2%; top: 4%; transform: rotate(-5deg); z-index: 2; animation: xm-float 7s ease-in-out infinite; }
.xm-art .a2 { right: 0; top: 30%; transform: rotate(6deg); width: 52%; z-index: 3; animation: xm-float 8s ease-in-out -2s infinite; }
.xm-art .a3 { left: 14%; bottom: 0; transform: rotate(-2deg); width: 50%; z-index: 1; animation: xm-float 9s ease-in-out -4s infinite; }
@keyframes xm-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .xm-art img { animation: none; } }
@media (max-width: 860px) {
  .xm-hero .wrap { grid-template-columns: 1fr; }
  .xm-art { max-width: 460px; width: 100%; margin-inline: auto; }
}

/* The menu */
.xm-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (max-width: 980px) { .xm-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .xm-menu { grid-template-columns: 1fr; } }
.xm-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; transition: border-color .25s, box-shadow .3s var(--ease); }
.xm-card:hover { border-color: var(--blush-deep); }
.xm-card.picked { border-color: var(--pine); box-shadow: 0 0 0 2px var(--pine); }
.xm-pic { aspect-ratio: 1 / 1; background: var(--blush-soft); overflow: hidden; }
.xm-pic img { width: 100%; height: 100%; object-fit: cover; }
.xm-body { padding: clamp(16px, 2vw, 22px); display: grid; gap: 10px; align-content: start; }
.xm-body h3 { font-size: 1.15rem; margin: 0; }
.xm-body .size { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--pine); margin: -4px 0 0; }
.xm-body .desc { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.xm-body .allergens { font-size: .8rem; color: var(--ink-soft); margin: 0; }
.xm-mixed { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--blush-soft); font-size: .92rem; }
.xm-opts { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--line); }
.xm-opt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xm-opt:last-child { border-bottom: 0; padding-bottom: 0; }
.xm-opt .nm { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.xm-opt .pr { display: block; font-weight: 500; font-size: .88rem; color: var(--ink-soft); }
.xm-opt .pr.soon { font-style: italic; }
.xm-opt .left { display: block; font-size: .78rem; font-weight: 600; color: var(--berry); }
.xm-opt .sold { font-size: .82rem; font-weight: 600; color: #a33; }
.xm-opt .stepper button { width: 40px; height: 40px; }
.xm-opt .stepper output { min-width: 34px; }
.xm-allergy { color: var(--ink-soft); margin: clamp(18px, 2.5vw, 28px) 0 0; max-width: 72ch; }

/* The order form */
.xm-btn { background: var(--pine); border-color: var(--pine); }
.xm-btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); }
#basket .line { font-size: .95rem; }
#basket .empty { color: var(--ink-soft); }
.choice span small.closes { color: var(--pine); font-weight: 600; }
.choice input:checked + span small.closes { color: rgba(255,255,255,.85); }
.choice input:checked + span { background: var(--pine); border-color: var(--pine); }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
#signup-box { display: grid; gap: 14px; }
#signup-box .form { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 28px); }

/* Phones: a small bar once something is in the basket */
.xm-basket-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--pine); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25); font-weight: 600; font-size: .9rem;
}
.xm-basket-bar[hidden] { display: none; }
.xm-basket-bar .btn { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 861px) { .xm-basket-bar { left: auto; right: 24px; bottom: 24px; } }

/* v20: allergens and ingredients under each bake */
.xm-info { border-top: 1px solid var(--line); padding-top: 8px; }
.xm-info summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--pine); list-style: none; padding: 4px 0; }
.xm-info summary::-webkit-details-marker { display: none; }
.xm-info summary::after { content: " +"; }
.xm-info[open] summary::after { content: " \2212"; }
.xm-info .allergens { margin: 6px 0 0; line-height: 1.5; }
