/* 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); }

/* 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; }
}
@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); }

/* 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; transition: opacity var(--dur-fast) var(--ease-soft), background 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; } }
.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; }
