/* Elizabeths Bakes — page styles. Tokens live in css/tokens/*.css. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface-page); font-family: var(--font-body); color: var(--text-body); }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-hov); }
a.eb-nav:hover { color: var(--brand-primary); }
button { font: inherit; }
[x-cloak] { display: none !important; }
.eb-filterbar::-webkit-scrollbar { height: 0; }

/* Design-system interaction states (the design used JS mouse handlers; these are the CSS equivalents). */
.eb-btn:not(:disabled):active { transform: translateY(1px); }
.eb-btn-primary:not(:disabled):hover { background: var(--brand-primary-hov) !important; border-color: var(--brand-primary-hov) !important; }
.eb-btn-accent:not(:disabled):hover { background: var(--honey-500) !important; border-color: var(--honey-500) !important; }
.eb-btn-secondary:not(:disabled):hover { background: var(--surface-inset) !important; }
.eb-btn-ghost:not(:disabled):hover { background: var(--surface-inset) !important; }
.eb-iconbtn:not(:disabled):hover { background: var(--surface-inset) !important; }
.eb-iconbtn:not(:disabled):active { transform: scale(0.92); }
.eb-card-interactive:hover { box-shadow: var(--shadow-lg) !important; transform: translateY(-3px); }
.eb-step-btn:not(:disabled):hover { background: var(--surface-inset) !important; }
.eb-step-btn:disabled { color: var(--text-faint) !important; cursor: not-allowed !important; }
.eb-input:focus { border-color: var(--focus-ring) !important; box-shadow: 0 0 0 4px rgba(201, 138, 94, 0.15) !important; }
.eb-input::placeholder { color: var(--text-faint); }

/* Elements toggled by x-show keep their display mode in CSS (Alpine clears inline display on show). */
.eb-checkout-form { display: grid; }
.eb-count { display: inline-flex; }

/* Product cards: lift the whole card on hover. */
.eb-card-wrap { transition: box-shadow var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease-soft); box-shadow: var(--shadow-sm); }
.eb-card-wrap:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Selectable option tiles (fulfilment, day, payment). */
.eb-option { transition: all var(--dur-fast) var(--ease-soft); cursor: pointer; }
.eb-option:hover { border-color: var(--brand-primary-soft) !important; }

@media (max-width: 860px) {
  .eb-hero { grid-template-columns: 1fr !important; }
  .eb-hero-img { display: none !important; }
  .eb-checkout-grid { grid-template-columns: 1fr !important; }
  .eb-checkout-summary { position: static !important; margin-top: 8px; }
}
@media (max-width: 560px) {
  .eb-hide-sm { display: none !important; }
  .eb-pay-grid, .eb-two-col { grid-template-columns: 1fr !important; }
}

/* Admin */
.eb-admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.eb-admin th, .eb-admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.eb-admin th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 800; }
.eb-admin select, .eb-admin input[type=file] { font: inherit; padding: 8px 10px; border-radius: var(--radius-md); border: 1.5px solid var(--border-soft); background: var(--surface-raised); color: var(--text-strong); }
.eb-admin .eb-flash { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 18px; font-weight: 600; }
.eb-admin .eb-flash-ok { background: var(--success-100); color: var(--success-500); }
.eb-admin .eb-flash-err { background: var(--danger-100); color: var(--danger-500); }

/* Weekend strip: bake tabs, day chips, deadline */
.eb-strip { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 18px; }
.eb-strip-closed { flex-direction: row; align-items: center; gap: 10px; background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 14px 16px; font-size: 15px; color: var(--text-body); }
.eb-strip-tabs, .eb-strip-days { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eb-strip-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.eb-chip { cursor: pointer; font: inherit; font-family: var(--font-body); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-soft); background: var(--surface-card); color: var(--text-body); display: inline-flex; align-items: center; gap: 6px; transition: all var(--dur-fast) var(--ease-soft); }
.eb-chip:hover { border-color: var(--brand-primary-soft); }
.eb-chip[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--text-on-brand); }
.eb-chip-tab { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; }
.eb-chip-tab small { font-weight: 600; font-size: 12px; opacity: 0.8; }
.eb-chip-day b { font-weight: 800; }
.eb-strip-meta { font-size: 13.5px; color: var(--text-muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.eb-strip-note { font-family: var(--font-accent); font-size: 18px; color: var(--brand-primary); }
.eb-card-off { opacity: 0.62; filter: saturate(0.5); }
.eb-basket-notice { background: var(--warning-100); color: var(--warning-500); border-radius: var(--radius-md); padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.eb-line-days { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.eb-line-days .eb-chip { padding: 4px 10px; font-size: 12px; }

/* Admin settings: side menu + section */
.eb-settings { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.eb-settings-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; }
.eb-settings-link { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-lg); border: 1.5px solid transparent; color: var(--text-body); transition: background var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft); }
.eb-settings-link:hover { background: var(--surface-card); text-decoration: none; }
.eb-settings-link.on { background: var(--surface-card); border-color: var(--brand-primary); }
.eb-settings-link b { display: block; font-size: 14px; color: var(--text-strong); }
.eb-settings-link small { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.eb-settings-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: var(--surface-inset); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; }
.eb-settings-link.on .eb-settings-ico { background: var(--brand-primary); color: var(--text-on-brand); }
.eb-admin code { font-size: 12.5px; background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 820px) {
  .eb-settings { grid-template-columns: 1fr; gap: 18px; }
  .eb-settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .eb-settings-link { flex-shrink: 0; }
  .eb-settings-link small { display: none; }
}

/* Product photo gallery: native scroll-snap swiping, arrows + dots layered on top. */
.eb-gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.eb-gallery-track::-webkit-scrollbar { display: none; }
.eb-gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; display: block; user-select: none; }
.eb-gallery-arrow { opacity: 0.75; transition: opacity var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft); }
.eb-gallery:hover .eb-gallery-arrow, .eb-gallery-arrow:focus-visible { opacity: 1; }
.eb-gallery-arrow:hover { background: var(--surface-raised) !important; }
@media (hover: none) { .eb-gallery-arrow { display: none; } }
@media (hover: hover) { .eb-gallery-track { cursor: grab; } .eb-gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; } .eb-gallery-track.dragging .eb-gallery-slide { pointer-events: none; } }
.eb-gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 3; pointer-events: none; }
.eb-gallery-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,251,243,0.55); box-shadow: 0 0 0 1px rgba(61,46,34,0.15); transition: all var(--dur-fast) var(--ease-soft); }
.eb-gallery-dots span.on { background: var(--surface-raised); width: 16px; }

/* Admin drop zone */
.eb-dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.eb-dz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 26px 18px; cursor: pointer;
  border: 2px dashed var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-soft); color: var(--text-body); font-size: 14px; line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft); }
.eb-dz:hover, .eb-dz:focus-visible { border-color: var(--brand-primary-soft); background: var(--surface-card); outline: none; }
.eb-dz.over { border-color: var(--brand-primary); background: var(--brand-accent-soft); transform: scale(1.01); }
.eb-dz.disabled { cursor: not-allowed; opacity: 0.7; }
.eb-dz-icon { width: 44px; height: 44px; border-radius: 999px; background: var(--surface-inset); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; }
.eb-dz-hint { color: var(--text-muted); font-size: 12.5px; }
.eb-dz-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(61,46,34,0.45); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
