/* ================================================
   PharmacieWebshop — Main Stylesheet
   Color palette: #00a651 (primary), #007a3d (dark),
   #e8f5ee (light-green), #fff (background)
   ================================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #00a651; text-decoration: none; transition: color .2s; }
a:hover { color: #007a3d; }

ul { list-style: none; }

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

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  background: #00a651;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { color: #e8f5ee; }
.logo svg { flex-shrink: 0; }

/* NAV */
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 0.25rem;
}
.main-nav a {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* HEADER RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  overflow: hidden;
  transition: background .2s;
}
.search-bar:focus-within {
  background: rgba(255,255,255,.25);
}
.search-bar input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  width: 160px;
  outline: none;
}
.search-bar input::placeholder { color: rgba(255,255,255,.7); }
.search-bar button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.4rem 0.75rem 0.4rem 0.25rem;
  display: flex;
  align-items: center;
}
.search-bar button:hover { opacity: 0.8; }

/* LANG TOGGLE */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.lang-btn:hover, .lang-btn.active {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  background: linear-gradient(135deg, #007a3d 0%, #00a651 60%, #00c261 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -100px;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: #00a651;
  color: #fff;
  border-color: #00a651;
}
.btn-primary:hover { background: #007a3d; border-color: #007a3d; color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  background: #00a651;
  color: #fff;
  border-color: #00a651;
}
.btn-small:hover { background: #007a3d; border-color: #007a3d; color: #fff; }

.btn-full { width: 100%; }

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

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #111;
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }

/* ================================================
   PRODUCT GRID
   ================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,166,81,.12);
  transform: translateY(-3px);
}

.product-badge-tag {
  position: absolute;
  top: -1px;
  right: 12px;
  background: #00a651;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #111;
}

.product-cat {
  font-size: 0.78rem;
  color: #00a651;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #007a3d;
  margin-bottom: 1rem;
}

/* ================================================
   CATEGORIES
   ================================================ */
.categories-section { background: #f7faf8; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.75rem 1rem;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.category-card:hover {
  box-shadow: 0 6px 18px rgba(0,166,81,.15);
  transform: translateY(-3px);
  border-color: #00a651;
  color: #007a3d;
}

.category-icon {
  width: 64px;
  height: 64px;
  background: #e8f5ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.category-card:hover .category-icon { background: #d0ede0; }

/* ================================================
   AUTHORITY SECTION
   ================================================ */
.authority-section { background: #fff; }

.authority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.authority-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: #f7faf8;
  border: 1px solid #ddeee5;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  color: #444;
  font-size: 0.82rem;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.authority-card:hover {
  box-shadow: 0 4px 14px rgba(0,166,81,.12);
  border-color: #00a651;
}

.authority-logo {
  background: #00a651;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

/* ================================================
   WHY US
   ================================================ */
.why-us { background: #f7faf8; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow .2s;
}
.why-card:hover { box-shadow: 0 6px 18px rgba(0,166,81,.1); }

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #111;
}

.why-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* ================================================
   PAGE HEADER (inner pages)
   ================================================ */
.page-header {
  background: linear-gradient(135deg, #007a3d 0%, #00a651 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.05rem; opacity: 0.9; }

/* ================================================
   PRODUCTS PAGE — FILTER TABS
   ================================================ */
.products-page { padding-top: 2rem; }

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: #f0f4f2;
  border: 1px solid #d0e0d8;
  color: #444;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover {
  background: #e8f5ee;
  border-color: #00a651;
  color: #007a3d;
}
.filter-btn.active {
  background: #00a651;
  border-color: #00a651;
  color: #fff;
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

.contact-form-wrap > p {
  color: #555;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}
.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  background: #e8f5ee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #111;
}

.contact-item p {
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.1rem;
}
.contact-item a { color: #00a651; }
.contact-item a:hover { color: #007a3d; }

.authority-notice {
  background: #e8f5ee;
  border: 1px solid #b8dfc8;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.authority-notice h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #007a3d;
  margin-bottom: 0.5rem;
}
.authority-notice p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.authority-links-small {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.authority-links-small a {
  background: #00a651;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  transition: background .2s;
}
.authority-links-small a:hover { background: #007a3d; color: #fff; }

/* FORM */
.contact-form { }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #222;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00a651;
  box-shadow: 0 0 0 3px rgba(0,166,81,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #00a651;
}
.form-checkbox label {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  font-weight: 400;
}

.form-success {
  background: #e8f5ee;
  border: 1.5px solid #00a651;
  color: #007a3d;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: #111;
  color: #ccc;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2rem;
  padding: 3rem 1.5rem 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: #00a651; }

.footer-col > p {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.35rem;
}

.disclaimer {
  max-width: 800px;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  /* HEADER */
  .main-nav { display: none; flex-direction: column; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #007a3d;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    z-index: 999;
  }
  .main-nav.open ul { flex-direction: column; gap: 0.25rem; }
  .main-nav.open a { padding: 0.6rem 0.75rem; }
  .mobile-menu-btn { display: flex; }
  .search-bar { display: none; }
  .header-inner { position: relative; flex-wrap: wrap; height: auto; padding: 0.9rem 1.5rem; }
  .logo { font-size: 1rem; }

  /* HERO */
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-badges { flex-direction: column; gap: 0.75rem; }

  /* GRIDS */
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .authority-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* CONTACT */
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.5rem; }
  .filter-tabs { gap: 0.35rem; }
}
