:root {
  --fmas-cyan: #00a4ba;
  --fmas-cyan-dark: #008194;
  --fmas-cyan-light: #e6f7f9;
  --fmas-green: #79c000;
  --fmas-green-hover: #6aa800;
  --fmas-dark: #222b45;
  --fmas-gray-bg: #f4f6f8;
  --fmas-border: #e2e8f0;
  --fmas-text: #2d3748;
  --fmas-text-muted: #718096;
  --fmas-discount: #e53e3e;
  --fmas-stars: #ecc94b;
  --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--fmas-text);
  background-color: var(--fmas-gray-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
  background-color: var(--fmas-cyan);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
}

.top-bar-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* MAIN HEADER */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--fmas-border);
  padding: 14px 20px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.fmas-logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fmas-logo-badge svg {
  height: 48px;
  width: auto;
}

.fmas-badge-text {
  font-size: 12px;
  line-height: 1.2;
  color: #4a5568;
  font-weight: 600;
}

.pharmacy-title-box {
  border-left: 2px solid #edf2f7;
  padding-left: 14px;
}

.pharmacy-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
}

.pharmacy-location {
  font-size: 13px;
  color: var(--fmas-cyan-dark);
  font-weight: 600;
}

/* SEARCH BAR */
.search-wrapper {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input-box {
  width: 100%;
  display: flex;
  border: 1px solid #cbd5e0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s ease;
}

.search-input-box:focus-within {
  border-color: var(--fmas-cyan);
  box-shadow: 0 0 0 3px rgba(0, 164, 186, 0.15);
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  outline: none;
  color: var(--fmas-text);
}

.search-btn {
  background: transparent;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  color: var(--fmas-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-btn:hover {
  color: var(--fmas-cyan-dark);
}

/* USER & CART ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-btn {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-btn:hover {
  color: var(--fmas-cyan);
  background: #f7fafc;
}

.cart-button {
  background: var(--fmas-green);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cart-button:hover {
  background: var(--fmas-green-hover);
  transform: translateY(-1px);
}

.cart-count {
  background: #ffffff;
  color: var(--fmas-green);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* NAVIGATION MENU */
.nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--fmas-border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  position: relative;
  z-index: 100;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a5568;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--fmas-cyan);
}

.nav-link svg {
  stroke-width: 2.2;
}

/* DROPDOWN MENU */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 620px;
  background: #ffffff;
  border: 1px solid var(--fmas-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 8px 8px;
  padding: 24px;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  z-index: 200;
}

.nav-item:hover .dropdown-menu {
  display: grid;
}

.menu-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fmas-cyan-dark);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--fmas-border);
  padding-bottom: 4px;
}

.menu-cat-list {
  list-style: none;
}

.menu-cat-list li {
  margin-bottom: 6px;
}

.menu-cat-list a {
  font-size: 13px;
  color: #4a5568;
  transition: color 0.15s;
}

.menu-cat-list a:hover {
  color: var(--fmas-cyan);
  text-decoration: underline;
}

/* MAIN CONTENT LAYOUT */
.main-wrapper {
  max-width: 1280px;
  margin: 24px auto 60px;
  padding: 0 16px;
}

/* HERO PROMO BANNER */
.hero-banner-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 36px;
  position: relative;
  display: flex;
}

.hero-banner-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* SECTION HEADINGS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: var(--fmas-cyan);
}

.view-more-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--fmas-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-more-link:hover {
  text-decoration: underline;
  color: var(--fmas-cyan-dark);
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* PRODUCT CARD */
.product-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--fmas-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border-color: #cbd5e0;
  transform: translateY(-2px);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--fmas-discount);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 10;
}

.product-thumb-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.product-thumb {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  line-height: 1.35;
}

.pickup-pill {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.ratings {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--fmas-stars);
  font-size: 13px;
  margin-bottom: 8px;
}

.rating-count {
  color: var(--fmas-text-muted);
  font-size: 11px;
  margin-left: 4px;
}

.price-box {
  margin-top: auto;
  margin-bottom: 14px;
}

.original-price {
  font-size: 12px;
  color: var(--fmas-text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.final-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--fmas-discount);
}

.btn-add-cart {
  width: 100%;
  background: #007489;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--fmas-cyan-dark);
}

/* CENTER MORE BUTTON */
.center-btn-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.btn-outline-cyan {
  display: inline-block;
  border: 1px solid var(--fmas-cyan);
  color: var(--fmas-cyan);
  background: #ffffff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline-cyan:hover {
  background: var(--fmas-cyan);
  color: #ffffff;
}

/* VALUE PROPOSITION BADGES */
.features-banner {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--fmas-border);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .features-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--fmas-cyan-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fmas-cyan);
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 13px;
  color: #1a202c;
}

.feature-text span {
  font-size: 12px;
  color: var(--fmas-text-muted);
}

/* FOOTER */
.site-footer {
  background: #e2e8f0;
  border-top: 1px solid #cbd5e0;
  padding: 48px 20px 24px;
  font-size: 13px;
  color: #4a5568;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 850px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #4a5568;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--fmas-cyan-dark);
  text-decoration: underline;
}

.newsletter-box input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  outline: none;
}

.newsletter-box button {
  width: 100%;
  background: #4a5568;
  color: #fff;
  border: none;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
}

.newsletter-box button:hover {
  background: #2d3748;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #cbd5e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bizum-logo {
  font-size: 20px;
  font-weight: 800;
  color: #009aa6;
  font-style: italic;
}

.copyright-bar {
  text-align: center;
  margin-top: 18px;
  font-size: 11.5px;
  color: #718096;
}

/* TOAST NOTIFICATION */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a202c;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}
