/*
 * Theme bundle:
 * - Bootstrap stays while admin forms/tables still use Bootstrap classes.
 * - Bootstrap Icons stays while legacy admin actions still use `bi` icons.
 * - Project theme lives in `style.css`.
 *


 */

@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
/* Maile Moda Fitness theme */
:root {
  --maile-bg: #f9f9f9;
  --maile-surface: #ffffff;
  --maile-surface-low: #f4f3f3;
  --maile-surface-mid: #eeeeee;
  --maile-surface-high: #e8e8e8;
  --maile-text: #1a1c1c;
  --maile-muted: #3d4944;
  --maile-outline: #bccac2;
  --maile-outline-strong: #6d7a73;
  --maile-primary: #006c51;
  --maile-primary-bright: #43E1D2;
  --maile-primary-ink: #002117;
  --maile-error: #ba1a1a;
  --maile-error-bg: #ffdad6;
  --maile-error-ink: #93000a;
  --maile-warning-bg: #ffc37e;
  --maile-warning-ink: #794e14;
  --maile-shadow: 0 10px 30px rgba(35, 31, 32, 0.05);
}

html.dark {
  color-scheme: dark;
  --maile-bg: #101414;
  --maile-surface: #151b1a;
  --maile-surface-low: #202827;
  --maile-surface-mid: #202827;
  --maile-surface-high: #26302e;
  --maile-text: #f4f7f5;
  --maile-muted: #b9c8c1;
  --maile-outline: #40504b;
  --maile-outline-strong: #60736c;
  --maile-primary: #43E1D2;
  --maile-primary-bright: #43E1D2;
  --maile-primary-ink: #002117;
  --maile-error-bg: #5b1f1b;
  --maile-error-ink: #ffdad6;
  --maile-warning-bg: #5f3d18;
  --maile-warning-ink: #ffddb9;
  --maile-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--maile-bg);
  color: var(--maile-text);
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html.cart-open,
body.cart-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 700;
}

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

.material-symbols-outlined {
  line-height: 1;
}

.custom-shadow,
.login-card-shadow {
  box-shadow: var(--maile-shadow);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.public-nav-link.is-active {
  border-bottom: 2px solid #6DE3BA;
}

/* Tailwind token bridges */
html.dark body,
html.dark .bg-background,
html.dark .bg-surface {
  background-color: var(--maile-bg) !important;
  color: var(--maile-text) !important;
}

html.dark .bg-surface\/95 {
  background-color: rgba(16, 20, 20, 0.95) !important;
}

html.dark .bg-surface-container-lowest,
html.dark .card {
  background-color: var(--maile-surface) !important;
  color: var(--maile-text) !important;
}

html.dark .bg-surface-container-low,
html.dark .bg-surface-container,
html.dark .bg-surface-container-high,
html.dark .bg-surface-container-highest,
html.dark .table,
html.dark .form-control {
  background-color: var(--maile-surface-low) !important;
  color: var(--maile-text) !important;
}

html.dark .bg-surface-bright {
  background-color: var(--maile-surface-high) !important;
}

html.dark .text-on-surface,
html.dark .table,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: var(--maile-text) !important;
}

html.dark .text-on-surface-variant,
html.dark .text-secondary,
html.dark .text-muted,
html.dark .text-outline,
html.dark .text-outline-variant {
  color: var(--maile-muted) !important;
}

html.dark .border-outline-variant,
html.dark .border-outline,
html.dark .border,
html.dark .table,
html.dark .form-control {
  border-color: var(--maile-outline) !important;
}

html.dark .bg-primary-container {
  background-color: #1b7a60 !important;
}

html.dark .text-on-primary-container {
  color: #eafff7 !important;
}

html.dark .bg-on-secondary-fixed {
  background-color: #0f1715 !important;
}

html.dark .store-product-buy-button {
  background-color: #42E0D1 !important;
  color: #002117 !important;
}

html.dark .store-product-buy-button:hover {
  opacity: 1;
  filter: brightness(1.06);
}

html.dark .text-primary,
html.dark .hover\:text-primary:hover {
  color: var(--maile-primary-bright) !important;
}

html.dark .hover\:bg-surface-container-high:hover {
  background-color: #2b3633 !important;
}

html.dark .bg-error-container {
  background-color: var(--maile-error-bg) !important;
}

html.dark .text-on-error-container {
  color: var(--maile-error-ink) !important;
}

/* Bootstrap theme layer */
.card {
  border-color: var(--maile-outline);
  border-radius: 0.75rem;
}

.card table th {
  border-top-style: none;
}

.form-control {
  width: 100% !important;
  min-height: 2.45rem;
  border-color: var(--maile-outline);
  border-radius: 0.5rem;
}

.form-control:focus {
  border-color: var(--maile-primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 225, 210, 0.18);
}

.table {
  --bs-table-border-color: var(--maile-outline);
  margin-bottom: 0;
}

.table th,
.table td {
  vertical-align: middle;
}

.page-link {
  color: var(--maile-primary);
}

.page-item.active .page-link {
  background-color: var(--maile-primary);
  border-color: var(--maile-primary);
}

html.dark input,
html.dark select,
html.dark textarea {
  background-color: var(--maile-surface-low) !important;
  color: var(--maile-text) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #8fa19a !important;
}

html.dark .card {
  --bs-card-bg: var(--maile-surface);
  --bs-card-color: var(--maile-text);
  border-color: var(--maile-outline) !important;
}

html.dark .card-footer,
html.dark .bg-white,
html.dark .bg-light {
  background-color: var(--maile-surface) !important;
  border-color: var(--maile-outline) !important;
  color: var(--maile-muted) !important;
}

html.dark .table {
  --bs-table-bg: var(--maile-surface);
  --bs-table-color: var(--maile-text);
  --bs-table-border-color: var(--maile-outline);
  --bs-table-hover-bg: var(--maile-surface-low);
  --bs-table-hover-color: #ffffff;
}

html.dark .table thead th {
  background-color: var(--maile-surface-low) !important;
  border-color: var(--maile-outline) !important;
  color: #d9fff0 !important;
}

html.dark .table tbody td {
  background-color: var(--maile-surface) !important;
  border-color: var(--maile-outline) !important;
  color: var(--maile-text) !important;
}

html.dark .table-hover tbody tr:hover td,
html.dark tr.dark\:hover\:bg-\[\#202827\]:hover,
html.dark tr.dark\:hover\:bg-\[\#202827\]:hover td {
  background-color: var(--maile-surface-low) !important;
  color: var(--maile-text) !important;
}

html.dark .btn-light,
html.dark .btn-outline-secondary,
html.dark .page-link {
  background-color: var(--maile-surface-low) !important;
  border-color: var(--maile-outline) !important;
  color: #d9fff0 !important;
}

html.dark .btn-light:hover,
html.dark .btn-outline-secondary:hover,
html.dark .page-link:hover {
  background-color: var(--maile-surface-high) !important;
  border-color: var(--maile-primary-bright) !important;
  color: var(--maile-primary-bright) !important;
}

html.dark .page-item.disabled .page-link {
  background-color: var(--maile-surface-low) !important;
  border-color: var(--maile-outline) !important;
  color: #6f8179 !important;
}

html.dark .text-bg-light,
html.dark .badge.bg-light,
html.dark .badge.text-bg-light {
  background-color: var(--maile-surface-high) !important;
  border-color: var(--maile-primary-bright) !important;
  color: #d9fff0 !important;
}

html.dark .text-dark {
  color: #d9fff0 !important;
}

/* Admin shell */
.admin-sidebar {
  transition: transform 0.2s ease;
}

.admin-main {
  transition: margin-left 0.2s ease;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(188, 202, 194, 0.45);
}

.info-row:last-child {
  border-bottom: 0;
}

.financial-entry-card {
  padding: 1rem;
  border: 1px solid var(--maile-outline);
  border-radius: 0.75rem;
  background: var(--maile-surface);
  box-shadow: var(--maile-shadow);
}

.variant-row {
  background-color: var(--maile-surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.variant-row:hover {
  border-color: var(--maile-primary-bright) !important;
}

.variant-sku-input,
input[readonly].bg-light {
  color: var(--maile-muted);
}

html.dark .variant-row {
  background-color: var(--maile-surface) !important;
  border-color: var(--maile-outline) !important;
  color: var(--maile-text) !important;
}

html.dark .variant-sku-input,
html.dark input[readonly].bg-light,
html.dark .form-control-color {
  background-color: var(--maile-surface-high) !important;
  border-color: var(--maile-outline) !important;
  color: var(--maile-muted) !important;
}

/* Store catalog */
#cardapio {
  scroll-margin-top: 7rem;
}

.catalog-category-strip {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  background: transparent;
}

.catalog-category-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-category-title {
  margin: 0;
  color: var(--maile-text);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.catalog-category-title-line {
  width: 2.65rem;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--maile-primary-bright);
}

.catalog-category-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--maile-surface-low);
  color: #00513d;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-category-clear:hover {
  background: rgba(67, 225, 210, 0.22);
  color: var(--maile-primary-ink);
  text-decoration: none;
}

.catalog-category-scroll-wrap {
  position: relative;
  min-width: 0;
}

.catalog-category-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 2.5rem;
  background: linear-gradient(270deg, var(--maile-bg) 8%, rgba(249, 249, 249, 0));
  pointer-events: none;
}

.catalog-category-scroll {
  display: flex;
  gap: 0.85rem;
  padding: 0.05rem 2rem 0.15rem 0;
  overflow-x: auto;
  scroll-padding-inline: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-category-scroll::-webkit-scrollbar {
  display: none;
}

.catalog-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  min-height: 2.1rem;
  flex: 0 0 auto;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--maile-surface-low);
  color: var(--maile-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  scroll-snap-align: start;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.catalog-category-chip:hover {
  background: rgba(67, 225, 210, 0.22);
  color: var(--maile-primary-ink);
  text-decoration: none;
}

.catalog-category-chip.is-active {
  background: var(--maile-primary-bright);
  color: var(--maile-primary-ink);
}

.catalog-frame {
  transition: opacity 0.16s ease;
}

.catalog-frame[busy] {
  opacity: 0.64;
}

html.dark .catalog-category-clear,
html.dark .catalog-category-chip {
  background: var(--maile-surface-low);
  color: #d7e4df;
}

html.dark .catalog-category-clear:hover,
html.dark .catalog-category-chip:hover {
  background: var(--maile-surface-high);
  color: #ffffff;
}

html.dark .catalog-category-scroll-wrap::after {
  background: linear-gradient(270deg, var(--maile-bg) 8%, rgba(16, 20, 20, 0));
}

html.dark .catalog-category-chip.is-active {
  background: var(--maile-primary-bright);
  color: var(--maile-primary-ink);
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding-top: 0.25rem;
}

.catalog-pagination-link,
.catalog-pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--maile-muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-pagination-link {
  background: var(--maile-surface-mid);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.catalog-pagination-link:hover {
  background: var(--maile-surface-high);
  color: var(--maile-text);
  text-decoration: none;
}

.catalog-pagination-link.is-active {
  background: var(--maile-primary);
  color: #ffffff;
}

.catalog-pagination-link.is-disabled {
  color: #8a9792;
  opacity: 0.55;
}

.catalog-pagination-arrow .material-symbols-outlined {
  font-size: 1.3rem;
}

.catalog-pagination-gap {
  color: var(--maile-outline-strong);
}

html.dark .catalog-pagination-link {
  background: var(--maile-surface-low);
  color: #d7e4df;
}

html.dark .catalog-pagination-link:hover {
  background: var(--maile-surface-high);
  color: #ffffff;
}

html.dark .catalog-pagination-link.is-active {
  background: #1b7a60;
  color: #eafff7;
}

.store-product-info {
  min-height: 108px;
}

.store-product-info h3,
.store-product-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.store-product-info h3 {
  -webkit-line-clamp: 2;
}

.store-product-info p {
  -webkit-line-clamp: 2;
}

.store-product-purchase {
  margin-top: 1rem;
}

/* Product detail */
.product-detail-main-media,
.product-detail-thumb-media {
  position: relative;
  aspect-ratio: 4 / 5;
}

.product-image-zoom-button {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(26, 28, 28, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.product-image-zoom-button:hover {
  background: rgba(0, 108, 81, 0.88);
  transform: scale(1.04);
}

.product-image-zoom-dialog {
  width: min(94vw, 1040px);
  max-width: min(94vw, 1040px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-image-zoom-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.product-image-zoom-dialog img {
  display: block;
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  background: #101414;
}

.product-image-zoom-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(26, 28, 28, 0.86);
  color: #fff;
}

.product-detail-quantity-control {
  min-height: 3.5rem;
}

.product-detail-quantity-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  line-height: 1;
}

.product-detail-quantity-control .material-symbols-outlined {
  display: block;
  line-height: 1;
}

.variant-color-btn {
  position: relative;
  outline: 0;
}

.variant-color-btn.is-selected {
  border-color: var(--maile-primary) !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--maile-primary-bright) !important;
}

.variant-size-btn {
  min-height: 3.25rem;
  border-color: var(--maile-outline);
  background-color: transparent;
  color: var(--maile-text);
}

.variant-size-btn:hover:not(:disabled) {
  border-color: var(--maile-primary);
  background-color: rgba(67, 225, 210, 0.12);
}

.variant-size-btn.is-selected {
  border-color: var(--maile-primary);
  background-color: var(--maile-primary-bright);
  color: var(--maile-primary-ink);
  box-shadow: inset 0 0 0 1px rgba(0, 33, 23, 0.28), 0 8px 20px rgba(0, 108, 81, 0.18);
}

.variant-size-btn.is-unavailable {
  opacity: 0.42;
  text-decoration: line-through;
}

html.dark .variant-color-btn {
  border-color: var(--maile-outline-strong) !important;
  box-shadow: 0 0 0 1px rgba(16, 20, 20, 0.9), 0 6px 16px rgba(0, 0, 0, 0.34) !important;
}

html.dark .variant-color-btn.is-selected {
  border-color: #eafff7 !important;
  box-shadow: 0 0 0 3px #101414, 0 0 0 6px var(--maile-primary-bright), 0 0 20px rgba(67, 225, 210, 0.5) !important;
}

html.dark .variant-size-btn {
  border-color: var(--maile-outline-strong);
  background-color: var(--maile-surface);
  color: #eafff7;
}

html.dark .variant-size-btn:hover:not(:disabled) {
  border-color: var(--maile-primary-bright);
  background-color: var(--maile-surface-low);
}

html.dark .variant-size-btn.is-selected {
  border-color: #d9fff0;
  background-color: var(--maile-primary-bright);
  color: var(--maile-primary-ink);
  box-shadow: inset 0 0 0 2px rgba(0, 33, 23, 0.35), 0 0 0 3px rgba(67, 225, 210, 0.28);
}

html.dark .variant-size-btn.is-unavailable {
  border-color: var(--maile-outline);
  color: #7f928a;
}

/* Cart and checkout */
.cart-overlay {
  display: flex;
  justify-content: flex-end;
  background: rgba(26, 28, 28, 0.24);
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.checkout-desktop-chrome {
  position: relative;
  z-index: 2;
  display: none;
}

.cart-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100vw, 390px);
  min-height: 100vh;
  max-height: 100vh;
  margin-left: auto;
  flex-direction: column;
  padding: 1rem 1.25rem;
  overflow: hidden;
  background: #ffffff;
  color: #1a1c1c;
  box-shadow: -18px 0 44px rgba(26, 28, 28, 0.18);
}

.checkout-expanded {
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(249, 249, 249, 0.96), rgba(238, 251, 249, 0.94)),
    rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(16px);
}

.checkout-expanded .cart-panel {
  width: min(100%, 1280px);
  max-height: none;
  min-height: 100vh;
  margin-inline: auto;
  padding: 3rem 1.5rem;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.cart-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.checkout-expanded .cart-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 2rem;
  align-items: start;
}

.checkout-expanded #checkoutForm,
.checkout-expanded #checkoutSummary {
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.checkout-expanded .cart-panel-header {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(188, 202, 194, 0.75);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(0, 33, 23, 0.08);
}

.cart-title {
  margin: 0;
  color: #1a1c1c;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.cart-subtitle {
  display: none;
  margin: 0.2rem 0 0;
  color: #3d4944;
  font-size: 0.95rem;
}

.checkout-expanded .cart-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.checkout-expanded .cart-subtitle {
  display: block;
}

.cart-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1a1c1c;
}

.cart-panel-close:hover {
  background: #f4f3f3;
}

.cart-form-card {
  border: 1px solid rgba(188, 202, 194, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(0, 33, 23, 0.06);
}

.cart-section-title {
  color: #1a1c1c;
}

.cart-summary-panel {
  display: flex;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  background: #ffffff;
  color: #1a1c1c;
}

.checkout-expanded .cart-summary-panel {
  position: sticky;
  top: 88px;
  padding: 1.35rem;
  border: 1px solid rgba(0, 108, 81, 0.14);
  border-radius: 0.75rem;
  box-shadow: 0 22px 54px rgba(0, 33, 23, 0.12);
}

.cart-summary-head {
  display: none;
}

.cart-summary-head > .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--maile-primary-bright);
  color: var(--maile-primary-ink);
}

.cart-summary-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--maile-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cart-summary-items {
  flex: 1;
  min-height: 240px;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-color: rgba(0, 108, 81, 0.26) transparent;
  scrollbar-width: thin;
}

.checkout-expanded .cart-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(188, 202, 194, 0.72);
}

.checkout-expanded .cart-summary-items {
  max-height: none;
  min-height: 0;
  margin-bottom: 1.5rem;
  overflow: visible;
}

.cart-line-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 0;
}

.cart-line-item + .cart-line-item {
  border-top: 1px solid #eeeeee;
}

.cart-line-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 72px;
  overflow: hidden;
  border-radius: 0.25rem;
  background: rgba(67, 225, 210, 0.12);
  color: var(--maile-primary);
  object-fit: cover;
}

.cart-line-info {
  min-width: 0;
}

.cart-line-name {
  margin: 0;
  padding-right: 1rem;
  color: #1a1c1c;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-line-meta {
  min-height: 1rem;
  margin: 0.25rem 0 0.7rem;
  color: #6d7a73;
  font-size: 0.68rem;
  line-height: 1.2;
}

.cart-line-price,
.cart-accent-text {
  color: #1a1c1c;
}

.cart-line-quantity {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  width: 5.7rem;
  height: 2rem;
  border: 1px solid #eeeeee;
  border-radius: 0.25rem;
  background: #ffffff;
  color: #1a1c1c;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.cart-line-quantity button {
  height: 100%;
  border: 0;
  background: transparent;
  color: #6d7a73;
  font-weight: 700;
}

.cart-line-quantity button:hover {
  background: #f4f3f3;
  color: #1a1c1c;
}

.cart-line-quantity button:disabled {
  color: #bccac2;
  cursor: not-allowed;
}

.cart-line-quantity button:disabled:hover {
  background: transparent;
  color: #bccac2;
}

.cart-line-remove {
  position: relative;
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6d7a73;
  cursor: pointer;
  pointer-events: auto;
}

.cart-line-remove:hover {
  background: #f4f3f3;
  color: #1a1c1c;
}

.cart-line-price {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.cart-total-box {
  margin-top: auto;
  margin-bottom: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eeeeee;
  color: #3d4944;
  font-size: 0.78rem;
  line-height: 1.8;
}

.cart-coupon-box {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eeeeee;
  line-height: 1.3;
}

.cart-coupon-box .form-control {
  min-height: 2.4rem;
}

.cart-coupon-button {
  min-height: 2.4rem;
  padding-inline: 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--maile-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-coupon-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cart-total-line {
  color: #1a1c1c;
  font-weight: 800;
}

.cart-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.cart-primary-action:hover {
  background: #1a1c1c;
}

.cart-primary-action .material-symbols-outlined {
  display: none;
}

.checkout-expanded .cart-primary-action .material-symbols-outlined {
  display: inline-flex;
}

.cart-secondary-action {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.85rem;
  border: 1px solid #1a1c1c;
  border-radius: 999px;
  background: transparent;
  color: #1a1c1c;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-secondary-action:hover {
  background: #f4f3f3;
}

.cart-action-helper {
  color: #6d7a73;
  margin-top: 0.9rem;
}

.cart-empty-state {
  border: 1px dashed rgba(0, 108, 81, 0.28);
  border-radius: 0.8rem;
  background: rgba(67, 225, 210, 0.08);
  color: #3d4944;
}

.cart-empty-state .material-symbols-outlined {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--maile-primary);
}

.cart-empty-state strong {
  color: #1a1c1c;
}

.cart-empty-state small {
  color: #6d7a73;
}

html.dark .cart-overlay {
  background: rgba(0, 0, 0, 0.42);
}

html.dark .checkout-expanded {
  background:
    linear-gradient(135deg, rgba(16, 20, 20, 0.96), rgba(20, 37, 34, 0.94)),
    rgba(16, 20, 20, 0.95);
}

html.dark .cart-panel-header,
html.dark .cart-form-card,
html.dark .cart-summary-panel {
  border-color: rgba(64, 80, 75, 0.82);
  background: var(--maile-surface);
  color: var(--maile-text);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

html.dark .cart-panel {
  background: var(--maile-surface);
  color: var(--maile-text);
}

html.dark .checkout-expanded .cart-panel {
  background: transparent;
}

html.dark .cart-title,
html.dark .cart-section-title,
html.dark .cart-summary-head h2,
html.dark .cart-line-name,
html.dark .cart-total-line,
html.dark .cart-empty-state strong {
  color: var(--maile-text);
}

html.dark .cart-subtitle,
html.dark .cart-line-meta,
html.dark .cart-total-box,
html.dark .cart-action-helper,
html.dark .cart-empty-state,
html.dark .cart-empty-state small {
  color: var(--maile-muted);
}

html.dark .cart-summary-kicker,
html.dark .cart-line-price,
html.dark .cart-accent-text {
  color: var(--maile-primary-bright);
}

html.dark .cart-panel-close,
html.dark .cart-line-remove {
  border-color: rgba(67, 225, 210, 0.24);
  background: rgba(67, 225, 210, 0.1);
  color: var(--maile-primary-bright);
}

html.dark .cart-panel-close:hover,
html.dark .cart-line-remove:hover,
html.dark .cart-secondary-action:hover,
html.dark .cart-line-quantity button:hover {
  background: var(--maile-surface-low);
  color: #ffffff;
}

html.dark .cart-summary-head,
html.dark .cart-total-box,
html.dark .cart-coupon-box,
html.dark .cart-total-line,
html.dark .cart-line-item {
  border-color: rgba(64, 80, 75, 0.82);
}

html.dark .cart-line-thumb,
html.dark .cart-empty-state {
  background: rgba(67, 225, 210, 0.08);
  color: var(--maile-primary-bright);
}

html.dark .cart-line-quantity {
  border-color: rgba(67, 225, 210, 0.18);
  background: var(--maile-surface);
  color: var(--maile-text);
}

html.dark .cart-primary-action {
  background: var(--maile-text);
  color: var(--maile-surface);
}

html.dark .cart-coupon-button {
  background: var(--maile-primary-bright);
  color: var(--maile-primary-ink);
}

html.dark .cart-secondary-action {
  border-color: rgba(67, 225, 210, 0.2);
  color: var(--maile-primary-bright);
}

html.dark .cart-secondary-action:hover {
  background: rgba(67, 225, 210, 0.1);
}

/* Responsive */
@media (min-width: 1024px) {
  .product-detail-main-media {
    max-height: min(78vh, 760px);
  }

  .checkout-expanded .checkout-desktop-chrome {
    display: block;
  }
}

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

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

  .admin-main {
    margin-left: 0 !important;
  }

  .checkout-expanded .cart-panel {
    padding: 1rem;
  }

  .checkout-expanded .cart-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .checkout-expanded .cart-summary-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .catalog-category-strip {
    margin-inline: 0;
    padding: 0;
  }

  .catalog-category-heading {
    align-items: center;
  }

  .catalog-category-title {
    font-size: 1.18rem;
  }

  .catalog-category-scroll {
    gap: 0.5rem;
  }

  .catalog-category-chip {
    min-width: 5.8rem;
    min-height: 1.9rem;
    padding-inline: 0.85rem;
    font-size: 0.68rem;
  }

  .store-product-grid {
    align-items: stretch;
  }

  .store-product-card {
    border-radius: 0.65rem;
  }

  .store-product-image {
    height: clamp(13.5rem, 56vw, 18rem);
  }

  .store-product-body {
    padding: 0.7rem;
  }

  .store-product-body .text-label-sm {
    font-size: 0.65rem;
    line-height: 1rem;
  }

  .store-product-body h3 {
    display: -webkit-box;
    min-height: 2.35rem;
    margin-bottom: 0.35rem;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.18rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .store-product-body p {
    font-size: 0.78rem;
    line-height: 1.12rem;
  }

  .store-product-body > p {
    display: none;
  }

  .store-product-info p {
    display: none;
  }

  .store-product-purchase {
    margin-top: 0.75rem;
  }

  .store-product-body .text-headline-md {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .store-product-body .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .store-product-body a,
  .store-product-body button {
    min-height: 2.15rem;
    padding-block: 0.45rem;
    font-size: 0.7rem;
    line-height: 1rem;
  }

  .featured-store-card .text-headline-md {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .product-detail-gallery {
    display: flex !important;
    gap: 0.75rem;
    margin-inline: -8px;
    padding-inline: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-detail-gallery::-webkit-scrollbar {
    display: none;
  }

  .product-detail-main-media,
  .product-detail-thumb-media {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }

  .info-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .cart-total-box .flex,
  .cart-total-line {
    gap: 0.35rem;
  }
}
