* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #0f172a;
  color: #f8fafc;
}

.navbar {
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 1rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.badge {
  background-color: #0284c7;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
}

.main-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

.catalog-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.card-badge.in-stock {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.card-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-card .desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #334155;
  padding-top: 0.75rem;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.add-btn {
  background-color: #2563eb;
  color: white;
}

.disabled-btn {
  background-color: #475569;
  color: #94a3b8;
  cursor: not-allowed;
}

.copilot-drawer, .cart-drawer {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  max-width: 85%;
  line-height: 1.4;
}

.bot-msg {
  background-color: #334155;
  align-self: flex-start;
}

.user-msg {
  background-color: #2563eb;
  align-self: flex-end;
}

.action-chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.action-chips button {
  background: #334155;
  border: 1px solid #475569;
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  cursor: pointer;
}

.chat-input-bar {
  display: flex;
  gap: 0.5rem;
}

.chat-input-bar input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

.chat-input-bar button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #334155;
  font-size: 0.85rem;
}

.cart-item small {
  display: block;
  color: #94a3b8;
}

.remove-link {
  background: none;
  border: none;
  color: #f87171;
  font-size: 1.2rem;
  cursor: pointer;
}

.empty-msg {
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 2rem;
}

.cart-footer {
  border-top: 1px solid #334155;
  padding-top: 1rem;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.checkout-btn {
  width: 100%;
  background-color: #10b981;
  color: white;
  padding: 0.75rem;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
