html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--gradient-body);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  transition: all 0.25s ease;
}

.top-announcement {
  background: var(--gradient-bar-dark);
  color: rgba(255, 248, 241, 0.92);
  font-size: 0.88rem;
  padding: 0.65rem 0;
}

.top-announcement .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.announcement-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--secondary);
  display: inline-block;
  box-shadow: 0 0 0 6px rgba(var(--secondary-rgb), 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  padding: 0.85rem 0;
  background: var(--gradient-navbar);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 8px 28px rgba(var(--shadow-rgb), 0.08);
}

.top-bar-main {
  display: grid;
  grid-template-columns: auto minmax(180px, 280px) auto;
  align-items: center;
  gap: 1rem 1.25rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--gradient-brand);
  box-shadow: 0 14px 24px rgba(var(--primary-rgb), 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-name {
  color: var(--text-navbar);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
}

.brand-tagline {
  color: var(--text-navbar-soft);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.categories-bar {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.categories-bar .container {
  padding-block: 0.65rem;
}

.categories-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.categories-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--nav-link-bg);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.categories-nav a:hover,
.categories-nav a.active {
  color: #fff;
  background: var(--gradient-brand);
  border-color: rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.16);
}

.user-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.user-section .user-info {
  color: var(--text-navbar-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.user-section .btn-auth {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.btn-login,
.btn-logout {
  background: var(--auth-btn-bg);
  color: var(--text-navbar);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
}

.btn-login:hover,
.btn-logout:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-register,
.btn-dashboard {
  background: var(--gradient-brand);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 22px rgba(var(--primary-rgb), 0.18);
}

.btn-register:hover,
.btn-dashboard:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 28px rgba(var(--primary-rgb), 0.22);
}

.main-content {
  padding: 2rem 0 3rem;
  min-height: calc(100vh - 220px);
}

.menu-hero {
  position: relative;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 30px;
  background: var(--gradient-hero);
  color: #fff9f3;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.menu-hero::before,
.menu-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  animation: floatPulse 8s ease-in-out infinite;
}

.menu-hero::before {
  width: 260px;
  height: 260px;
  top: -120px;
  left: -60px;
}

.menu-hero::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  right: 10%;
  animation-delay: 1.5s;
}

.hero-badge,
.detail-badge,
.hero-meta,
.detail-highlights span,
.product-chip,
.product-rating {
  letter-spacing: 0.01em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.menu-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 0.5rem;
  color: rgba(255, 249, 243, 0.76);
  font-size: 0.94rem;
  font-weight: 700;
}

.section-kicker {
  color: var(--primary);
}

.menu-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
}

.menu-hero-text,
.section-copy,
.product-card-description,
.product-description-text,
.footer-content p {
  color: inherit;
}

.menu-hero-text {
  max-width: 700px;
  color: rgba(255, 249, 243, 0.88);
  font-size: 1rem;
  line-height: 1.9;
}

.menu-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-hero-primary,
.btn-contact {
  background: var(--hero-cta-bg);
  color: var(--primary-deep);
  border: 0;
  box-shadow: 0 16px 26px rgba(var(--shadow-rgb), 0.18);
}

.btn-hero-primary {
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.btn-hero-primary:hover,
.btn-contact:hover {
  color: var(--primary);
  background: #fff;
  transform: translateY(-2px);
}

.hero-meta {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hero-food-slider {
  position: relative;
}

.hero-food-slider-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 48px rgba(61, 25, 18, 0.28);
  background: rgba(255, 248, 241, 0.12);
}

.hero-food-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.85s ease, transform 1.1s ease;
  pointer-events: none;
}

.hero-food-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-food-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-food-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(36, 21, 18, 0.02) 0%, rgba(36, 21, 18, 0.28) 100%);
  pointer-events: none;
}

.hero-food-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-food-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.hero-food-dot.is-active {
  width: 28px;
  background: var(--hero-cta-bg);
  transform: translateY(-1px);
}

.hero-food-dot:hover {
  background: rgba(255, 255, 255, 0.72);
}

.detail-panel,
.admin-card,
.empty-state {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.detail-highlights span {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.menu-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0 0 1.4rem;
}

.menu-section-heading h2 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-copy {
  max-width: 480px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.products-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--surface-strong);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.08);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.18);
}

.product-card .product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-image);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-card .product-image .placeholder {
  color: rgba(var(--primary-rgb), 0.5);
  font-size: 3.3rem;
}

.product-chip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(var(--shadow-rgb), 0.12);
}

.product-card .product-info {
  padding: 1.2rem;
}

.product-card-topline,
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.product-card-topline {
  margin-bottom: 0.8rem;
}

.product-rating {
  color: var(--secondary);
  font-size: 0.83rem;
  font-weight: 800;
}

.product-card .product-name {
  font-weight: 800;
  font-size: 1.16rem;
  margin: 0 0 0.65rem;
  color: var(--text-main);
}

.product-card-description {
  margin: 0 0 1rem;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 0.92rem;
  min-height: 3.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
}

.product-card .product-category {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 700;
}

.product-cta {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-page-title {
  color: var(--text-main);
  font-weight: 800;
  margin: 0;
}

.btn-admin-outline {
  color: var(--primary-deep);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.btn-admin-outline:hover,
.btn-admin-outline:focus {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
}

.admin-panel,
.restaurant-theme .card.bg-dark {
  background: var(--surface-strong) !important;
  background-color: var(--surface-strong) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  color: var(--text-main);
}

.admin-panel .card-body,
.restaurant-theme .card.bg-dark .card-body {
  padding: 1.25rem;
  background: transparent !important;
  background-color: transparent !important;
}

.restaurant-theme .card.bg-dark .card-header {
  background: transparent;
  color: var(--text-main);
  border-color: var(--line) !important;
  font-weight: 800;
}

.admin-table,
.restaurant-theme .table.table-dark {
  margin-bottom: 0;
  color: var(--text-main);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  --bs-table-hover-bg: rgba(240, 162, 58, 0.08);
  --bs-table-hover-color: var(--text-main);
  --bs-table-striped-bg: var(--surface-muted);
  --bs-table-border-color: rgba(106, 59, 45, 0.08);
  background-color: transparent !important;
  border-collapse: separate;
  border-spacing: 0;
}

.restaurant-theme .table.table-dark > :not(caption) > * > * {
  color: var(--text-main) !important;
  border-color: rgba(106, 59, 45, 0.08) !important;
  box-shadow: none !important;
}

.admin-table thead th,
.restaurant-theme .table.table-dark thead th {
  background: var(--gradient-table-header);
  color: var(--text-on-brand);
  font-weight: 800;
  border: 0;
  padding: 1rem 0.85rem;
  white-space: nowrap;
}

.admin-table thead th:first-child,
.restaurant-theme .table.table-dark thead th:first-child {
  border-top-right-radius: 16px;
}

.admin-table thead th:last-child,
.restaurant-theme .table.table-dark thead th:last-child {
  border-top-left-radius: 16px;
}

.admin-table tbody td,
.restaurant-theme .table.table-dark tbody td {
  border-color: rgba(106, 59, 45, 0.08);
  padding: 0.95rem 0.85rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.72) !important;
  background-color: rgba(255, 255, 255, 0.72) !important;
  color: var(--text-main);
  --bs-table-bg: rgba(255, 255, 255, 0.72);
  --bs-table-color: var(--text-main);
}

.admin-table tbody tr:nth-child(even) td,
.restaurant-theme .table.table-dark tbody tr:nth-child(even) td {
  background: var(--surface-muted) !important;
  background-color: var(--surface-muted) !important;
  --bs-table-bg: var(--surface-muted);
}

.admin-table tbody tr:hover td,
.restaurant-theme .table.table-dark tbody tr:hover td {
  background: rgba(240, 162, 58, 0.1) !important;
  background-color: rgba(240, 162, 58, 0.1) !important;
  --bs-table-bg: rgba(240, 162, 58, 0.1);
  color: var(--text-main);
}

.admin-table tbody tr.table-warning td,
.restaurant-theme .table.table-dark tbody tr.table-warning td {
  background: rgba(240, 162, 58, 0.16);
}

.admin-table .text-muted {
  color: var(--text-soft) !important;
}

.admin-thumb-placeholder {
  width: 50px;
  height: 50px;
  background: var(--surface-image);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal,
.restaurant-theme .modal-content.bg-dark {
  background: var(--surface-strong) !important;
  background-color: var(--surface-strong) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  color: var(--text-main);
}

.admin-modal .modal-header,
.admin-modal .modal-footer,
.restaurant-theme .modal-content.bg-dark .modal-header,
.restaurant-theme .modal-content.bg-dark .modal-footer {
  border-color: rgba(106, 59, 45, 0.1) !important;
}

.admin-modal .modal-title,
.restaurant-theme .modal-content.bg-dark .modal-title {
  color: var(--text-main);
  font-weight: 800;
}

.admin-modal .form-label {
  color: var(--text-main);
  font-weight: 700;
}

.admin-modal hr {
  border-color: rgba(106, 59, 45, 0.12);
}

.admin-image-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(var(--shadow-rgb), 0.08);
}

.admin-image-card .card-body {
  background: var(--surface-strong);
}

.admin-table .btn-outline-info,
.restaurant-theme .table.table-dark .btn-outline-info {
  color: var(--accent);
  border-color: rgba(47, 107, 95, 0.28);
  background: rgba(47, 107, 95, 0.06);
  font-weight: 700;
}

.admin-table .btn-outline-info:hover,
.restaurant-theme .table.table-dark .btn-outline-info:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.admin-table .btn-outline-primary,
.restaurant-theme .table.table-dark .btn-outline-primary {
  color: var(--primary);
  border-color: rgba(182, 70, 47, 0.28);
  background: rgba(182, 70, 47, 0.06);
  font-weight: 700;
}

.admin-table .btn-outline-primary:hover,
.restaurant-theme .table.table-dark .btn-outline-primary:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.admin-table .btn-outline-danger,
.restaurant-theme .table.table-dark .btn-outline-danger {
  font-weight: 700;
}

.admin-table .badge.bg-success,
.restaurant-theme .table.table-dark .badge.bg-success {
  background: linear-gradient(135deg, #2f6b5f 0%, #3d8576 100%) !important;
}

.admin-table .badge.bg-secondary,
.restaurant-theme .table.table-dark .badge.bg-secondary {
  background: rgba(123, 100, 91, 0.18) !important;
  color: var(--text-soft);
}

.admin-card {
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}

.admin-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.admin-card-body {
  padding: 1.5rem;
}

.admin-card h3 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.admin-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-soft);
  border-radius: 28px;
}

.empty-state h3 {
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  background: var(--gradient-bar-dark);
  color: rgba(255, 248, 241, 0.88);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-content strong {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.footer-content p,
.footer-note {
  color: rgba(255, 248, 241, 0.78);
}

.form-control,
.form-select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-main);
  border-radius: 14px;
  caret-color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
  background: var(--surface-strong);
  border-color: rgba(182, 70, 47, 0.38);
  color: var(--text-main);
  box-shadow: 0 0 0 0.2rem rgba(182, 70, 47, 0.12);
}

.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.9;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  color: var(--text-soft);
  background: var(--surface-muted);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-main);
  box-shadow: 0 0 0 1000px var(--surface-strong) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.btn-primary {
  background: var(--gradient-brand);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--gradient-brand-hover);
  border-color: transparent;
}

.text-danger {
  color: #cf3d2e !important;
}

.validation-summary-errors {
  background: rgba(207, 61, 46, 0.08);
  border: 1px solid rgba(207, 61, 46, 0.28);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}

a.product-card {
  color: inherit;
  display: block;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.98rem;
  display: inline-block;
  font-weight: 800;
}

.back-link:hover {
  color: var(--primary-deep);
  transform: translateX(-3px);
}

.product-detail-page {
  color: var(--text-main);
}

.product-gallery .main-image {
  background: var(--surface-image);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-list .thumbnail-btn {
  width: 74px;
  height: 74px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 12px 20px rgba(var(--shadow-rgb), 0.08);
}

.thumbnail-list .thumbnail-btn:hover,
.thumbnail-list .thumbnail-btn.active {
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: translateY(-3px);
}

.thumbnail-list .thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.no-image-placeholder {
  aspect-ratio: 1;
  background: var(--surface-image);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(var(--primary-rgb), 0.55);
  font-size: 4rem;
  box-shadow: var(--shadow-soft);
}

.no-image-placeholder p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(182, 70, 47, 0.08);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.product-detail-name {
  color: var(--text-main);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.product-detail-price {
  color: var(--primary);
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.product-detail-category {
  color: var(--text-soft);
  line-height: 1.8;
}

.product-stock-line {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.product-attribute-group {
  margin-bottom: 1.1rem;
}

.product-attribute-label {
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--text-main);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.product-attribute-label-alt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.product-attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.attr-dropdown {
  max-width: 280px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-main);
  font-weight: 600;
  min-height: 44px;
}

.attr-option {
  position: relative;
  min-width: 52px;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.attr-option-body {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.attr-option-text {
  font-size: 0.85rem;
  font-weight: 700;
}

.attr-option.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.25);
  color: var(--primary);
}

.attr-option.is-unavailable {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.attr-option.is-out-of-stock {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--text-soft);
}

.attr-option.is-out-of-stock .attr-option-body {
  opacity: 0.55;
}

.attr-option-x {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: #c62828;
  pointer-events: none;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
}

.attr-option.is-out-of-stock .attr-option-x {
  display: flex;
}

.attr-option:disabled {
  pointer-events: none;
}

.attr-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
}

.attr-option-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.detail-highlights {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.detail-highlights span {
  background: rgba(47, 107, 95, 0.08);
  color: var(--accent);
}

.low-stock-alert {
  background: rgba(240, 162, 58, 0.14);
  border-color: rgba(240, 162, 58, 0.34);
  color: #b56d08;
  border-radius: 18px;
}

.product-description h5 {
  color: var(--text-main);
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.product-description-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.95;
}

.btn-share,
.btn-contact,
.btn-whatsapp {
  padding: 0.82rem 1.15rem;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-share {
  background: rgba(182, 70, 47, 0.08);
  color: var(--primary);
  border: 1px solid rgba(182, 70, 47, 0.16);
}

.btn-share:hover {
  background: rgba(182, 70, 47, 0.14);
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.btn-contact {
  color: var(--primary-deep);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #1f9b4a;
  border: 1px solid rgba(37, 211, 102, 0.24);
}

.btn-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: white;
  transform: translateY(-2px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(14px);
  }
}

@media (max-width: 991.98px) {
  .menu-hero-grid,
  .menu-section-heading,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .menu-section-heading,
  .footer-content {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 991.98px) {
  .top-bar-main {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "search search";
  }

  .logo-section { grid-area: logo; }
  .header-search {
    grid-area: search;
    max-width: none;
    justify-self: stretch;
  }
  .user-section { grid-area: actions; }

  .brand-tagline {
    display: none;
  }

  .user-info {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .main-content {
    padding-top: 1.3rem;
  }

  .menu-hero {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .hero-food-slider-frame {
    min-height: 260px;
    aspect-ratio: 1;
  }

  .user-section {
    justify-content: flex-end;
    gap: 0.45rem;
  }

  .scheme-toggle {
    margin-inline-start: 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    padding: 1.25rem;
  }
}

/* ── بطاقات الدخول ── */
.auth-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.auth-card h2 {
  color: var(--text-main);
  font-weight: 800;
}

/* ── تعريضات تلقائية لكلاسات bootstrap القديمة ── */
.restaurant-theme .form-control.bg-dark,
.restaurant-theme .form-select.bg-dark,
.restaurant-theme .form-control.text-light,
.restaurant-theme .form-select.text-light {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line-strong);
  color: var(--text-main);
}

.restaurant-theme .form-control.bg-dark:focus,
.restaurant-theme .form-select.bg-dark:focus,
.restaurant-theme .form-control.text-light:focus,
.restaurant-theme .form-select.text-light:focus {
  background: #fff;
  border-color: rgba(var(--primary-rgb), 0.38);
  color: var(--text-main);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.12);
}

.restaurant-theme .modal-content.bg-dark .form-label,
.restaurant-theme .card.bg-dark .form-label {
  color: var(--text-main);
  font-weight: 700;
}

.restaurant-theme .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(0.35);
  opacity: 0.75;
}

.restaurant-theme .card.bg-secondary.border-dark,
.admin-image-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(106, 59, 45, 0.08);
}

.restaurant-theme .card.bg-secondary.border-dark .card-body {
  background: var(--surface-strong);
}

.restaurant-theme .border-secondary,
.restaurant-theme hr.border-secondary {
  border-color: var(--line) !important;
}

.restaurant-theme .table.table-dark .text-muted {
  color: var(--text-soft) !important;
}

/* ── Store theme (blue) navbar / auth polish ── */
.store-theme .top-bar {
  backdrop-filter: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.store-theme .btn-login,
.store-theme .btn-logout {
  border-color: rgba(255, 255, 255, 0.3);
}

.store-theme .btn-login:hover,
.store-theme .btn-logout:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.store-theme .btn-register:hover,
.store-theme .btn-dashboard:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 16px 28px rgba(var(--secondary-rgb), 0.28);
}

.store-theme .footer {
  background: #16161f;
  color: var(--text-soft);
}

.store-theme .menu-hero {
  color: #f2f0ff;
}

.store-theme .menu-hero-text,
.store-theme .hero-kicker {
  color: rgba(242, 240, 255, 0.82);
}

/* ── بحث مضغوط في الهيدر ── */
.header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

.header-search-icon {
  position: absolute;
  inset-inline-start: 0.85rem;
  display: inline-flex;
  color: var(--text-navbar-soft);
  pointer-events: none;
  opacity: 0.85;
}

.header-search input[type="search"] {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding-inline: 2.4rem 2rem;
  background: rgba(148, 148, 148, 0.16);
  color: var(--text-navbar);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input[type="search"]::placeholder {
  color: var(--text-navbar-soft);
  opacity: 0.85;
}

.header-search input[type="search"]:focus {
  background: rgba(148, 148, 148, 0.24);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.22);
}

.header-search input[type="search"]::-webkit-search-decoration,
.header-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.header-search-clear {
  position: absolute;
  inset-inline-end: 0.45rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--text-navbar);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.header-search-clear[hidden] {
  display: none !important;
}

html[data-scheme="dark"] .header-search input[type="search"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

html[data-scheme="dark"] .form-control,
html[data-scheme="dark"] .form-select,
html[data-scheme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
html[data-scheme="dark"] textarea {
  color: var(--text-main);
  background: var(--surface);
}

html[data-scheme="dark"] .form-control:focus,
html[data-scheme="dark"] .form-select:focus,
html[data-scheme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):focus,
html[data-scheme="dark"] textarea:focus {
  color: var(--text-main);
  background: var(--surface-strong);
}

html[data-scheme="dark"] .form-control::placeholder,
html[data-scheme="dark"] .form-select::placeholder,
html[data-scheme="dark"] input::placeholder,
html[data-scheme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

html[data-scheme="dark"] .header-search input[type="search"]::placeholder,
html[data-scheme="dark"] .header-search-icon {
  color: rgba(255, 255, 255, 0.75);
}

html[data-scheme="dark"] .categories-bar {
  background: rgba(20, 20, 28, 0.92);
}

.catalog-toolbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.15rem 0 0.35rem;
}

.catalog-toolbar-title {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.catalog-toolbar-title h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.catalog-count {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.toolbar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.toolbar-action:hover {
  color: var(--primary);
}

.toolbar-action[aria-expanded="true"] .sort-chevron {
  transform: rotate(180deg);
}

.sort-chevron {
  transition: transform 0.15s ease;
}

.toolbar-link {
  border: 0;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.toolbar-link:hover {
  color: var(--primary);
}

.sort-menu {
  position: relative;
  z-index: 41;
  flex: 0 0 auto;
}

.sort-menu-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.35rem);
  min-width: 170px;
  padding: 0.4rem;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  z-index: 50;
}

.sort-menu-item {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: var(--text-main);
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.sort-menu-item:hover,
.sort-menu-item.is-active {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

#catalog-root.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.search-results-heading {
  align-items: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── مفتاح ليلي / نهاري — يتبع ألوان الثيمة ── */
.scheme-toggle {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  min-width: 72px;
  height: 32px;
  flex-shrink: 0;
  margin-inline-start: 0.15rem;
  box-shadow: 0 6px 14px rgba(var(--primary-rgb), 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scheme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(var(--primary-rgb), 0.22);
}

.scheme-toggle-half {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* الوضع الليلي مفعّل: القمر بلون الهوية الثانوي */
.scheme-toggle-night {
  background: var(--secondary);
  color: var(--text-on-brand);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
}

.scheme-toggle-day {
  background: rgba(var(--primary-rgb), 0.22);
  color: rgba(255, 255, 255, 0.72);
}

html[data-scheme="dark"] .scheme-toggle {
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-scheme="dark"] .scheme-toggle-night {
  background: var(--secondary);
  color: #1b1b1b;
}

html[data-scheme="dark"] .scheme-toggle-day {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.7);
}

/* الوضع النهاري مفعّل: الشمس بلون الهوية الثانوي */
html[data-scheme="light"] .scheme-toggle {
  border-color: rgba(var(--primary-rgb), 0.22);
}

html[data-scheme="light"] .scheme-toggle-night {
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-deep);
}

html[data-scheme="light"] .scheme-toggle-day {
  background: var(--gradient-brand);
  color: #fff;
}

.theme-color-preview {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #3B82F6 0%, #93C5FD 100%);
  box-shadow: var(--shadow-soft);
}

.form-control-color {
  width: 48px;
  min-height: 38px;
  padding: 0.2rem;
}
