/* ===== KPFF Frozen Foods — Shared Styles ===== */
:root {
  --navy: #0b2a4a;
  --navy-bg: #0b2a4a;
  --blue: #1565c0;
  --ice: #e8f4fb;
  --accent: #ff7a30;
  --accent-dark: #e0641c;
  --green: #2e9e5b;
  --text: #1c2733;
  --muted: #5b6b7a;
  --white: #ffffff;
  --border: #dde6ee;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 42, 74, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy-bg); color: #fff; }
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-bg);
  color: #cfe3f5;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links { display: flex; gap: 18px; }

/* ===== Header / Nav ===== */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 24px;
}
.nav-wrap .logo { justify-self: start; }
.nav-wrap .nav-actions { justify-self: end; }
nav.main-nav { justify-self: center; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
footer .logo-img { height: 30px; }
nav.main-nav ul {
  display: flex;
  gap: 34px;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a {
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--blue); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.cart-link {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--navy);
}
.cart-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }
.login-link {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  white-space: nowrap;
}
.login-link:hover { color: var(--blue); }

/* ===== Auth page ===== */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}
.auth-tabs {
  display: flex;
  background: var(--ice);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: transparent;
  transition: all 0.15s ease;
}
.auth-tab.active { background: var(--navy-bg); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 22px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 18px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin: -6px 0 18px;
}
.checkbox-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-row input { width: auto; }
.account-badge {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.account-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy-bg);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===== Hero ===== */
.hero {
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 40%), linear-gradient(120deg, var(--navy-bg) 0%, var(--blue) 100%);
  color: #fff;
  padding: 76px 0;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero h1 { font-size: 2.7rem; line-height: 1.15; margin-bottom: 18px; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1rem; color: #dbe8f5; margin-bottom: 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-visual .hero-photo {
  width: 390px; height: 390px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-lg);
}
.hero-visual .plate {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff 0%, #dceefb 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div { text-align: left; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats span { font-size: 0.82rem; color: #cfe3f5; }

/* ===== Section headings ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--ice); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ===== Category / feature cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon-circle {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--ice);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.92rem; }

/* category tile */
.cat-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 534 / 232;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2a3342;
  text-align: center;
  padding: 10px;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-tile picture, .cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8,22,40,0.20), rgba(8,22,40,0.50)); }
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-tile h4, .cat-tile span { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.75); }
.cat-tile h4 { font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.cat-tile span { font-size: 0.8rem; font-weight: 600; }

/* ===== Product cards ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-thumb {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}
.no-photo span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.no-photo-lg { gap: 12px; }
.no-photo-lg span { font-size: 0.8rem; }
.product-thumb .badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h4 { font-size: 1rem; color: var(--navy); }
.product-body p.desc { font-size: 0.82rem; color: var(--muted); flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.price .unit { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.add-btn {
  background: var(--navy-bg);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.add-btn:hover { background: var(--blue); }

.qty-control-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-bg);
  border-radius: 8px;
  padding: 6px 10px;
}
.qty-control-sm button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  width: 16px;
}
.qty-control-sm span {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 14px;
  text-align: center;
}

/* filter pills */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  justify-content: center;
}
.pill {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
}
.pill.active, .pill:hover { background: var(--navy-bg); color: #fff; border-color: var(--navy); }

/* ===== Menu page — sidebar category layout ===== */
.menu-layout {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}
.menu-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 6px;
}
.menu-sidebar::-webkit-scrollbar { width: 6px; }
.menu-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.menu-sidebar h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-left: 4px;
}
.menu-sidebar .filter-row {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-bottom: 0;
  gap: 6px;
}
.menu-sidebar .pill {
  text-align: left;
  border-radius: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-main { flex: 1; min-width: 0; }

/* ===== Steps ===== */
.steps { display: flex; gap: 26px; }
.step {
  flex: 1;
  text-align: center;
  padding: 28px 18px;
  position: relative;
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-bg);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step h4 { color: var(--navy); margin-bottom: 8px; }
.trade-info { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #e3e8ef; font-size: 0.74rem; line-height: 1.35; }
.trade-info div { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.trade-info dt { color: var(--muted); }
.trade-info dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ===== Testimonials ===== */
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testi-card .stars { color: #f4a825; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p.quote { color: var(--text); font-size: 0.94rem; margin-bottom: 16px; }
.testi-user { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ice);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--navy);
}
.testi-user strong { display: block; font-size: 0.88rem; }
.testi-user span { font-size: 0.76rem; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 54px 0;
  text-align: center;
  border-radius: var(--radius);
  margin: 0 auto;
  width: calc(100% - 48px);
}
.cta-band h2 { font-size: 1.8rem; margin-bottom: 10px; font-weight: 800; }
.cta-band p { margin-bottom: 24px; opacity: 0.95; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--navy-bg);
  color: #c9dcee;
  padding: 56px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 0.95rem; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: #fff; }
.footer-about p { font-size: 0.88rem; color: #a9c2da; margin: 14px 0 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #93aec8;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--accent); }

/* ===== Inner page header (banner) ===== */
.page-banner {
  background: linear-gradient(120deg, var(--navy-bg), var(--blue));
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.page-banner h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 8px; }
.page-banner .crumb { font-size: 0.85rem; color: #cfe3f5; }
.page-banner .crumb a { color: #fff; font-weight: 600; }

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--blue); }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
.radio-option input { width: auto; }
.radio-option.selected { border-color: var(--blue); background: var(--ice); }

/* ===== Cart / checkout layout ===== */
.cart-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 30px; align-items: start; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item .thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  background: var(--ice);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item .thumb picture, .product-thumb picture { display: block; width: 100%; height: 100%; }
.modal-image-wrap picture { display: block; max-width: 100%; max-height: 60vh; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item .info { flex: 1; }
.cart-item h5 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.cart-item .unit-price { font-size: 0.8rem; color: var(--muted); }
.qty-control {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
}
.qty-control button {
  background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--navy); font-weight: 700;
  width: 20px;
}
.cart-item .line-total { width: 90px; text-align: right; font-weight: 700; color: var(--navy); }
.remove-btn { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 0.8rem; margin-left: 12px; }

.summary-card {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.summary-card h3 { margin-bottom: 18px; color: var(--navy); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.92rem; color: var(--text); }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--navy); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-cart .emoji { font-size: 3rem; margin-bottom: 16px; }

/* ===== Confirmation ===== */
.confirm-box { text-align: center; padding: 70px 20px; max-width: 560px; margin: 0 auto; }
.confirm-box .check {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 24px;
}
.confirm-box h1 { color: var(--navy); margin-bottom: 12px; }
.confirm-box p { color: var(--muted); margin-bottom: 26px; }
.order-id-box {
  background: var(--ice);
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 26px;
  display: inline-block;
}

/* ===== Misc pages: About / Delivery / Contact ===== */
.value-list { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.value-item { display: flex; gap: 16px; }
.value-item .icon-circle { flex-shrink: 0; }
.zone-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.zone-table th, .zone-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.zone-table th { background: var(--ice); color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-card { display: flex; gap: 14px; margin-bottom: 22px; }
.map-placeholder {
  height: 260px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--ice), var(--ice) 10px, #dceefb 10px, #dceefb 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-weight: 700;
  margin-top: 26px;
}

/* ===== Product thumb image ===== */
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
}
.product-thumb { cursor: pointer; overflow: hidden; }

/* ===== Product image modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 74, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow);
}
.modal-image-wrap {
  min-height: 220px;
  max-height: 60vh;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  position: relative;
}
.modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  cursor: zoom-in;
}

/* Hover magnifier lens (desktop/mouse only — see the (hover:none) rule below
   which turns it off for touch devices, where the tap-to-zoom overlay is
   used instead). */
.zoom-lens {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  background-repeat: no-repeat;
  background-color: #fff;
  pointer-events: none;
  display: none;
  z-index: 6;
}
@media (hover: none) {
  .zoom-lens { display: none !important; }
}
.zoom-hint {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(11, 42, 74, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  display: flex; align-items: center; gap: 4px;
}

/* Full-screen zoom — click any product image to open it here at a much
   larger size. Works the same way on touch devices (tap instead of hover),
   and you can scroll/drag to pan around a photo that's larger than the
   screen. */
.zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: auto;
  cursor: zoom-out;
}
.zoom-overlay.open { display: flex; }
.zoom-overlay img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: auto;
}
.zoom-overlay-close {
  position: fixed;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 1101;
  box-shadow: var(--shadow-lg);
}
.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
}
.modal-tab {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.modal-tab.active { background: var(--navy-bg); color: #fff; border-color: var(--navy); }
.modal-info { padding: 18px 20px 24px; }
.modal-info h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.modal-brand { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }
.modal-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-meta .price { font-size: 1.2rem; }
.modal-qty { background: var(--navy-bg); }

/* ===== Toast ===== */
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-bg);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual .plate { width: 240px; height: 240px; font-size: 4rem; }
  .hero-visual .hero-photo { width: 270px; height: 270px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .menu-layout { flex-direction: column; }
  .menu-sidebar { width: 100%; position: static; max-height: none; overflow-y: visible; }
  .menu-sidebar .filter-row { flex-direction: row; flex-wrap: wrap; }
  .menu-sidebar .pill { width: auto; }
}
@media (max-width: 640px) {
  .nav-wrap { display: flex; justify-content: space-between; }
  nav.main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); display: none; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

.price-login { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--navy); background: #eef3fa; border: 1px solid #d3deee; border-radius: 999px; padding: 7px 14px; text-decoration: none; }
.price-login:hover { background: #e2ebf7; }

.about-photo { width: 420px; height: 420px; max-width: 100%; border-radius: 50%; object-fit: cover; display: block; }
@media (max-width: 900px) { .about-photo { width: 280px; height: 280px; } }

/* Home: Best Sellers & New In tile beside the category heading */
.cat-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: center; margin-bottom: 44px; }
.cat-head .section-head { grid-column: 2 / 5; margin: 0 auto; max-width: 620px; }
.bestsellers-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 534 / 232; border-radius: var(--radius);
  background: linear-gradient(135deg, #0b2a4a 0%, #1f5fb8 100%);
  text-align: center; text-decoration: none; padding: 10px;
  font-size: 1.15rem; font-weight: 800; line-height: 1.25; letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bestsellers-tile span { color: #38bdf8; text-transform: uppercase; }
.bestsellers-tile .amp { color: #fff; }
.bestsellers-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .cat-head { grid-template-columns: 1fr; } .cat-head .section-head { grid-column: auto; } .bestsellers-tile { aspect-ratio: auto; padding: 22px 10px; } }

.btn-login { background: #29b6f6; color: #fff; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 800; }
.btn-login:hover { background: #0ea5e9; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

body:not(.kpff-in) .cart-link { display: none; }

/* Hide LOGIN / Open account once logged in */
body.kpff-in .hero-cta .btn-login, body.kpff-in .hero-cta .btn-open { display: none; }

/* ===== Theme toggle + dark theme ===== */
.theme-toggle { background: rgba(127,140,160,0.10); border: 1px solid var(--border); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .15s, border-color .15s; }
.theme-toggle:hover { background: rgba(127,140,160,0.20); border-color: var(--blue); }
.theme-toggle svg { display: block; }
.theme-toggle .t-dark { display: none; }
html[data-theme="dark"] .theme-toggle .t-light { display: none; }
html[data-theme="dark"] .theme-toggle .t-dark { display: block; }
html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #9fcaf7;
  --blue: #5aa2ee;
  --ice: #15263a;
  --text: #e4ebf3;
  --muted: #9aacbf;
  --white: #0e1a29;
  --border: #243449;
  --shadow: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.55);
}
html[data-theme="dark"] body { background: #0a1320; }
html[data-theme="dark"] header.site-header { background: #0e1a29; }
html[data-theme="dark"] .logo-img { background: #fff; padding: 4px 8px; border-radius: 6px; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #15263a; color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .price-login { background: #1b2f48; border-color: #2c4666; }
html[data-theme="dark"] .price-login:hover { background: #22395a; }

/* Product that can't be ordered yet (no case size) */
.case-pending { display: block; width: 100%; box-sizing: border-box; font-size: 0.82rem; font-weight: 700; color: var(--muted); background: var(--ice); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; line-height: 1.3; text-align: center; }
.case-pending small { display: block; font-weight: 500; font-size: 0.74rem; margin-top: 2px; }
.product-meta .case-pending { margin-top: 4px; }

/* ===== v51: checkout notes / repeat order ===== */
.terms-note { background: var(--ice); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 0.88rem; color: var(--text); line-height: 1.5; margin-top: 8px; }
.repeat-bar { padding: 0 0 18px; }
.repeat-bar .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ===== v51: phone / small-screen layout ===== */
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; }
input, select, textarea { font-size: 16px; } /* stops iPhone zooming in on focus */
.btn, .pill, .nav-toggle, .theme-toggle, .qty-control button { touch-action: manipulation; }

@media (max-width: 900px) {
  .nav-wrap { padding: 12px 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .page-banner h1 { font-size: 1.7rem; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar { font-size: 0.72rem; }
  .topbar .container { justify-content: center; text-align: center; padding-top: 6px; padding-bottom: 6px; }
  .topbar-links { display: none; }
  .nav-wrap { padding: 10px 14px; gap: 8px; }
  .logo-img { height: 28px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 0.78rem; }
  .theme-toggle { width: 36px; height: 36px; }
  .cart-link { font-size: 0.85rem; }
  nav.main-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 120px); overflow-y: auto; }
  nav.main-nav ul { gap: 0; }
  nav.main-nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-toggle { font-size: 1.5rem; min-width: 40px; min-height: 40px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-visual .hero-photo { width: 220px; height: 220px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, #product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .section-head h2 { font-size: 1.5rem; }

  /* menu: category pills scroll sideways instead of stacking in many rows */
  .menu-sidebar .filter-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 8px; padding-bottom: 8px; scrollbar-width: thin; }
  .menu-sidebar .pill { white-space: nowrap; flex: 0 0 auto; }

  /* cart rows */
  .cart-item { flex-wrap: wrap; gap: 10px 12px; }
  .cart-item .info { flex: 1 1 calc(100% - 90px); min-width: 0; }
  .cart-item .line-total { width: auto; margin-left: auto; }
  .remove-btn { margin-left: 0; padding: 8px 0; }
  .qty-control { padding: 6px 12px; }
  .qty-control button { width: 28px; height: 28px; font-size: 1.15rem; }
  .form-card, .summary-card { padding: 18px 16px; }
  .summary-row { gap: 10px; }
  .summary-row span:last-child { text-align: right; }
  .btn-block { padding: 14px 16px; }
  .confirm-box { padding: 24px 16px; }
  .order-id-box { font-size: 1rem; word-break: break-all; }
  .repeat-bar .btn { width: 100%; }

  /* admin tables scroll sideways instead of breaking the page */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .modal, .modal-content { max-width: 96vw; }
  #toast { max-width: 92vw; text-align: center; }
}
@media (max-width: 380px) {
  .logo-img { height: 24px; }
  .nav-actions .btn { padding: 7px 9px; font-size: 0.72rem; }
  .cart-link { font-size: 0.8rem; }
  .grid-4, #product-grid { gap: 8px; }
  .hero h1 { font-size: 1.5rem; }
}

/* ===== v54: out of stock ===== */
.stock-out { display: inline-block; font-size: 0.85rem; font-weight: 700; color: #8a4b00; background: #fff4e0; border: 1px solid #f1d49a; border-radius: 10px; padding: 7px 14px; line-height: 1.25; }
.stock-out small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.85; }
html[data-theme="dark"] .stock-out { color: #ffd08a; background: #3a2a10; border-color: #6b4d1c; }
