/* ─── Sammy's Brezels — Shop styles ────────────────────────────────────────── */

/* ── Conditional form fields (disabled+dimmed pattern) ───────────────────── */
.conditional        { opacity: .38; transition: opacity .2s ease; }
.conditional.active { opacity: 1; }
.conditional input, .conditional textarea { background: var(--sand-pale, #f5f0e8); cursor: not-allowed; }
.conditional.active input, .conditional.active textarea { background: white; cursor: auto; }

/* ── Quote form ───────────────────────────────────────────────────────────── */
#q_date { width: auto; max-width: 100%; }

/* ── Shop layout ──────────────────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.shop-main {}
.shop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}
.shop-header h1 { font-size: 1.8rem; }

.shop-banner {
  text-align: center;
  margin-bottom: 2rem;
}
.shop-banner img {
  max-width: 520px;
  width: 100%;
  opacity: .85;
}

.veg-note {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: .65rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.veg-note strong { color: #155724; }

.sidebar-info-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--border);
}
.sip-title {
  font-weight: 700;
  font-size: .9rem;
  color: var(--brown);
  margin-bottom: .9rem;
}
.sip-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin: .85rem 0 .35rem;
}
.sip-section-label:first-of-type { margin-top: 0; }
.sip-row {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: baseline;
  gap: .2rem .45rem;
  font-size: .82rem;
  padding: .2rem 0;
}
.sip-icon { font-size: .9rem; line-height: 1.4; }
.sip-label { font-weight: 700; color: var(--text); }
.sip-hours { color: var(--text-muted); font-size: .78rem; white-space: nowrap; }

.sip-fee-row {
  padding: .3rem 0;
}
.sip-fee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.sip-fee { font-weight: 700; color: var(--text); font-size: .82rem; }
.sip-suburbs {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .15rem;
  line-height: 1.45;
}
.sip-min {
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--beige-dark);
  border-radius: 999px;
  padding: .1rem .5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.sip-footer {
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Category groups ──────────────────────────────────────────────────────── */
.product-group { margin-bottom: 2.5rem; }
.product-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}

/* ── Product grid ─────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--brown-light);
}
.product-card.in-cart {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-light);
}

.product-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }

.product-body {
  padding: 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .25rem;
  line-height: 1.3;
}
.product-subtitle {
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.product-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .75rem; }

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  white-space: nowrap;
}
.btn-add:hover { background: var(--blue); color: #fff; }
.btn-add.in-cart { background: var(--blue); color: #fff; }

/* ── Cart sidebar ─────────────────────────────────────────────────────────── */
.cart-sidebar {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.cart-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cart-empty {
  color: var(--text-muted);
  font-size: .9rem;
  text-align: center;
  padding: 1.5rem 0;
}
.cart-items { margin-bottom: 1rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .88rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .8rem; color: var(--text-muted); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--beige);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  transition: background var(--transition);
}
.cart-qty-btn:hover { background: var(--brown-light); }
.cart-qty-val { font-size: .88rem; font-weight: 700; min-width: 18px; text-align: center; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 1rem;
  padding-top: .5rem;
  border-top: 2px solid var(--border);
}
.cart-min-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: .6rem .9rem;
  border-radius: var(--radius);
  font-size: .8rem;
  margin-bottom: .75rem;
  text-align: center;
}
.cart-quote-hint {
  background: var(--blue-light);
  border: 1px solid rgba(61,47,176,.2);
  color: var(--blue-dark);
  padding: .65rem .9rem;
  border-radius: var(--radius);
  font-size: .8rem;
  margin-bottom: .75rem;
  text-align: center;
}
.cart-quote-hint a { color: var(--blue); font-weight: 700; }

.btn-checkout {
  display: block;
  width: 100%;
  padding: .85rem 1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-checkout:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; text-decoration: none; }
.btn-checkout:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* ── Mobile cart FAB ──────────────────────────────────────────────────────── */
.cart-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: .85rem 1.25rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(61,47,176,.45);
  align-items: center;
  gap: .6rem;
  transition: background var(--transition), transform var(--transition);
}
.cart-fab:hover { background: var(--blue-dark); transform: translateY(-2px); }
.cart-fab .fab-count {
  background: #fff;
  color: var(--blue);
  border-radius: 12px;
  padding: .05rem .45rem;
  font-size: .8rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

/* Mobile cart drawer */
.cart-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,24,16,.4);
  z-index: 300;
  opacity: 0;
  transition: opacity var(--transition);
}
.cart-drawer-overlay.open { display: block; opacity: 1; }
.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 301;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform .3s ease;
  max-height: 85vh;
  overflow-y: auto;
}
.cart-drawer.open { transform: translateY(0); }
.cart-drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* ── Checkout layout ──────────────────────────────────────────────────────── */
.checkout-layout {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}
.checkout-layout h1 { margin-bottom: 2rem; }

.checkout-panel {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.checkout-panel-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 1rem;
}

.location-cards { display: flex; flex-direction: column; gap: .75rem; }
.location-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.location-card:hover { border-color: var(--brown-mid); background: var(--beige); }
.location-card.selected { border-color: var(--blue); background: var(--blue-light); }
.location-card input[type=radio] { accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.location-card-info {}
.location-card-name  { font-weight: 700; font-size: .95rem; }
.location-card-type  { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.location-card-hours { font-size: .85rem; color: var(--text-muted); }
.location-card-icon  { font-size: 1.4rem; }

.date-select-wrap,
.suburb-select-wrap { margin-top: 1rem; }
.date-select-wrap label,
.suburb-select-wrap label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--brown); }
.zone-info {
  margin-top: .6rem;
  padding: .55rem .85rem;
  background: var(--beige);
  border-left: 3px solid var(--brown);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .85rem;
  color: var(--text);
}

.summary-fee-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--text-muted);
  padding: .3rem 0;
}
/* nice-select styles come from lib/nice-select.css — do not redeclare here */
.no-dates-msg { font-size: .88rem; color: var(--text-muted); background: var(--beige); padding: .7rem 1rem; border-radius: var(--radius); }

.order-summary-lines { }
.order-summary-lines li {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
}
.order-summary-lines li:last-child { border-bottom: none; }
.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
  padding-top: .6rem;
  margin-top: .4rem;
  border-top: 2px solid var(--border);
}

.checkout-dual-action {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.25rem;
}
.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: 1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-pay:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-pay:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.hidden { display: none; }
.form-error { margin-bottom: 1.25rem; }
.quote-cta-hint { font-size: .75rem; margin-top: .3rem; color: var(--text-muted); }
.checkout-legal { text-align: center; font-size: .78rem; color: var(--text-muted); margin-top: .75rem; }

.quote-cta {
  display: none;
  text-align: center;
  padding: .85rem 1rem;
  background: var(--blue-light);
  border: 1.5px solid rgba(61,47,176,.2);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--blue-dark);
}
.quote-cta.visible { display: block; }
.quote-cta a { font-weight: 700; color: var(--blue); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .cart-sidebar { display: none; }
  .cart-fab { display: flex; }
}

.radio-group           { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: .4rem; }
.radio-group .radio-label { display: flex; flex-direction: row; align-items: center; gap: .5rem; cursor: pointer; font-weight: 700; font-size: .95rem; line-height: 1; margin-bottom: 0; }
.radio-group .radio-input { flex-shrink: 0; width: 1rem; height: 1rem; margin: 0; accent-color: var(--blue); }

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .product-body { padding: .85rem; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}
