:root {
  --cream: #F2FBFA;
  --cream-light: #FFFFFF;
  --brown: #0ABAB5;
  --brown-dark: #0E4F4C;
  --brown-light: #6FA9A6;
  --sage: #0ABAB5;
  --sage-dark: #089E9A;
  --gold: #E3B04B;
  --text: #1E3835;
  --border: #D7ECEA;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(10, 186, 181, 0.12);
  --max-w: 480px;
  --whatsapp: #25D366;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
}

body {
  padding-bottom: 90px;
}

img { max-width: 100%; display: block; }

button, input, textarea {
  font-family: inherit;
}

/* ===== Header ===== */
.topbar {
  background: var(--cream-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.logo { width: 48px; height: 48px; border-radius: 50%; }
.brand h1 { margin: 0; font-size: 19px; color: var(--brown-dark); }
.brand p { margin: 2px 0 0; font-size: 12.5px; color: var(--brown-light); }

/* ===== Hero ===== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px;
}
.hero-box-img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 14px;
  display: block;
}
.hero p {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--brown-dark);
}

/* ===== Products ===== */
.products-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 16px 20px;
}
.section-title {
  font-size: 17px;
  color: var(--brown-dark);
  margin: 10px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.section-title span {
  font-size: 12px;
  font-weight: 400;
  color: var(--brown-light);
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card-img-wrap {
  position: relative;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream);
}
.temp-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: #E3A73F;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.product-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-dark);
}
.product-card-price {
  font-size: 13px;
  color: var(--sage-dark);
  font-weight: 700;
}
.stepper {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-radius: 999px;
  padding: 4px;
}
.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--brown);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.stepper button:disabled {
  background: #cbb9a7;
  cursor: default;
}
.stepper .qty {
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

/* ===== Cart bar ===== */
.cart-bar {
  position: fixed;
  bottom: 14px;
  left: 16px;
  right: 16px;
  max-width: calc(var(--max-w) - 32px);
  margin: 0 auto;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(74, 50, 34, 0.35);
  cursor: pointer;
  z-index: 30;
  font-family: inherit;
}
.cart-bar-count {
  background: var(--sage);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.cart-bar-label {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.cart-bar-total { font-size: 14px; font-weight: 700; }

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  left: 16px;
  bottom: 84px;
  width: 52px;
  height: 52px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  z-index: 30;
}

/* ===== Sheet / Modal ===== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 50, 34, 0.45);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--cream);
  width: 100%;
  max-width: var(--max-w);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 10px 18px 24px;
  position: relative;
  animation: slide-up 0.25s ease-out;
}
@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 6px auto 10px;
}
.sheet-close {
  position: absolute;
  top: 12px;
  left: 14px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--brown-light);
  cursor: pointer;
}
.sheet h2 {
  text-align: center;
  color: var(--brown-dark);
  font-size: 18px;
  margin: 0 0 12px;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13.5px;
}
.order-item-row .oi-name { font-weight: 700; color: var(--brown-dark); }
.order-item-row .oi-remove {
  background: none;
  border: none;
  color: #b5573f;
  font-size: 12px;
  cursor: pointer;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--cream-light);
  color: var(--text);
  resize: none;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--sage);
}

.btn-outline {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  border: 1.5px dashed var(--brown-light);
  background: var(--cream-light);
  color: var(--brown-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.map {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-top: 10px;
  border: 1px solid var(--border);
}
.location-status {
  font-size: 12.5px;
  color: var(--sage-dark);
  margin: 8px 2px 0;
  min-height: 16px;
}
.location-status.warn { color: #b5762f; }

.summary {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 4px 0;
  color: var(--brown-dark);
}
.summary-total {
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 900;
  font-size: 15px;
  color: var(--brown-dark);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: var(--sage-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:disabled {
  background: #c8c2ba;
  cursor: default;
}

.success-view {
  text-align: center;
  padding: 20px 6px 10px;
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-view h2 {
  color: var(--brown-dark);
  font-size: 19px;
  margin: 0 0 8px;
}
.success-order-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--sage-dark);
  margin: 0 0 10px;
}
.success-order-number span {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}
.success-note {
  font-size: 13.5px;
  color: var(--brown-light);
  line-height: 1.8;
  margin: 0 0 20px;
}

.footer {
  text-align: center;
  padding: 20px 16px 100px;
  font-size: 12px;
  color: var(--brown-light);
}

@media (min-width: 420px) {
  .cards-grid { gap: 14px; }
}
