/* ============================================================================
   pos-skin.css — brings POS and Repartidor into the same visual language as the
   storefront, login and panel.

   pos.css was written in a different idiom: gold radial washes on the body, a
   grid overlay, linear-gradient tiles and buttons, drop shadows. The rest of the
   product is FLAT — #0a0a0a surfaces, thin gold outlines, square corners. This
   file flattens the difference without unpicking pos.css.

   Loaded LAST on pos.html and driver.html, after theme.css. Add POS look-and-feel
   here; do not edit pos.css for theming.
   ========================================================================== */

/* ---------- surfaces: no washes, no gradients ---------- */
body.pos-running,
body.store-body,
.pos-shell,
.pos-main {
  background: var(--bg-dark) !important;
  background-image: none !important;
}
/* the faint gold grid overlay pos.css paints over the shell */
.pos-shell::before,
.pos-shell::after,
.pos-main::before {
  display: none !important;
}

.pos-topbar {
  background: var(--bg-dark-2) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: none !important;
}

.pos-panel,
.pos-sheet,
.pos-cart-bar {
  background: var(--bg-dark-2) !important;
  background-image: none !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pos-cart-bar { border-left: none !important; border-right: none !important; border-bottom: none !important; }

/* ---------- tiles ---------- */
.pos-tile {
  background: var(--bg-dark-2) !important;
  background-image: none !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.pos-tile:hover {
  border-color: rgba(212, 175, 55, .5) !important;
  transform: translateY(-3px);
}
.pos-tile.category,
.pos-tile.product { background-image: none !important; }
.pos-tile-badge {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, .35) !important;
  border-radius: 0 !important;
  color: var(--accent-gold) !important;
  font-size: 11px; letter-spacing: .5px;
}
.pos-category-media,
.pos-product-media {
  background: var(--bg-dark-3) !important;
  border-radius: 0 !important;
}

/* ---------- buttons: solid gold primary, gold outline secondary ---------- */
.pos-btn {
  border-radius: 0 !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background-image: none !important;
  box-shadow: none !important;
  transition: all var(--transition-base);
}
.pos-btn.primary,
.pos-btn[data-pay="efectivo"] {
  background: var(--accent-gold) !important;
  color: var(--bg-dark) !important;
  border: 1px solid var(--accent-gold) !important;
}
.pos-btn.primary:hover:not(:disabled) {
  background: transparent !important;
  color: var(--accent-gold) !important;
}
.pos-btn.ghost,
.pos-btn.secondary {
  background: transparent !important;
  color: var(--accent-gold) !important;
  border: 1px solid rgba(212, 175, 55, .35) !important;
}
.pos-btn.ghost:hover:not(:disabled),
.pos-btn.secondary:hover:not(:disabled) {
  background: var(--accent-gold) !important;
  color: var(--bg-dark) !important;
  border-color: var(--accent-gold) !important;
}
.pos-btn.danger { color: #ff9d9d !important; border-color: rgba(220,80,80,.45) !important; background: transparent !important; }

.pos-qty-btn, .pos-cart-qty-btn, .pos-scan-btn {
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(212, 175, 55, .35) !important;
  color: var(--accent-gold) !important;
}

/* ---------- inputs ---------- */
.pos-search input, .pos-search, input[type="text"], input[type="search"],
input[type="number"], input[type="tel"], input[type="email"], select, textarea {
  background: var(--bg-dark) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  color: var(--text-primary) !important;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--accent-gold) !important;
}

/* ---------- headings ---------- */
.pos-panel-title { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: 1px; }
.pos-panel-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted);
}

/* ---------- brand ---------- */
.pos-topbar-logo {
  filter: none !important;          /* pos.css added a drop shadow */
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ---------- mobile: cajeros and drivers work off a phone ---------- */
@media (max-width: 820px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .pos-topbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px !important; }
  .pos-main { padding: 12px !important; }
  .pos-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; gap: 12px !important; }
  .pos-panel-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .pos-btn { min-height: 42px; }
  input, select, textarea { font-size: 16px !important; }  /* stop iOS zooming on focus */
  .pos-cart-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px !important; }
  .pos-sheet { width: 100% !important; max-width: 100% !important; max-height: 92vh; overflow-y: auto; }
}
