/* ==========================================================================
   Fleur & Bakerie — ordering system components
   Loaded after styles.css (which holds the brand tokens, buttons and forms).
    1. Small utilities        6. Checkout stepper
    2. Nav cart button        7. Payment & upload
    3. Status chips           8. Tracking timeline
    4. Skeletons              9. Receipt
    5. Cart lines & drawer   10. Reviews (stars, grid, carousel, lightbox)
   ========================================================================== */

/* 1. SMALL UTILITIES ====================================================== */
/* The hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn.is-disabled { opacity: 0.5; pointer-events: auto; cursor: not-allowed; transform: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--cream-deep); }
.icon-btn .icon { width: 20px; height: 20px; }

.page { padding-block: clamp(40px, 7vw, 72px) clamp(64px, 9vw, 110px); min-height: 70vh; }
.page-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.page-head h1 { font-size: clamp(2.1rem, 6vw, 3rem); margin-bottom: 8px; }
.page-head p { margin: 0; }

.card-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
}
@media (min-width: 640px) { .card-box { padding: 30px; } }
.card-box + .card-box { margin-top: 20px; }
.card-box__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.3rem; margin-bottom: 16px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 0.96rem; }
.kv dt { font-weight: 700; color: var(--cocoa-dark); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.form-alert--info { background: var(--caramel-soft); border-color: var(--caramel); color: var(--cocoa-dark); }
.empty-state { text-align: center; padding: 40px 16px; }
.empty-state .icon--butterfly { width: 64px; height: 50px; margin: 0 auto 12px; stroke-width: 2.2; }
.empty-state h2, .empty-state h3 { margin-bottom: 6px; }

.footer--slim { padding: 36px 0 calc(100px + env(safe-area-inset-bottom)); }
.footer--slim .footer__bottom { margin-top: 0; border-top: 0; padding-top: 0; }
.footer__logo--sm { font-size: 2rem; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__links a { color: #F6EDE4; text-decoration: none; border-bottom: 1px solid rgba(232, 195, 158, 0.4); }

.toast--danger { background: var(--error); }
.spinner { border-color: rgba(251, 246, 241, 0.35); }
.btn--outline .spinner { border-color: rgba(122, 78, 63, 0.25); border-top-color: var(--cocoa); }

/* Order Guidelines page */
.guide-glance { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .guide-glance { grid-template-columns: repeat(4, 1fr); } }
.guide-glance li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; text-align: center;
  border-radius: 18px; background: var(--caramel-soft); border: 1px solid var(--caramel); font-size: 0.85rem; line-height: 1.35;
}
.guide-glance .icon { width: 26px; height: 26px; color: var(--caramel-deep); margin-bottom: 4px; }
.guide-glance strong { font-family: var(--font-serif); font-size: 1.15rem; color: var(--cocoa-dark); }
.guide-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.guide-section h2 .icon { color: var(--caramel-deep); width: 24px; height: 24px; }
.guide-list { margin: 0; }
.guide-list dt { font-weight: 700; color: var(--cocoa-dark); margin-top: 14px; }
.guide-list dt:first-child { margin-top: 0; }
.guide-list dd { margin: 2px 0 0; }
.guide-section .alert-box { margin-bottom: 0; }
.guide-cta { text-align: center; margin-top: 28px; }
.guide-cta .script { display: block; font-size: 2rem; margin-bottom: 14px; }

/* Checkout: guideline agreement, bulk & free-delivery notes, money breakdown */
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--caramel-soft); border: 1.5px solid var(--caramel); cursor: pointer; font-size: 0.95rem; line-height: 1.5; }
.agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--cocoa); cursor: pointer; }
.agree[aria-invalid="true"] { border-color: var(--error); background: #FCEDEA; }
.bulk-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; margin-top: 12px; }
.bulk-note .icon { flex: none; color: var(--caramel-deep); margin-top: 1px; }
.bulk-note--hint { background: var(--cream-deep); }
.bulk-note--on { background: #EAF3E6; border: 1px solid #BFD6B5; color: #34502B; }
.bulk-note--on .icon { color: #3E6233; }
.money { margin: 6px 0 0; }
.money div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 0.95rem; }
.money .discount { color: #3E6233; font-weight: 700; }
.money .due { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-weight: 700; color: var(--cocoa-dark); }
.chip--free { background: #E5F0E1; color: #3E6233; }

/* 2. NAV CART BUTTON ====================================================== */
.nav__right { display: flex; align-items: center; gap: 4px; }
@media (min-width: 1100px) {
  .nav__right { order: 3; }
  .nav__links { gap: 20px !important; margin-left: auto; margin-right: 6px; }
  .nav__links a { font-size: 0.9rem !important; }
}
button.fab { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.nav__cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
}
.nav__cart:hover { background: var(--cream-deep); }
.nav__cart .icon { width: 24px; height: 24px; }
.nav__cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.nav__cart-badge.is-popping, .fab__badge.is-popping { animation: badgePop 0.5s var(--ease-bounce); }

/* 3. STATUS CHIPS ========================================================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--neutral { background: #F1E8E0; color: #6B4C40; }
.chip--warn    { background: #FFF1D6; color: #8A5A00; border-color: #F3D49A; }
.chip--info    { background: #E7EEF7; color: #2F5480; }
.chip--accent  { background: #F3E3F0; color: #7A3E6E; }
.chip--success { background: #E5F0E1; color: #3E6233; }
.chip--muted   { background: #ECE8E5; color: #6E6560; }
.chip--danger  { background: #FBE4E0; color: #9A3226; }

/* 4. SKELETONS ============================================================ */
.skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, #F1E7DD 25%, #F8F1EA 50%, #F1E7DD 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton--row { height: 84px; margin-bottom: 12px; }
.skeleton--card { height: 420px; border-radius: var(--radius); }
.skeleton--text { height: 14px; margin: 8px 0; border-radius: 6px; }
.skeleton-list { padding: 4px 0; }

/* 5. CART LINES & DRAWER ================================================== */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.cart-line.is-removing { animation: rowOut 0.3s var(--ease) forwards; }
.cart-line.is-problem { opacity: 0.85; }
.cart-line__img { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--caramel-soft); display: block; }
.cart-line__name { font-weight: 700; color: var(--cocoa-dark); margin: 0 0 6px; line-height: 1.35; }
.cart-line__problem { display: flex; gap: 6px; align-items: center; color: var(--error); font-size: 0.85rem; font-weight: 700; margin: 0 0 6px; }
.cart-line__problem .icon { width: 16px; height: 16px; }
.cart-line__size { min-height: 40px !important; padding: 6px 34px 6px 10px !important; font-size: 0.92rem !important; margin-bottom: 8px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-line__total { font-size: 1.02rem; }
.qty--sm { grid-template-columns: 34px 46px 34px; min-height: 38px; width: max-content; }
.qty--sm input { min-height: 0; padding: 0; }
.cart-empty { text-align: center; padding: 40px 10px; }
.cart-empty .icon--butterfly { width: 54px; height: 42px; margin: 0 auto 10px; stroke-width: 2.3; }

.drawer { position: fixed; inset: 0; z-index: 260; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(43, 26, 20, 0.5); opacity: 0; transition: opacity 0.3s; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image: var(--paper-grain);
  box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { display: flex; gap: 10px; align-items: center; font-size: 1.35rem; margin: 0; }
.drawer__head h2 .icon { color: var(--caramel-deep); }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer__foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-serif); font-size: 1.15rem; }
.drawer__total strong { font-size: 1.5rem; font-variant-numeric: lining-nums; }
.drawer__note { font-size: 0.82rem; margin: 2px 0 12px; }
.drawer__clear { display: block; margin: 12px auto 0; font-size: 0.88rem; }

/* 6. CHECKOUT STEPPER ===================================================== */
.stepper { max-width: 760px; margin: 0 auto 28px; }
.stepper__track { position: relative; height: 6px; border-radius: 999px; background: var(--cream-deep); overflow: hidden; margin: 0 6% 12px; }
.stepper__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--caramel), var(--cocoa)); transition: width 0.6s var(--ease); }
.stepper__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.stepper__step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: #A08679; }
.stepper__dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.82rem;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-bounce);
}
.stepper__dot .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper__step.is-done { color: var(--cocoa); }
.stepper__step.is-done .stepper__dot { background: var(--caramel); border-color: var(--caramel); color: var(--choc); }
.stepper__step.is-current { color: var(--cocoa-dark); }
.stepper__step.is-current .stepper__dot { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); transform: scale(1.12); }
@media (min-width: 640px) { .stepper__step { font-size: 0.88rem; } }

.checkout { max-width: 760px; margin: 0 auto; }
.step-panel { display: none; }
.step-panel.is-active { display: block; animation: stepIn 0.45s var(--ease); }
.step-panel.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-28px); } }
.step-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; flex-wrap: wrap-reverse; }
.step-actions .btn--primary { flex: 1 1 220px; max-width: 360px; margin-left: auto; }
.step-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-family: var(--font-serif); font-size: 1.2rem; }
.step-total strong { font-size: 1.7rem; font-variant-numeric: lining-nums; color: var(--cocoa-dark); }

.edit-banner { display: flex; gap: 10px; align-items: center; margin: 0 auto 18px; max-width: 760px; }

.review-block { position: relative; }
.review-block .edit-link { display: inline-flex; gap: 6px; align-items: center; font-size: 0.9rem; }
.review-block .edit-link .icon { width: 16px; height: 16px; }
.summary-items { list-style: none; padding: 0; margin: 0; }
.summary-items li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.summary-items small { display: block; opacity: 0.85; }
.summary-items strong { white-space: nowrap; }

/* 7. PAYMENT & UPLOAD ===================================================== */
.pay-total { text-align: center; padding: 18px; border-radius: 18px; background: var(--caramel-soft); margin-bottom: 18px; }
.pay-total p { margin: 0; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.pay-total strong { display: block; font-family: var(--font-serif); font-size: 2.4rem; color: var(--cocoa-dark); font-variant-numeric: lining-nums; line-height: 1.2; }
.pay-total span { font-size: 0.9rem; }

.pay-accounts { display: grid; gap: 12px; margin-bottom: 8px; }
.pay-account { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.pay-account .icon { color: var(--caramel-deep); width: 28px; height: 28px; }
.pay-account p { margin: 0; line-height: 1.4; }
.pay-account__name { font-weight: 700; color: var(--cocoa-dark); }
.pay-account__number { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 170px;
  padding: 18px;
  border: 2px dashed var(--line-strong);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--cocoa); background: var(--caramel-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 34px; height: 34px; color: var(--caramel-deep); }
.dropzone small { opacity: 0.8; }
.dropzone[aria-invalid="true"] { border-color: var(--error); }
.dropzone:focus-within { outline: 3px solid var(--caramel-deep); outline-offset: 2px; }
.preview { position: relative; margin-top: 12px; }
.preview img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 16px; background: var(--cream-deep); border: 1px solid var(--line); }
.preview__remove { position: absolute; top: 8px; right: 8px; background: rgba(255, 253, 250, 0.95); box-shadow: var(--shadow-sm); }
.preview__meta { font-size: 0.85rem; margin: 6px 0 0; }

.done { text-align: center; }
.done .checkmark { margin-bottom: 18px; }
.done__code {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1.5px dashed var(--caramel-deep);
  background: var(--caramel-soft);
  font: 700 1.5rem/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--cocoa-dark);
}
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }

/* 8. TRACKING TIMELINE ==================================================== */
.track-form { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; max-width: 760px; } }
.track-form .btn { min-height: 50px; }

.order-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.order-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: 0.02em; }
.order-head p { margin: 0; font-size: 0.9rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.timeline__step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 22px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before {   /* connector line */
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}
.timeline__step:last-child::before { display: none; }
.timeline__step.is-done::before { background: var(--caramel-deep); transform-origin: top; animation: growLine 0.6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes growLine { from { transform: scaleY(0); } }
.timeline__dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  color: #B9A397;
  z-index: 1;
}
.timeline__dot .icon { width: 18px; height: 18px; }
.timeline__step.is-done .timeline__dot { background: var(--caramel); border-color: var(--caramel); color: var(--choc); animation: dotPop 0.5s var(--ease-bounce) both; animation-delay: var(--d, 0ms); }
.timeline__step.is-current .timeline__dot { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); box-shadow: 0 0 0 6px rgba(232, 195, 158, 0.45); animation: pulseRing 2s ease-in-out infinite; }
@keyframes dotPop { from { transform: scale(0.4); opacity: 0; } }
@keyframes pulseRing { 50% { box-shadow: 0 0 0 10px rgba(232, 195, 158, 0.15); } }
.timeline__body h3 { font-size: 1.05rem; margin: 6px 0 2px; }
.timeline__step:not(.is-done):not(.is-current) .timeline__body h3 { color: #A08679; }
.timeline__body p { margin: 0; font-size: 0.86rem; }

.alert-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; margin-top: 16px; font-size: 0.95rem; line-height: 1.5; }
.alert-box .icon { flex: none; margin-top: 2px; }
.alert-box p { margin: 0; }
.alert-box--danger { background: #FCEDEA; border: 1px solid rgba(169, 63, 50, 0.35); color: #7E2E24; }
.alert-box--warn { background: #FFF4E4; border: 1px solid #E8C39E; }
.alert-box--success { background: #EAF3E6; border: 1px solid #BFD6B5; color: #34502B; }

/* 9. RECEIPT ============================================================== */
.receipt-page { background: var(--cream-deep); }
.receipt-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.receipt {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 22px;
  background: #FFFDFA;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  color: #4A3029;
  overflow: hidden;
}
@media (min-width: 640px) { .receipt { padding: 48px 52px; } }
.receipt__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--choc); }
.receipt__logo { font-family: var(--font-script); font-size: 2.6rem; color: var(--choc); line-height: 1; margin: 0; }
.receipt__logo span { color: var(--caramel-deep); }
.receipt__biz { font-size: 0.85rem; line-height: 1.5; margin: 6px 0 0; }
.receipt__title { text-align: right; }
.receipt__title h1 { font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 6px; }
.receipt__title p { margin: 0; font-size: 0.9rem; }
.receipt__grid { display: grid; gap: 18px; margin: 22px 0; }
@media (min-width: 560px) { .receipt__grid { grid-template-columns: 1fr 1fr; } }
.receipt__grid h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 6px; font-family: var(--font-sans); }
.receipt__grid p { margin: 0; font-size: 0.93rem; line-height: 1.55; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.receipt th { text-align: left; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--line-strong); }
.receipt td { padding: 10px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.receipt .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__totals { margin-left: auto; width: min(100%, 300px); margin-top: 14px; }
.receipt__totals div { display: flex; justify-content: space-between; padding: 4px 6px; }
.receipt__totals .grand { border-top: 2px solid var(--choc); margin-top: 6px; padding-top: 10px; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; font-variant-numeric: lining-nums; }
.receipt__foot { margin-top: 28px; text-align: center; font-size: 0.85rem; }
.receipt__foot .script { font-size: 1.8rem; }
.paid-stamp {     /* in the receipt footer, so it never covers text */
  display: inline-block;
  margin: 4px auto 14px;
  padding: 6px 20px;
  border: 4px double #3E6233;
  border-radius: 10px;
  color: #3E6233;
  font: 800 2.2rem/1 var(--font-sans);
  letter-spacing: 0.18em;
  transform: rotate(-14deg);
  opacity: 0.82;
  pointer-events: none;
  animation: stampIn 0.6s 0.3s var(--ease-bounce) both;
}
@keyframes stampIn { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } }
@media (min-width: 640px) { .paid-stamp { font-size: 2.8rem; } }

@media print {
  body { background: #fff !important; }
  .site-header, .footer, .receipt-tools, .fab, .toast, .skip-link, .drawer { display: none !important; }
  .page { padding: 0 !important; }
  .receipt { box-shadow: none; max-width: none; padding: 0; }
  .paid-stamp { animation: none; }
}

/* 10. REVIEWS ============================================================= */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .icon { width: 18px; height: 18px; color: #E0D2C6; }
.stars .icon.is-on { color: #D9A23F; }
.stars--lg .icon { width: 26px; height: 26px; }

/* Star rating input (radio buttons, keyboard accessible) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #E0D2C6; transition: color 0.15s, transform 0.2s var(--ease-bounce); }
.star-input label .icon { width: 40px; height: 40px; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #D9A23F; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid var(--caramel-deep); outline-offset: 2px; border-radius: 6px; }
.star-hint { margin: 4px 0 0; font-weight: 700; min-height: 1.5em; }

.photo-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.photo-pick { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--cream-deep); }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .icon-btn { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; background: rgba(255, 253, 250, 0.95); }

.reviews-summary { display: grid; gap: 20px; align-items: center; margin-bottom: 26px; }
@media (min-width: 760px) { .reviews-summary { grid-template-columns: 240px 1fr; } }
.reviews-avg { text-align: center; }
.reviews-avg strong { display: block; font-family: var(--font-serif); font-size: 3.6rem; line-height: 1; color: var(--cocoa-dark); font-variant-numeric: lining-nums; }
.reviews-avg p { margin: 6px 0 0; font-size: 0.9rem; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 44px 1fr 34px; gap: 10px; align-items: center; font-size: 0.88rem; border: 0; background: none; padding: 2px 0; color: inherit; cursor: pointer; font-family: inherit; }
.bar__track { height: 10px; border-radius: 999px; background: var(--cream-deep); overflow: hidden; }
.bar__track, .bar__fill { display: block; }
.bar__fill { height: 100%; width: 0; border-radius: inherit; background: #D9A23F; transition: width 0.8s var(--ease); }
.bar:hover .bar__track { outline: 2px solid var(--caramel); }

.reviews-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.reviews-toolbar .tabs { margin: 0; padding: 4px 0; }
.reviews-toolbar select { width: auto; min-height: 44px; }

.review-grid { columns: 1; column-gap: 20px; }
@media (min-width: 640px) { .review-grid { columns: 2; } }
@media (min-width: 1000px) { .review-grid { columns: 3; } }
.review-card {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: cardIn 0.5s var(--ease) backwards;
  animation-delay: var(--d, 0ms);
}
.review-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-card__date { font-size: 0.8rem; opacity: 0.85; }
.review-card__body { margin: 0 0 12px; white-space: pre-line; }
.review-card__name { font-family: var(--font-serif); font-weight: 600; margin: 0; }
.review-card__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-card__items span { font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; background: var(--caramel-soft); }
.review-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.review-photos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--cream-deep); }
.review-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.review-photos button:hover img { transform: scale(1.08); }

/* Home page carousel */
.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 360px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; margin: 0; }
.carousel__nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.carousel__nav .icon-btn { border: 1.5px solid var(--line-strong); background: var(--paper); }
.carousel__cta { text-align: center; margin-top: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; background: rgba(20, 12, 9, 0.92); padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; animation: popIn 0.35s var(--ease); }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, 0.12); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 10px; top: 50%; }
.lightbox__next { right: 10px; top: 50%; }
.lightbox__count { position: absolute; bottom: 16px; color: #F1E4D8; font-size: 0.9rem; }

/* Sold out state on menu cards */
.card.is-soldout .card__media img { filter: grayscale(0.6) opacity(0.75); }
.card__soldout {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--choc);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paid-stamp--partial { color: #8A5A00; border-color: #B07A4F; font-size: 1.5rem !important; }

/* Headings focused by script (for screen readers) need no visible outline */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, legend[tabindex="-1"]:focus { outline: none; }
