/* Holy Smash 1.1 — customer and staff responsive corrections. */
.food-photo-frame .food-photo { aspect-ratio: auto; }
.promo .food-photo { aspect-ratio: 338 / 320 !important; height: auto; }
.promo > .food-photo-frame { align-self:center; max-width:200px; }
.food-photo-frame { min-width: 0; }
.product-info,.product-name,.cart-line strong,.order-card,.settings-card { min-width:0; overflow-wrap:anywhere; }
.stepper { gap:8px; padding:2px; flex-shrink:0; }
.stepper button { min-width:44px; min-height:44px; }
.stepper span { min-width:20px; text-align:center; }
.cart-item-actions { display:flex; align-items:center; flex-shrink:0; gap:4px; }
.cart-item-actions button { min-width:44px; min-height:44px; display:grid; place-items:center; }
.edit-cart-item { color:#ffce43; font-size:13px; padding:0 6px; }
.cart-line > div:first-child { align-items:flex-start; }
.cart-line > div:first-child > strong { padding-top:12px; }
.cart-line > div:last-child { flex-wrap:wrap; }
.product-bottom button,.filters button,.categories button,.pagination button,.admin-products button { min-height:44px; }
.custom-dialog [data-slot="dialog-close"] { top:8px; right:8px; min-width:44px; min-height:44px; display:grid; place-items:center; opacity:1; }
.custom-dialog h2 { padding-right:32px; }
.custom-dialog textarea { resize:vertical; max-height:150px; }
.custom-dialog input,.custom-dialog textarea { max-width:100%; }
.custom-dialog.product-dialog {
  display:flex; flex-direction:column; gap:12px; overflow:hidden;
  max-height:calc(100dvh - 24px); padding:22px !important;
}
.product-dialog > h2,.product-dialog > [data-slot="dialog-description"],.product-dialog .custom-bottom { flex-shrink:0; }
.product-dialog .custom-body { min-height:0; max-height:none; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding-right:5px; }
.product-dialog .custom-bottom { padding-top:12px; gap:12px; }
.custom-bottom .primary { min-height:48px; flex:1; white-space:normal; }
.ingredient { min-height:48px; }
.ingredient span { min-width:0; overflow-wrap:anywhere; }
.ingredient small { flex-shrink:0; }
.filters { display:flex; flex-wrap:wrap; gap:8px; }
.filters button { margin:0; }
.management-tabs { max-width:100%; }
.management-tabs button { min-height:44px; }
.management-cocina .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.management-cocina .management-tabs { display:none !important; }
.admin-products > div { display:grid; grid-template-columns:80px minmax(0,1fr) auto auto; gap:14px; }
.admin-products .food-photo-frame { width:80px; }
.admin-products strong { margin:0; white-space:nowrap; }
.admin-products button { min-width:72px; }
.setup-notice { background:#332a13; color:#ffe39a; border:1px solid #695321; border-radius:8px; padding:12px; font-size:14px; line-height:1.5; }
.pickup-address { font-size:14px; line-height:1.5; margin-top:16px; overflow-wrap:anywhere; }
.local-info a { text-decoration:underline; text-underline-offset:3px; }
button:focus-visible,a:focus-visible { outline:3px solid #ffce43; outline-offset:3px; }
@media(max-width:1000px) {
  .shop-layout { display:block; padding-left:5%; padding-right:5%; }
  .cart { position:static; margin-top:28px; scroll-margin-top:20px; }
  .mobile-cart { display:flex; align-items:center; position:fixed; z-index:20; left:5%; bottom:calc(12px + env(safe-area-inset-bottom,0px)); width:90%; gap:8px; min-height:52px; padding:14px 16px; border-radius:10px; background:#ffbf00; color:#15170f; font-size:14px; font-weight:800; box-shadow:0 8px 40px #0009; }
  .mobile-cart strong { margin-left:auto; }
  footer { padding-bottom:calc(105px + env(safe-area-inset-bottom,0px)); }
}
@media(max-width:740px) {
  header.staff-header { height:auto; min-height:76px; padding:10px 5%; gap:12px; flex-wrap:wrap; }
  header.staff-header .pickup { display:none; }
  .staff-header nav { margin:0; gap:6px; justify-content:flex-end; flex:1; }
  .staff-header nav a { height:44px; min-height:44px; padding:0 5px; display:flex; align-items:center; }
  .staff-header .logout { min-height:44px; min-width:44px; padding:0 5px; }
  .staff-header .brand { flex-shrink:0; }
  .intro { padding:4px 0 18px; }
  .intro h1 { font-size:40px; line-height:1.05; margin:12px 0; }
  .intro p { margin:10px 0; }
  .local-info { margin-top:10px; }
  .promo { min-height:145px; margin-bottom:16px; }
  .promo > div:first-child { padding:16px; }
  .promo h2 { font-size:21px; line-height:1.15; letter-spacing:-.5px; }
  .promo strong { margin-top:10px; font-size:21px; gap:10px; }
  .promo > .food-photo-frame { width:40%; }
  .categories { flex-wrap:wrap; overflow:visible; margin:0; padding:0 0 10px; gap:7px; }
  .categories button { padding:9px 13px; }
  .management { padding:20px 5% 40px; }
  .management-heading h1 { font-size:29px; margin:6px 0 8px; letter-spacing:-1px; }
  .management-heading .eyebrow { font-size:10px; letter-spacing:1px; }
  .metrics { gap:8px; margin:16px 0 !important; }
  .metrics > div { padding:12px; }
  .metrics span { font-size:12px; line-height:1.4; }
  .metrics strong { margin-top:6px; font-size:23px; }
  .management-tabs { display:flex !important; width:100%; margin-bottom:14px; }
  .management-tabs button { flex:1 1 auto; padding:9px 10px !important; font-size:12px; }
  .filters { gap:7px; }
  .filters button { padding:9px 12px; font-size:12px; }
  .admin-products > div { grid-template-columns:64px minmax(0,1fr) auto; gap:8px 12px; padding:12px; }
  .admin-products .food-photo-frame { grid-column:1; grid-row:1 / 3; width:64px; }
  .admin-products > div > div:nth-child(2) { grid-column:2 / 4; grid-row:1; }
  .admin-products > div > strong { grid-column:2; grid-row:2; font-size:15px; }
  .admin-products > div > button { grid-column:3; grid-row:2; min-width:64px; font-size:13px; padding:8px; }
  .pagination { gap:8px; flex-wrap:wrap; }
  .settings-card { padding:18px; }
  .custom-dialog.product-dialog { padding:18px !important; gap:10px; }
  .custom-dialog h2 { font-size:21px; }
  .custom-dialog.product-dialog .custom-bottom { flex-direction:column; align-items:stretch; gap:8px; }
  .product-dialog .custom-bottom .stepper { align-self:flex-start; }
  .product-dialog .custom-bottom .primary { width:100%; padding:12px; }
  .product-dialog .custom-body { scrollbar-gutter:stable; }
}
@media(max-width:480px) {
  .products { grid-template-columns:minmax(0,1fr); gap:14px; }
  .product { display:grid; grid-template-columns:110px minmax(0,1fr); align-items:stretch; }
  .product > .food-photo-frame { align-self:stretch; aspect-ratio:auto; border-bottom:0; border-right:1px solid #303128; padding:8px 5px; }
  .product-info { padding:13px; }
  .product-name { flex-wrap:wrap; }
  .product h3 { font-size:18px; line-height:1.25; }
  .product-info > p { margin:7px 0 10px; font-size:13px; }
  .product-bottom { gap:8px; }
  .product-bottom strong { font-size:20px; }
  .product-bottom button { min-height:44px; }
  .section-title span { max-width:110px; }
}
@media(max-width:359px) {
  .staff-header nav { flex-basis:100%; justify-content:space-between; }
  .staff-header .brand { margin:0 auto; }
  .product { grid-template-columns:88px minmax(0,1fr); }
  .product-info { padding:11px; }
  .promo > div:first-child { padding:12px; }
  .promo h2 { font-size:19px; }
  .promo p { font-size:12px; }
  .promo strong { font-size:19px; }
  .cart { padding:16px; }
  .ingredient { gap:6px; }
  .ingredient small { max-width:85px; text-align:right; white-space:normal; }
}
@media(max-height:500px) {
  .custom-dialog.product-dialog { max-height:calc(100dvh - 16px); padding:12px 18px !important; gap:6px; }
  .product-dialog > [data-slot="dialog-description"] { font-size:12px; line-height:1.3; margin:0; }
  .custom-dialog.product-dialog .custom-bottom { flex-direction:row; align-items:center; padding-top:6px; }
  .custom-dialog h2 { font-size:19px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
