/* ========================================
   MakiLab — Design System
   Sushi-themed, pastel, glassmorphism,
   minimalist with rounded forms
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Palette */
  --salmon: #FFBFA3;
  --salmon-light: #FFE0D3;
  --salmon-dark: #E8956E;
  --wasabi: #C8E6C9;
  --wasabi-dark: #81C784;
  --nori: #37474F;
  --nori-light: #546E7A;
  --rice: #FFF8E7;
  --rice-dark: #F5ECDA;
  --soy: #5D4037;
  --soy-light: #8D6E63;
  --ginger: #FFCCBC;
  --tuna: #EF9A9A;
  --avocado: #A5D6A7;
  --bg: #FBF7F2;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.45);
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --text-muted: #9E9E9E;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sidebar */
  --sidebar-w: 260px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
select,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--salmon-light);
  border-radius: var(--radius-full);
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 240, 230, 0.80) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 191, 163, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 28px 24px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--salmon-dark) 0%, var(--soy-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  list-style: none;
  flex: 1;
  padding: 8px 12px;
}

.nav-links li {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text-light);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 191, 163, 0.2);
  color: var(--text);
  transform: translateX(4px);
}

.nav-link.active {
  background: rgba(255, 191, 163, 0.3);
  color: var(--salmon-dark);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--salmon-dark);
  border-radius: var(--radius-full);
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-badge {
  background: var(--salmon);
  color: var(--soy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.sidebar-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 191, 163, 0.2);
}

.family-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.family-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 191, 163, 0.3);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.family-select:focus {
  border-color: var(--salmon);
}

/* --- Mobile Header --- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 191, 163, 0.2);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 99;
}

.hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.logo-mobile {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-cook-btn {
  font-size: 24px;
  position: relative;
}

.mobile-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  font-size: 10px;
  padding: 1px 6px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 99;
}

/* --- Main Content --- */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 40px 48px;
  min-height: 100vh;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Page Header --- */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  color: var(--nori);
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* --- Sushi Grid --- */
.sushi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.sushi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  animation: slideUp 0.5s ease-out both;
  position: relative;
}

.sushi-card:nth-child(1) {
  animation-delay: 0.05s;
}

.sushi-card:nth-child(2) {
  animation-delay: 0.1s;
}

.sushi-card:nth-child(3) {
  animation-delay: 0.15s;
}

.sushi-card:nth-child(4) {
  animation-delay: 0.2s;
}

.sushi-card:nth-child(5) {
  animation-delay: 0.25s;
}

.sushi-card:nth-child(6) {
  animation-delay: 0.3s;
}

.sushi-card:nth-child(7) {
  animation-delay: 0.35s;
}

.sushi-card:nth-child(8) {
  animation-delay: 0.4s;
}

.sushi-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) scale(1.01);
}

.sushi-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

.sushi-card:hover .sushi-card-img {
  transform: scale(1.05);
}

.sushi-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.sushi-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--salmon-dark);
}

.sushi-card-select {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  z-index: 2;
}

.sushi-card-select:hover {
  background: rgba(255, 255, 255, 0.95);
}

.sushi-card-select.selected {
  background: var(--wasabi);
  border-color: var(--wasabi-dark);
}

.sushi-card-select svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  transition: all var(--transition);
}

.sushi-card-select.selected svg {
  stroke: #388E3C;
}

.sushi-card-body {
  padding: 16px 20px 20px;
}

.sushi-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--nori);
  margin-bottom: 4px;
}

.sushi-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sushi-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  cursor: pointer;
  font-size: 18px;
  color: var(--rice-dark);
  transition: all 0.2s;
}

.star.filled {
  color: #FFB300;
}

.star:hover {
  transform: scale(1.2);
}

.sushi-card-pieces {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--rice);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* --- Filters --- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 191, 163, 0.25);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: rgba(255, 191, 163, 0.2);
  border-color: var(--salmon);
  color: var(--salmon-dark);
}

.filter-btn.active {
  background: var(--salmon-light);
  border-color: var(--salmon);
  color: var(--salmon-dark);
  font-weight: 600;
}

/* --- Sushi Detail Page --- */
.detail-page {
  max-width: 900px;
  animation: fadeIn 0.4s ease-out;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
}

.detail-back:hover {
  color: var(--salmon-dark);
}

.detail-hero {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.detail-title {
  font-size: 36px;
  color: var(--nori);
}

.detail-category-badge {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--salmon-light);
  color: var(--salmon-dark);
  font-size: 14px;
  font-weight: 600;
}

.detail-rating-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-stars {
  display: flex;
  gap: 4px;
}

.detail-stars .star {
  font-size: 28px;
}

.detail-cook-btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--wasabi) 0%, var(--wasabi-dark) 100%);
  color: #2E7D32;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.detail-cook-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 199, 132, 0.4);
}

.detail-cook-btn.selected {
  background: linear-gradient(135deg, var(--salmon-light) 0%, var(--salmon) 100%);
  color: var(--soy);
}

.detail-section {
  margin-bottom: 32px;
}

.detail-section-title {
  font-size: 20px;
  color: var(--nori);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section-title .emoji {
  font-size: 22px;
}

/* Ingredients table in detail */
.ingredients-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ingredients-table th {
  background: rgba(255, 191, 163, 0.15);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ingredients-table td {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
}

.ingredients-table tr:hover td {
  background: rgba(255, 191, 163, 0.06);
}

.ingredient-link {
  color: var(--salmon-dark);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 149, 110, 0.4);
}

.ingredient-link:hover {
  color: var(--soy);
}

/* Steps */
.steps-list {
  list-style: none;
  counter-reset: step;
}

.step-item {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  animation: slideUp 0.5s ease-out both;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}

.step-item:nth-child(2) {
  animation-delay: 0.15s;
}

.step-item:nth-child(3) {
  animation-delay: 0.2s;
}

.step-item:nth-child(4) {
  animation-delay: 0.25s;
}

.step-item:nth-child(5) {
  animation-delay: 0.3s;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--salmon-light) 0%, var(--salmon) 100%);
  color: var(--soy);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  padding-top: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* --- Ingredients Page --- */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ingredient-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  animation: slideUp 0.5s ease-out both;
}

.ingredient-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.ingredient-card-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.ingredient-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--nori);
  margin-bottom: 4px;
}

.ingredient-card-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* Ingredient detail */
.ingredient-detail {
  max-width: 800px;
}

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.price-table th {
  background: rgba(200, 230, 201, 0.3);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.price-table td {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
}

.price-best {
  background: rgba(200, 230, 201, 0.2) !important;
  font-weight: 600;
  color: #2E7D32;
}

.add-price-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 191, 163, 0.2);
  border: 1px dashed var(--salmon);
  color: var(--salmon-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.add-price-btn:hover {
  background: rgba(255, 191, 163, 0.35);
}

/* --- Proportions Page --- */
.proportions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.proportion-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease-out both;
}

.proportion-card-header {
  background: linear-gradient(135deg, rgba(255, 191, 163, 0.2) 0%, rgba(200, 230, 201, 0.2) 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.proportion-card-icon {
  font-size: 28px;
}

.proportion-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--nori);
}

.proportion-card-body {
  padding: 20px 24px;
}

.proportion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
}

.proportion-item:last-child {
  border-bottom: none;
}

.proportion-label {
  color: var(--text-light);
}

.proportion-value {
  font-weight: 600;
  color: var(--nori);
  background: var(--rice);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Recipe card in proportions */
.recipe-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  animation: slideUp 0.5s ease-out both;
}

.recipe-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--nori);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.recipe-toggle {
  background: none;
  border: none;
  color: var(--salmon-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  transition: color var(--transition);
}

.recipe-toggle:hover {
  color: var(--soy);
}

.recipe-content {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.recipe-content.open {
  display: block;
  animation: slideUp 0.3s ease-out;
}

/* --- Cook Today Page --- */
.cook-today-empty {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease-out;
}

.cook-today-empty-icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.cook-today-empty-text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cook-today-empty-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.cook-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.cook-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  animation: slideUp 0.4s ease-out both;
}

.cook-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cook-item-info {
  flex: 1;
}

.cook-item-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--nori);
}

.cook-item-category {
  font-size: 12px;
  color: var(--text-muted);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--salmon-light);
  color: var(--salmon-dark);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--salmon);
  transform: scale(1.1);
}

.qty-value {
  font-weight: 600;
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

.cook-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 154, 154, 0.2);
  color: #E57373;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cook-item-remove:hover {
  background: rgba(239, 154, 154, 0.4);
}

/* Shopping list */
.shopping-section {
  margin-top: 40px;
}

.shopping-title {
  font-size: 22px;
  color: var(--nori);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shopping-list {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shopping-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background var(--transition);
}

.shopping-item:last-child {
  border-bottom: none;
}

.shopping-item:hover {
  background: rgba(255, 191, 163, 0.06);
}

.shopping-item-icon {
  font-size: 20px;
}

.shopping-item-name {
  flex: 1;
  font-weight: 500;
}

.shopping-item-qty {
  font-weight: 600;
  color: var(--salmon-dark);
  background: var(--salmon-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
}

/* --- Buttons --- */
.btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--salmon) 0%, var(--salmon-dark) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 191, 163, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 191, 163, 0.3);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 191, 163, 0.15);
}

.btn-danger {
  background: rgba(239, 154, 154, 0.2);
  color: #E57373;
}

.btn-danger:hover {
  background: rgba(239, 154, 154, 0.35);
}

.clear-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: rgba(239, 154, 154, 0.15);
  color: #E57373;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-size: 14px;
}

.clear-btn:hover {
  background: rgba(239, 154, 154, 0.3);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease-out;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: scaleIn 0.3s ease-out;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--nori);
  margin-bottom: 20px;
}

.modal-field {
  margin-bottom: 14px;
}

.modal-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  transition: border-color var(--transition);
  background: var(--rice);
}

.modal-input:focus {
  border-color: var(--salmon);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .main-content {
    padding: 40px 28px;
  }

  .sushi-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .mobile-header {
    display: flex;
  }

  .bottom-nav {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 72px 16px 100px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .sushi-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .sushi-card-img {
    height: 130px;
  }

  .sushi-card-body {
    padding: 12px 14px 14px;
  }

  .sushi-card-name {
    font-size: 15px;
  }

  .sushi-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .detail-hero {
    height: 200px;
    border-radius: var(--radius);
    margin-bottom: 20px;
  }

  .detail-title {
    font-size: 24px;
  }

  .detail-section-title {
    font-size: 17px;
  }

  .proportions-grid {
    grid-template-columns: 1fr;
  }

  .cook-list {
    grid-template-columns: 1fr;
  }

  .ingredients-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .ingredient-card {
    padding: 14px;
  }

  .ingredient-card-icon {
    font-size: 28px;
  }

  .ingredient-card-name {
    font-size: 14px;
  }

  .filters {
    gap: 6px;
    padding-bottom: 12px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Larger touch targets */
  .btn {
    padding: 12px 24px;
    min-height: 44px;
  }

  .detail-cook-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .add-price-btn {
    padding: 12px 20px;
    min-height: 44px;
  }

  .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .cook-item-remove {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .detail-back {
    margin-bottom: 12px;
    min-height: 44px;
    font-size: 13px;
  }

  /* Table responsive */
  .price-table,
  .ingredients-table {
    font-size: 13px;
  }

  .price-table th,
  .price-table td,
  .ingredients-table th,
  .ingredients-table td {
    padding: 10px 10px;
  }

  /* Modal mobile */
  .modal {
    padding: 20px;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-input {
    padding: 12px 14px;
    font-size: 16px;
    /* prevents iOS zoom */
  }

  /* Proportions */
  .proportion-card-body {
    padding: 16px;
  }

  /* Steps */
  .step-item {
    gap: 12px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .step-text {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .main-content {
    padding: 68px 12px 100px;
  }

  .sushi-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 20px;
  }
}

/* --- Bottom Navigation Bar --- */
.bottom-nav {
  display: none;
  /* shown on mobile via media query */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 191, 163, 0.25);
  justify-content: space-around;
  align-items: stretch;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  flex: 1;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  transition: all var(--transition);
}

.bottom-nav-item.active {
  color: var(--salmon-dark);
}

.bottom-nav-item.active svg {
  stroke: var(--salmon-dark);
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(135deg, var(--salmon) 0%, var(--salmon-dark) 100%);
}

.bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: linear-gradient(135deg, #e57373, #ef5350);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* --- Mobile Family Selector (top bar) --- */
.mobile-family-select-wrap {
  display: none;
}

@media (max-width: 768px) {
  .mobile-family-select-wrap {
    display: block;
  }
}

.mobile-family-select {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 191, 163, 0.3);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 36px;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.gap-16 {
  gap: 16px;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}