/* Vetom.by — Clinical Botanical design system */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #146b3a;
  --color-primary-dark: #0b3d22;
  --color-primary-soft: #1f8a4c;
  --color-accent: #c4a35a;
  --color-accent-hover: #b08f45;
  --color-surface: #f3f7f2;
  --color-paper: #ffffff;
  --color-text: #1a2420;
  --color-muted: #5c6b63;
  --color-border: #d7e3da;
  --color-success: #2f9e5b;
  --color-warning: #b86b2a;
  --color-danger: #a33b3b;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --container: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(11, 61, 34, 0.08);
  --header-h: 76px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(20, 107, 58, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 163, 90, 0.12), transparent 55%),
    var(--color-surface);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-weight: 600;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #1a2420;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #1a2420;
}

.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(480px, 78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #0b3d22;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 61, 34, 0.55) 0%, rgba(11, 61, 34, 0.22) 42%, rgba(11, 61, 34, 0.05) 62%, transparent 78%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: inherit;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.hero-inner {
  padding: 4.5rem 0 3.5rem;
  max-width: 34rem;
  margin: 0;
}

.hero .brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.4em;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-phone {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-phone:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--color-muted);
  margin: 0;
  max-width: 36rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 0.5rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #eef5ef, #f8fbf8);
  overflow: hidden;
}

.product-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}

.product-card__meta {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.product-card__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(47, 158, 91, 0.12);
  color: var(--color-success);
}

.badge-warning {
  background: rgba(184, 107, 42, 0.12);
  color: var(--color-warning);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.category-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}

.category-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.category-card strong {
  display: block;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.category-card span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Page layout helpers */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.content-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 1.6em;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Modal / drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 200;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal,
.cart-drawer {
  position: fixed;
  z-index: 210;
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.modal {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(92vw, 480px);
  border-radius: var(--radius);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cart-drawer {
  top: 0;
  right: 0;
  width: min(100vw, 400px);
  height: 100%;
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(20, 107, 58, 0.25);
  border-color: var(--color-primary);
}

.is-hidden {
  display: none !important;
}

/* Product detail */
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.product-gallery__main {
  background: linear-gradient(180deg, #eef5ef, #f8fbf8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.product-gallery__main img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.25rem;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.85rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--color-border);
}

.pharmacy-list {
  padding-left: 1.2rem;
}

.pharmacy-list li {
  margin-bottom: 1rem;
}

.review-card {
  margin-bottom: 1rem;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.review-reply {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
}

.breadcrumbs a {
  color: var(--color-muted);
}

.prose img {
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .product-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .phone-link {
    display: none;
  }

  .product-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .product-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-media img {
    object-position: 80% center;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(11, 61, 34, 0.72) 0%, rgba(11, 61, 34, 0.45) 100%);
  }
}
