/* ============================================
   SNACKOFFICE DESIGN SYSTEM
   Brand: #e3007d Magenta / Poppins / Clean White
   WCAG AA Compliant
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand palette */
  --so-brand: #e3007d;
  --so-brand-rgb: 227, 0, 125;
  --so-brand-hover: #c9006c;
  --so-brand-dark: #a80059;       /* AAA on white – 7.2:1 */
  --so-brand-light: #fce4f1;      /* tinted background */
  --so-brand-subtle: #fff0f7;     /* very light tint */

  /* Neutrals */
  --so-white: #ffffff;
  --so-grey-50: #fbf7f9;          /* card / separation */
  --so-grey-100: #fff7fc;
  --so-grey-200: #d0d0d0;
  --so-grey-400: #999999;
  --so-grey-500: #555555;         /* secondary text – 7.5:1 on white */
  --so-grey-800: #333333;
  --so-grey-900: #1a1a1a;         /* body text – 16.6:1 on white */

  /* Semantic */
  --so-success: #1a7d36;          /* 5.6:1 on white */
  --so-success-bg: #e8f5ec;
  --so-warning: #8a6900;          /* 5.1:1 on white */
  --so-warning-bg: #fff8e1;
  --so-danger: #c41e1e;           /* 5.9:1 on white */
  --so-danger-bg: #fdeaea;
  --so-info: #1565c0;             /* 5.5:1 on white */
  --so-info-bg: #e3f2fd;

  /* Typography */
  --so-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --so-radius-sm: 6px;
  --so-radius: 10px;
  --so-radius-lg: 14px;
  --so-radius-xl: 20px;
  --so-radius-pill: 50px;

  /* Motion */
  --so-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --so-transition: 0.2s var(--so-ease);
}

/* ============================================
   BASE
   ============================================ */

html {
  font-size: 15px;
  scroll-behavior: smooth;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: var(--so-font);
  font-weight: 400;
  background-color: var(--so-white);
  color: var(--so-grey-900);
  margin-bottom: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, .display-4 {
  font-family: var(--so-font);
  font-weight: 600;
  color: var(--so-grey-900);
  letter-spacing: -0.02em;
}

h5, h6 {
  font-family: var(--so-font);
  font-weight: 500;
  color: var(--so-grey-900);
}

a {
  color: var(--so-brand);
  text-decoration: none;
  transition: color var(--so-transition);
}

a:hover {
  color: var(--so-brand-hover);
}

/* WCAG: ensure secondary text has sufficient contrast */
.text-body-secondary {
  color: var(--so-grey-500) !important;
}

::selection {
  background: rgba(var(--so-brand-rgb), 0.15);
  color: var(--so-grey-900);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--so-grey-50); }
::-webkit-scrollbar-thumb { background: var(--so-grey-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--so-grey-400); }

/* ============================================
   ICONS – keep proportional, not oversized
   ============================================ */

.fa-solid, .fa-regular, .fa-brands,
[class*="fa-"] {
  font-size: 0.9em;
}

.btn .fa-solid, .btn .fa-regular,
.nav-link .fa-solid, .nav-link .fa-regular {
  font-size: 0.85em;
}

.so-brand-icon {
  font-size: 0.95em !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  font-family: var(--so-font);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--so-radius-pill);
  transition: all var(--so-transition);
  letter-spacing: 0.01em;
}

/* WCAG: visible focus ring (only for keyboard navigation) */
.btn:focus-visible,
.btn:active:focus-visible,
.btn-link.nav-link:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--so-brand-rgb), 0.35);
  outline: none;
}

.btn:focus:not(:focus-visible),
.btn-link.nav-link:focus:not(:focus-visible) {
  box-shadow: none;
  outline: none;
}

/* Primary – white on brand. 4.6:1 contrast ratio (AA pass) */
.btn-primary {
  background-color: var(--so-brand);
  border-color: var(--so-brand);
  color: #fff;
  padding: 0.45rem 1.4rem;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus-visible {
  background-color: var(--so-brand-hover);
  border-color: var(--so-brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(var(--so-brand-rgb), 0.25);
}

/* Outline-success (logout, etc.) – keep neutral */
.btn-outline-success:not(.filter-feature) {
  color: var(--so-grey-800);
  border-color: var(--so-grey-200);
  border-radius: var(--so-radius-pill);
}

.btn-outline-success:not(.filter-feature):hover {
  background-color: var(--so-brand-light);
  border-color: var(--so-brand);
  color: var(--so-brand-hover);
}

.btn-outline-secondary {
  color: var(--so-grey-800);
  border-color: var(--so-grey-200);
  border-radius: var(--so-radius-pill);
  background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary.active {
  background-color: var(--so-grey-900);
  border-color: var(--so-grey-900);
  color: #fff;
}

.btn-link {
  color: var(--so-brand);
  text-decoration: none;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--so-brand-hover);
}

/* Filter buttons – compact pills */
.filter-feature,
.filter-spicy,
.filter-category {
  border-radius: var(--so-radius-pill) !important;
  padding: 0.22rem 0.75rem !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  border-width: 1px !important;
  transition: all var(--so-transition) !important;
}

/* Active states with accessible colors */
.btn-outline-success.filter-feature.active {
  background-color: var(--so-success);
  border-color: var(--so-success);
  color: #fff;
}

.btn-outline-warning.filter-feature.active {
  background-color: var(--so-warning);
  border-color: var(--so-warning);
  color: #fff;
}

.btn-outline-danger.filter-spicy.active {
  background-color: var(--so-danger);
  border-color: var(--so-danger);
  color: #fff;
}

.btn-outline-secondary.filter-category.active {
  background-color: var(--so-grey-900);
  border-color: var(--so-grey-900);
  color: #fff;
}

/* Cart quantity +/- buttons */
.btn-group .btn-primary {
  border-radius: 0;
  padding: 0.2rem 0.7rem;
}
.btn-group .btn-primary:first-child { border-radius: var(--so-radius) 0 0 var(--so-radius); }
.btn-group .btn-primary:last-child { border-radius: 0 var(--so-radius) var(--so-radius) 0; }

/* ============================================
   NAVBAR (customer-facing)
   ============================================ */

.so-navbar {
  background: var(--so-white) !important;
  border-bottom: 1px solid var(--so-grey-50) !important;
  padding: 0.6rem 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.so-navbar .navbar-brand {
  font-family: var(--so-font);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--so-grey-900) !important;
  letter-spacing: -0.02em;
}

.so-navbar .navbar-brand .so-brand-icon {
  color: var(--so-brand);
  margin-right: 0.3rem;
}

.so-navbar .navbar-brand:hover {
  color: var(--so-brand) !important;
}

.so-navbar .nav-link {
  color: var(--so-grey-800) !important;
  font-weight: 400;
  padding: 0.4rem 0.85rem !important;
  border-radius: var(--so-radius-pill);
  transition: all var(--so-transition);
  font-size: 0.88rem;
}

.so-navbar .nav-link:hover {
  color: var(--so-brand) !important;
  background: var(--so-brand-subtle);
}

.so-navbar .nav-link.text-dark {
  color: var(--so-grey-800) !important;
}

.so-navbar .nav-link.text-dark:hover {
  color: var(--so-brand) !important;
  background: var(--so-brand-subtle);
}

.so-navbar .navbar-toggler {
  border-color: var(--so-grey-200);
  padding: 0.35rem 0.55rem;
}

.so-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.so-navbar .btn-outline-success {
  color: var(--so-grey-800);
  border-color: var(--so-grey-200);
  border-radius: var(--so-radius-pill);
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
}

.so-navbar .btn-outline-success:hover {
  background: var(--so-brand-light);
  border-color: var(--so-brand);
  color: var(--so-brand-hover);
}

/* ============================================
   NAVBAR (admin)
   ============================================ */

.so-admin-nav {
  background: var(--so-grey-900) !important;
  border-bottom: none !important;
  padding: 0.6rem 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.so-admin-nav .navbar-brand {
  font-family: var(--so-font);
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff !important;
  letter-spacing: -0.01em;
}

.so-admin-nav .navbar-brand .so-brand-icon {
  color: var(--so-brand);
  margin-right: 0.3rem;
}

.so-admin-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400;
  padding: 0.4rem 0.75rem !important;
  border-radius: var(--so-radius-pill);
  transition: all var(--so-transition);
  font-size: 0.85rem;
}

.so-admin-nav .nav-link:hover,
.so-admin-nav .nav-link.text-dark:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.so-admin-nav .nav-link.text-dark {
  color: rgba(255, 255, 255, 0.8) !important;
}

.so-admin-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.so-admin-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.so-admin-nav .btn-outline-success {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--so-radius-pill);
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
}

.so-admin-nav .btn-outline-success:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ============================================
   CARDS – no border, grey bg panel
   ============================================ */

.card {
  border: none;
  border-radius: var(--so-radius-lg);
  background: var(--so-grey-50);
  box-shadow: none;
  transition: all var(--so-transition);
  overflow: hidden;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-family: var(--so-font);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card-subtitle {
  color: var(--so-grey-500);
}

/* Product cards */
.product-card .card {
  border: none;
  border-left: none;
}

.product-card .card:hover {
  background: var(--so-grey-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.product-card .card-title {
  font-size: 1.05rem;
}

.product-card .card-text {
  color: var(--so-grey-500);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Price */
.so-price {
  color: var(--so-brand) !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
}

/* Category badges */
.badge.bg-light {
  background-color: var(--so-white) !important;
  color: var(--so-grey-800) !important;
  border: none !important;
  border-radius: var(--so-radius-pill);
  font-weight: 400;
  font-size: 0.75rem;
  padding: 0.25em 0.6em;
}

/* ============================================
   NAV PILLS (tabs: Lunch / Afhaal)
   ============================================ */

.nav-pills {
  gap: 0.35rem;
  border-bottom: 1px solid var(--so-grey-100);
  padding-bottom: 0;
}

.nav-pills .nav-link {
  color: var(--so-grey-500);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--so-radius) var(--so-radius) 0 0;
  padding: 0.55rem 1.25rem;
  border: none;
  margin-bottom: -1px;
  transition: all var(--so-transition);
}

.nav-pills .nav-link:hover {
  color: var(--so-grey-900);
  background: var(--so-grey-50);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--so-brand);
  border: none;
}

/* ============================================
   ALERTS – no border, soft bg only
   ============================================ */

.alert {
  border-radius: var(--so-radius);
  border: none;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.85rem 1.1rem;
}

.alert-danger {
  background-color: var(--so-danger-bg);
  color: var(--so-danger);
}

.alert-warning {
  background-color: var(--so-warning-bg);
  color: var(--so-warning);
}

.alert-success {
  background-color: var(--so-success-bg);
  color: var(--so-success);
}

.alert-info {
  background-color: var(--so-info-bg);
  color: var(--so-info);
}

.alert-heading {
  font-weight: 600;
}

/* ============================================
   FORMS
   ============================================ */

.form-control {
  border-radius: var(--so-radius);
  border: 1px solid var(--so-grey-200);
  padding: 0.55rem 0.9rem;
  font-family: var(--so-font);
  font-size: 0.9rem;
  transition: all var(--so-transition);
  background-color: var(--so-white);
}

.form-control:focus {
  border-color: var(--so-brand);
  box-shadow: 0 0 0 3px rgba(var(--so-brand-rgb), 0.15);
  background-color: var(--so-white);
}

.form-label {
  font-weight: 500;
  color: var(--so-grey-800);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.form-select {
  border-radius: var(--so-radius);
  border: 1px solid var(--so-grey-200);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.form-select:focus {
  border-color: var(--so-brand);
  box-shadow: 0 0 0 3px rgba(var(--so-brand-rgb), 0.15);
}

/* ============================================
   TABLES
   ============================================ */

.table {
  font-size: 0.88rem;
}

.table > thead > tr > th {
  background-color: var(--so-grey-50);
  color: var(--so-grey-800);
  font-weight: 500;
  border-bottom: 1px solid var(--so-grey-100);
  padding: 0.75rem 0.9rem;
}

.table > tbody > tr > td,
.table > tbody > tr > th {
  padding: 0.7rem 0.9rem;
  vertical-align: middle;
  border-color: var(--so-grey-100);
}

.table > tfoot > tr > th,
.table > tfoot > tr > td {
  font-weight: 600;
  border-top: 1px solid var(--so-grey-200);
  padding: 0.75rem 0.9rem;
}

tr[data-href] {
  cursor: pointer;
  transition: background-color var(--so-transition);
}

tr[data-href]:hover td {
  background-color: var(--so-brand-subtle);
}

/* ============================================
   ACCORDION (My Orders)
   ============================================ */

.accordion-item {
  border: none;
  border-radius: var(--so-radius) !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--so-grey-50);
}

.accordion-button {
  font-family: var(--so-font);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--so-grey-900);
  background-color: var(--so-grey-50);
  border-radius: var(--so-radius) !important;
  padding: 0.85rem 1.1rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--so-brand-light);
  color: var(--so-grey-900);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(var(--so-brand-rgb), 0.2);
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555555'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  background-color: var(--so-white);
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
  border: none;
  border-radius: var(--so-radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.modal-header {
  background: var(--so-brand);
  color: #fff;
  border-bottom: none;
  padding: 1.1rem 1.3rem;
}

.modal-title {
  font-family: var(--so-font);
  font-weight: 600;
  color: #fff;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 1.3rem;
}

.modal-footer {
  border-top: 1px solid var(--so-grey-100);
  padding: 0.9rem 1.3rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background-color: var(--so-grey-900);
  color: rgba(255, 255, 255, 0.65);
  border-top: none !important;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
  color: #fff;
}

.footer .container {
  font-size: 0.82rem;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.position-override {
  margin-left: 3%;
  width: 30%;
}

#side-cart .card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--so-grey-900);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--so-grey-100);
  margin-bottom: 0.4rem;
}

#side-cart .list-group-item {
  border-color: var(--so-grey-100);
  background: #fff;
  padding: 0.75rem;
  margin-bottom: 15px;
  border-radius: var(--so-radius);
}

#side-cart .cart-line {
  padding: 0.45rem 0;
}

#side-cart .cart-line + .cart-line {
  margin-top: 0.3rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--so-grey-100);
}

#side-cart .list-group-item:nth-last-child(2) {
  border-bottom: none;
}

#side-cart .list-group-item h5 {
  font-weight: 500;
  font-size: 1rem;
  color: var(--so-brand);
}

#side-cart h7 {
  font-weight: 400;
  font-size: 0.85rem;
}

#side-cart .btn-group .btn-primary {
  padding: 0.18rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
}

#side-cart .btn-link {
  font-size: 0.78rem;
  padding: 0;
}

#side-cart .comment-text-area {
  font-size: 0.82rem;
  border-radius: var(--so-radius-sm);
  min-height: 55px;
}

#side-cart .comment-save-button {
  font-size: 0.78rem;
  padding: 0.2rem 0.85rem;
  margin-top: 0.35rem;
}

#side-cart .list-group-item:last-child {
  font-weight: 600;
  font-size: 1rem;
  color: var(--so-grey-900);
  padding-top: 0.85rem;
}

#side-cart .list-group-item:last-child .btn-primary {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.55rem 1.3rem;
  font-size: 0.92rem;
  border-radius: var(--so-radius-pill);
}

/* Sticky cart on desktop */
@media (min-width: 768px) {
  .so-sticky-cart {
    position: sticky;
    top: 1rem;
  }
}

/* ============================================
   FILTERS
   ============================================ */

#product-filters {
  background: var(--so-grey-50);
  border-radius: var(--so-radius);
  padding: 0.65rem 0.9rem;
  border: none;
}

#product-filters .text-muted {
  color: var(--so-grey-500) !important;
}

#product-filters .text-muted.small {
  font-size: 0.75rem !important;
}

#product-filters [class*="fa-"] {
  font-size: 0.8em;
}

/* ============================================
   HERO / HOME
   ============================================ */

.so-hero {
  background: var(--so-brand);
  color: #fff;
  border-radius: var(--so-radius-xl);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.so-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.so-hero h1 {
  font-weight: 600;
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  position: relative;
}

.so-hero h1 [class*="fa-"] {
  font-size: 0.7em;
}

.so-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  position: relative;
}

.so-hero .alert {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.so-hero .alert-heading {
  color: #fff;
}

/* ============================================
   DATE PAGE TITLE
   ============================================ */

.so-date-title {
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.so-date-title .so-date-icon {
  color: var(--so-brand);
  font-size: 0.75em;
}

.so-date-title [class*="fa-"] {
  font-size: 0.75em;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.so-login-body {
  background: var(--so-grey-50);
  min-height: 100vh;
  margin-bottom: 0;
}

.so-login-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 0;
}

.so-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--so-white);
  border-radius: var(--so-radius-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  border: none;
}

.so-login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.so-login-brand .brand-icon {
  font-size: 1.8rem;
  color: var(--so-brand);
  margin-bottom: 0.4rem;
  display: block;
}

.so-login-brand h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.so-login-brand p {
  color: var(--so-grey-500);
  font-size: 0.85rem;
}

/* ============================================
   STATUS PAGES (Success / Failed)
   ============================================ */

.so-status-page {
  text-align: center;
  padding: 3rem 0;
}

.so-status-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.so-status-icon.success {
  background: var(--so-success-bg);
  color: var(--so-success);
}

.so-status-icon.failed {
  background: var(--so-danger-bg);
  color: var(--so-danger);
}

.so-status-page h2 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.so-status-page p {
  color: var(--so-grey-500);
  font-size: 1rem;
}

/* ============================================
   404 PAGE
   ============================================ */

.so-404 {
  text-align: center;
  padding: 4rem 0;
}

.so-404 .headline {
  font-weight: 700;
  font-size: 7rem;
  color: var(--so-brand);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.so-404 h3 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page .headline {
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ============================================
   INFO PAGE
   ============================================ */

.so-info-card {
  background: var(--so-grey-50);
  border-radius: var(--so-radius-xl);
  border: none;
  padding: 2.25rem;
  max-width: 680px;
}

.so-info-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--so-grey-100);
}

.so-info-card .table-borderless th {
  color: var(--so-grey-800);
  font-weight: 500;
  padding-left: 0;
}

.so-info-card .table-borderless td {
  color: var(--so-grey-900);
}

/* ============================================
   MY ORDERS
   ============================================ */

.so-orders-header {
  margin-bottom: 1.25rem;
}

.so-orders-header h2 {
  font-weight: 600;
}

.so-orders-header h2 .so-orders-icon {
  color: var(--so-brand);
  font-size: 0.8em;
  margin-right: 0.3rem;
}

/* ============================================
   STATUS MESSAGES (alerts)
   ============================================ */

.so-status-alert {
  animation: slideDown 0.3s ease-out;
}

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

/* ============================================
   PRODUCT CARD ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeInUp 0.35s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.03s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.09s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.15s; }
.product-card:nth-child(6) { animation-delay: 0.18s; }
.product-card:nth-child(7) { animation-delay: 0.21s; }
.product-card:nth-child(8) { animation-delay: 0.24s; }

/* ============================================
   EMPTY STATE
   ============================================ */

.so-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--so-grey-500);
}

.so-empty-state .so-empty-icon {
  font-size: 2rem;
  color: var(--so-grey-200);
  margin-bottom: 0.75rem;
  display: block;
}

/* ============================================
   MISC
   ============================================ */

.text-danger { color: var(--so-danger) !important; }
.text-warning { color: var(--so-warning) !important; }

.list-group-flush .list-group-item {
  border-left: 0;
  border-right: 0;
}

/* ============================================
   PRODUCT MASONRY
   ============================================ */

.product-masonry {
  columns: 2;
  column-gap: 1.5rem;
}

.product-masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.product-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #f8f0fc 0%, #fce4ec 50%, #fff3e0 100%);
  border-bottom: 1px solid #dee2e6;
}

/* ============================================
   MOBILE CART FAB + BOTTOM SHEET
   ============================================ */

.so-cart-fab {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--so-brand);
  color: #fff;
  border: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--so-brand-rgb), 0.35);
  cursor: pointer;
  transition: all var(--so-transition);
  font-size: 1.2rem;
}

.so-cart-fab:hover,
.so-cart-fab:focus-visible {
  background: var(--so-brand-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(var(--so-brand-rgb), 0.45);
}

.so-cart-fab:focus-visible {
  outline: 3px solid rgba(var(--so-brand-rgb), 0.5);
  outline-offset: 2px;
}

.so-cart-fab .fa-cart-shopping {
  font-size: 1.15rem;
}

.so-cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--so-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

.so-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
}

.so-cart-overlay.open {
  pointer-events: auto;
}

.so-cart-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s var(--so-ease);
}

.so-cart-overlay.open .so-cart-overlay-backdrop {
  opacity: 1;
}

.so-cart-overlay-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--so-white);
  border-radius: var(--so-radius-xl) var(--so-radius-xl) 0 0;
  max-height: 80vh;
  transform: translateY(100%);
  transition: transform 0.3s var(--so-ease);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.so-cart-overlay.open .so-cart-overlay-sheet {
  transform: translateY(0);
}

.so-cart-overlay-handle {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0 0.25rem;
  flex-shrink: 0;
}

.so-cart-overlay-handle span {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--so-grey-200);
}

.so-cart-overlay-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1rem 1.5rem;
  flex: 1;
}

/* ============================================
   TABLET BREAKPOINT (768px - 991px)
   ============================================ */

@media (min-width: 768px) and (max-width: 991.98px) {
  .position-override {
    width: 35%;
    margin-left: 2%;
  }
}

/* ============================================
   RESPONSIVE – MOBILE (max-width: 767.98px)
   ============================================ */

@media (max-width: 767.98px) {

  /* --- Layout --- */
  .so-main-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* --- Hero --- */
  .so-hero { padding: 2rem 1.5rem; }
  .so-hero h1 { font-size: 1.6rem; }

  /* --- Date title --- */
  .so-date-title { font-size: 1.3rem; }

  /* --- Product grid --- */
  .product-masonry {
    columns: 1;
    column-gap: 1rem;
  }

  .product-masonry-item {
    margin-bottom: 1rem;
  }

  .product-card .card-body {
    padding: 1rem;
  }

  /* --- Cart sidebar: hide on mobile --- */
  .position-override {
    display: none !important;
  }

  /* --- Cart FAB: show on mobile --- */
  .so-cart-fab {
    display: flex;
  }

  .so-cart-overlay {
    display: block;
  }

  .so-cart-fab-badge {
    display: flex;
  }

  /* --- Mobile cart quantity buttons --- */
  .so-cart-overlay .btn-group .btn-primary {
    padding: 0.35rem 0.7rem;
    font-size: 0.88rem;
    min-width: 36px;
    min-height: 36px;
  }

  .so-cart-overlay .btn-group .btn-outline-secondary.disabled {
    min-width: 2rem;
    font-size: 0.88rem;
  }

  /* --- Navbar mobile polish --- */
  .so-navbar .navbar-collapse {
    padding: 0.75rem 0;
    border-top: 1px solid var(--so-grey-100);
    margin-top: 0.5rem;
  }

  .so-navbar .nav-link {
    padding: 0.6rem 0.85rem !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .so-navbar .btn-outline-success {
    width: 100%;
    min-height: 44px;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Filter pills: bigger touch targets --- */
  .filter-feature,
  .filter-spicy,
  .filter-category {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.82rem !important;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  #product-filters {
    padding: 0.5rem 0.75rem;
  }

  /* --- My Orders: responsive table --- */
  .accordion-body {
    padding: 0.5rem;
  }

  .accordion-body .table {
    font-size: 0.78rem;
  }

  .accordion-body .table th,
  .accordion-body .table td {
    padding: 0.45rem 0.5rem;
    white-space: nowrap;
  }

  .accordion-button {
    font-size: 0.82rem;
    padding: 0.75rem 0.9rem;
  }

  /* --- Footer: fix nowrap overflow --- */
  .footer {
    white-space: normal;
    line-height: 1.5;
    padding: 1rem 0;
  }

  .footer .container {
    text-align: center;
  }

  /* --- Modals: tighter on mobile --- */
  .modal-dialog {
    margin: 0.75rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-header {
    padding: 0.9rem 1rem;
  }

  /* --- Login --- */
  .so-login-card { padding: 1.75rem 1.5rem; }

  /* --- 404 --- */
  .so-404 .headline { font-size: 4.5rem; }

  /* --- WCAG: minimum touch target sizes --- */
  .btn {
    min-height: 36px;
  }

  .nav-link {
    min-height: 44px;
  }

  /* --- Prevent horizontal overflow (WCAG 1.4.10 Reflow) --- */
  body {
    overflow-x: hidden;
  }
}
