:root {
  --green: #087f5b;
  --dark-green: #075c44;
  --light-green: #e8f7f1;
  --orange: #f59f00;
  --dark: #17332d;
  --text: #52635e;
  --white: #ffffff;
  --background: #f8fbfa;
  --border: #dce9e4;
  --shadow: 0 12px 30px rgba(26, 76, 61, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  color: var(--green);
  font-size: 25px;
  font-weight: 800;
}

.logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 5px;
  color: white;
  background: var(--green);
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
}

nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

nav a:hover {
  color: var(--green);
}

.cart-button {
  padding: 10px 15px;
  color: var(--green);
  background: var(--light-green);
  border: 0;
  border-radius: 8px;
  font-weight: bold;
}

.cart-button span {
  padding: 2px 7px;
  margin-left: 4px;
  color: white;
  background: var(--green);
  border-radius: 20px;
}

.menu-button {
  display: none;
  color: var(--green);
  background: transparent;
  border: 0;
  font-size: 25px;
}

.hero {
  padding: 85px 0;
  background: linear-gradient(120deg, #e7f7f0, #f8fbfa);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  max-width: 620px;
}

.small-title {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

h1 {
  margin-bottom: 20px;
  color: var(--dark);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
}

h2 {
  color: var(--dark);
  font-size: 32px;
  line-height: 1.2;
}

h3 {
  color: var(--dark);
}

.hero-text > p:not(.small-title) {
  max-width: 520px;
  color: var(--text);
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.outline-button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: bold;
  transition: 0.2s ease;
}

.primary-button {
  color: white;
  background: var(--green);
}

.primary-button:hover {
  background: var(--dark-green);
}

.secondary-button,
.outline-button {
  color: var(--green);
  background: white;
  border-color: var(--green);
}

.secondary-button:hover,
.outline-button:hover {
  color: white;
  background: var(--green);
}

.hero-card {
  width: 300px;
  padding: 35px;
  text-align: center;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.hero-card p {
  margin: 8px 0 18px;
  color: var(--text);
}

.hero-card a {
  color: var(--green);
  font-weight: bold;
}

.medical-symbol {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  margin: auto;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 55px;
  line-height: 1;
}

.search-section {
  margin-top: -28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.search-box span {
  padding-left: 10px;
  color: var(--green);
  font-size: 30px;
}

.search-box input {
  flex: 1;
  padding: 13px 5px;
  color: var(--dark);
  border: 0;
  outline: 0;
}

.search-box button {
  padding: 13px 25px;
  color: white;
  background: var(--green);
  border: 0;
  border-radius: 7px;
  font-weight: bold;
}

.section {
  padding: 80px 0;
}

.light-section {
  background: #eef8f4;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading select,
.appointment-form select {
  padding: 12px;
  color: var(--dark);
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(25, 78, 61, 0.03);
}

.product-image {
  display: grid;
  place-items: center;
  height: 145px;
  margin-bottom: 17px;
  background: var(--light-green);
  border-radius: 8px;
  font-size: 55px;
}

.product-card h3 {
  margin-bottom: 5px;
}

.product-card p {
  min-height: 45px;
  color: var(--text);
  font-size: 14px;
}

.product-price {
  min-height: auto !important;
  margin: 15px 0;
  color: var(--green) !important;
  font-size: 18px !important;
  font-weight: bold;
}

.product-card button {
  width: 100%;
}

.safety-section {
  padding: 25px 0;
  background: #fff8e6;
}

.safety-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.safety-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--orange);
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
}

.safety-content p {
  color: var(--text);
  font-size: 14px;
}

.pharmacy-grid,
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pharmacy-card,
.doctor-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pharmacy-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pharmacy-image {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  background: var(--light-green);
  border-radius: 9px;
  font-size: 32px;
}

.pharmacy-card p {
  color: var(--text);
  font-size: 14px;
}

.open {
  margin: 10px 0;
  color: var(--green) !important;
}

.closed {
  margin: 10px 0;
  color: #c27b00 !important;
}

.outline-button {
  padding: 8px 11px;
  font-size: 12px;
}

.doctor-card {
  text-align: center;
}

.doctor-avatar {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  background: var(--light-green);
  border-radius: 50%;
  font-size: 50px;
}

.doctor-card p {
  margin: 4px 0 12px;
  color: var(--text);
}

.available {
  display: inline-block;
  padding: 4px 10px;
  color: var(--green);
  background: var(--light-green);
  border-radius: 20px;
  font-size: 12px;
}

.full-button {
  width: 100%;
  margin-top: 18px;
  text-align: center;
}

.appointment-section {
  padding: 80px 0;
  color: white;
  background: var(--dark-green);
}

.appointment-section h2 {
  margin-bottom: 15px;
  color: white;
}

.appointment-section p:not(.small-title) {
  max-width: 520px;
  color: #d2eee5;
}

.appointment-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
}

.appointment-form {
  padding: 28px;
  color: var(--dark);
  background: white;
  border-radius: 10px;
}

.appointment-form label {
  display: block;
  margin: 12px 0 5px;
  font-size: 14px;
  font-weight: bold;
}

.appointment-form input,
.appointment-form select {
  width: 100%;
}

.appointment-form input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline-color: var(--green);
}

.footer {
  padding: 45px 0;
  color: #d2eee5;
  background: #12352d;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.footer h4 {
  margin-bottom: 10px;
  color: white;
}

.footer p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-logo {
  color: white;
}

.footer-logo span {
  color: var(--green);
  background: white;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-content {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  margin: 5vh auto;
  padding: 28px;
  background: white;
  border-radius: 12px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 18px;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 28px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.cart-row p {
  color: var(--text);
  font-size: 14px;
}

.remove-button {
  color: #d64545;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 5px;
}

.empty-cart {
  padding: 25px 0;
  color: var(--text);
  text-align: center;
}

.message-box {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 340px;
  padding: 15px 20px;
  color: white;
  background: var(--dark-green);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

@media (max-width: 850px) {
  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: white;
    border-bottom: 1px solid var(--border);
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 15px 4%;
    border-top: 1px solid var(--border);
  }

  .menu-button {
    display: block;
  }

  .hero-content,
  .appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: 100%;
    max-width: 350px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pharmacy-grid,
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .appointment-wrapper {
    gap: 35px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 8px;
  }

  .logo {
    font-size: 20px;
  }

  .cart-button {
    padding: 8px;
    font-size: 12px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .search-box {
    gap: 5px;
  }

  .search-box span {
    display: none;
  }

  .search-box button {
    padding: 12px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .pharmacy-card {
    align-items: flex-start;
  }
}

.checkout-form {
  display: none;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.checkout-form h3 {
  margin-bottom: 15px;
}

.checkout-form label {
  display: block;
  margin: 12px 0 5px;
  font-size: 14px;
  font-weight: bold;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  padding: 12px;
  color: var(--dark);
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline-color: var(--green);
}

.checkout-form textarea {
  min-height: 90px;
  resize: vertical;
}

.admin-link {
  display: inline-block;
  margin-top: 10px;
  color: #087f5b;
  text-decoration: none;
  font-size: 14px;
}

.admin-link:hover {
  text-decoration: underline;
}

.account-card {
  background: #ffffff;
  padding: 18px;
  margin: 15px 0;
  border-radius: 8px;
  border-left: 5px solid #087f5b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.account-card h3 {
  color: #087f5b;
  margin-bottom: 10px;
}

.account-card p {
  margin: 7px 0;
}

.status-pending,
.status-confirmed,
.status-completed,
.status-cancelled {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #cfe2ff;
  color: #084298;
}

.status-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.status-cancelled {
  background: #f8d7da;
  color: #842029;
}

.user-dashboard {
  padding-top: 45px;
  padding-bottom: 60px;
}

.account-header {
  margin-bottom: 30px;
}

.account-header h1 {
  margin: 8px 0;
  color: #087f5b;
}

.account-section {
  background: #ffffff;
  margin: 22px 0;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.account-section h2 {
  color: #087f5b;
  margin-bottom: 18px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e6f7f1;
  font-size: 28px;
}

.profile-card p {
  margin: 7px 0;
}

.account-section-heading {
  margin-bottom: 15px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 28px;
}

.account-card {
  background: #fafafa;
  border-left: 5px solid #087f5b;
  padding: 18px;
  margin: 15px 0;
  border-radius: 8px;
}

.account-card h3 {
  color: #087f5b;
  margin-bottom: 10px;
}

.account-card p {
  margin: 7px 0;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.account-nav a {
  color: #087f5b;
  text-decoration: none;
}

.logout-button {
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  background: #d00000;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
}

.logout-button:hover {
  background: #a00000;
}

.status-pending,
.status-confirmed,
.status-completed,
.status-cancelled {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #cfe2ff;
  color: #084298;
}

.status-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.status-cancelled {
  background: #f8d7da;
  color: #842029;
}

@media (max-width: 600px) {
  .account-nav {
    gap: 8px;
  }

  .account-nav a {
    display: none;
  }

  .profile-card {
    align-items: flex-start;
  }

  .account-actions {
    flex-direction: column;
  }

  .account-actions a {
    text-align: center;
  }
}

.available-label {
  display: block;
  color: #087f5b;
  font-weight: bold;
  margin: 8px 0;
}

.out-of-stock-label {
  display: block;
  color: #d00000;
  font-weight: bold;
  margin: 8px 0;
}

.unavailable-product {
  opacity: 0.7;
}

.product-card button:disabled {
  background: #999;
  cursor: not-allowed;
}

.available-label {
  display: block;
  color: #087f5b;
  font-weight: bold;
  margin: 8px 0;
}

.out-of-stock-label {
  display: block;
  color: #d00000;
  font-weight: bold;
  margin: 8px 0;
}

.unavailable-product {
  opacity: 0.7;
}

.product-card button:disabled {
  background: #999;
  cursor: not-allowed;
}

.whatsapp-icon-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.whatsapp-icon-fixed:hover {
  background-color: #1ebc57;
  transform: scale(1.05);
}

.whatsapp-icon-fixed i {
  font-size: 28px;
}