:root {
  --page-bg: #f5f6f5;
  --panel: #ffffff;
  --text: #1e2d2a;
  --muted: #6b6b6b;
  --border: rgba(19, 30, 28, 0.08);
  --dark: #071b29;
  --dark-2: #0d2238;
  --soft-beige: #e8d7b5;
  --soft-green: #dff4e1;
  --success: #1d9d63;
  --shadow: 0 18px 40px rgba(17, 33, 30, 0.08);
  --header-accent: #f5b24f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.45;
}

 a {
  text-decoration: none;
}

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

button {
  font: inherit;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 80px;
}

.topbar {
  background: linear-gradient(180deg, #051a2c 0%, #071b29 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 24px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.brand img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
}

.search-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.search-field {
  width: min(100%, 860px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(146, 163, 176, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 0 22px;
  min-height: 48px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.search-icon,
.header-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.search-field input {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.06rem;
  outline: none;
  padding: 0;
}

.search-field input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.login-link,
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: #ffffff;
  background: transparent;
}

.login-link:hover,
.cart-link:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.products-section {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.page-shell {
  min-height: 100vh;
}

.hero-banner {
  position: relative;
  height: 250px;
  /* background-color: #ffffff; */
  background-image: url('https://storage.googleapis.com/content.paysfer.com/banner/mini_medicine_banner_v2.jpeg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  display: block;
}

.hero-content {
  width: 100%;
  height: 100%;
}

.brand-panel,
.mini-brand,
.mini-brand-mark,
.brand-panel h1,
.hero-subtitle,
.offer-button {
  display: none;
}



.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 25px;
  /* width: min(1220px, 100%);
   */
   width: 95%;
  justify-content: center;
  margin: 0 auto;
}

.product-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
  border: 1px solid rgba(52, 129, 106, 0.12);
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: 0 12px 30px rgba(22, 53, 42, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  flex: 0 0 calc(20% - 16px);
  max-width: 300px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(22, 53, 42, 0.12);
  border-color: rgba(46, 120, 98, 0.2);
}

.product-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  margin-bottom: 10px;
  /* background: linear-gradient(180deg, #f5faf6 0%, #edf7ef 100%); */
  background-color: white;
  /* border-radius: 14px; */
  overflow: hidden;
  /* border: 1px solid rgba(92, 161, 127, 0.08); */
}

.product-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #7ec8a7 0%, #4c9f82 100%);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(76, 159, 130, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1a2536;
  min-height: 72px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 26px;
  margin-bottom: 10px;
}

.price {
  font-weight: 800;
  color: #db1d1d;
  font-size: 1.06rem;
}

.old-price {
  font-size: 0.82rem;
  color: #8b8b8b;
  text-decoration: line-through;
}

.checkout-discount {
  margin-top: 2px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: #1d5fdb;
  line-height: 1.4;
  min-height: 18px;
}

.stock-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: auto;
  margin-bottom: 12px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

.add-cart {
  appearance: none;
  border: 0;
  /* background: linear-gradient(135deg, #f7c66d 0%, #f3a64a 100%);
   */
   background-color: #000000;
  /* color: #bfeacf;
   */
   color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  /* box-shadow: 0 10px 18px rgba(243, 166, 74, 0.28); */
    /* box-shadow: 0 14px 22px rgba(77, 243, 74, 0.16); */

  min-height: 48px;
  width: 100%;
  margin-top: 8px;
}

.add-cart:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 22px rgba(77, 243, 74, 0.092);
  filter: saturate(1.08);
}

.empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .product-card {
    flex-basis: calc(20% - 16px);
  }
}

@media (max-width: 920px) {
  .product-card {
    flex-basis: calc(33.333% - 14px);
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 16px 0 18px;
  }

  .brand {
    justify-self: center;
  }

  .header-actions {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .brand-panel {
    width: min(100%, 360px);
    padding: 20px 18px 16px;
  }

  .product-card {
    flex-basis: calc(50% - 10px);
  }

  .header-actions {
    width: 100%;
  }

  .login-link,
  .cart-link {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .product-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .search-field {
    min-height: 48px;
  }
}
