/* === style.css === */

/* Обнулення стилів */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



html, body {
  font-family: 'e-Ukraine-Bold', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: auto;         
  min-height: 100vh;
}

/* Кольори */
:root {
  --accent: #6ee004;
  --bg: #f8f4f4;
  --text: #000;
  --surface: #f8f4f4;
  --surface-contrast: #000;
  --accent-hover: #c7fa55;
}

body.dark-mode {
  --text: #f8f4f4;
  --surface: #2a2a2a;
  --surface-contrast: #f8f4f4;
}


body.modal-open {
  overflow: hidden;
}


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

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

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;

}

.logo {
  white-space: nowrap;
  font-size: 1.3rem;
  margin-right: 2rem;
}

.close-nav-btn {
  display: none;
}

.message-popup {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  font-size: 12px;
}

.message-popup.show {
  opacity: 1;
  visibility: visible;
}

.burger {
  display: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 2;
}


/* Кнопки */
.buttonsSite {
  color: black;
  background-color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  margin-bottom: 1rem;
}

.buttonsSite:hover {
  background-color: var(--accent-hover);
  color: #000;
  transform: scale(1.05);
}

.Tab {
  padding-left: 2rem;
}

@media (max-width: 1024px) {
  .product-info-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .container {
    padding: 0 10px;
  }
  .product-info-layout {
    flex-direction: column;
    align-items: center;
  }
  .modal-content {
    width: 95%;
    padding: 1rem;
  }
  .catalog-filters-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  
  .product-card img {
    height: 150px;
  }

  .modalIconCart {
    margin-top: 20px;
  }

  .burger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }

  nav {
    display: none;
    color: var(--bg); 
  }

  body.nav-open nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    z-index: 900;

  }


  body.nav-open::before {
    content: "";
    position: fixed;
    z-index: 900;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    pointer-events: auto;
  }


  body.nav-open a {
    color: var(--bg);
  }
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    
  }

  nav ul li {
     
    text-align: center;
  }

  nav ul li a {
    font-size: 2rem;
    font-weight: bold;         
    background: transparent;      
    text-shadow: none;           
  }

  nav ul li a:hover {
    background: rgba(0, 0, 0, 0.418);
  }

  .site-header {
    position: relative;
    z-index: 900;
  }

  .close-nav-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--bg);
    cursor: pointer;
    z-index: 1002;
  }

  .site-header .burger {
    margin-left: auto;
    margin-right: 1rem;
    order: 3;
  }

  .floating-search-button,
  .modalIconCart {
    bottom: 1.5rem;
    left: 90%;
    
  }

  .search-modal {
    left: 90%;
  }
 

  .search-modal.expanded {
    top: 74.7%;
    left: 67%;
    transform: translateX(-50%);
  }
  
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .hero-section p {
    font-size: 0.9rem;
  }
  .product-card {
    max-width: 100%;
  }
  .product-card img {
    height: 140px;
  }
  .modal-content {
    padding: 0.5rem;
  }
  .search-modal.expanded {
    width: 60%;
  }
  



  .categories-section {
    display: none;

  }
  .product-info-specs button {
    max-width: 100%;
    margin: 0;
  }

  #infoModal .modal-content {
    max-width: 98vw;
  }
}