* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff8f0;
  color: #4b2c20;
  line-height: 1.6;
}

/* HEADER */

header {
  background: linear-gradient(135deg, #f9d3a6, #f7b36b);
  text-align: center;
  padding-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header img {
  max-width: 100%;
  max-height: 267px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

header h1 {
  font-size: 2.1rem;
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* LAYOUT PRINCIPAL */

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

/* INTRO */

.intro {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.intro strong {
  color: #c4642b;
}

/* TITLURI SECTIUNI */

.section-title {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-title span {
  font-size: 1.6rem;
}

/* CARDURI PACHETE */

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f1d2a6;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border 0.1s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  border-color: #e8b880;
}

.card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  background: #f9e1c3;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: 700;
  color: #b44b21;
  margin: 0.3rem 0;
}

/* BLOC OPTIUNI */

.options-block {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f1d2a6;
}

.field-group {
  margin-bottom: 0.9rem;
}

.field-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #d9b08c;
  font-size: 0.95rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

.inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline input[type="checkbox"] {
  width: auto;
}

/* text Glazură mai mare și vizibil */

.glazura-label {
  font-size: 1.1rem;
  font-weight: 600;
}

#glazura {
  transform: scale(1.6);   /* mărește checkbox-ul */
  margin-right: 0.4rem;    /* spațiu între checkbox și text */
}


/* mesaj preț */

.line-price-info {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* mesaj "Pachet adăugat în coș" */

.add-message {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f7a31;
  background: #e5f6e7;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  display: inline-block;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.add-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* BUTOANE */

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #c95825;
  color: #fff;
  margin-top: 0.5rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn:hover {
  background: #b04819;
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.16);
}

/* TABEL COMANDA */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
  background: #fffdf8;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 0.6rem;
  border-bottom: 1px solid #f1e1cc;
  text-align: left;
}

th {
  background: #f8dfc1;
  font-weight: 600;
}

tfoot td {
  font-weight: 700;
  background: #f4d09e;
}



/* FORMULAR CONTACT */

.contact-form {
  margin-top: 2rem;
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f1d2a6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.field-address {
  margin-top: 1rem;
}

/* FOOTER */

footer {
  margin: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #d9b08c;
  font-size: 0.9rem;
}

footer h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

footer ul {
  margin-left: 1rem;
  margin-bottom: 0.7rem;
}

footer li {
  margin-bottom: 0.2rem;
}

/* GALERIE FOTO */

.photo-gallery {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0dcc5;
}

.photo-gallery h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.photo-gallery p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #6b4a39;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.9rem;
}

.photo-grid figure {
  margin: 0;
  background: #fff8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-grid figcaption {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem 0.6rem;
  color: #7a4b33;
  text-align: center;
}

/* LIGHTBOX pentru poze */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  background: #fff8f0;
  border-radius: 18px;
  padding: 0.8rem 0.8rem 1.2rem;
  max-width: 95vw;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 14px;
  display: block;
  margin: 0 auto 0.5rem;
}

.lightbox-caption {
  font-size: 0.9rem;
  color: #6b4a39;
}

.lightbox-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #8b4b1f;
  position: absolute;
  top: 10px;
  right: 16px;
}

.lightbox-close:hover {
  color: #d45b1f;
}

/* RESPONSIVE */

@media (max-width: 600px) {
  header h1 {
    font-size: 1.7rem;
  }
  table {
    font-size: 0.8rem;
  }
  th,
  td {
    padding: 0.4rem;
  }
  .section-title {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    gap: 0.7rem;
  }
}


/* POPUP (modal) pentru confirmare */
.modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.open {
  display: flex !important;
}

.modal-content {
  background: #fff8f0;
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: rgba(0,0,0,0.3);
  border: none;
  padding: 0.3em 0.5em;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0,0,0,0.6);
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.cell-index {
  display: flex;
  align-items: center;      /* centrează vertical */
  gap: 8px;                 /* spațiu între număr și X */
}

.remove-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;              /* mai lat */
  height: 26px;             /* mai înalt */
  font-size: 24px;          /* X mai mare */
  line-height: 1;           
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #c95825;           /* puțin mai intens */
  border-radius: 6px;       /* arată mai premium */
  transition: background 0.15s, color 0.15s;
}

.remove-row:hover {
  background: rgba(0,0,0,0.05); /* mic efect hover */
  color: #e23d1f;
}

