@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── VARIABLES ────────────────────────────────────────────────────────────── */

:root {
  --bg:      #0e0b08;
  --bg2:     #1a1410;
  --bg3:     #241c14;
  --accent:  #ff4d00;
  --accent2: #f0a500;
  --text:    #f5ede0;
  --text2:   #b09a80;
  --border:  rgba(255,255,255,0.08);
  --radius:  12px;
}

/* ─── RESET ─────────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NAV ────────────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(14,11,8,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--text); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d43820; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,0.3); }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(232,71,42,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(240,165,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(240,165,0,0.3);
  padding: 0.35rem 1rem;
  border-radius: 100px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text2), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── LAYOUT HELPERS ─────────────────────────────────────────────────────────── */

section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* PAGE HEADER */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: var(--accent);
}

/* ─── FEATURES ───────────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover { border-color: rgba(232,71,42,0.3); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.6; font-weight: 300; }

/* ─── MENU ───────────────────────────────────────────────────────────────────── */

.menu-section { background: var(--bg2); }

.menu-tabs { display: flex; gap: 0.5rem; margin: 2rem 0; flex-wrap: wrap; }

.tab {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active, .tab:hover { background: var(--accent); color: #fff; border-color: transparent; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.menu-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s;
}

.menu-item:hover { border-color: rgba(232,71,42,0.25); }
.menu-item-info h4 { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
.menu-item-info p { font-size: 0.82rem; color: var(--text2); line-height: 1.5; }

.diet-tags { display: flex; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }

.diet-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text2);
  letter-spacing: 0.03em;
}

.diet-tag.veg { background: rgba(80,180,80,0.15);    color: #7ec87e; }
.diet-tag.lac { background: rgba(240,165,0,0.12);    color: #f0a500; }
.diet-tag.glu { background: rgba(100,180,220,0.12);  color: #7ec8e0; }

.menu-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--accent2);
  white-space: nowrap;
  font-weight: 700;
}

.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232,71,42,0.15);
  border: 1px solid rgba(232,71,42,0.4);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.today-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ─── INFO STRIP ─────────────────────────────────────────────────────────────── */

.info-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.info-item h4 { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.info-item p { color: var(--text2); font-size: 0.9rem; line-height: 1.6; }

/* ─── SIJAINTI PAGE ───────────────────────────────────────────────────────────── */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.map-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
}

.map-box iframe { width: 100%; height: 100%; border: none; filter: grayscale(20%) invert(88%) hue-rotate(180deg); }

.address-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.address-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 1rem; }

.address-row { display: flex; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.address-row:last-child { border-bottom: none; }
.address-label { color: var(--text2); min-width: 90px; flex-shrink: 0; }

.route-panel { display: flex; flex-direction: column; gap: 1.25rem; }
.route-panel h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.1rem; }
.route-panel > p { color: var(--text2); font-size: 0.88rem; line-height: 1.6; margin: 0; }

/* ─── HSL ROUTING ─────────────────────────────────────────────────────────────── */

.hsl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.hsl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.hsl-card-meta { display: flex; align-items: center; gap: 0.6rem; }
.hsl-duration { font-size: 1.1rem; font-weight: 600; }

.hsl-fastest {
  background: rgba(232,71,42,0.12);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.hsl-times { font-size: 0.75rem; color: var(--text2); }
.hsl-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; }

.hsl-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.hsl-pill-sep { color: var(--text2); font-size: 0.75rem; padding: 0 2px; }

.hsl-steps { padding: 0.25rem 1rem 0.5rem; }

.hsl-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.hsl-step:last-child { border-bottom: none; }

.hsl-step-mode {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hsl-step-detail { flex: 1; font-size: 0.83rem; color: var(--text2); line-height: 1.4; }
.hsl-step-dur { font-size: 0.78rem; color: var(--text2); white-space: nowrap; }

/* Mode colors via data-mode attribute */
.hsl-pill[data-mode="WALK"],
.hsl-step-mode[data-mode="WALK"]   { background: rgba(136,135,128,0.15); color: #888780; }

.hsl-pill[data-mode="BUS"],
.hsl-step-mode[data-mode="BUS"]    { background: rgba(0,122,201,0.15);   color: #007ac9; }

.hsl-pill[data-mode="TRAM"],
.hsl-step-mode[data-mode="TRAM"]   { background: rgba(0,153,80,0.15);    color: #009950; }

.hsl-pill[data-mode="SUBWAY"],
.hsl-step-mode[data-mode="SUBWAY"] { background: rgba(255,90,30,0.15);   color: #ff5a1e; }

.hsl-pill[data-mode="RAIL"],
.hsl-step-mode[data-mode="RAIL"]   { background: rgba(140,71,153,0.15);  color: #8c4799; }

.hsl-pill[data-mode="FERRY"],
.hsl-step-mode[data-mode="FERRY"]  { background: rgba(0,122,201,0.15);   color: #007ac9; }

/* Spinner */
.hsl-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  color: var(--text2);
}

.hsl-spinner svg { animation: hsl-spin 0.9s linear infinite; }
.hsl-spinner span { font-size: 0.9rem; }

@keyframes hsl-spin { to { transform: rotate(360deg); } }

/* No routes */
.hsl-no-routes {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hsl-no-routes-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; }
.hsl-no-routes-title { font-weight: 500; margin-bottom: 0.4rem; }
.hsl-no-routes-sub   { font-size: 0.85rem; color: var(--text2); }

/* Error */
.hsl-error {
  background: rgba(232,71,42,0.07);
  border: 1px solid rgba(232,71,42,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--text2);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* ─── AUTH (kirjaudu.html) ───────────────────────────────────────────────────── */

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
}

.auth-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(232,71,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  position: relative;
}

.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.auth-logo span { color: var(--accent); }

.auth-tabs {
  display: flex;
  gap: 0;
  margin: 1.5rem 0;
  background: var(--bg3);
  border-radius: 8px;
  padding: 3px;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem;
  text-align: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text2);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.divider {
  text-align: center;
  color: var(--text2);
  font-size: 0.8rem;
  position: relative;
  margin: 1.25rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.divider span {
  position: relative;
  background: var(--bg2);
  padding: 0 0.75rem;
}

.student-info {
  background: rgba(240,165,0,0.07);
  border: 1px solid rgba(240,165,0,0.2);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 1rem;
}

.student-info strong { color: var(--accent2); }

/* Feedback message shown by auth.js */
.auth-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-message[data-type="error"] {
  background: rgba(232,71,42,0.08);
  border: 1px solid rgba(232,71,42,0.25);
  color: var(--accent);
}

.auth-message[data-type="success"] {
  background: rgba(80,180,80,0.08);
  border: 1px solid rgba(80,180,80,0.25);
  color: #7ec87e;
}

/* ─── ADMIN ───────────────────────────────────────────────────────────────────── */

.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.sidebar {
  padding: 6rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.admin-content {
  display: block !important;
  gap: 0 !important;
}

.admin-section {
  min-height: auto !important;
  height: auto !important;
}

#dashboard {
  min-height: auto !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 2rem !important;
}

#dashboard .stats-row {
  margin-bottom: 0 !important;
}

#orders {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.sidebar a:hover, .sidebar a.active { background: rgba(232,71,42,0.1); color: var(--text); }
.sidebar a.active { color: var(--accent); }

.admin-content { padding: 6rem 2.5rem 2.5rem; }
.admin-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 1.5rem; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .label { font-size: 0.75rem; color: var(--text2); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.stat-card .value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; }
.stat-card .value.accent { color: var(--accent); }
.stat-card .value.gold   { color: var(--accent2); }

.status { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.status.pending { background: rgba(240,165,0,0.15);  color: var(--accent2); }
.status.done    { background: rgba(80,180,80,0.12);   color: #7ec87e; }
.status.new     { background: rgba(232,71,42,0.12);   color: var(--accent); }

/* ─── TABLES ─────────────────────────────────────────────────────────────────── */

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 0.75rem 1rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); border-bottom: 1px solid var(--border); }
td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
tr:last-child td { border-bottom: none; }

/* ─── FORMS ──────────────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 1.25rem; }

label { display: block; font-size: 0.8rem; color: var(--text2); margin-bottom: 0.4rem; letter-spacing: 0.05em; }

input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.users-section {
  margin-top: 4rem;
  max-width: 100%;
}

.admin-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.users-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.users-wrap table {
  width: 100%;
  table-layout: fixed;
}

.users-wrap th,
.users-wrap td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.users-wrap th:nth-child(1),
.users-wrap td:nth-child(1) {
  width: 70px;
}

.users-wrap th:nth-child(2),
.users-wrap td:nth-child(2) {
  width: 18%;
}

.users-wrap th:nth-child(3),
.users-wrap td:nth-child(3) {
  width: 30%;
}

.users-wrap th:nth-child(4),
.users-wrap td:nth-child(4) {
  width: 18%;
}

.users-wrap th:nth-child(5),
.users-wrap td:nth-child(5) {
  width: 170px;
}

.users-wrap .role-select {
  width: 140px;
  max-width: 100%;
}

input:focus, select:focus, textarea:focus { border-color: rgba(232,71,42,0.5); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */

footer { padding: 3rem 2rem; text-align: center; color: var(--text2); font-size: 0.85rem; border-top: 1px solid var(--border); }
footer a { color: var(--accent); text-decoration: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.2rem; }
  section { padding: 4rem 1.25rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-content { padding: 5rem 1.25rem 2rem; }
}
/* Admin-paneelin sectionit eivät saa käyttää sivuston yleistä section-paddingia */
.admin-content > .admin-section {
  padding: 0 !important;
  margin: 0 0 3rem 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.admin-content > .admin-section:last-child {
  margin-bottom: 0 !important;
}

.admin-content .admin-section-title {
  margin: 0 0 1.5rem 0 !important;
}

.admin-content .table-wrap {
  margin-bottom: 0 !important;
}

#dashboard .stats-row {
  margin-bottom: 0 !important;
}
/* ─── Mobile navbar fix ───────────────────────────────────────────── */

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
  }

  nav .logo {
    font-size: 1.65rem;
    line-height: 1;
    white-space: nowrap;
  }

  nav ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem;
    margin-top: 0.25rem;
  }

  nav ul li {
    display: flex;
  }

  nav ul li a,
  nav ul li button {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  nav .btn,
  nav .btn-primary,
  nav .btn-outline {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    line-height: 0.9;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.9rem 1rem;
  }

  nav .logo {
    font-size: 1.45rem;
  }

  nav ul {
    gap: 0.45rem;
  }

  nav ul li a {
    font-size: 0.82rem;
  }

  nav .btn,
  nav .btn-primary,
  nav .btn-outline {
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
  }

  .page-header {
    padding-top: 3rem;
  }

  .section-title {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .filter-row {
    align-items: flex-start;
  }

  .filter-row .tab {
    padding: 0.55rem 0.9rem;
  }

  .order-bar {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .cart-btn {
    width: 100%;
    justify-content: center;
  }
}
