:root {
  --brand-main: #0f6b4f;
  --brand-dark: #0a4e3a;
  --brand-accent: #f3c623;
  --text: #14201b;
  --muted: #5d6c66;
  --surface: #ffffff;
  --line: #dbe6df;
  --soft: #f5faf7;
  --shadow: 0 18px 36px rgba(7, 55, 41, 0.16);
  --danger: #b42318;
  --success: #157347;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -20%, rgba(243, 198, 35, 0.24), transparent 32%),
    radial-gradient(circle at 95% 10%, rgba(15, 107, 79, 0.12), transparent 28%),
    #f6f8f3;
}

.hero {
  min-height: 78vh;
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background:
    linear-gradient(120deg, rgba(12, 92, 67, 0.95), rgba(8, 62, 45, 0.95)),
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.12), transparent 30%),
    radial-gradient(circle at 80% 68%, rgba(243, 198, 35, 0.22), transparent 44%),
    linear-gradient(130deg, #0f6b4f, #083d2d);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  right: -100px;
  top: -120px;
  background: rgba(243, 198, 35, 0.22);
}

.hero-content {
  width: min(1160px, 100%);
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.brand-home-btn {
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
  padding: 8px 12px;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-home-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.16);
}

.brand-home-btn:active {
  transform: translateY(0);
}

.brand-home-btn:focus-visible {
  outline: 2px solid var(--brand-main);
  outline-offset: 4px;
  border-radius: 10px;
}

.top-links {
  display: flex;
  gap: 12px;
}

.link-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.link-btn.signup-btn {
  color: #25300a;
  background: linear-gradient(90deg, #f3c623, #ffd85b);
  border-color: rgba(255, 255, 255, 0.2);
}

.link-btn.signup-btn:hover {
  background: linear-gradient(90deg, #ffd85b, #f3c623);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  align-self: center;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 640px;
}

.hero p {
  margin: 14px 0 0;
  width: min(640px, 95%);
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  opacity: 0.96;
}

.search-shell {
  width: min(640px, 100%);
  margin: 24px 0 0;
  background: #fff;
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 13px 14px;
  font-size: 0.96rem;
  color: #333;
  border-radius: 10px;
  background: var(--soft);
}

.search-shell button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  color: #2c3809;
  cursor: pointer;
  background: linear-gradient(90deg, #f3c623, #ffd85b);
  font-family: inherit;
  transition: filter 0.2s ease;
}

.search-shell button:hover {
  filter: brightness(1.05);
}

.hero-preview {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
  border-radius: 24px;
  padding: 18px;
}

.hero-preview h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  color: #1d2d26;
}

.preview-card strong {
  display: block;
  font-size: 0.9rem;
}

.preview-card span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: #5d6c66;
}

.preview-card p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f6b4f;
}

.section {
  width: min(1100px, 92%);
  margin: 40px auto;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.tile {
  border: 1px solid #dce8e1;
  border-radius: 18px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(11, 63, 47, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11, 63, 47, 0.15);
}

.tile h3 {
  margin: 0;
  font-size: 1rem;
}

.tile p {
  margin: 8px 0 0;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.45;
}

.cta-box {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid #dce8e1;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(140deg, #ffffff, #f3faf6);
}

.cta-text {
  font-weight: 600;
}

.cta-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--soft);
}

.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #0f6b4f, #0a4e3a);
}

.btn.primary:hover {
  filter: brightness(1.1);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 15%, rgba(243, 198, 35, 0.12), transparent 35%),
    rgba(9, 34, 26, 0.68);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
  border: 1px solid #d9e8df;
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 24px 60px rgba(10, 55, 42, 0.3);
  overflow-y: auto;
  animation: slideIn 0.3s ease;
  z-index: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #dce8e1;
  background: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  color: #526861;
  padding: 2px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #17372d;
  border-color: #b8cec3;
  background: #f5faf7;
}

.modal-header {
  margin-bottom: 28px;
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #17372d;
}

.modal-subtitle {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #5f7069;
}

.link {
  color: var(--brand-main);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d3e3db;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f8fcfa;
}

.form-group input:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
}

.form-group input::placeholder {
  color: #81938c;
}

.modal-btn {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #0f6b4f, #0a4e3a);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: filter 0.2s ease;
}

.modal-btn:hover {
  filter: brightness(1.08);
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-footer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #6b7d76;
  line-height: 1.5;
}

.alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.show {
  display: block;
}

.alert.success {
  background: #d4edda;
  color: var(--success);
  border: 1px solid #c3e6cb;
}

.alert.error {
  background: #f8d7da;
  color: var(--danger);
  border: 1px solid #f5c6cb;
}

.dashboard {
  min-height: 100vh;
  background: var(--soft);
}

.nav {
  background: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .brand {
  color: var(--text);
}

.nav .brand img {
  border: 2px solid var(--line);
}

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

.profile-menu-wrapper {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.profile-btn:hover {
  background: var(--soft);
}

.profile-btn svg:first-child {
  width: 20px;
  height: 20px;
}

.profile-btn svg:last-child {
  width: 12px;
  height: 8px;
  transition: transform 0.2s ease;
}

.profile-btn[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  display: none;
  z-index: 120;
}

.profile-dropdown.active {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}

.dropdown-item:hover {
  background: #f0f5ff;
}

.dropdown-item svg {
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.profile-details {
  padding: 20px 0;
}

.profile-details .profile-field {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-details .profile-field:last-child {
  border-bottom: 0;
}

.profile-details .label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.profile-details .value {
  font-size: 1rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.orders-list {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-id {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-main);
}

.order-status {
  text-transform: capitalize;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.detail-label {
  color: var(--muted);
  font-weight: 600;
}

.detail-value {
  color: var(--text);
  text-align: right;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.empty-state small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.confirmed {
  background: #cfe2ff;
  color: #084298;
}

.status-badge.delivered {
  background: #d1e7dd;
  color: #0f5132;
}

.status-badge.cancelled {
  background: #f8d7da;
  color: #842029;
}

.status-badge.paid {
  background: #d1e7dd;
  color: #0f5132;
}

.status-badge.failed {
  background: #f8d7da;
  color: #842029;
}

.orders-list .loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.dashboard-content {
  width: min(1100px, 92%);
  margin: 32px auto;
  padding-bottom: 40px;
}

.dashboard-content h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--text);
}

.dashboard-content > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.item-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.item-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
}

.item-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.price {
  margin-top: 12px;
  font-weight: 700;
  color: var(--brand-main);
  font-size: 1.2rem !important;
}

.item-card .weight {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  background: var(--soft);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-preview {
    padding: 14px;
    border-radius: 18px;
  }

  .topbar {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }

  .search-shell {
    grid-template-columns: 1fr;
  }

  .search-shell button {
    width: 100%;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  .modal-content {
    width: 100%;
    padding: 28px 20px;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

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

  .nav {
    padding: 14px 16px;
  }

  .user-info {
    font-size: 0.9rem;
  }

  .profile-dropdown {
    right: -6px;
    width: 220px;
  }

  .dropdown-item {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .order-card {
    padding: 14px;
  }

  .order-detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .detail-value {
    text-align: left;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

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

  .hero p {
    font-size: 0.95rem;
  }

  .modal-icon {
    font-size: 2rem;
  }

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

  .tile {
    padding: 14px;
  }
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

button:focus-visible,
input:focus-visible,
.link:focus-visible {
  outline: 2px solid var(--brand-main);
  outline-offset: 2px;
}
.profile-menu-wrapper {
  position: relative;
}

.profile-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #212121;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.profile-trigger-btn:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-trigger-btn svg:first-child {
  width: 16px;
  height: 16px;
}

.profile-trigger-btn .dropdown-arrow {
  width: 10px;
  height: 6px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.profile-trigger-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0;
  display: none;
  z-index: 120;
}

.profile-dropdown-menu.active {
  display: block;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  color: #212121;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.dropdown-menu-item:last-child {
  border-bottom: 0;
}

.dropdown-menu-item:hover {
  background: #f8f8f8;
}

.dropdown-menu-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .profile-dropdown-menu {
    right: -6px;
    min-width: 180px;
  }

  .dropdown-menu-item {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* Dashboard styles */
.order-dashboard {
  background: #f6f7fb;
  min-height: 100vh;
}

.dash-nav {
  position: sticky;
  top: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 260px minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #eceff5;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
}

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

.dash-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e4e7ec;
}

.dash-brand strong {
  display: block;
  font-size: 1rem;
}

.dash-brand p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #667085;
}

.dash-search-wrap input {
  width: 100%;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #f9fafb;
}

.dash-search-wrap input:focus {
  outline: none;
  border-color: #f59e0b;
  background: #fff;
}

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

.cart-quick-btn {
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.cart-quick-btn span {
  margin-left: 4px;
  color: #b54708;
}

.order-profile-wrap {
  position: relative;
}

.order-profile-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #0a5b56);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.order-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 86vw);
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
  display: none;
}

.order-profile-menu.active {
  display: block;
}

.order-profile-menu h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.profile-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #f2f4f7;
  padding: 8px 0;
  font-size: 0.84rem;
}

.profile-row span {
  color: #667085;
}

.profile-row strong {
  text-align: right;
  color: #101828;
  overflow-wrap: anywhere;
}

.profile-logout-btn {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: #be123c;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.profile-orders-btn {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
  color: #101828;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.order-main {
  width: min(1240px, 94%);
  margin: 16px auto 0;
  padding-bottom: 28px;
}

.order-hero {
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.92), rgba(10, 91, 86, 0.92)),
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #20918a, #0a5b56);
  border-radius: 18px;
  color: #fff;
  padding: 24px;
}

.order-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.order-hero p {
  margin: 8px 0 0;
  font-size: 0.94rem;
  opacity: 0.95;
}

.category-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #dde2eb;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.chip.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.order-layout {
  margin-top: 14px;
  display: block;
}

.catalog-panel,
.cart-panel {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.panel-head span {
  color: #667085;
  font-size: 0.84rem;
  font-weight: 600;
}

.loading-block {
  padding: 30px 10px;
  text-align: center;
  color: #667085;
}

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

.food-card {
  border: 1px solid #eceff5;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.food-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #eef6f1;
  border: 1px solid #dce8e1;
}

.food-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
}

.food-card h3 {
  margin: 8px 0 6px;
  font-size: 1rem;
}

.food-card p {
  margin: 0;
  color: #667085;
  font-size: 0.85rem;
  line-height: 1.4;
}

.food-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.food-meta {
  display: inline-block;
  font-size: 0.78rem;
  color: #667085;
  margin-bottom: 4px;
}

.food-bottom strong {
  display: block;
  color: #0f766e;
  font-size: 1rem;
}

.add-btn {
  border: 1px solid #0f766e;
  background: #ecfdf3;
  color: #0f766e;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper button {
  border: 0;
  background: #f8fafc;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1rem;
}

.qty-stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.empty-grid {
  grid-column: 1 / -1;
  text-align: center;
  color: #667085;
  padding: 20px;
}

.cart-empty {
  color: #667085;
  font-size: 0.9rem;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  padding: 14px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.cart-inline-error {
  margin-top: 10px;
  border: 1px solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.order-success-action {
  margin-top: 10px;
  border: 1px solid #b7ebc6;
  background: #e9f9ef;
  color: #166534;
  border-radius: 10px;
  padding: 10px;
}

.order-success-action p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.view-orders-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #166534;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #eceff5;
  border-radius: 12px;
  padding: 10px;
}

.cart-line h4 {
  margin: 0;
  font-size: 0.9rem;
}

.cart-line p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #667085;
}

.cart-summary {
  border-top: 1px solid #eceff5;
  margin-top: 14px;
  padding-top: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.summary-row strong {
  font-size: 1.02rem;
}

.cart-summary label {
  display: block;
  font-size: 0.8rem;
  color: #667085;
  margin-bottom: 6px;
}

.cart-summary select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  margin-bottom: 10px;
}

.place-order-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(90deg, #f59e0b, #dd7a00);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.place-order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cart-note {
  margin: 8px 0 0;
  color: #667085;
  font-size: 0.78rem;
}

.bottom-cart-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #111827, #1f2937);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.35);
  z-index: 120;
}

.bottom-cart-btn span {
  margin-left: 6px;
  color: #f59e0b;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 210;
}

.cart-drawer.active {
  display: block;
}

.cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  border-radius: 0;
  overflow-y: auto;
}

.cart-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-close-btn {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 6px 9px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.orders-content {
  padding-top: 8px;
  display: grid;
  gap: 10px;
}

.orders-page-panel {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 16px;
}

.order-page-search-note p {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
}

.orders-empty {
  color: #667085;
  text-align: center;
  padding: 20px 0;
}

.orders-empty-page {
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.orders-empty-page h3 {
  margin: 0 0 8px;
}

.orders-empty-page p {
  margin: 0 0 14px;
  color: #667085;
}

.small-logout {
  margin: 0;
  width: auto;
  padding: 9px 12px;
  border-radius: 12px;
}

.order-history-card {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.order-history-card.clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-history-card.clickable:hover {
  border-color: #cfd4dc;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.order-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.order-history-head span {
  font-size: 0.78rem;
  color: #0f766e;
  text-transform: capitalize;
}

.order-history-card p {
  margin: 4px 0;
  font-size: 0.86rem;
  color: #475467;
}

.view-order-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #0f766e !important;
  font-weight: 600;
}

.order-history-details {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d0d5dd;
}

.order-history-details.active {
  display: block;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.order-history-details h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.order-items-list {
  display: grid;
  gap: 8px;
}

.order-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  padding: 8px 10px;
}

.order-item-row strong {
  font-size: 0.86rem;
}

.order-item-row p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: #667085;
}

.order-item-row span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #111827;
}

.order-item-empty {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
}

.order-cancel-btn {
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #b42318;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 980px) {
  .dash-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .drawer-panel {
    width: min(420px, 96vw);
  }
}

@media (max-width: 560px) {
  .dash-nav {
    padding: 12px 12px;
    gap: 8px;
  }

  .dash-brand {
    gap: 8px;
  }

  .dash-brand img {
    width: 34px;
    height: 34px;
  }

  .dash-brand strong {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .dash-brand p {
    font-size: 0.72rem;
  }

  .dash-search-wrap input {
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .dash-actions {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .cart-quick-btn,
  .small-logout {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .order-profile-menu {
    right: 0;
    width: min(300px, 92vw);
  }

  .order-main {
    width: min(95%, 100%);
  }

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

  .order-hero {
    padding: 18px;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .bottom-cart-btn {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 0.84rem;
  }
}

/* Dribbble-inspired theme overrides */
.order-dashboard {
  background:
    radial-gradient(circle at 10% -10%, rgba(243, 198, 35, 0.18), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(15, 107, 79, 0.1), transparent 30%),
    #f4f8f3;
}

.dash-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dce8e1;
}

.dash-search-wrap input {
  border: 1px solid #d6e2dc;
  border-radius: 14px;
  background: #f3f8f5;
}

.dash-search-wrap input:focus {
  border-color: #f3c623;
  box-shadow: 0 0 0 4px rgba(243, 198, 35, 0.2);
}

.order-hero {
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(12, 92, 67, 0.95), rgba(8, 62, 45, 0.95)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 32%),
    radial-gradient(circle at 85% 78%, rgba(243, 198, 35, 0.22), transparent 44%),
    linear-gradient(130deg, #0f6b4f, #083d2d);
}

.category-chips .chip {
  border: 1px solid #d3e0d9;
  border-radius: 999px;
  background: #ffffff;
}

.category-chips .chip.active {
  color: #25300a;
  background: linear-gradient(90deg, #f3c623, #ffd85b);
  border-color: #f3c623;
}

.catalog-panel,
.orders-page-panel,
.cart-panel {
  border: 1px solid #dce8e1;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(10, 63, 47, 0.08);
}

.food-card {
  border: 1px solid #dce8e1;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #f5faf7);
}

.food-badge {
  background: #fff7db;
  color: #6b5310;
}

.food-bottom strong {
  color: #0f6b4f;
}

.add-btn {
  color: #25300a;
  border-color: #f3c623;
  background: linear-gradient(90deg, #f3c623, #ffd85b);
}

.place-order-btn,
.view-orders-btn {
  color: #25300a;
  background: linear-gradient(90deg, #f3c623, #ffd85b);
}

.order-profile-btn,
.bottom-cart-btn {
  background: linear-gradient(130deg, #0f6b4f, #0a4e3a);
}

/* Foodi-style warm theme overrides */
.order-dashboard {
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 184, 48, 0.2), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(232, 82, 26, 0.12), transparent 28%),
    #fff8f0;
}

.dash-nav {
  background: rgba(255, 250, 245, 0.9);
  border-bottom: 1px solid #eadfd5;
  box-shadow: 0 10px 28px rgba(56, 28, 12, 0.08);
  backdrop-filter: blur(8px);
}

.dash-brand img {
  border-color: #eadfd5;
}

.dash-brand p,
.panel-head span,
.loading-block,
.food-card p,
.food-meta,
.cart-note,
.order-page-search-note p,
.orders-empty,
.orders-empty-page p,
.order-item-empty,
.cart-line p,
.profile-row span,
.summary-row span,
.cart-summary label {
  color: #7a6f68;
}

.dash-search-wrap input {
  border-color: #eadfd5;
  background: #fff;
}

.dash-search-wrap input:focus {
  border-color: #ff6b35;
}

.cart-quick-btn,
.drawer-close-btn,
.profile-orders-btn {
  border-color: #eadfd5;
  background: #fff;
  color: #1a120b;
}

.order-profile-btn {
  background: linear-gradient(135deg, #ff6b35, #e8521a);
}

.order-profile-menu,
.catalog-panel,
.cart-panel,
.orders-page-panel,
.food-card,
.cart-line,
.order-history-card,
.order-item-row {
  background: #fff;
  border-color: #eadfd5;
  box-shadow: 0 10px 24px rgba(58, 25, 8, 0.05);
}

.order-hero {
  background:
    linear-gradient(130deg, rgba(26, 18, 11, 0.94), rgba(61, 36, 16, 0.94)),
    radial-gradient(circle at 20% 25%, rgba(255, 107, 53, 0.26), transparent 40%),
    radial-gradient(circle at 82% 70%, rgba(255, 184, 48, 0.22), transparent 44%);
}

.chip {
  border-color: #eadfd5;
  color: #5f544d;
}

.chip.active {
  background: #1a120b;
  border-color: #1a120b;
  color: #fff;
}

.food-image-wrap {
  background: #fff1e5;
  border-color: #f0dfd2;
}

.food-badge {
  background: #ffe8d6;
  color: #b93814;
}

.food-bottom strong,
.order-history-head span,
.view-order-note {
  color: #e8521a !important;
}

.add-btn {
  border-color: #ff6b35;
  background: #fff0e6;
  color: #e8521a;
}

.qty-stepper {
  border-color: #eadfd5;
}

.qty-stepper button {
  background: #fffaf5;
}

.cart-empty,
.orders-empty-page {
  border-color: #ebddd0;
}

.cart-inline-error {
  border-color: #f2b9bf;
  background: #fdecee;
  color: #9f1239;
}

.order-success-action {
  border-color: #ffd8bf;
  background: #fff2e8;
  color: #b54708;
}

.view-orders-btn {
  background: #e8521a;
}

.cart-summary {
  border-top-color: #eadfd5;
}

.cart-summary select {
  border-color: #eadfd5;
}

.place-order-btn {
  background: linear-gradient(90deg, #ff6b35, #e8521a);
}

.bottom-cart-btn {
  background: linear-gradient(90deg, #1a120b, #3d2410);
  box-shadow: 0 12px 28px rgba(40, 18, 8, 0.35);
}

.bottom-cart-btn span {
  color: #ffb830;
}

.cart-drawer-overlay {
  background: rgba(26, 18, 11, 0.6);
}

.order-cancel-btn,
.profile-logout-btn {
  background: #b42318;
}

.order-history-card.clickable:hover {
  border-color: #d8c8bb;
  box-shadow: 0 10px 22px rgba(58, 25, 8, 0.1);
}

.order-history-details {
  border-top-color: #eadfd5;
}

.order-item-row span {
  color: #1a120b;
}
