* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8f9fa;
  overflow-x: hidden;
}

body.hidden-scroll {
  overflow: hidden;
}

/* ✅ Navbar */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 8px;
}

/* ✅ Scrollable category bar */
.scroll-menu {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.scroll-menu::-webkit-scrollbar {
  display: none;
}

.scroll-menu div {
  flex: 0 0 auto;
  background: #f1f1f1;
  border-radius: 5px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.3s;
}

.scroll-menu div:hover,
.scroll-menu div.active {
  background-color: #007bff;
  color: white;
}

/* ✅ Layout */
.container {
  display: flex;
  height: calc(100vh - 120px);
}

/* ✅ Products grid */
.products {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  overflow-y: scroll;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-card img {
  height: 100px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.product-card p {
  font-size: 13px;
  color: #666;
}

.product-card button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

.product-card button:hover {
  background: #0056b3;
}

/* ✅ Quote Section */
.quote {
  width: 300px;
  background: #f9f9f9;
  padding: 20px;
  border-left: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

#quoteItems {
  flex: 1;
  overflow-y: auto;
  font-size: 14px;
}

#quoteItems div {
  margin-bottom: 10px;
}

#whatsappBtn {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#whatsappBtn:hover {
  background: #1eb55f;
}

/* ✅ Mobile friendly */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .quote {
    width: 100%;
    border-left: none;
    border-top: 1px solid #ddd;
  }
}
.quote-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.remove-btn {
  background-color: red;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* 🔒 Admin / Overlay UI */
.hidden {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.overlay-content {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 12px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.overlay-content h2 {
  margin-bottom: 4px;
}

.overlay-subtitle {
  font-size: 13px;
  color: #777;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
}

.form-group input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.form-group select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
}

.overlay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.primary-btn,
.secondary-btn {
  border-radius: 6px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.primary-btn {
  background: #007bff;
  color: #fff;
}

.primary-btn:hover {
  background: #0056b3;
}

.secondary-btn {
  background: #f1f1f1;
  color: #333;
}

.secondary-btn:hover {
  background: #e0e0e0;
}

.secondary-btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.error-text {
  color: #d32f2f;
  font-size: 12px;
  min-height: 16px;
}

/* 🛠 Admin Panel */
.admin-panel {
  padding: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-header h2 {
  margin-bottom: 4px;
}

.admin-header p {
  font-size: 13px;
  color: #666;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}

.admin-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.admin-card h3 {
  margin-bottom: 10px;
}

.admin-product-list {
  list-style: none;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-left: 0;
  font-size: 14px;
}

.admin-product-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.admin-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.admin-product-info {
  flex: 1;
  font-size: 14px;
}

.admin-product-actions {
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.edit-btn {
  background: #007bff;
  color: white;
}

.edit-btn:hover {
  background: #0056b3;
}

.delete-btn {
  background: #dc3545;
  color: white;
}

.delete-btn:hover {
  background: #c82333;
}

.small-muted {
  font-size: 12px;
  color: #777;
}

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