@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

:root {
  --primary: #81B441;
  --primary-dark: #6a9935;
  --bg: #F9F9F9;
  --white: #ffffff;
  --text: #1A1A1A;
  --text-muted: #666666;
  --border: #e8e8e8;
  --sale: #E53935;
  --footer-bg: #1A1A1A;
  --footer-text: #b8b8b8;
  --newsletter-bg: #F3E8E4;
  --radius: 4px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --container: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.top-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-main {
  display: flex;
  gap: 32px;
}

.nav-main a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.icon-btn .badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  padding: 48px 0 64px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 40px solid rgba(129, 180, 65, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 480px;
}

.hero-media {
  position: relative;
  text-align: center;
}

.hero-media img {
  margin-inline: auto;
  max-height: 420px;
  object-fit: contain;
}

.section {
  padding: 64px 0;
}

.section-white {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.category-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.category-card span {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.product-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.product-tabs button {
  border: none;
  background: transparent;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
}

.product-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-thumb {
  background: #f0f0f0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

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

.badge-pill {
  position: absolute;
  top: 12px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}

.badge-pill.new {
  left: 12px;
  background: var(--primary);
}

.badge-pill.sale {
  right: 12px;
  background: var(--sale);
}

.product-hover {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
}

.product-card:hover .product-hover {
  opacity: 1;
  transform: translateY(0);
}

.product-hover button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 16px;
}

.product-info {
  padding: 16px;
  text-align: center;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
}

.product-price del {
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 6px;
  font-size: 14px;
}

.newsletter {
  background: var(--newsletter-bg);
  padding: 56px 0;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.newsletter-form {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
  max-width: 520px;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.newsletter-form button {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.newsletter img {
  border-radius: var(--radius);
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}

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

.brands-section h3 {
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 56px;
  opacity: 0.55;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card .thumb {
  position: relative;
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.date-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.blog-body {
  padding: 20px;
}

.blog-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.blog-body p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.blog-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.service-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.service-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(129, 180, 65, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 20px;
  font-size: 16px;
}

.footer-grid p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
}

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

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
}

.social-links a:hover {
  background: var(--primary);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.insta-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-badge {
  background: var(--white);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  background: var(--white);
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 2.5rem;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 14px;
}

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

.form-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid rgba(129, 180, 65, 0.35);
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

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

.form-error {
  color: var(--sale);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-group.invalid .form-error {
  display: block;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
  border-color: var(--sale);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-field input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-field label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-field.invalid .form-error {
  display: block;
  flex: 1 1 100%;
  margin-left: 30px;
}

.checkbox-field {
  flex-wrap: wrap;
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(129, 180, 65, 0.12);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 20px;
}

.form-success.show {
  display: block;
}

.legal-content {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}

.cart-drawer.open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: var(--radius);
}

.cart-total {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

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

.shop-sidebar {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shop-sidebar h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.filter-list li {
  margin-bottom: 8px;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.filter-list input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-box {
  background: var(--white);
  padding: 28px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .newsletter-grid,
  .about-grid,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .category-cards,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

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

  .menu-toggle {
    display: block;
  }

  .site-header .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

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

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

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: var(--radius);
    width: 100%;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
  }
}
