body {
  font-family: system-ui;
  margin: 0;
  background: #f8fafc; /* softer than grey */
}

/* HERO BANNER */

.hero-banner {
  width: 100%;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* CATEGORY TABS */

#category-nav {
  position: sticky;
  top: 110px;
  background: rgba(6, 95, 70, 0.9);
  backdrop-filter: blur(6px);
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}

.category-link {
  background: #10b981;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.category-link:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-link.active {
  background: #f59e0b;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* PRODUCTS */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  background: #f9fafb;
}

.product-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 6px;
  /*flex-grow: 1;*/
}

.product-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.product-price {
  color: #065f46;
  margin-bottom: 10px;
}

.product-card button {
  margin-top: auto;
  background: #10b981;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.product-card button:hover {
  background: #059669;
  transform: scale(1.03);
  /*transform: scale(1.02);*/
}

.customer-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.customer-section input,
.customer-section select {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* CART */

.cart-section {
  margin-top: 30px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* CART QUANTITY CONTROLS */

.cart-controls {
  display: flex;
  gap: 8px; /* space between buttons */
}

.cart-controls button {
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  min-width: 36px;
  transition: background 0.2s ease;
}

.cart-controls button:hover {
  background: #059669;
}

/* PLUS BUTTON */

.cart-controls button:first-child {
  background: #d1fae5;
}

.cart-controls button:first-child:hover {
  background: #86efac;
}

/* MINUS BUTTON */

.cart-controls button:last-child {
  background: #fee2e2;
}

.cart-controls button:last-child:hover {
  background: #fca5a5;
}

/* ORDER BUTTON */

.order-button {
  margin-top: 20px;
  background: #25d366;
  border: none;
  color: white;
  padding: 14px;
  font-size: 16px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.order-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* CART BUTTON */

#cart-button {
  position: fixed;
  bottom: 130px;
  right: 5px;
  background: #047857;
  color: white;
  padding: 14px 18px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 900;
}

#option-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background: white;
  padding: 20px;

  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25);

  max-height: 75vh;
  overflow-y: auto;

  animation: optionSlideUp 0.25s ease;

  z-index: 1001;
}

@keyframes optionSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

#option-list label {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px;
  margin-bottom: 8px;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  cursor: pointer;
  transition: all 0.15s ease;
}

/* hover effect */
#option-list label:hover {
  background: #f0fdf4;
  border-color: #22c55e;
}

/* radio styling */
#option-list input[type="radio"] {
  accent-color: #16a34a;
  transform: scale(1.2);
}

/* selected row (THIS is the key improvement) */
#option-list input[type="radio"]:checked {
  outline: 2px solid #16a34a;
}

#option-list label:has(input:checked) {
  background: #ecfdf5;
  border-color: #16a34a;
}

#confirm-option-btn {
  width: 100%;
  margin-top: 12px;

  padding: 14px;

  border: none;
  border-radius: 10px;

  background: #16a34a;
  color: white;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: background 0.15s ease;
}

#confirm-option-btn:hover {
  background: #15803d;
}

/* BANK DETAILS */

.bank-details {
  display: none;
  background: #fef9c3;
  border: 1px solid #fde68a;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
}

/* TOAST */

#toast {
  position: fixed;
  bottom: 160px;
  right: 20px;
  background: #16a34a;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  display: none;
  animation: toastSlide 0.3s ease;
  z-index: 1000;
}

@keyframes toastSlide {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* CART DRAWER */

#cart-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: 0.35s;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 999;
}

#cart-drawer.open {
  bottom: 0;
}

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

.drawer-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.drawer-total {
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

#floating-order-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom);
}

#floating-order-button button {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  border: none;
  border-radius: 14px;
  background: #16a34a;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

#floating-order-button button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* REQUIRED FIELD WARNING */

.field-warning {
  border: 2px solid #ef4444;
  background: #fef2f2;
}

#order-warning {
  text-align: center;
  font-size: 14px;
  color: #b91c1c;
  margin-bottom: 6px;
}

#place-order-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body {
  padding-bottom: 140px;
}

/* PRODUCT OPTIONS */

.product-options {
  margin-top: 10px;
}

.product-options label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

/* option button group */

.option-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* hide default radio */

.option-buttons input {
  display: none;
}

/* visual button */

.option-buttons span {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

/* hover */

.option-buttons span:hover {
  background: #ecfdf5;
  border-color: #22c55e;
}

/* selected */

.option-buttons input:checked + span {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

/* hover */

.option-group label:hover {
  background: #f9fafb;
}

/* selected */

.option-group input[type="radio"]:checked + span {
  font-weight: 600;
  color: #16a34a;
}

input:focus,
select:focus {
  outline: none;
  border: 1px solid #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

* {
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}
