:root { color: #171717; font: 16px/1.45 Arial, Helvetica, sans-serif; --red: #e61412; --line: #c9c9c9; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #323232; outline-offset: 4px; }
.header { background: white; position: sticky; top: 0; z-index: 1; }
.header-content { max-width: 1360px; min-height: 74px; padding: 0 28px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo, .brand img, .footer-logo { object-fit: contain; display: block; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon { color: inherit; border: 0; background: none; width: 36px; height: 40px; padding: 5px; display: inline-grid; place-items: center; font-size: 23px; }
.icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#cart-toggle { position: relative; }
#count { position: absolute; right: -2px; top: 0; background: var(--red); color: white; border-radius: 20px; padding: 0 4px; font-size: 12px; }
#navigation-panel { border-top: 1px solid #eee; padding: 14px 28px; }
#navigation-panel a { padding: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1.5px solid var(--red); border-radius: 8px; padding: 8px 18px; white-space: nowrap; font-weight: 500; }
.outline { background: #fff; color: #ce1513; }
.red, .tag { color: #fff; background: var(--red); }
.full { width: 100%; }
.home { background-color: #fdfcf9; }
.hero { padding: 60px 8vw; min-height: 380px; display: flex; flex-direction: column; justify-content: center; align-items: start; }
.hero h1 { margin: 0 0 22px; color: #d71917; font-size: clamp(1.5rem, 4vw, 3rem); }
footer { padding: 35px 20px 55px; display: grid; gap: 24px; justify-items: center; font-size: .875rem; }
.menu { max-width: 1240px; margin: auto; padding: 0 24px 70px; }
.categories { display: flex; gap: 22px; overflow: auto; white-space: nowrap; border-bottom: 1px solid #e8e8e8; }
.categories a { display: block; padding: 12px 0; font-size: .9375rem; }
.categories a:hover { color: #bc1411; }
.menu section { padding-top: 14px; scroll-margin-top: 80px; }
.menu h2 { font-size: 1.25rem; margin: 16px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card { text-align: left; border: 1px solid #bbb; color: inherit; border-radius: 4px; background: white; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: #444; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-details { display: flex; align-items: start; flex-direction: column; gap: 5px; width: 100%; padding: 14px 14px 16px; }
.card strong { font-size: .9375rem; }
.price { font-size: .875rem; }
.tag { padding: 4px 9px; font-size: .75rem; }
#search-panel { margin: 14px 0; }
dialog { border: 1px solid #ddd; border-radius: 12px; width: min(540px, calc(100% - 24px)); max-height: min(92dvh, 850px); padding: 0; }
dialog::backdrop { background: #0007; }
.dialog-content { padding: 25px; }
.close-form { height: 0; position: sticky; top: 4px; z-index: 1; text-align: right; padding-right: 7px; }
.close-form button { height: 36px; background: white; border-radius: 50%; }
.product-photo { width: 100%; max-height: 230px; object-fit: contain; }
h2, h3 { margin: 0 0 12px; }
form h3 { margin-top: 20px; }
label { display: grid; gap: 5px; margin: 10px 0; font-size: .9375rem; font-weight: 600; }
input:not([type=checkbox]), textarea, select { padding: 10px; border: 1px solid #aaa; border-radius: 6px; width: 100%; min-height: 42px; background: #fff; }
#quantity { width: 110px; }
fieldset { border: 1px solid #ccc; margin: 16px 0; }
fieldset label { display: flex; gap: 8px; font-weight: normal; }
#product-form .button { margin-top: 10px; }
.line { padding: 10px 0; border-bottom: 1px solid #ddd; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.line button { background: white; border: 1px solid #bbb; padding: 6px 10px; border-radius: 5px; }
.line small { display: block; }
#subtotal { font-weight: bold; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .header-content { padding: 0 15px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .brand { justify-self: end; margin-right: 8px; }
  .actions { gap: 4px; }
  .actions .icon { width: 30px; }
  .outline { min-height: 36px; padding: 7px 12px; font-size: .875rem; }
  .menu { padding-inline: 15px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero { min-height: 357px; padding-inline: 18px; }
  .hero .button { width: 100%; }
}

.delivery-dates { border: 0; padding: 0; margin: 18px 0; }
.delivery-dates legend { padding: 0; font-size: .9375rem; font-weight: 600; }
.delivery-dates p { margin: 6px 0 10px; font-size: .9375rem; }
#selected-dates { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0; padding: 0; }
#selected-dates button { background: #fff; border: 1px solid #aaa; border-radius: 20px; padding: 7px 11px; font-size: .875rem; }
#calendar { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.calendar-month { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 6px 0 12px; text-align: center; }
.calendar-weekday { padding-block: 5px; font-size: .875rem; color: #484848; }
.calendar-control, .calendar-day { color: inherit; background: #fff; border: 1px solid transparent; border-radius: 6px; min-height: 40px; }
.calendar-control { min-width: 42px; border-color: var(--line); font-size: 1.25rem; }
.calendar-day:hover:not(:disabled) { border-color: var(--red); }
.calendar-day[aria-pressed="true"] { background: #c61715; color: #fff; }
.calendar-day[aria-current="date"]:not([aria-pressed="true"]) { border-color: #aaa; }
#order-results { padding-inline-start: 24px; overflow-wrap: anywhere; }

.checkout-address { background: #f8f7f6; border-radius: 6px; padding: 10px 12px; margin: 12px 0; }
.checkout-address strong, .checkout-address span { display: block; }
.remember-contact { display: flex; gap: 8px; align-items: start; font-weight: 400; }
.remember-contact input { margin-top: 4px; }

.checkout-help { color: #4b4948; font-size: .875rem; margin: -4px 0 12px; }
