/* =========================================================
   WYMO GROCERY APP
   PREMIUM MOBILE-FIRST UI
   POLISHED VERSION 2
========================================================= */

/* =========================================================
   GLOBAL RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  font-family: Arial, sans-serif;

  background:
    linear-gradient(
      to bottom,
      #f7f4ee,
      #f0fdf4
    );

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   APP CONTAINER
========================================================= */

#app {

  max-width: 500px;

  margin: auto;

  height: 100vh;

  background: #fffdf8;

  position: relative;

  overflow: hidden;

  box-shadow:
    0 0 30px rgba(0,0,0,0.08);
}

/* =========================================================
   HEADER
========================================================= */

.top-header {

  height: 80px;

  background:
    rgba(255,255,255,0.78);

  backdrop-filter: blur(14px);

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 18px;

  border-bottom:
    1px solid rgba(0,0,0,0.05);

  position: sticky;

  top: 0;

  z-index: 100;
}

.logo-text {

  font-size: 24px;

  font-weight: bold;

  color: #166534;

  letter-spacing: 0.3px;
}

.welcome-text {

  color: #777;

  font-size: 13px;

  margin-top: 4px;
}

/* =========================================================
   CART ICON
========================================================= */

.cart-icon-btn {

  position: relative;

  width: 50px;

  height: 50px;

  border-radius: 16px;

  border: none;

  background: #dcfce7;

  color: #166534;

  font-size: 18px;

  cursor: pointer;

  transition: 0.25s ease;
}

.cart-icon-btn:hover {

  transform: translateY(-2px);
}

.cart-icon-btn:active {

  transform: scale(0.95);
}

#cart-count {

  position: absolute;

  top: -5px;
  right: -5px;

  background: #16a34a;

  color: white;

  width: 20px;
  height: 20px;

  border-radius: 50%;

  font-size: 11px;

  display: flex;

  align-items: center;
  justify-content: center;

  font-weight: bold;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {

  height: calc(100vh - 150px);

  position: relative;

  overflow: hidden;
}

/* =========================================================
   SCREENS
========================================================= */

.screen {

  will-change: transform, opacity;
  position: absolute;

  width: 100%;
  height: 100%;

  overflow-y: auto;

  padding: 20px;

  left: 100%;

  opacity: 0;

  transform: scale(0.96);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    left 0.35s ease;

  -webkit-overflow-scrolling: touch;

  padding-bottom:
    calc(120px + env(safe-area-inset-bottom));
}

.active-screen {

  left: 0;

  opacity: 1;

  transform: scale(1);
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero-card {

  background:
    linear-gradient(
      to right,
      #166534,
      #22c55e
    );

  border-radius: 30px;

  padding: 25px;

  color: white;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  box-shadow:
    0 12px 30px rgba(22,101,52,0.25);
}

.small-text {

  opacity: 0.85;

  font-size: 13px;
}

.hero-title {

  font-size: 28px;

  font-weight: bold;

  margin-top: 10px;

  line-height: 1.1;
}

.hero-image {

  width: 120px;
  height: 120px;

  border-radius: 22px;

  object-fit: cover;

  display: block;
}

/* =========================================================
   BUTTONS
========================================================= */

.shop-btn,
.add-btn,
.checkout-btn,
.whatsapp-btn,
#place-order-btn,
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
.success-box button {

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.shop-btn,
.add-btn {

  border: none;

  font-weight: bold;
}

.shop-btn {

  margin-top: 15px;

  background: white;

  color: #166534;

  padding: 12px 22px;

  border-radius: 14px;
}

.add-btn {

  background: #166534;

  color: white;

  padding: 12px 22px;

  border-radius: 14px;
}

.shop-btn:hover,
.add-btn:hover,
.checkout-btn:hover,
#place-order-btn:hover,
.success-box button:hover {

  transform: translateY(-3px);

  box-shadow:
    0 10px 20px rgba(0,0,0,0.12);
}

.shop-btn:active,
.add-btn:active,
.checkout-btn:active,
#place-order-btn:active {

  transform: scale(0.96);
}

/* =========================================================
   SECTION HEADERS
========================================================= */

.section-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 30px;

  margin-bottom: 20px;

  font-weight: bold;
}

.section-header span {

  color: #777;

  font-size: 14px;
}

.screen-title {

  font-size: 28px;

  font-weight: bold;

  margin-bottom: 30px;

  color: #111;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products-grid {

  display: flex;

  flex-direction: column;

  gap: 20px;
}

.product-card {

  background:
    rgba(255,255,255,0.72);

  backdrop-filter: blur(14px);

  border:
    1px solid rgba(255,255,255,0.4);

  border-radius: 25px;

  overflow: hidden;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  animation:
    cardAppear 0.45s ease;
}

.product-card:hover {

  transform: translateY(-5px);

  box-shadow:
    0 14px 35px rgba(0,0,0,0.12);
}

.product-image {

  width: 100%;

  height: 180px;

  object-fit: cover;

  display: block;
}

.product-content {

  padding: 18px;
}

.product-content h4 {

  font-size: 20px;

  margin-bottom: 8px;

  color: #111;
}

.product-content p {

  color: #777;

  font-size: 14px;

  line-height: 1.5;
}

.price-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 20px;
}

.price {

  font-size: 24px;

  color: #166534;

  font-weight: bold;
}

/* =========================================================
   CART
========================================================= */

.cart-empty {

  text-align: center;

  padding-top: 100px;
}

.empty-cart-icon {

  font-size: 55px;

  color: #16a34a;

  margin-bottom: 15px;
}

.cart-item {

  background:
    rgba(255,255,255,0.72);

  backdrop-filter: blur(14px);

  border-radius: 22px;

  padding: 15px;

  display: flex;

  gap: 15px;

  margin-bottom: 15px;

  animation:
    slideIn 0.3s ease;

  box-shadow:
    0 8px 20px rgba(0,0,0,0.05);
}

.cart-item img {

  width: 90px;
  height: 90px;

  border-radius: 18px;

  object-fit: cover;

  display: block;
}

.cart-info {

  flex: 1;
}

.cart-info h4 {

  font-size: 18px;

  margin-bottom: 5px;
}

.cart-info p {

  color: #777;

  margin: 5px 0;
}

.qty-controls {

  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 10px;
}

.qty-btn {

  width: 32px;
  height: 32px;

  border: none;

  border-radius: 10px;

  background: #dcfce7;

  color: #166534;

  font-size: 18px;

  font-weight: bold;

  cursor: pointer;
}

.remove-btn {

  margin-top: 10px;

  border: none;

  background: none;

  color: #dc2626;

  cursor: pointer;

  font-weight: bold;
}

/* =========================================================
   CART FOOTER
========================================================= */

.cart-footer {

  position: sticky;

  bottom: 0;

  background: #fffdf8;

  padding-top: 15px;

  padding-bottom:
    calc(10px + env(safe-area-inset-bottom));
}

.total-row {

  display: flex;

  justify-content: space-between;

  font-size: 24px;

  font-weight: bold;

  margin-bottom: 15px;
}

.checkout-btn {

  width: 100%;

  border: none;

  background: #166534;

  color: white;

  padding: 18px;

  border-radius: 18px;

  font-size: 16px;

  font-weight: bold;
}

/* =========================================================
   CHECKOUT
========================================================= */

.checkout-card {

  background:
    rgba(255,255,255,0.75);

  backdrop-filter: blur(14px);

  border-radius: 28px;

  padding: 22px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08);
}

.checkout-heading {

  font-size: 22px;

  margin-bottom: 25px;
}

.input-group {

  margin-bottom: 20px;
}

.input-group label {

  display: block;

  margin-bottom: 8px;

  font-weight: bold;

  color: #166534;
}

.input-group input,
.input-group textarea {

  width: 100%;

  border: 2px solid transparent;

  background: #f5f5f5;

  border-radius: 18px;

  padding: 16px;

  font-size: 15px;

  outline: none;

  transition: 0.25s ease;
}

.input-group input:focus,
.input-group textarea:focus {

  border-color: #22c55e;

  background: white;

  box-shadow:
    0 0 0 4px rgba(34,197,94,0.12);
}

.input-group textarea {

  height: 110px;

  resize: none;
}

.eft-box {

  background:
    linear-gradient(
      to right,
      #dcfce7,
      #f0fdf4
    );

  border-radius: 22px;

  padding: 18px;

  margin-top: 30px;

  line-height: 2;
}

.checkout-total {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 30px;

  margin-bottom: 25px;

  font-size: 28px;

  font-weight: bold;
}

#place-order-btn {

  width: 100%;

  border: none;

  background:
    linear-gradient(
      to right,
      #166534,
      #22c55e
    );

  color: white;

  padding: 18px;

  border-radius: 20px;

  font-size: 17px;

  font-weight: bold;
}

/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.bottom-nav {

  position: absolute;

  bottom: 0;

  width: 100%;

  height: 72px;

  background:
    rgba(255,255,255,0.82);

  backdrop-filter: blur(14px);

  display: flex;

  justify-content: space-around;

  align-items: center;

  border-top:
    1px solid rgba(0,0,0,0.05);

  padding-bottom:
    env(safe-area-inset-bottom);

  z-index: 100;
}

.nav-btn {

  border: none;

  background: none;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 5px;

  color: #999;

  font-size: 12px;

  cursor: pointer;

  transition: 0.25s ease;
}

.nav-btn i {

  font-size: 20px;
}

.nav-btn:hover {

  color: #166534;
}

.active-nav {

  color: #166534;
}

/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.floating-whatsapp {

  position: fixed;

  bottom: 95px;
  right: 20px;

  width: 65px;
  height: 65px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #22c55e,
      #16a34a
    );

  display: flex;

  justify-content: center;
  align-items: center;

  color: white;

  font-size: 30px;

  text-decoration: none;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.2);

  z-index: 999;

  animation:
    floatingButton 2s infinite ease-in-out;
}

/* =========================================================
   SPLASH SCREEN
========================================================= */

#splash-screen {

  transition: opacity 0.6s ease;
  position: fixed;

  inset: 0;

  background:
    linear-gradient(
      135deg,
      #166534,
      #22c55e
    );

  display: flex;

  justify-content: center;
  align-items: center;

  z-index: 9999;

  animation:
    hideSplash 1s ease forwards;

  animation-delay: 2.5s;
}

.splash-content {

  text-align: center;

  color: white;
}

.splash-logo {

  width: 120px;
  height: 120px;

  border-radius: 35px;

  background:
    rgba(255,255,255,0.2);

  backdrop-filter: blur(14px);

  display: flex;

  justify-content: center;
  align-items: center;

  margin: auto auto 20px;

  font-size: 50px;

  animation:
    floatLogo 2s infinite ease-in-out;
}

.splash-content h1 {

  font-size: 38px;

  margin-bottom: 10px;
}

/* =========================================================
   LOADING
========================================================= */

.loader,
.spinner {

  border-radius: 50%;

  animation:
    spin 1s linear infinite;
}

.loader {

  width: 45px;
  height: 45px;

  border:
    4px solid rgba(255,255,255,0.3);

  border-top:
    4px solid white;

  margin: 30px auto;
}

.spinner {

  width: 50px;
  height: 50px;

  border:
    5px solid #eee;

  border-top:
    5px solid #16a34a;

  margin: 0 auto 15px;
}

/* =========================================================
   SUCCESS MODAL
========================================================= */

.success-modal,
.loading-overlay {

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,0.6);

  display: flex;

  align-items: center;
  justify-content: center;

  opacity: 0;

  pointer-events: none;

  transition: 0.3s;
}

.success-modal {

  z-index: 9999;
}

.loading-overlay {

  z-index: 10000;
}

.success-modal.show,
.loading-overlay.show {

  opacity: 1;

  pointer-events: auto;
}

.success-box,
.loading-box {

  background: white;

  border-radius: 25px;

  text-align: center;

  animation:
    popupScale 0.3s ease;
}

.success-box {

  width: 90%;
  max-width: 350px;

  padding: 30px 25px;
}

.loading-box {

  width: 200px;

  padding: 30px;
}

.success-icon {

  font-size: 70px;

  color: #22c55e;

  margin-bottom: 15px;
}

.success-box h2 {

  font-size: 24px;

  margin-bottom: 10px;
}

.success-box p {

  color: #666;

  margin-bottom: 10px;
}

.success-box button {

  width: 100%;

  border: none;

  background: #16a34a;

  color: white;

  padding: 14px;

  border-radius: 14px;

  font-size: 16px;

  font-weight: bold;

  margin-top: 15px;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes spin {

  100% {
    transform: rotate(360deg);
  }
}

@keyframes hideSplash {

  to {

    opacity: 0;

    visibility: hidden;
  }
}

@keyframes floatLogo {

  50% {

    transform: translateY(-10px);
  }
}

@keyframes floatingButton {

  50% {

    transform: translateY(-8px);
  }
}

@keyframes slideIn {

  from {

    opacity: 0;

    transform: translateY(20px);
  }

  to {

    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes cardAppear {

  from {

    opacity: 0;

    transform: translateY(20px);
  }

  to {

    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes popupScale {

  from {

    transform: scale(0.7);

    opacity: 0;
  }

  to {

    transform: scale(1);

    opacity: 1;
  }
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 0;
}

/* =========================================================
   PAYMENT SCREEN
========================================================= */

.payment-main-card {

  background:
    linear-gradient(
      135deg,
      #fef3c7,
      #fde68a
    );

  border-radius: 30px;

  padding: 28px;

  text-align: center;

  margin-bottom: 25px;

  color: #92400e;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.08);
}

.payment-warning-icon {

  width: 90px;
  height: 90px;

  border-radius: 50%;

  background: rgba(255,255,255,0.4);

  margin: auto auto 20px;

  display: flex;

  justify-content: center;
  align-items: center;

  font-size: 38px;
}

.payment-main-card h2 {

  font-size: 28px;

  margin-bottom: 12px;
}

.payment-main-text {

  line-height: 1.7;

  font-size: 16px;
}

/* =========================================================
   PAYMENT STEPS CARD
========================================================= */

.payment-steps-card {

  background: white;

  border-radius: 28px;

  padding: 25px;

  margin-bottom: 25px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.06);
}

.payment-steps-card h3 {

  margin-bottom: 22px;

  color: #166534;

  font-size: 22px;
}

.payment-step {

  display: flex;

  gap: 15px;

  align-items: flex-start;

  margin-bottom: 20px;
}

.payment-step span {

  min-width: 34px;
  height: 34px;

  border-radius: 50%;

  background: #166534;

  color: white;

  display: flex;

  justify-content: center;
  align-items: center;

  font-weight: bold;
}

.payment-step p {

  line-height: 1.6;

  color: #444;
}

/* =========================================================
   DELIVERY ESTIMATE
========================================================= */

.delivery-estimate-card {

  background: #dcfce7;

  border-radius: 22px;

  padding: 20px;

  display: flex;

  align-items: center;

  gap: 15px;

  margin-bottom: 30px;

  color: #166534;
}

.delivery-estimate-card i {

  font-size: 28px;
}

.delivery-estimate-card h4 {

  margin-bottom: 5px;
}

/* =========================================================
   CONTINUE BUTTON
========================================================= */

#continue-to-checkout {

  width: 100%;

  border: none;

  background:
    linear-gradient(
      to right,
      #166534,
      #22c55e
    );

  color: white;

  padding: 20px;

  border-radius: 22px;

  font-size: 17px;

  font-weight: bold;

  cursor: pointer;

  transition: 0.3s ease;
}

#continue-to-checkout:hover {

  transform: translateY(-3px);

  box-shadow:
    0 12px 25px rgba(0,0,0,0.12);
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin: 15px 20px;
  font-size: 12px;
  font-weight: bold;
}

.step {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 20px;
  background: #eee;
  margin: 0 5px;
  color: #777;
}

.step.active {
  background: #2e7d32;
  color: white;
}

.copy-btn {
  margin-top: 10px;
  background: #1976d2;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  font-weight: bold;
}

/*====================
PRODUCTS STYLESING
==================*/
.p-head {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    /* gap: 10px;
    margin-top: 25px;
    margin-bottom: 10px; */
}

/* This makes the specific word bigger */
.large-word {
    font-size: 28px; /* Adjust this number to make it bigger or smaller */
}

.green-text { color: green; }
.red-text { color: red; }
