/* ============================================================
   7ate9 BAKERY — style.css
   8-bit · Black & White · Minimalist
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:      #000000;
  --text:    #ffffff;
  --muted:   #aaaaaa;
  --border:  4px solid #ffffff;
  --font:    'Press Start 2P', monospace;
  --radius:  0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 10px;
  line-height: 1.8;
}

/* ── Scanline overlay on hero ── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.25) 3px,
    rgba(0,0,0,0.25) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero video {
  width: 100%;
  max-width: 600px;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 18px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 24px 16px 32px;
  position: relative;
  z-index: 3;
  text-shadow: 4px 4px 0 #fff3, 0 0 20px rgba(255,255,255,0.15);
}

/* ── Pixel divider ── */
.pixel-divider {
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    #fff 0px, #fff 8px,
    #000 8px, #000 16px
  );
}

/* ── Sticky nav ── */
.nav-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: #000;
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

/* ── 8-bit buttons ── */
.btn-pixel {
  font-family: var(--font);
  font-size: 10px;
  color: #000;
  background: #fff;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  text-transform: lowercase;
  box-shadow: 4px 4px 0 #555;
  transition: box-shadow 0.05s, transform 0.05s;
  letter-spacing: 0.05em;
}
.btn-pixel:hover {
  box-shadow: 2px 2px 0 #555;
  transform: translate(2px, 2px);
}
.btn-pixel:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

.btn-pixel-outline {
  font-family: var(--font);
  font-size: 10px;
  color: #fff;
  background: #000;
  border: var(--border);
  padding: 12px 20px;
  cursor: pointer;
  text-transform: lowercase;
  box-shadow: 4px 4px 0 #555;
  transition: box-shadow 0.05s, transform 0.05s;
  letter-spacing: 0.05em;
  width: 100%;
}
.btn-pixel-outline:hover {
  background: #fff;
  color: #000;
  box-shadow: 2px 2px 0 #555;
  transform: translate(2px, 2px);
}
.btn-pixel-outline:active {
  box-shadow: none;
  transform: translate(4px, 4px);
}

/* ── Sections ── */
section {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-title {
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: var(--border);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

/* ── Order form ── */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-label {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.pixel-input {
  width: 100%;
  font-family: var(--font);
  font-size: 10px;
  color: #fff;
  background: #000;
  border: var(--border);
  padding: 12px;
  outline: none;
  transition: border-color 0.1s;
}
.pixel-input:focus {
  border-color: #fff;
  box-shadow: inset 0 0 0 2px #fff2;
}
.pixel-input::placeholder { color: #555; }

/* ── Pickup / Delivery radio buttons ── */
.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.pixel-radio {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  background: #000;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.pixel-radio:checked {
  background: #fff;
  box-shadow: inset 0 0 0 3px #000;
}

.radio-text {
  font-family: var(--font);
  font-size: 10px;
  text-transform: lowercase;
  color: #fff;
}

/* ── Flavor checkboxes ── */
.flavors-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flavor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flavor-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.flavor-name {
  font-size: 8px;
  flex: 1;
  min-width: 160px;
  text-transform: lowercase;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
  transition: opacity 0.15s;
}
.qty-control.active { opacity: 1; }

.qty-btn {
  font-family: var(--font);
  font-size: 12px;
  width: 28px;
  height: 28px;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.qty-btn:hover { background: #ccc; }

.qty-display {
  font-size: 10px;
  min-width: 32px;
  text-align: center;
}

.qty-label {
  font-size: 7px;
  color: var(--muted);
  text-transform: lowercase;
}

/* ── Confirmation message ── */
.order-confirm {
  display: none;
  text-align: center;
  padding: 40px 20px;
  border: var(--border);
}
.order-confirm .confirm-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 20px;
}
.order-confirm p {
  font-size: 9px;
  line-height: 2;
  color: var(--muted);
  margin-top: 12px;
}

/* ── Schedule ── */
.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid #333;
  align-items: start;
}

.schedule-date {
  font-size: 9px;
  color: #fff;
}

.schedule-details {
  font-size: 8px;
  color: var(--muted);
  line-height: 2;
}

.schedule-location {
  color: #fff;
  font-size: 9px;
  display: block;
  margin-bottom: 4px;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.15s, transform 0.15s;
  image-rendering: auto;
}
.gallery-img:hover {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.02);
  z-index: 1;
  position: relative;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: var(--border);
}

.lightbox-close {
  font-family: var(--font);
  font-size: 10px;
  color: #fff;
  background: #000;
  border: var(--border);
  padding: 10px 20px;
  cursor: pointer;
  text-transform: lowercase;
}
.lightbox-close:hover { background: #fff; color: #000; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 16px;
  border-top: var(--border);
  font-size: 8px;
  color: #555;
  text-transform: lowercase;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-title { font-size: 12px; }
  .section-title { font-size: 11px; }
  .schedule-item { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-bar { gap: 8px; }
  .btn-pixel, .btn-pixel-outline { font-size: 8px; padding: 10px 14px; }
}
