* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: Montserrat, sans-serif;
  line-height: 1.2;
  font-size: 1.6rem;
  padding-top: 60px;
  overflow-x: hidden; /* Previne scroll-ul orizontal */
  margin: 0; /* Eliminăm marginile implicite */
}

header {
  position: relative;
  background-color: #fff;
  padding: 1rem 2rem;
  z-index: 10;
}

.logo-container {
  position: absolute;
  top: -40px;
  left: 20px;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  display: block;
  width: 180px;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  border-radius: 10px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: red;
  height: 60px;
  width: 100%;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.categories {
  display: flex;
  list-style: none;
  margin: 0;
}

.categories li {
  margin-left: 20px;
}

.categories li a {
  color: white;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.categories li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.scroll-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f00;
  color: #fff;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
  z-index: 100;  
}

.scroll-button:hover {
  background-color: #c00;
}

.produsas {
  position: relative;
}

.produsas .image-container {
  position: relative;
  display: inline-block;
}

.produsas .image-container img {
  display: block;
  width: 100%;
  height: auto;
    border-radius:20px;
}

.produsas .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
     border-radius:24px;
}

.produsas .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  visibility: hidden;
}

.produsas:hover .overlay,
.produsas:focus .overlay,
.produsas:active .overlay {
  opacity: 1;
  border-radius: 24px;
}

.produsas:hover .text,
.produsas:focus .text,
.produsas:active .text {
  visibility: visible;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrează toate elementele pe axa orizontală */
  justify-content: center; /* Centrează toate elementele pe axa verticală */
  text-align: center;
  width: 100%; /* Asigură că secțiunea ocupă întreaga lățime */
  margin: 0 auto; /* Centrează secțiunea pe ecran */
}

#sectiunea1 {
  max-width: 1000px; /* Asigură că secțiunea nu depășește lățimea ecranului */
  padding: 10px;
  text-align: center;
  margin: 0 auto;
}

.product-est {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrează elementele în interiorul secțiunii */
  width: 100%;
  box-shadow: 0px 8px 4px rgb(215 14 14 / 20%);
  border-radius: 10px;
}

.product-est img {
  max-width: 100%; /* Asigură că imaginea nu depășește containerul */
  height: auto;
}

@media (max-width: 768px) {
  body {
    padding-left: 0; /* Eliminăm orice padding stânga pentru a elimina spațiul gol */
  }

  .produsas .text {
    font-size: 14px;
  }
    .produsas .overlay {
    opacity: 1; 
        border-radius:0px;
  }
     .produsas .text {
    font-size: 14px; 
    visibility: visible; 
  }
    .produsas .image-container img {
    border-radius:0px;
}

  .logo-container {
    top: -60px; /* Ridică logo-ul deasupra topbarului pentru ecrane mici */
    left: 50%;
    transform: translateX(-50%);
  }

  .topbar {
    flex-direction: column;
    height: auto;
    padding-top: 50px; /* Adaugă spațiu pentru logo */
  }

  .topbar a {
    font-size: 12px; /* Redu dimensiunea textului din topbar pe telefoane mobile */
  }

  .categories {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .categories li {
    margin: 5px;
  }

  .categories li a {
    padding: 10px 15px;
    font-size: 14px;
  }

  .contact-section {
    padding: 0 20px; /* Ajustează paddingul pentru a limita lățimea pe ecrane mici */
  }

  #sectiunea1 {
    padding: 10px;
    text-align: center;
  }
}

.biton {
  background-color: red;
  color: white;
  padding: 10px 20px;
  border: none;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 20px;
}

.biton:hover {
  background-color: white;
  color: black;
}

.separator {
  border-top: 2px solid red;
  margin-top: 20px;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 pentru video */
  height: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80%; /* Ajustează dimensiunile iframe-ului pentru ecrane mici */
  height: 80%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .video-container iframe {
    width: 90%; /* Ajustează dimensiunile iframe-ului pentru ecrane mici */
    height: 90%;
  }
}

.custom-button {
  background-color: red;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.custom-button:hover {
  background-color: yellow;
}

.button-wrapper {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 20px;
}

@media (max-width: 767px) {
  .button-wrapper {
    position: static;
    text-align: center;
    margin-top: 10px;
    transform: translateX(-50%);
  }
}

.cookie-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 300px;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.cookie-content {
  text-align: center;
}

.cookie-content h2 {
  margin-top: 0;
  font-family: Montserrat, sans-serif;
}

.buttons {
  margin-top: 10px;
}

button {
  background-color: red;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 3px;
  cursor: pointer;
  margin-right: 10px;
}

a {
  color: red;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background-color: red;
  padding: 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-content p {
  color: white;
  margin-bottom: 10px;
}

.fa-facebook {
  color: white;
  font-size: 24px;
  margin-top: 10px;
}

.centerImage {
  text-align: center;
  display: block;
}

.product-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-column {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.product {
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin: 10px;
  transform: translateY(0);
  border-radius: 24px;
}

.product img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.product-title {
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.product-button {
  display: inline-block;
  background-color: red;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
}

.product-button:hover {
  background-color: yellow;
}

@media only screen and (max-width: 768px) {
  .product-container {
    flex-direction: column;
    align-items: center;
  }

  .product-column {
    margin-top: 20px;
  }

  .product {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
  }
}

.contact-section {
  text-align: center;
  margin: 20px 0;
  padding: 0 20px; /* Ajustează paddingul pentru a limita lățimea pe ecrane mici */
}

.contact-section h2 {
  margin-bottom: 10px;
}

.contact-section p {
  margin-bottom: 20px;
}

#sectiunea1 {
  text-align: center;
  max-width: 1000px; /* Limităm lățimea maximă a secțiunii */
  margin: 0 auto; /* Centrăm secțiunea pe ecranele mici */
  padding: 20px; /* Adăugăm un padding pentru a separa conținutul de margini */
}

#loader {
  position: fixed; /* Modifică la fixed pentru a menține poziționarea centrată */
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px; /* Ajustează margin pentru a centra corect */
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid red;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from { bottom:-100px; opacity:0 } 
  to { bottom:0px; opacity:1 }
}

@keyframes animatebottom { 
  from{ bottom:-100px; opacity:0 } 
  to{ bottom:0; opacity:1 }
}

#myDiv {
  display: none;
  text-align: center;
}

@media (max-width: 768px) {
  #loader {
    width: 80px; /* Dimensiuni mai mici pentru ecrane mici */
    height: 80px;
    margin: -40px 0 0 -40px;
    border-width: 12px;
  }
}

.products-section {
  padding: 20px;
  text-align: center;
}

.products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product {
  width: 300px;
  margin: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.product h2 {
  font-size: 1.8rem;
  margin: 10px 0;
}

.product p {
  font-size: 1.4rem;
  color: #555;
}

.product-button {
  background-color: red;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.product-button:hover {
  background-color: #c00;
}

@media (max-width: 768px) {
  .product {
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
  }
      .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-block {
    min-width: 100%;
    margin-bottom: 20px;
  }
}
/* About Section */
.about-section {
  padding: 40px 20px;
  text-align: center;
}

.about-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.about-block {
  flex: 1;
  min-width: 300px;
  margin: 20px;
  border: 1px solid red;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-block h2 {
  margin-bottom: 20px;
  color: #333;
}

.about-block p {
  font-size: 1.4rem;
  color: #555;
}

.button-container {
  position: relative;
  display: inline-block;
}

.main-button {
  display: block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.main-button:hover,
.main-button:focus {
  background-color: #0056b3;
}

.sub-buttons {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  z-index: 10;
}

.sub-buttons .mini-button {
  display: block;
  padding: 5px 10px;
  background-color: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  margin-top: 5px;
  transition: background-color 0.3s;
}

.sub-buttons .mini-button:hover {
  background-color: #5a6268;
}

.button-container:hover .sub-buttons,
.button-container:focus-within .sub-buttons {
  display: block;
}



