/* ==========================================================================
   Torédo Finance Tracker - POS & Cart View
   ========================================================================== */

.pos-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.product-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.product-card-category {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-card-price {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-success);
}

/* Category Filter Pills */
.category-pills-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cat-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  touch-action: manipulation;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.cat-pill.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--color-primary);
  color: #a5b4fc;
  font-weight: 600;
}

/* POS Cart Panel */
.cart-items-container {
  min-height: 240px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.cart-item-info h4 {
  font-size: 13px;
  font-weight: 600;
}

.cart-item-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-summary-box {
  background: rgba(15, 23, 42, 0.8);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.line-total {
  font-size: 18px;
  color: var(--text-primary);
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
  margin-top: 12px;
  margin-bottom: 16px;
}

/* Empty POS Cart State */
.pos-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.8;
}

.empty-cart-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: grayscale(100%);
  opacity: 0.5;
}

.empty-cart-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-cart-subtext {
  font-size: 13px;
}
