/* GENERAL */
:root {
  --color-primary: #041c40;
  --color-primary-light: #123d7c;
  --color-accent: #fcdc31;
  --color-accent-hover: #ffffff;
  --color-button-text: #041c40;
  --color-text-light: #ffffff;
  --color-page-bg: #f7f9ff;
  --color-body-text: #24344d;
  --color-border-soft: rgba(4, 28, 64, 0.12);
  --shadow-soft: 0 10px 30px rgba(4, 28, 64, 0.12);
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

body {
  background: #f7f9ff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: #041c40;
  color: var(--color-body-text);
}

h1,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #041c40;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--color-primary);
}

p {
  margin-bottom: 24px;
  line-height: 1.9;
}

label {
  font-size: 16px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #0d6efd;
  /* Dies ist die Standardfarbe von Bootstrap für btn-primary */
  border-color: var(--color-accent);
  /* Passen Sie diese Werte entsprechend Ihrer spezifischen Farbeinstellung an */
}

.form-select:focus,
.form-control:focus {
  border: 1px solid var(--color-accent);
  border-radius: 5px;
  outline: 0px !important;
  -webkit-appearance: none;
  box-shadow: none !important;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
}

.m-signature-pad--body canvas {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 190px;
  border: 1px solid #CCCCCC;
}

/* TITLE */
#title-container {
  min-height: 460px;
  height: 100%;
  color: var(--color-text-light);
  background-color: var(--color-primary);
  text-align: center;
  padding: 105px 28px 28px 28px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
  -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
  -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
}

#title-container h2 {
  font-size: 45px;
  font-weight: 800;
  color: var(--color-text-light);
  padding: 0;
  margin-bottom: 0px;
}

#title-container h3 {
  font-size: 25px;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 0;
}

#title-container p {
  font-size: 13px;
  padding: 0 25px;
  line-height: 20px;
}

/* FORMS */
#qbox-container_form {
  background-repeat: repeat;
  position: relative;
  padding: 62px;
  min-height: 630px;
  box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
  -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
  -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
}

#steps-container {
  margin: auto;
  width: 500px;
  min-height: 420px;
  display: flex;
  vertical-align: middle;
  align-items: center;
}

.step {
  display: none;
}

.step h4 {
  margin: 0 0 26px 0;
  padding: 0;
  position: relative;
  font-weight: 500;
  font-size: 23px;
  font-size: 1.4375rem;
  line-height: 1.6;
}

button#prev-btn,
button#next-btn,
button#submit-btn {
  font-size: 17px;
  font-weight: bold;
  position: relative;
  width: 130px;
  height: 50px;
  background: var(--color-accent);
  margin: 0 auto;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  transition: color .3s;
  text-align: center;
  color: var(--color-text-light);
  border: 0;
  -webkit-border-bottom-right-radius: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -moz-border-radius-bottomright: 5px;
  -moz-border-radius-bottomleft: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

button#prev-btn:after,
button#next-btn:after,
button#submit-btn:after {
  position: absolute;
  top: 90%;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  z-index: -2;
  transition: transform .3s;
}

button#prev-btn:hover::after,
button#next-btn:hover::after,
button#submit-btn:hover::after {
  transform: translateY(-80%);
  transition: transform .3s;
}

.progress {
  border-radius: 0px !important;
}

.q__question {
  position: relative;
}

.q__question:not(:last-child) {
  margin-bottom: 10px;
}

.question__input {
  position: absolute;
  left: -9999px;
}

.question__label {
  position: relative;
  display: block;
  line-height: 40px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: var(--color-text-light);
  padding: 5px 20px 5px 50px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.question__label:hover {
  border-color: #DC3545;
}

.question__label:before,
.question__label:after {
  position: absolute;
  content: "";
}

.question__label:before {
  top: 12px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-text-light);
  box-shadow: inset 0 0 0 1px #ced4da;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
}

.question__input:checked+.question__label:before {
  background-color: #DC3545;
  box-shadow: 0 0 0 0;
}

.question__input:checked+.question__label:after {
  top: 22px;
  left: 18px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.form-check-input:checked,
.form-check-input:focus {
  background-color: var(--color-accent) !important;
  outline: none !important;
  border: none !important;
}

input:focus {
  outline: none;
}

#input-container {
  display: inline-block;
  box-shadow: none !important;
  margin-top: 36px !important;
}

label.form-check-label.radio-lb {
  margin-right: 15px;
}

#q-box__buttons {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  background: rgba(247, 249, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-top: 1px solid rgba(4, 28, 64, 0.08);
}

input[type="text"],
input[type="email"] {
  padding: 8px 14px;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border: 1px solid var(--color-accent);
  border-radius: 5px;
  outline: 0px !important;
  -webkit-appearance: none;
  box-shadow: none !important;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
}

.form-check-input:checked[type=radio],
.form-check-input:checked[type=radio]:hover,
.form-check-input:checked[type=radio]:focus,
.form-check-input:checked[type=radio]:active {
  border: none !important;
  -webkit-outline: 0px !important;
  box-shadow: none !important;
}

.form-check-input:focus,
input[type="radio"]:hover {
  box-shadow: none;
  cursor: pointer !important;
}

#success {
  display: none;
}

#success h4 {
  color: var(--color-primary);
}

.back-link {
  font-weight: 700;
  color: var(--color-primary-light);
  text-decoration: none;
  font-size: 18px;
}

.back-link:hover {
  color: var(--color-primary-light);
}

/* PRELOADER */
#preloader-wrapper {
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
}

#preloader {
  background-image: url();
  width: 120px;
  height: 119px;
  border-top-color: var(--color-text-light);
  border-radius: 100%;
  display: block;
  position: relative;
  top: 50%;
  left: 50%;
  margin: -75px 0 0 -75px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  z-index: 1001;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#preloader-wrapper .preloader-section {

  width: 51%;
  height: 100%;
  position: fixed;
  top: 0;
  background: #F7F9FF;
  z-index: 1000;
}

#preloader-wrapper .preloader-section.section-left {
  left: 0
}

#preloader-wrapper .preloader-section.section-right {
  right: 0;
}

.loaded #preloader-wrapper .preloader-section.section-left {
  transform: translateX(-100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader-wrapper .preloader-section.section-right {
  transform: translateX(100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader {
  opacity: 0;
  transition: all 0.3s ease-out;
}

.loaded #preloader-wrapper {
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s 1s ease-out;
}

/* MEDIA QUERIES */
@media (min-width: 990px) and (max-width: 1199px) {
  #title-container {
    padding: 80px 28px 28px 28px;
  }

  #steps-container {
    width: 85%;
  }
}

@media (max-width: 991px) {
  #title-container {
    padding: 30px;
    min-height: inherit;
  }
}

@media (max-width: 767px) {
  #qbox-container {
    padding: 30px;
  }

  #steps-container {
    width: 100%;
    min-height: 400px;
  }

  #title-container {
    padding-top: 50px;
  }
}

@media (max-width: 560px) {
  #qbox-container {
    padding: 40px;
  }

  #title-container {
    padding-top: 45px;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(252, 220, 49, 0.28);
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

#qbox-container_form {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-bottom: 120px;
}

#steps-container {
  width: 100%;
}

.step {
  width: 100%;
}

.progress {
  margin-bottom: 0 !important;
}

#admin-button,
#register-button,
#profile-button,
#logout-button {
  display: block;
  width: 100%;
}

.sidebar-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal-product-image {
  height: 320px;
  object-fit: cover;
}

.draggable-image {
  cursor: grab;
}

.draggable-image.dragging {
  opacity: 0.5;
}

#modalCalendarContainer .flatpickr-calendar {
  width: 100%;
  box-shadow: none;
  border: 1px solid #dee2e6;
}

#modalCalendarContainer .flatpickr-days,
#modalCalendarContainer .dayContainer {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.opening-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-button-text);
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 0;
  width: fit-content;
}

.opening-status-badge i {
  font-size: 1.1rem;
}

.category-btn {
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
}

.category-btn.active {
  background: var(--color-accent);
  color: var(--color-button-text);
  border-color: var(--color-text-light);
}

.category-btn.active,
.category-btn.active:hover,
.category-btn.active:focus {
  background-color: var(--color-accent) !important;
  color: #000000 !important;
  border-color: var(--color-accent) !important;
}

/* BRAND COLOR SYSTEM OVERRIDES */
.bg-primary {
  background-color: var(--color-primary) !important;
}

.text-primary,
.link-primary,
a.link-primary {
  color: var(--color-primary-light) !important;
}

.text-white,
aside .text-white,
aside a {
  color: var(--color-text-light) !important;
}

.btn-primary,
.btn-success,
button#prev-btn,
button#next-btn,
button#submit-btn {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
button#prev-btn:hover,
button#next-btn:hover,
button#submit-btn:hover {
  background-color: var(--color-accent-hover) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(252, 220, 49, 0.28) !important;
}

.btn-light {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
  font-weight: 700;
}

.btn-light:hover,
.btn-light:focus {
  background-color: var(--color-accent-hover) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
}

.btn-outline-primary {
  border-color: var(--color-primary-light) !important;
  color: var(--color-primary-light) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: var(--color-text-light) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light.active {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
}

.progress-bar.bg-primary,
.badge.bg-primary {
  background-color: var(--color-primary-light) !important;
}

.badge.bg-warning,
.alert-warning {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
}

.form-check-input:checked,
.form-check-input:focus {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

.form-select:focus,
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(252, 220, 49, 0.28) !important;
}

.product-card {
  border-color: var(--color-border-soft);
  border-radius: 18px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(252, 220, 49, 0.28);
}

.category-btn {
  color: var(--color-text-light);
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}

.category-btn:hover,
.category-btn.active,
.category-btn.active:hover,
.category-btn.active:focus {
  background-color: var(--color-accent) !important;
  color: var(--color-button-text) !important;
  border-color: var(--color-accent) !important;
}

.opening-status-badge {
  background: var(--color-accent);
  color: var(--color-button-text);
}

.modal-header {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.modal-header .modal-title {
  color: var(--color-text-light);
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 1;
}

.modal-header .btn-close:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.badge.bg-info,
.badge.bg-light {
  color: var(--color-primary);
}

.table thead {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.sidebar-brand {
  width: calc(100% + 3rem);
  margin-inline: -1.5rem;
}

.sidebar-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

aside {
  background: linear-gradient(180deg,
      #041c40 0%,
      #123d7c 100%) !important;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item-actions .btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.payment-card {
  border: 2px solid #dee2e6;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 14px;
}

.payment-card:hover {
  border-color: #f0c400;
  transform: translateY(-2px);
}

.payment-option-card input:checked+.payment-card {
  border-color: #f0c400;
  background: #fffdf2;
}

.payment-icon {
  font-size: 2rem;
  color: #0d2c66;
}

button#prev-btn,
button#next-btn,
button#submit-btn {
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(4, 28, 64, 0.12);
}

#success {
  width: 100%;
}

.success-screen {
  width: 100%;
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-card {
  width: 100%;
  max-width: none;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(4, 28, 64, 0.08);
  border-radius: 18px;
  padding: 42px;
  box-shadow: 0 18px 45px rgba(4, 28, 64, 0.10);
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #198754;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.success-card .alert {
  margin-bottom: 0;
}

.payment-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-option-card {
  position: relative;
  cursor: pointer;
}

.payment-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.payment-radio:checked+.payment-card {
  border: 2px solid #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

.payment-option-card>input[type="radio"] {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.payment-option-card {
  position: relative;
  cursor: pointer;
}

.payment-option-card>input[type="radio"]:checked+.payment-card {
  border-color: #f0c400 !important;
  background: #fffdf2 !important;
  box-shadow: 0 0 0 0.2rem rgba(252, 220, 49, 0.28) !important;
}

input[name="paymentMethod"] {
  position: fixed !important;
  top: -10000px !important;
  left: -10000px !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.payment-error-icon {
  background: #dc3545 !important;
}

.required-marker {
  color: #b52a39;
  margin-left: 2px;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.btn-brand-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
}

.btn-brand-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
}

.btn-brand-accent:hover,
.btn-brand-accent:focus {
  background: #ffe96a;
  border-color: #ffe96a;
  color: var(--color-primary);
}

.price-value {
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.price-muted {
  color: #6c757d;
  font-size: 0.92rem;
}

.checkout-summary {
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.checkout-summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.checkout-summary {
  background: #ffffff;
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(4, 28, 64, 0.08);
}

.summary-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.checkout-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.checkout-summary-row > span:not(.badge) {
  color: #5f6f89;
}

.checkout-summary-row strong {
  color: var(--color-primary);
  white-space: nowrap;
}

.checkout-summary-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--color-primary);
  font-size: 1.2rem;
}

.checkout-summary-total-row span,
.checkout-summary-total-row strong {
  font-weight: 800;
  color: var(--color-primary);
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-card-image-wrap {
  position: relative;
  background: #eef2f8;
}

.product-card-image-wrap img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0;
}

.product-card-image-wrap .availability-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  box-shadow: 0 6px 18px rgba(4, 28, 64, 0.16);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  flex: 1;
}

.product-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.product-card-description {
  color: #5f6f89;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card-price {
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.product-card-deposit {
  color: #6c757d;
  font-size: 0.85rem;
}

.admin-price-panel {
  background: #ffffff;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  padding: 14px;
}

.cash-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.cash-action-row:last-child {
  border-bottom: 0;
}

.cash-action-title {
  font-weight: 800;
  color: var(--color-primary);
}

.cash-action-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.cash-action-controls strong {
  color: var(--color-primary);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .checkout-summary-row {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .checkout-summary-row > strong {
    margin-left: auto;
    max-width: 100%;
  }

  .checkout-summary-row .badge {
    white-space: normal;
  }

  .cash-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cash-action-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Keep the legal entry separate from the sidebar navigation. */
aside { display: flex; flex-direction: column; }
.sidebar-legal { margin-top: auto; padding-top: 2rem; }
.sidebar-legal a, .legal-footer a { color: #fff; font-size: .8125rem; text-decoration: underline; text-underline-offset: .2em; }
.sidebar-legal a:hover, .legal-footer a:hover { color: #fff; }
.sidebar-legal a:focus-visible, .legal-footer a:focus-visible { outline: 2px solid #ffdf32; outline-offset: 4px; }
.legal-footer { background: #041c40; padding: 1rem 1.5rem; text-align: center; }

.product-editor-heading { margin-bottom: 1.5rem; }
.product-editor-heading h2 { font-size: 1.8rem; font-weight: 750; margin-bottom: .35rem; }
.product-editor-heading p, .product-optional { color: #5f6f89; }
.product-editor { background: #fff; border: 1px solid #dce3ef; border-radius: 14px; overflow: hidden; }
.product-editor-section { padding: 1.75rem; border-bottom: 1px solid #e2e8f1; }
.product-editor-section h3 { font-size: 1.25rem; font-weight: 750; margin: 0 0 1.4rem; padding-bottom: .85rem; border-bottom: 1px solid #e2e8f1; }
.product-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e2e8f1; margin-bottom: 1.4rem; }
.product-section-heading h3 { border: 0; margin: 0; }
.product-section-heading .form-check { flex-shrink: 0; }
.product-editor .form-control, .product-editor .form-select { min-height: 44px; }
.product-editor .form-label { font-size: .9rem; font-weight: 600; }
.product-editor .product-optional { font-weight: 400; font-size: .8rem; }
.product-editor .product-unit { flex: 0 0 80px; }
.product-editor input[readonly] { background: #f0f3f8; color: #637493; }
.product-photo-upload { padding: 1.5rem; border: 1px dashed #b5c7e4; border-radius: 8px; background: #f8faff; }
.product-photo-upload .bi { margin-right: .5rem; }
.product-editor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; padding: 1.5rem 1.75rem; }
.product-editor-actions .form-text { margin-right: auto; }
@media (max-width: 575px) {
  .product-editor-section, .product-editor-actions { padding: 1.1rem; }
  .product-section-heading { flex-wrap: wrap; padding-bottom: .8rem; }
  .product-section-heading h3 { padding-bottom: 0; }
  .product-editor-actions .btn { width: 100%; }
}

.backend-page #qbox-container_form { padding: 0; }
.product-editor .form-check-input:not(:checked) { background-color: #fff; border-color: #bac5d5; }
@media (max-width: 575px) {
  .backend-page main { padding: 1rem !important; }
}

/* Readable text and keyboard focus across light content and dark navigation. */
.alert code { color: inherit; }
.text-danger { color: #b52a39 !important; }
.text-warning { color: #806000 !important; }
:where(a, button, input, select, textarea):focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 2px solid var(--color-primary-light) !important;
  outline-offset: 3px;
}
aside :where(a, button):focus-visible,
.modal-header button:focus-visible { outline-color: #fff !important; }
.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23041c40' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23041c40'/%3e%3c/svg%3e");
}
