:root {
  /* Color Palette - Minimalist Premium Light */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --card-bg: #ffffff;
  --accent-green: #22c55e;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-main: 'Outfit', sans-serif;
  
  /* Transitions */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s var(--ease-soft);
}

nav.scrolled {
  height: 80px;
  box-shadow: var(--shadow-sm);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 100px; /* INCREASED LOGO SIZE as requested */
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

nav.scrolled .logo-img {
  height: 70px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-green);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Slider */
.hero-slider {
  width: 100%;
  height: 600px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  max-width: 600px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  padding: 40px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid white;
}

.slide-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.slide-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Product Section */
.section {
  padding: 80px 5%;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

/* Category Filters */
.category-filters-container {
  margin: 60px auto;
  text-align: center;
}

.category-list {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 5%;
}

.category-btn {
  background: white;
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 100px; /* Повністю круглі кнопки */
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.1);
}

.category-btn.active {
  background: var(--accent-green);
  color: white;
  border-color: var(--accent-green);
  box-shadow: 0 8px 15px rgba(34, 197, 94, 0.3);
}

/* Products Layout Refinement */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 24px;
  transition: all 0.4s var(--ease-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-green);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 12px;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Premium Product Page Layout */
.product-main-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
  align-items: start;
}

.product-image-box {
  background: white;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 100px;
}

.product-image-box img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.product-info-box {
  padding: 10px 0;
}

.product-badge {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--accent-green);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title-h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--text-primary);
  font-weight: 800;
}

.product-price-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 35px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-price-large span {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.buy-button-group {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.btn-buy-now {
  flex: 2;
  background: var(--accent-green);
  color: white;
  padding: 20px 40px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
}

.btn-buy-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

/* AI Content Styling (Tables & Text) */
.product-detailed-content {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
}

.product-detailed-content h3 {
  font-size: 1.6rem;
  margin: 40px 0 20px;
  color: var(--text-primary);
}

.product-detailed-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.product-detailed-content tr:hover { background: #f9fafb; }

/* --- КАРТКА ТОВАРУ: ПРЕМІУМ-РЕМОНТ --- */
.product-view { 
    max-width: 1100px; 
    margin: 140px auto 80px; 
    padding: 0 5%; 
    display: grid; 
    grid-template-columns: 450px 1fr; /* Фіксована ширина для фото */
    gap: 60px; 
    align-items: start;
}

.product-gallery { 
    background: #f8fafc; 
    padding: 40px; 
    border-radius: 40px; 
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px; /* Прямокутний високий бокс для пляшки */
    width: 100%;
}

.product-gallery img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12));
}

.product-info h1 { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    line-height: 1.1; 
}

.price-tag { 
    font-size: 2.2rem; 
    color: var(--accent-green); 
    margin: 30px 0; 
    font-weight: 800; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-tag span { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }

/* ТАБЛИЦІ НОРМ (ДЛЯ СОТОК) */
.spec-table { 
    width: 100%; 
    margin: 30px 0; 
    border-collapse: collapse; 
    font-size: 0.95rem; 
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.spec-table th { 
    background: #f1f5f9; 
    padding: 15px; 
    text-align: left; 
    font-weight: 700; 
    color: var(--text-primary);
    border-bottom: 2px solid #e2e8f0;
}

.spec-table td { 
    padding: 15px; 
    border-bottom: 1px solid #e2e8f0; 
    line-height: 1.4;
}

.spec-table tr:hover { background: #f8fafc; }

.description-content { 
    line-height: 1.7; 
    color: var(--text-secondary); 
    font-size: 1.1rem; 
}

.description-content h3 { 
    color: var(--text-primary); 
    margin: 40px 0 20px; 
    font-size: 1.5rem; 
}

@media (max-width: 1024px) {
    .product-view { grid-template-columns: 1fr; max-width: 700px; }
    .product-gallery { height: 400px; position: static; }
    .product-info h1 { font-size: 2.2rem; }
}

.product-description table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.product-description th {
  background: var(--bg-secondary);
  padding: 15px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

.product-description td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.product-description tr:last-child td { border-bottom: none; }
.product-description tr:hover { background: #f8fafc; }

.product-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 20px;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 900px;
  border-radius: 32px;
  padding: 40px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-soft);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: 0.2s;
}

.modal-close:hover {
  background: var(--text-primary);
  color: white;
}

.modal-image {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-secondary);
}

/* Earth & Grass Footer */
.site-footer {
  background: #000000; /* Ідеально чорна земля */
  color: white;
  padding: 120px 0 60px;
  position: relative;
  margin-top: 150px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -120px; /* Травичка трохи виступає вгору */
  left: 0;
  width: 100%;
  height: 140px;
  background: url('image/footer-bg.png') repeat-x bottom;
  background-size: contain;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
}

.footer-col h4 {
  color: var(--accent-green);
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1rem;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 8px;
}

.footer-logo-small {
  width: 120px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer::before { height: 80px; top: -60px; }
}

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

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.modal-details p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
  }
  .modal-details h2 { font-size: 1.8rem; }
}

.btn-primary {
  padding: 14px 28px;
  background: var(--accent-green);
  color: white;
  border: none;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #16a34a;
  transform: scale(1.05);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-slider { height: 500px; }
  .slide-content h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  nav { height: 80px; }
  .logo-img { height: 60px; }
  .menu-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s var(--ease-soft);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  .nav-links.active { right: 0; }
  .hero-slider { height: 400px; margin-top: 80px; }
  .slide { padding: 0 5%; justify-content: center; }
  .slide-content { padding: 24px; text-align: center; }
  .slide-content h2 { font-size: 1.85rem; }
  .slide-content p { font-size: 1rem; }
  .section { padding: 40px 5%; }
  .grid { gap: 24px; grid-template-columns: 1fr; }
}
