/* order-base-retail.css — layout base para temas retail */
/* Scoped a body.th-base.th-retail */

*, *::before, *::after { box-sizing: border-box; }

body.th-retail {
  margin: 0;
  font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  background: var(--bg, #F7F8FA);
  color: var(--text, #1a1a1a);
  -webkit-font-smoothing: antialiased;
}

.th-retail .ng-cloak { display: none !important; }

.th-retail .th-loader {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg, #F7F8FA); z-index: 9999;
}
.th-retail .lds-ring { display: inline-block; position: relative; width: 64px; height: 64px; }
.th-retail .lds-ring div {
  box-sizing: border-box; display: block; position: absolute; width: 51px; height: 51px;
  margin: 6px; border: 6px solid var(--accent, #1565C0); border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--accent, #1565C0) transparent transparent transparent;
}
.th-retail .lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.th-retail .lds-ring div:nth-child(2) { animation-delay: -0.30s; }
.th-retail .lds-ring div:nth-child(3) { animation-delay: -0.15s; }
@keyframes lds-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.th-retail .th-shell {
  display: flex; flex-direction: column; min-height: 100vh;
}

/* NAVBAR */
.th-retail .th-navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navbar, #FFFFFF);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 12px 16px;
}
.th-retail .th-navbar__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  max-width: 1400px; margin: 0 auto;
}
.th-retail .th-navbar__title {
  margin: 0; font-size: 18px; font-weight: 700; cursor: pointer;
  color: var(--text, #1a1a1a); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
.th-retail .th-navbar__brand {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none; color: inherit; min-width: 0;
  padding: 0 4px;
  align-self: center;
}
.th-retail .th-navbar__logo { display: block; flex-shrink: 0; vertical-align: middle; }
.th-retail .th-navbar__logo--square { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.th-retail .th-navbar__logo--wide { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.th-retail .th-navbar__mesa { font-size: 14px; opacity: 0.75; white-space: nowrap; }
.th-retail .th-navbar__search {
  position: relative; max-width: 600px; width: 100%;
}
.th-retail .th-navbar__search input {
  width: 100%; padding: 10px 14px 10px 40px;
  border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius, 8px);
  background: var(--bg, #F7F8FA); font-size: 14px;
  font-family: inherit;
}
.th-retail .th-navbar__search input:focus {
  outline: none; border-color: var(--accent, #1565C0);
  background: #fff;
}
.th-retail .th-navbar__search .fa {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(0,0,0,0.4);
}
.th-retail .th-iconbtn {
  position: relative;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--text, #1a1a1a);
  padding: 8px;
}
.th-retail .th-iconbtn__count {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent, #1565C0); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.th-retail .th-iconbtn__count.is-pulse { animation: cart-pulse 0.4s ease; }
@keyframes cart-pulse {
  0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); }
}

.th-retail .th-navbar__badges {
  max-width: 1400px; margin: 8px auto 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.th-retail .th-badge {
  font-size: 12px; padding: 3px 8px; border-radius: 4px;
  background: rgba(0,0,0,0.06); color: var(--text, #1a1a1a);
}
.th-retail .th-badge--ok { background: #E8F5E9; color: #2E7D32; }

/* LAYOUT PRINCIPAL */
.th-retail .th-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  flex: 1;
  width: 100%;
}

/* SIDEBAR */
.th-retail .th-sidebar {
  position: sticky; top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--card, #FFFFFF);
  border-radius: var(--radius, 8px);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.th-retail .th-sidebar__close {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 22px; padding: 4px;
  position: absolute; top: 8px; right: 8px;
}
.th-retail .th-sidebar__title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: rgba(0,0,0,0.5); margin: 0 0 8px;
}
.th-retail .th-sidebar__block + .th-sidebar__block {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.th-retail .th-sidebar__list {
  list-style: none; margin: 0; padding: 0;
}
.th-retail .th-sidebar__item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 8px 10px; border-radius: 6px;
  font-size: 14px; color: var(--text, #1a1a1a);
  font-family: inherit;
}
.th-retail .th-sidebar__item:hover { background: rgba(0,0,0,0.04); }
.th-retail .th-sidebar__item.is-active {
  background: var(--accent, #1565C0); color: #fff; font-weight: 600;
}
.th-retail .th-sidebar__check {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; cursor: pointer;
  font-size: 14px;
}
.th-retail .th-sidebar__check input { margin: 0; cursor: pointer; }
.th-retail .th-sidebar__check:hover { background: rgba(0,0,0,0.04); border-radius: 6px; }

.th-retail .th-sidebar-backdrop { display: none; }

/* TOOLBAR */
.th-retail .th-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.th-retail .th-toolbar__count {
  font-size: 14px; color: rgba(0,0,0,0.6);
}
.th-retail .th-toolbar__count b { color: var(--text, #1a1a1a); }
.th-retail .th-toolbar__sort {
  padding: 8px 12px; border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius, 8px); background: #fff;
  font-size: 14px; cursor: pointer; font-family: inherit;
}
.th-retail .th-toolbar__filter-btn {
  display: none;
  padding: 8px 14px; border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius, 8px); background: #fff;
  font-size: 14px; cursor: pointer; font-family: inherit;
  align-items: center; gap: 6px;
}

/* GRID DE PRODUCTOS */
.th-retail .th-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.th-retail .th-grid__empty {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: rgba(0,0,0,0.5); font-size: 15px;
}
.th-retail .th-grid__loading {
  grid-column: 1 / -1;
  display: flex; justify-content: center; align-items: center;
  padding: 60px 20px;
}

/* CARD */
.th-retail .th-card {
  background: var(--card, #FFFFFF);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s, transform 0.15s;
}
.th-retail .th-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.th-retail .th-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
}
.th-retail .th-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.th-retail .th-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: #D32F2F; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 3px;
  letter-spacing: 0.5px;
}
.th-retail .th-card__body {
  padding: 12px; display: flex; flex-direction: column; flex: 1; gap: 6px;
}
.th-retail .th-card__name {
  font-size: 14px; line-height: 1.35; font-weight: 500;
  color: var(--text, #1a1a1a);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}
.th-retail .th-card__sku {
  font-size: 11px; color: rgba(0,0,0,0.5);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.th-retail .th-card__price {
  font-size: 18px; font-weight: 700;
  color: var(--accent, #1565C0);
  margin-top: auto;
}
.th-retail .th-card__add {
  width: 100%;
  padding: 10px;
  background: var(--accent, #1565C0); color: #fff;
  border: none; border-radius: var(--radius, 8px);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
}
.th-retail .th-card__add:hover { filter: brightness(0.92); }
.th-retail .th-card__add:disabled {
  background: rgba(0,0,0,0.12); cursor: not-allowed;
}

/* VER MÁS */
.th-retail .th-loadmore {
  display: flex; justify-content: center;
  padding: 24px 0;
}
.th-retail .th-loadmore__btn {
  padding: 12px 32px;
  border: 1px solid var(--accent, #1565C0);
  background: #fff; color: var(--accent, #1565C0);
  border-radius: var(--radius, 8px);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.th-retail .th-loadmore__btn:hover { background: var(--accent, #1565C0); color: #fff; }
.th-retail .th-loadmore__limit {
  text-align: center; padding: 16px;
  color: rgba(0,0,0,0.6); font-size: 14px;
  background: rgba(0,0,0,0.03); border-radius: var(--radius, 8px);
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .th-retail .th-layout {
    grid-template-columns: 1fr;
  }
  .th-retail .th-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px; max-height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 200;
    overflow-y: auto;
  }
  .th-retail .th-sidebar.is-open { transform: translateX(0); }
  .th-retail .th-sidebar__close { display: block; }
  .th-retail .th-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
  }
  .th-retail .th-sidebar-backdrop.is-open { display: block; }
  .th-retail .th-toolbar__filter-btn { display: inline-flex; }
  .th-retail .th-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 639px) {
  .th-retail .th-navbar { padding: 10px 12px; }
  .th-retail .th-navbar__title { font-size: 16px; max-width: 140px; }
  .th-retail .th-navbar__row { gap: 8px; }
  .th-retail .th-navbar__search input { padding: 8px 12px 8px 36px; font-size: 13px; }
  .th-retail .th-layout { padding: 12px 8px 80px; gap: 12px; }
  .th-retail .th-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .th-retail .th-card__body { padding: 10px; gap: 4px; }
  .th-retail .th-card__name { font-size: 13px; }
  .th-retail .th-card__price { font-size: 16px; }
  .th-retail .th-card__add { padding: 8px; font-size: 13px; }
}

/* SECCIONES (carrito, mispedidos, informacionpedido) */
.th-retail .th-section {
  max-width: 800px; margin: 0 auto;
  padding: 20px 16px 100px;
}
.th-retail .th-section h2 {
  font-size: 18px; margin: 24px 0 12px;
  color: var(--text, #1a1a1a);
}
.th-retail .th-section h2:first-child { margin-top: 0; }

.th-retail .tk-card {
  background: var(--card, #FFFFFF);
  border-radius: var(--radius, 8px);
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.th-retail .th-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius, 8px);
  font-size: 14px; font-family: inherit;
  background: #fff;
}
.th-retail .th-input:focus { outline: none; border-color: var(--accent, #1565C0); }
.th-retail textarea.th-input { min-height: 60px; resize: vertical; }

.th-retail .th-field { margin-bottom: 12px; }
.th-retail .th-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: rgba(0,0,0,0.7); margin-bottom: 4px;
}
.th-retail .th-grid--form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 639px) { .th-retail .th-grid--form { grid-template-columns: 1fr; } }

.th-retail .th-list { list-style: none; padding: 0; margin: 0; }
.th-retail .th-list li {
  padding: 6px 0; font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.th-retail .th-list li:last-child { border-bottom: none; }
.th-retail .th-muted { color: rgba(0,0,0,0.5); }
.th-retail .th-ok { color: #2E7D32; }

.th-retail .tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  background: var(--accent, #1565C0); color: #fff;
  border: none; border-radius: var(--radius, 8px);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.th-retail .tk-btn:hover { filter: brightness(0.92); }
.th-retail .tk-btn:disabled { background: rgba(0,0,0,0.12); cursor: not-allowed; }
.th-retail .tk-btn--ghost {
  background: transparent; color: var(--accent, #1565C0);
  border: 1px solid var(--accent, #1565C0);
}

.th-retail .th-cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
}
.th-retail .th-cart-item:last-child { border-bottom: none; }
.th-retail .th-cart-item__qty {
  font-weight: 700; min-width: 32px; text-align: center;
}
.th-retail .th-cart-item__name { flex: 1; }
.th-retail .th-cart-item__price { font-weight: 700; min-width: 90px; text-align: right; }
.th-retail .th-cart-item--editable .th-cart-item__main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.th-retail .th-cart-item__opcs { font-size: 12px; color: rgba(0,0,0,0.5); }
.th-retail .th-cart-item__edit {
  align-self: flex-start; background: none; border: none;
  color: var(--accent, #1565C0); font-size: 12px; cursor: pointer; padding: 0;
}
.th-retail .th-cart-item__del {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: rgba(0,0,0,0.4); padding: 0 8px;
}
.th-retail .th-cart-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius, 8px);
  overflow: hidden;
}
.th-retail .th-cart-stepper button {
  background: #fff; border: none; cursor: pointer;
  width: 28px; height: 28px; font-size: 16px;
}
.th-retail .th-cart-stepper button:hover { background: rgba(0,0,0,0.04); }
.th-retail .th-cart-stepper span { padding: 0 12px; font-weight: 600; }

.th-retail .th-total {
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 700;
  padding: 16px 0; margin-top: 8px;
  border-top: 2px solid rgba(0,0,0,0.08);
}

.th-retail .th-actions {
  display: flex; gap: 12px; margin-top: 16px;
}
.th-retail .th-actions .tk-btn { flex: 1; }
@media (max-width: 639px) {
  .th-retail .th-actions { flex-direction: column; }
}

.th-retail .th-alert {
  padding: 12px; border-radius: var(--radius, 8px);
  background: #E3F2FD; color: #1565C0; margin: 12px 0;
}
.th-retail .th-alert--err { background: #FFEBEE; color: #C62828; }
.th-retail .th-success { text-align: center; padding: 40px 16px; }

.th-retail .th-promo {
  display: flex; justify-content: space-between;
  padding: 8px 12px; background: #FFF3E0;
  border-radius: 6px; margin-bottom: 6px;
  font-size: 14px;
}

/* Cartbar sticky bottom */
.th-retail .th-cartbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card, #FFFFFF);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 12px 16px;
  z-index: 90;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.th-retail .th-cartbar__btn {
  width: 100%; max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.th-retail .th-cartbar__count {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}

/* FAB */
.th-retail .th-fab {
  position: fixed; bottom: 80px; right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  z-index: 80;
}
.th-retail .th-fab--alt { bottom: 144px; background: var(--accent, #1565C0); }

/* Footer */
.th-retail .th-footer {
  text-align: center; padding: 20px;
  font-size: 12px; color: rgba(0,0,0,0.5);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.th-retail .th-footer img { vertical-align: middle; }
.th-retail .th-footer a { color: inherit; text-decoration: none; }

/* Timeline (informacionpedido) */
.th-retail .th-timeline {
  list-style: none; padding: 0; margin: 16px 0;
  display: flex; justify-content: space-between;
  position: relative;
}
.th-retail .th-timeline::before {
  content: ''; position: absolute;
  top: 16px; left: 16px; right: 16px;
  height: 2px; background: rgba(0,0,0,0.1);
  z-index: 0;
}
.th-retail .th-timeline__step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative; z-index: 1; flex: 1;
}
.th-retail .th-timeline__dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(0,0,0,0.4);
}
.th-retail .th-timeline__step.is-done .th-timeline__dot {
  background: var(--accent, #1565C0); border-color: var(--accent, #1565C0); color: #fff;
}
.th-retail .th-timeline__step.is-active .th-timeline__dot {
  border-color: var(--accent, #1565C0); color: var(--accent, #1565C0);
  animation: tl-pulse 1.4s ease-in-out infinite;
}
@keyframes tl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.4); } 50% { box-shadow: 0 0 0 8px rgba(21, 101, 192, 0); } }
.th-retail .th-timeline__label { font-size: 11px; color: rgba(0,0,0,0.6); }
.th-retail .th-timeline--rechazado .th-timeline__dot { border-color: #C62828; color: #C62828; }
.th-retail .th-rechazado { color: #C62828; font-weight: 600; }
.th-retail .th-enviado { color: #2E7D32; font-weight: 600; }

.th-retail .th-pedido {
  display: flex; justify-content: space-between; align-items: center;
}

/* BOTTOM SHEET DE OPCIONALES */
.th-retail .th-sheet {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
  animation: th-sheet-fade 200ms ease-out;
}
@keyframes th-sheet-fade { from { opacity: 0 } to { opacity: 1 } }
.th-retail .th-sheet__panel {
  width: 100%; max-width: 520px;
  background: var(--card, #FFFFFF); color: var(--text);
  border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
  animation: th-sheet-slide 280ms cubic-bezier(.22,1,.36,1);
}
@keyframes th-sheet-slide { from { transform: translateY(100%) } to { transform: translateY(0) } }
@media (min-width: 768px) {
  .th-retail .th-sheet { align-items: center; }
  .th-retail .th-sheet__panel { border-radius: var(--radius, 8px); max-height: 80vh; }
}
.th-retail .th-sheet__header { position: relative; padding: 16px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.th-retail .th-sheet__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(0,0,0,0.06); border: none; color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.th-retail .th-sheet__close:hover { background: rgba(0,0,0,0.12); }
.th-retail .th-sheet__img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.th-retail .th-sheet__title { margin: 0 0 4px; font-size: 18px; font-weight: 600; padding-right: 36px; color: var(--text); }
.th-retail .th-sheet__desc { margin: 0 0 8px; color: rgba(0,0,0,0.55); font-size: 13px; line-height: 1.4; }
.th-retail .th-sheet__price { font-size: 16px; color: var(--accent); font-weight: 700; }
.th-retail .th-sheet__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.th-retail .th-sheet__group { padding: 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.th-retail .th-sheet__group:last-child { border-bottom: none; }
.th-retail .th-sheet__group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.th-retail .th-sheet__group-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.th-retail .th-sheet__group-hint { display: block; font-size: 12px; color: rgba(0,0,0,0.5); margin-top: 2px; }
.th-retail .th-sheet__group-progress { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.5); white-space: nowrap; font-weight: 600; }
.th-retail .th-sheet__group-progress.is-ok { background: rgba(46,125,50,0.12); color: #2E7D32; }
.th-retail .th-sheet__group-progress.is-required { background: rgba(245,158,11,0.12); color: #b45309; }
.th-retail .th-sheet__options { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.th-retail .th-sheet__options li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; background: var(--card); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.th-retail .th-sheet__options li:hover { border-color: var(--accent); }
.th-retail .th-sheet__options li.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.th-retail .th-sheet__opt-name { flex: 1; font-size: 14px; color: var(--text); }
.th-retail .th-sheet__opt-price { font-size: 13px; color: rgba(0,0,0,0.5); white-space: nowrap; font-weight: 600; }
.th-retail .th-sheet__radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid rgba(0,0,0,0.2); flex-shrink: 0; position: relative; transition: all 0.15s; }
.th-retail .th-sheet__options li.is-selected .th-sheet__radio { border-color: var(--accent); background: var(--accent); }
.th-retail .th-sheet__options li.is-selected .th-sheet__radio::after { content: ''; position: absolute; inset: 4px; background: var(--card); border-radius: 999px; }
.th-retail .th-sheet__stepper { cursor: default; }
.th-retail .th-sheet__stepper input { width: 28px; }
.th-retail .th-sheet__error { margin: 0 16px 16px; padding: 12px 16px; background: rgba(220,38,38,0.1); color: #991b1b; border-radius: 8px; white-space: pre-line; font-size: 13px; }
.th-retail .th-sheet__footer { display: flex; gap: 12px; align-items: center; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(0,0,0,0.08); background: var(--card); }
.th-retail .th-sheet__qty { flex-shrink: 0; }
.th-retail .th-sheet__confirm { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 15px; }
.th-retail .th-sheet__confirm b { font-weight: 700; }
.th-retail .th-stepper { display: inline-flex; align-items: center; border: 1px solid rgba(0,0,0,0.12); border-radius: 8px; overflow: hidden; background: var(--card); }
.th-retail .th-stepper button { background: var(--card); border: none; cursor: pointer; width: 32px; height: 32px; font-size: 16px; color: var(--text); }
.th-retail .th-stepper button:hover:not(:disabled) { background: rgba(0,0,0,0.04); }
.th-retail .th-stepper input { width: 36px; text-align: center; border: none; font-size: 14px; font-weight: 600; color: var(--text); background: transparent; outline: none; -moz-appearance: textfield; }
.th-retail .th-stepper input::-webkit-outer-spin-button,
.th-retail .th-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
