﻿/* Stiluri generale */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
.hero {
  background: #2e3b3e;
  color: white;
  padding: 50px 20px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 30px;
}

/* Caseta de căutare – pe toată lățimea */
.hero-search {
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-form input[type="text"] {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border: none;
  outline: none;
}

.search-form button {
  padding: 12px 16px;
  font-size: 1rem;
  background-color: #003366;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-form button:hover {
  background-color: #001f4d;
}

/* Navigație */
.navbar {
  background: #1f2628;
  padding: 15px 0;
  text-align: center;
}

.navbar a {
  color: white;
  margin: 0 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.navbar a:hover {
  color: #aad4ff;
}

/* Secțiuni */
.section {
  max-width: 900px;
  background: white;
  margin: 40px auto;
  padding: 30px;
  border-radius: 8px;
}

.section h2 {
  color: #2e3b3e;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Galerie */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery img {
  max-width: 300px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Formular contact */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact label {
  font-weight: bold;
}

.contact input,
.contact textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.contact button {
  padding: 12px;
  font-size: 1rem;
  background-color: #b22222;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #7f1212;
}

/* Footer */
footer {
  background-color: #2e3b3e;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
  }

  .search-form input[type="text"],
  .search-form button {
    width: 100%;
    border-radius: 0;
  }

  .navbar a {
    display: block;
    margin: 10px 0;
  }

  .gallery img {
    max-width: 100%;
  }
}

/* Ascunde secțiunea Contact implicit */
.hidden {
  display: none;
}

/* Stil pentru butonul Contact din navbar (să arate ca celelalte linkuri) */
.navbar button {
  background: none;
  border: none;
  color: white;
  margin: 0 15px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
}

.navbar button:hover {
  color: #aad4ff;
}
.navbar a,
.navbar button {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.navbar {
  background-color: #3a4a52;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  font-family: Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar a:hover,
.navbar button:hover {
  background-color: #446270;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Buton dropdown */
.dropbtn {
  display: inline-block;
  user-select: none;
}

/* Conținut dropdown - ascuns implicit */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #3a4a52;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 1001;
  margin-top: 6px;
}

/* Link-uri dropdown */
.dropdown-content a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-weight: normal;
}

.dropdown-content a:hover {
  background-color: #557a8a;
}

/* Arată dropdown când se face hover pe butonul/dropdown */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Secțiunea accesorii */
.section {
  max-width: 900px;
  margin: 40px auto;
  padding: 25px 20px;
  background-color: white;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Lista produse */
.product-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Un produs individual */
.product {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #2e3b3e;
}

.product p {
  font-weight: 600;
  margin: 10px 0;
  color: #b22222;
}

.add-to-cart-btn {
  padding: 10px;
  background-color: #b22222;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: #7f1212;
}
.cart-list {
  list-style: none;
  padding: 0;
}

.cart-item {
  background: #f0f0f0;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 6px;
}

.cart-item button {
  margin-top: 8px;
  padding: 6px 10px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item button:hover {
  background-color: #a00000;
}

/* Buton ANPC plutitor */
#anpcBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #003366;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: background-color 0.3s ease;
}

#anpcBtn:hover {
  background-color: #0059b3;
}
.hidden {
  display: none;
}

.cart-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.cart-actions button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}
.removeBtn {
  margin-left: 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
}
.removeBtn:hover {
  background-color: #cc0000;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0 10px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  background: #3a86ff;
  color: white;
  padding: 20px 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(58, 134, 255, 0.3);
}

main.section {
  background: white;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-grow: 1;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  background: #e7f0ff;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}

ul li button.removeBtn {
  background: #ff5f5f;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
}

ul li button.removeBtn:hover {
  background: #e63946;
}

#cartContents p {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 20px;
  text-align: right;
}

.cart-actions.section {
  max-width: 600px;
  margin: 0 auto 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cart-actions button {
  background: #3a86ff;
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  flex: 1 1 180px;
  max-width: 200px;
}

.cart-actions button:hover {
  background: #265ecf;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding: 15px 0;
  border-top: 1px solid #ddd;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 480px) {
  ul li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  ul li button.removeBtn {
    margin-top: 8px;
    align-self: flex-end;
  }

  .cart-actions {
    flex-direction: column;
    gap: 12px;
  }
}
.hidden {
  display: none;
}

.logo-container {
  display: flex;
  align-items: top;
  gap: 120px;
}

.logo-img {
  height: 120px; /* Ajustează după nevoie */
  width: auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;

  background-image: url('../images/camping-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* asta o face să rămână când dai scroll */
}

.section {
  background-color: rgba(255, 255, 255, 0.85); /* fundal alb semi-transparent pentru conținut */
  padding: 40px;
  margin: 20px;
  border-radius: 10px;
}

body {
  background-image: url('../images/background.jpg'); /* înlocuiește cu calea reală a imaginii */
  background-size: cover;        /* imaginea acoperă toată zona */
  background-attachment: fixed;  /* face fundalul să stea fix */
  background-repeat: no-repeat;
  background-position: center;
}

.site-header {
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: white;
}

/* Rândul de sus: Nume firmă + căutare */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 80px;
  background-color: white;
}

.company-name h1 {
  font-size: 24px;
  margin: 0;
  color: #003366;
}

.company-name p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.search-bar {
  max-width: 500px;
  width: 100%;
}

.search-form {
  display: flex;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.search-form input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  font-size: 1rem;
  border: none;
  outline: none;
}

.search-form button {
  padding: 10px 16px;
  background-color: #003366;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-form button:hover {
  background-color: #002244;
}

/* Navbar deja definit – păstrezi ce ai deja */

.hidden {
  display: none;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f4f4f4;
  flex-wrap: wrap;
}

.company-name h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #003366;
}

.search-cart-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar {
  flex: 1;
}

.search-form {
  display: flex;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-form input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: none;
}

.search-form button {
  padding: 10px 16px;
  background-color: #003366;
  color: white;
  border: none;
  cursor: pointer;
}

.cart-link a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  background-color: white;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.cart-link a:hover {
  background-color: #e0e0e0;
}

#goTopBtn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  color: #333;
  background: transparent;
  border: none;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
  animation: bounce 2s infinite;
}

/* Arată butonul când e scroll */
#goTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Animație de săgeată bounce */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 480px) {
  .company-name h1 {
    font-size: 1.2rem;
  }

  .company-name p {
    font-size: 0.9rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input[type="text"],
  .search-form button {
    width: 100%;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar a,
  .navbar button {
    margin: 5px 0;
    font-size: 1rem;
    padding: 8px;
  }

  #anpcBtn {
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    padding: 10px 12px;
  }

  #goTopBtn {
    font-size: 28px;
    bottom: 60px; /* ridică-l deasupra butonului ANPC */
  }
}

/* Burger icon */
.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  color: white;
}

/* Linkuri navbar grupate */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive nav */
@media (max-width: 768px) {
  .burger {
    display: block;
    margin-left: auto;
    padding-right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #3a4a52;
    padding: 15px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1001;
  }

  .nav-links a,
  .nav-links .dropbtn {
    margin: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }
}

.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  padding: 10px 20px;
}

.navbar {
  background: #1f2628;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #1f2628;
    margin-top: 10px;
  }

  .nav-links a {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #333;
  }

  .nav-links.show {
    display: flex;
  }
}

.footer {
  background-color: #222;      /* fundal inchis, elegant */
  color: #ddd;                 /* text deschis */
  padding: 30px 20px;
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: justify;
  border-top: 3px solid #007BFF; /* o linie accent albastră */
}

/* Dropdown orar specific */
.program de lucru-dropdown {
  display: none;
  position: absolute;
  background-color: #fff;
  color: #333;
  min-width: 180px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  font-size: 0.9rem;
  border-radius: 4px;
  left: auto;  /* Schimbat */
  right: 0;    /* Adăugat */
}

.dropdown:hover .program de lucru-dropdown,
.dropdown:focus-within .orar-dropdown {
  display: block;
}

/* Ajustare link Program de lucru */
.dropbtn {
  cursor: pointer;
  user-select: none;
}
.footer {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #222; /* fundal închis */
  color: #fff; /* text alb, să se vadă pe fundal închis */
  pointer-events: auto;
  padding: 20px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.footer-trigger {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px; /* zona invizibilă de jos a paginii */
  background: transparent;
  z-index: 1000;
}

.footer-trigger:hover + .footer {
  opacity: 1;
}

.footer:hover {
  opacity: 1;
}

