:root {
  --blue: #00005f;
  --blue-2: #12306e;
  --orange: #ff6200;
  --ink: #1b1c1e;
  --muted: #5d6670;
  --line: #e4e7eb;
  --bg: #f5f6f8;
  --green: #0d7a3f;
  --card: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}
.logo {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 28px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.primary-nav { display: flex; align-items: center; gap: 18px; font-weight: 700; }
.primary-nav > a, .nav-item > a { color: var(--ink); text-decoration: none; }
.nav-item { position: relative; }
.mega {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(820px, 72vw);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  z-index: 40;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; }
.mega a { display: block; color: var(--muted); font-weight: 500; font-size: 14px; padding: 2px 0; }
.mega .mega-parent { color: var(--blue); font-weight: 800; margin-bottom: 4px; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.store-chip {
  display: flex;
  flex-direction: column;
  max-width: 220px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.store-chip:hover { text-decoration: none; border-color: var(--blue); }
.store-chip .kicker { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.store-chip strong { font-size: 14px; }
.store-chip small { color: var(--muted); font-size: 12px; }
.header-search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.header-search input { border: 0; background: transparent; padding: 8px 12px; width: 180px; }
.header-search button { border: 0; background: var(--blue); color: #fff; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.tool-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
}

.hero { background: linear-gradient(120deg, var(--blue), #0a4ea3 70%); color: #fff; }
.hero-inner { padding: 64px 0; }
.eyebrow { margin: 0 0 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: #ffd7bf; }
.hero h1 { margin: 0 0 10px; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; max-width: 14ch; }
.lede { max-width: 46ch; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .button-ghost { background: transparent; color: #fff; border: 2px solid #fff; }

.section { padding: 10px 0 28px; }
.aisle { margin: 8px 0 22px; }
.aisle-0 > h2 { margin: 28px 0 12px; font-size: 32px; }
.aisle-0 > h2 a, .aisle h3 a { color: var(--ink); text-decoration: none; }
.aisle h3 { margin: 18px 0 10px; font-size: 20px; color: var(--blue); }
.aisle h3 a { color: var(--blue); }
.aisle .aisle { margin-left: 0; }
.section-head, .page-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 18px 0; }
.section-head h2, .page-head h1 { margin: 0; }
.date-range { margin: 4px 0 0; color: var(--muted); }
.page-head { display: block; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.crumb { color: var(--muted); font-size: 14px; }
.crumb span { margin: 0 4px; }

.tile-grid, .link-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile, .link-cards a {
  display: block;
  min-height: 140px;
  padding: 16px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
}
.tile:hover, .link-cards a:hover { text-decoration: none; transform: translateY(-2px); }
.tile h2, .link-cards h2 { margin: 0 0 8px; font-size: 20px; }
.tile p, .link-cards p, .link-cards span { margin: 0; }
.tone-orange { background: var(--orange); }
.tone-blue { background: var(--blue); }
.tone-ink { background: #222; }
.tone-green { background: var(--green); }
.tone-produce { background: #2e7d32; }
.tone-gold { background: #c47b00; }
.tone-teal { background: #0e7490; }
.link-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.link-cards a { background: var(--blue); }
.link-cards a:nth-child(2) { background: #222; }
.link-cards a:nth-child(3) { background: var(--orange); }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-grid a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  background: var(--bg);
  text-decoration: none;
}
.cat-grid a:hover { border-color: var(--blue); text-decoration: none; }

ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
ul.products li.product, ul.products .product-card {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.card-media { position: relative; background: var(--bg); aspect-ratio: 1; }
.card-media img, .pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: var(--blue); color: #fff; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; }
.badge.find, .badge.drop { background: var(--orange); }
.badge.upcoming, .badge.age { background: #222; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; height: 100%; }
.card-title { color: var(--ink); font-weight: 700; text-decoration: none; }
.size, .stock { margin: 0; color: var(--muted); font-size: 14px; }
.stock.in-stock { color: var(--green); font-weight: 700; }
.stock.out-of-stock { color: #9b1c1c; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price-now { font-size: 22px; font-weight: 800; }
.price-now.is-sale { color: var(--orange); }
.price-was { color: var(--muted); text-decoration: line-through; }
.price-was .woocommerce-Price-amount { text-decoration: line-through; }
.pct { color: var(--orange); font-weight: 800; font-size: 13px; }
.woocommerce .price { margin: 0; }

.button, .woocommerce a.button, .woocommerce button.button, button.button, a.button, #place_order {
  background: var(--blue);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button-orange, #place_order, .woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--orange); }
.button.disabled { background: #e6e8eb; color: var(--muted) !important; cursor: default; }
li.product .button, .card-body .button { width: 100%; margin-top: auto; }
.added_to_cart { display: block; text-align: center; margin-top: 6px; font-weight: 700; }

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-bottom: 32px; }
.pdp-media { background: var(--bg); border-radius: 16px; overflow: hidden; }
.pdp-info h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 46px); }
.pdp-desc { color: var(--muted); }
.age-check { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-weight: 700; }
.quantity .qty { width: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }

.store-search { display: flex; gap: 8px; margin-bottom: 16px; }
.store-search input, .woocommerce form .input-text, .woocommerce form select, .woocommerce form textarea, .window-field select {
  width: 100%;
  border: 1px solid #cfd5dc;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.store-list { display: grid; gap: 12px; }
.store-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.store-card.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.store-card h3 { margin: 0 0 4px; }
.store-card p { margin: 0 0 4px; }
.services { color: var(--blue); font-weight: 800; }
.hours, .miles { color: var(--muted); }
.store-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 160px; }
.selected-pill { background: #e8eefc; color: var(--blue); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; }

.aldi-box, .woocommerce-message, .woocommerce-info, .woocommerce-error {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 16px;
}
.woocommerce-error { border-color: #f3c1c1; background: #fff6f6; }
.woocommerce-message, .woocommerce-info { border-color: #d5e4f7; background: #f7faff; }
.aldi-box h2 { margin: 0 0 8px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--muted); }
.oos { border: 0; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.oos legend { font-weight: 800; margin-bottom: 6px; }
.window-field { display: block; margin-top: 8px; }
.aldi-box:not(.mode-delivery) .only-delivery { display: none; }
.aldi-box:not(.mode-pickup) .only-pickup { display: none; }
.aldi-box.speed-priority .only-scheduled { display: none; }
.note { color: var(--muted); }

.woocommerce form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 8px 28px;
  align-items: start;
}
.woocommerce form.checkout .aldi-box { grid-column: 1 / -1; }
.woocommerce form.checkout #customer_details { grid-column: 1; grid-row: 2 / span 4; float: none; width: auto; }
.woocommerce form.checkout #order_review_heading { grid-column: 2; grid-row: 2; float: none; width: auto; }
.woocommerce form.checkout #order_review { grid-column: 2; grid-row: 3; float: none; width: auto; background: var(--bg); border-radius: 14px; padding: 12px; }
.woocommerce-shipping-totals { display: none !important; }
.col2-set .col-1, .col2-set .col-2 { float: none; width: 100%; }
.shop_table { width: 100%; border-collapse: collapse; }
.shop_table th, .shop_table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-cart .cart_item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.steps { display: grid; gap: 12px; padding-left: 18px; }
.steps li { padding-left: 6px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 18px; border-left: 3px solid var(--blue); }
.timeline li:last-child { border-left-color: transparent; }
.timeline time { display: block; color: var(--muted); font-size: 13px; }
.timeline strong { display: block; }
.timeline p { margin: 4px 0 0; }

.site-footer { margin-top: 40px; background: var(--blue); color: #fff; padding: 28px 0 16px; }
.site-footer a { color: #fff; display: block; margin: 4px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.site-footer h2 { margin: 0 0 8px; font-size: 16px; }
.legal { color: #d5dcf0; font-size: 13px; }

.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 40, 0.48);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-card { width: min(760px, 100%); max-height: min(82vh, 820px); overflow: auto; background: #fff; border-radius: 16px; padding: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; }
.related.products h2 { margin: 8px 0 12px; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 12px; }
.woocommerce-ordering { float: none; }
.page-plain { padding: 24px 0 40px; }

@media (max-width: 980px) {
  .header-row { flex-wrap: wrap; padding: 10px 0; }
  .header-tools { width: 100%; }
  .header-search { flex: 1; }
  .header-search input { width: 100%; }
  .tile-grid, ul.products, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-cards, .footer-grid, .pdp, .woocommerce form.checkout { grid-template-columns: 1fr; }
  .woocommerce form.checkout #customer_details,
  .woocommerce form.checkout #order_review_heading,
  .woocommerce form.checkout #order_review,
  .woocommerce form.checkout .aldi-box { grid-column: 1; grid-row: auto; }
  .store-card { flex-direction: column; }
  .store-card-side { align-items: flex-start; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .primary-nav { width: 100%; overflow-x: auto; }
  .mega { position: static; width: auto; display: none; }
  .nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; grid-template-columns: 1fr 1fr; }
}
