/* ===================================================================
   extra.css — stiluri custom adăugate peste tema originală
   (căutare în header, meniu sticky, limbi în right-nav)
   =================================================================== */

/* ---------- Bannere categorii pe homepage ---------- */
/* .card-box a devenit <a> (tot bannerul e clickabil, ducea doar textul
   de sub imagine inainte) - are nevoie de display:block ca sa respecte
   width/height, un <a> e inline implicit spre deosebire de <div> */
.cards-section .card-box {
  display: block;
}

.cards-section .card-box .overlay {
  transition: background-color 0.2s ease;
}

.cards-section .card-box:hover .overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

/* pe mobil, o singura coloana, patrat, colturile rotunjite raman
   (regulile :first-child/:last-child din style.css tin cont doar de
   pozitie, nu de latime, deci merg mai departe neschimbate) */
@media (max-width: 767px) {
  .cards-section .cards-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .cards-section .card-box {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
  }

  .cards-section .card-box .img-box {
    width: 100%;
    height: 100%;
  }

  .cards-section .card-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
}

/* titlul din banner, +50% si centrat vertical in mijlocul bannerului
   (era aproape de jos: bottom:60px desktop / bottom:30px mobil) */
.cards-section .card-box .card-text-box {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.cards-section .card-box h3 {
  font-size: 35px;
}

@media (max-width: 768px) {
  .cards-section .card-box h3 {
    font-size: 36px;
  }
}

/* ---------- Meniu sticky (apare la scroll > 300px) ---------- */

.header.sticky {
  position: fixed;
  top: -80px;
  height: 80px;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  z-index: 50;
  transition: top 0.3s ease;
}

.header.sticky.sticky-visible {
  top: 0;
}

.header.sticky .navbar-row {
  width: 100%;
}

.header.sticky .logo {
  height: 48px;
}

/* ---------- Căutare în header ---------- */

.header .header-search {
  display: none;
  flex: 1;
  align-items: center;
  min-width: 0;
  margin: 0 24px 0 124px;
}

.header .header-search form {
  display: contents;
}

.header.search-active .middle-nav {
  display: none;
}

.header.search-active .header-search {
  display: flex;
}

.header .header-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  padding: 4px 60px 4px 0;
  -webkit-mask-image: linear-gradient(to right, #000 65%, transparent 96%);
  mask-image: linear-gradient(to right, #000 65%, transparent 96%);
}

.header .header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header .header-search-input:focus {
  outline: none;
}

.header .header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.header .header-search-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Coș de cumpărături în header ---------- */

.header .header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 16px;
  color: #fff;
}

.header .header-cart:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.header .header-cart .cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #96BD13;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.header .header-cart .cart-badge[hidden] {
  display: none;
}

/* ---------- Limbi (Rus / Eng) în right-nav ---------- */

.header .right-nav .language {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  margin-left: 24px;
}

.header .right-nav .language:hover {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================================================
   Filtru catalog produse (produse.html)
   =================================================================== */

.catalog-shell {
  display: flex;
  align-items: flex-start;
  margin-top: 80px;
  gap: 48px;
}

/* imagini de produs micsorate cu 20% fata de original (220px -> 176px) */
.catalog-content .project-box img {
  height: 176px;
}

/* titlu clickabil catre pagina dedicata a produsului (ex. Adjica) */
.catalog-content .project-box h3 a {
  color: inherit;
  text-decoration: none;
}

.catalog-content .project-box h3 a:hover {
  text-decoration: underline;
}

.catalog-content {
  flex: 1;
  min-width: 0;
}

.catalog-content .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* grila trece pe 3 coloane in spatiul ramas langa sidebar */
.catalog-content .projects-row {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-column-gap: 40px;
}

.product-item.f-hidden {
  display: none !important;
}

/* cardurile filtrabile nu folosesc animatia AOS pe scroll —
   la filtrare isi schimba pozitia si ar ramane invizibile */
.catalog-content .product-item[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.products-category-row.f-hidden {
  display: none;
}

/* ---------- sidebar ---------- */

.filter-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  width: 260px;
  flex-shrink: 0;
  padding: 24px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  font-family: "Inter", Helvetica, sans-serif;
}

.filter-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #4F291C;
  cursor: pointer;
  padding: 0 4px;
}

.filter-group {
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
  text-align: left;
}

.filter-sidebar .filter-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.filter-group h4 {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4F291C;
  margin: 0 0 10px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}

.filter-group label .cnt {
  color: #999;
  font-size: 12px;
}

.filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #B42922;
  flex-shrink: 0;
}


.ing-toggle {
  border: none;
  background: none;
  padding: 4px 0;
  color: #B42922;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ing-toggle:hover {
  text-decoration: underline;
}

.filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.filter-results-count {
  font-size: 13px;
  color: #666;
}

.filter-reset {
  border: 1px solid #B42922;
  background: none;
  color: #B42922;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.filter-reset:hover {
  background: #B42922;
  color: #fff;
}

.catalog-no-results {
  text-align: center;
  padding: 80px 20px;
}

.catalog-no-results p {
  font-size: 18px;
  color: #4F291C;
  margin-bottom: 20px;
}

/* ---------- bara mobila ---------- */

.filter-mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  .catalog-shell {
    display: block;
  }

  .filter-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 80px;
    z-index: 40;
    background: #fff;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
  }

  .filter-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #4F291C;
    background: #fff;
    color: #4F291C;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
  }

  .filter-active-count {
    background: #B42922;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    padding: 1px 7px;
  }

  .filter-results-inline {
    font-size: 13px;
    color: #666;
  }

  /* sidebar devine overlay full-screen, ca meniul mobil */
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    z-index: 300;
    border: none;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: none;
  }

  .filter-sidebar.open {
    transform: translateX(0);
  }

  .filter-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 36px;
    top: 18px;
    right: 16px;
  }

  .filter-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .filter-overlay-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===================================================================
   Pagina dedicata unui produs (ex. produse/adjica.html)
   Reutilizeaza markup-ul/stilurile reale ale paginii de reteta
   (.recete-technical, .second-block, .condimente-block, .content-block
   din style.css) — aici adaugam DOAR piesele care nu au echivalent:
   randul brand/pret si tabelul de variante cu buton de adaugat in cos.
   =================================================================== */

/* descrierea produsului, deasupra titlului "Ingrediente" */
.product-description {
  font-family: "Inter", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: left;
  margin-bottom: 32px;
}

/* breadcrumb deasupra H1 (fundal deschis, spre deosebire de cel din hero) */
.product-breadcrumb {
  font-family: "Inter", Helvetica, sans-serif;
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.product-breadcrumb a {
  color: #4F291C;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-breadcrumb .sep {
  margin: 0 8px;
}

.product-breadcrumb .current {
  color: #356637;
  font-weight: 500;
}

/* spatiu intre titlu/breadcrumb si randul imagine+ingrediente, izolat
   intr-o clasa separata ca sa nu atingem .second-block la nivel global */
.push-down {
  margin-top: 30px;
}

/* imaginea produsului, 30% mai mica decat cea folosita la retete (660px),
   centrata in coloana ei (col-md-7, mai lata decat imaginea insasi) */
.product-page .second-block img {
  max-width: 462px;
}

.product-media-col {
  text-align: center;
}

/* iconitele de distribuire, sub imagine, stivuite pe verticala si
   aliniate la marginea dreapta a coloanei (.product-media-col), nu a imaginii */
.recete-technical .product-media-col .article-share-block.product-share {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding-left: 0;
}

.recete-technical .product-media-col .article-share-block.product-share a {
  margin-bottom: 0;
}

/* ingrediente/variante (col-md-5) + imagine (col-md-7) */
.product-page .second-block.row {
  align-items: flex-start;
}

.product-page .recete-technical .second-block .condimente-block {
  padding: 0 20px 0 0;
}

/* h2 e centrat implicit pe tot site-ul; cand .condimente-block devine
   stretch (mai jos), cutia titlului ocupa toata latimea coloanei si
   textul pare centrat fata de tag-urile/tabelul de dedesubt, care raman
   aliniate stanga prin flex — corectam doar alinierea textului */
.product-page .condimente-block h2 {
  text-align: left;
}

/* .condimente-block e flex-column cu align-items:flex-start (gandit pentru
   un titlu scurt + pastile de ingrediente); fara stretch, tabelul de
   variante s-ar restrange la latimea continutului lui, nu a coloanei.
   selector la fel de specific ca cel din style.css + .product-page, ca sa
   castige fara sa recurgem la !important */
.product-page .recete-technical .second-block .condimente-block {
  align-items: stretch;
}

/* Variante, imediat sub lista de ingrediente, in aceeasi coloana */
.product-variants-block {
  margin-top: 32px;
}

/* ingredientele produsului afisate inline (nu stivuite ca la retete) */
.product-page .tags-block {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.product-page .tags-block .tag {
  margin-bottom: 0;
}

.product-variants {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 36px;
}

.product-variants th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  font-weight: 700;
  padding: 0 0 10px;
  border-bottom: 1px solid #eee;
}

.product-variants td {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #333;
  vertical-align: middle;
}

.product-variants td:first-child {
  color: #999;
  font-size: 14px;
}

.product-variants td:nth-child(4) {
  color: #B42922;
  font-weight: 700;
}

.product-variants td:last-child {
  text-align: right;
  width: 160px;
}

@media (max-width: 767px) {
  .product-variants thead {
    display: none;
  }

  .product-variants,
  .product-variants tbody,
  .product-variants tr {
    display: block;
    width: 100%;
  }

  .product-variants tr {
    position: relative;
    padding: 14px 60px 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .product-variants td {
    display: inline-block;
    width: auto;
    padding: 2px 10px 2px 0;
    border-bottom: none;
    vertical-align: middle;
  }

  .product-variants td:last-child {
    position: absolute;
    top: 50%;
    right: 0;
    width: auto;
    margin-top: 0;
    padding-right: 0;
    transform: translateY(-50%);
  }

  .product-variants td:last-child .variant-add {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

  .product-variants .variant-add-label {
    display: none;
  }

  .recete-technical .ingredients-block.product-variants-block {
    padding-right: 0;
  }
}

.variant-add,
.listing-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #356637;
  background: #356637;
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 140px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.variant-add-icon {
  flex-shrink: 0;
}

.variant-add-icon-stack {
  position: relative;
  width: 16px;
  height: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.variant-add-icon-stack .variant-add-icon {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.25s ease;
}

.variant-add-icon-stack .variant-add-icon-cart {
  transform: translateY(0);
}

.variant-add-icon-stack .variant-add-icon-plus {
  transform: translateY(100%);
}

.variant-add:hover .variant-add-icon-stack .variant-add-icon-cart,
.listing-view-btn:hover .variant-add-icon-stack .variant-add-icon-cart {
  transform: translateY(-100%);
}

.variant-add:hover .variant-add-icon-stack .variant-add-icon-plus,
.listing-view-btn:hover .variant-add-icon-stack .variant-add-icon-plus {
  transform: translateY(0);
}

.variant-add:hover,
.listing-view-btn:hover {
  background: #96BD13;
  border-color: #96BD13;
  color: #fff;
}

.variant-add.added {
  border-color: #96BD13;
  background: #96BD13;
  color: #fff;
}

/* ===================================================================
   Pagina de coș (cos.html)
   =================================================================== */

.cart-page {
  font-family: "Inter", Helvetica, sans-serif;
  margin: 24px 0 60px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 50px 0;
}

.cart-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  font-weight: 700;
  padding: 0 12px 12px;
  border-bottom: 1px solid #eee;
}

.cart-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  font-size: 15px;
  color: #333;
}

.cart-cell-sku {
  color: #999;
  font-size: 13px;
  white-space: nowrap;
}

.cart-th-img,
.cart-cell-img {
  width: 96px;
}

.cart-cell-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* fallback pentru intrari vechi din cos, salvate inainte sa retinem
   imaginea produsului in localStorage */
.cart-cell-img-placeholder {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: #f4f4f0;
  border: 1px solid #eee;
}

.cart-cell-name {
  font-weight: 500;
}

.cart-cell-weight {
  color: #999;
  font-size: 13px;
  white-space: nowrap;
}

.cart-cell-price {
  color: #666;
}

.cart-cell-total {
  font-weight: 700;
  color: #B42922;
}

.cart-th-remove,
.cart-cell-remove {
  width: 40px;
  text-align: center;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #f7f7f5;
  color: #4F291C;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.qty-btn:hover {
  background: #eee;
}

.qty-input {
  width: 40px;
  height: 28px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-remove {
  border: none;
  background: none;
  color: #999;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cart-remove:hover {
  color: #B42922;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty h2 {
  color: #96BD13;
}

.cart-empty .cart-btn {
  margin-top: 50px;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 2px solid #eee;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #333;
}

.cart-summary-row strong {
  font-size: 22px;
  color: #B42922;
}

.cart-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.cart-btn-primary {
  background: #356637;
  color: #fff;
  border: 1px solid #356637;
}

.cart-btn-primary:hover {
  background: #2a5029;
  color: #fff;
  text-decoration: none;
}

.cart-btn-secondary {
  background: none;
  color: #356637;
  border: 1px solid #356637;
}

.cart-btn-secondary:hover {
  background: #356637;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    display: grid;
    grid-template-columns: 60px max-content 1fr auto;
    grid-template-areas:
      "img name name remove"
      "img sku weight weight"
      "img price qty total";
    column-gap: 12px;
    row-gap: 5px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
  }

  .cart-table td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: none;
  }

  .cart-table .cart-cell-img {
    grid-area: img;
    align-self: start;
    width: 60px;
  }

  .cart-table .cart-cell-img img,
  .cart-table .cart-cell-img-placeholder {
    width: 60px;
    height: 60px;
  }

  .cart-table .cart-cell-name {
    grid-area: name;
    font-size: 15px;
  }

  .cart-table .cart-cell-remove {
    grid-area: remove;
    justify-self: end;
    align-self: start;
  }

  .cart-table .cart-cell-sku {
    grid-area: sku;
    justify-self: start;
    font-size: 13px;
    color: #aaa;
  }

  .cart-table .cart-cell-weight {
    grid-area: weight;
    justify-self: start;
    font-size: 13px;
    color: #aaa;
  }

  .cart-table .cart-cell-weight::before {
    content: "· ";
  }

  .cart-table .cart-cell-price {
    grid-area: price;
    justify-self: start;
    font-size: 15px;
  }

  .cart-table .cart-cell-qty {
    grid-area: qty;
    justify-self: center;
  }

  .cart-table .cart-cell-total {
    grid-area: total;
    justify-self: end;
    font-size: 16px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-summary-row {
    order: -1;
  }

  .cart-actions {
    flex-direction: column;
  }

  .cart-btn {
    text-align: center;
  }
}

/* ===================================================================
   Paginare catalog (produse.html)
   =================================================================== */

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 50px 0 20px;
}

.page-numbers {
  display: flex;
  gap: 6px;
}

.page-nav,
.page-number {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #4F291C;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.page-nav:hover,
.page-number:hover {
  border-color: #B42922;
  color: #B42922;
}

.page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-nav:disabled:hover {
  border-color: #ddd;
  color: #4F291C;
}

.page-number.active {
  background: #356637;
  border-color: #356637;
  color: #fff;
}

/* ===================================================================
   Pagina de rezultate cautare (cauta.html) — stil Google
   =================================================================== */

/* pagina de cautare foloseste un .container mai ingust decat restul site-ului */
.search-container {
  max-width: 1000px;
}

.search-results-page {
  margin-top: 30px;
  width: 100%;
}

.search-results-count {
  display: inline-block;
  font-size: 20px;
  color: #555;
  background: #f2f2f2;
  border-radius: 6px;
  padding: 20px 30px;
  margin-bottom: 24px;
  width: 100%;
}

.search-no-results {
  font-size: 16px;
  color: #666;
  margin-top: 16px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.search-result {
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.search-result:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.search-result-title {
  display: inline-block;
  font-family: "Inter", Helvetica, sans-serif;
  font-size: 20px;
  color: #356637;
  text-decoration: none;
  margin-bottom: 10px;
}

.search-result-title:hover {
  text-decoration: underline;
}

.search-result-url {
  font-size: 13px;
  color: #96BD13;
  word-break: break-all;
  margin: 0;
}

.search-result-snippet {
  font-size: 15px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 10px;
}

/* ===================================================================
   Checkout (livrare / plata / confirmare)
   =================================================================== */

.checkout-stepper {
  display: flex;
  align-items: center;
  margin: 50px 0 50px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
}

.checkout-step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ddd;
  font-weight: 600;
  font-size: 14px;
}

.checkout-step.active {
  color: #356637;
}

.checkout-step.active .step-num {
  border-color: #356637;
  background: #356637;
  color: #fff;
}

.checkout-step.done .step-num {
  border-color: #96BD13;
  background: #96BD13;
  color: #fff;
}

.checkout-step-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin: 0 16px;
  max-width: 80px;
}

.checkout-step-line.done {
  background: #96BD13;
}

.checkout-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.checkout-form {
  flex: 1 1 60%;
}

.checkout-form h2 {
  text-align: left;
  margin-bottom: 24px;
}

.checkout-field {
  margin-bottom: 20px;
}

.checkout-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4F291C;
  margin-bottom: 6px;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: "Inter", Helvetica, sans-serif;
  background-color: #fff;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
  outline: none;
  border-color: #356637;
}

/* checkbox de acceptare Termeni si conditii - .checkout-field/label/input
   de mai sus sunt gandite pentru campuri text (label block, input width:100%),
   asa ca resetam explicit pentru acest rand de tip checkbox + propozitie. */
.checkout-terms-label {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
  color: #4F291C;
  cursor: pointer;
}

.checkout-terms-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0 10px 0 0;
  accent-color: #356637;
}

.checkout-terms-label a {
  color: inherit;
  text-decoration: underline;
}

.checkout-field-row {
  display: flex;
  gap: 20px;
}

.checkout-field-row .checkout-field {
  flex: 1;
}

.checkout-field-grow {
  flex: 2 !important;
}

.checkout-field-zone {
  flex: 0 0 calc(50% - 10px) !important;
  max-width: calc(50% - 10px);
}

.checkout-field-small {
  flex: 1 !important;
}

.phone-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
}

.phone-input-group:focus-within {
  border-color: #356637;
}

.phone-input-group .phone-prefix {
  padding: 10px 0 10px 14px;
  color: #4F291C;
  font-size: 15px;
  user-select: none;
}

.phone-input-group input {
  flex: 1;
  min-width: 0;
  border: none !important;
  padding: 10px 14px 10px 4px !important;
  background: transparent;
}

.phone-input-group input:focus {
  outline: none;
}

.checkout-error {
  display: block;
  color: #B42922;
  font-size: 13px;
  margin-top: 4px;
}

.checkout-summary {
  flex: 1 1 40%;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 20px;
}

.checkout-summary h2 {
  font-size: 18px;
  text-align: left;
  margin-bottom: 16px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eaeaea;
}

.checkout-summary-item .csi-name em {
  font-style: normal;
  color: #999;
}

.checkout-summary-item .csi-sku {
  color: #999;
  font-size: 12px;
  margin-right: 6px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 17px;
  color: #666;
}

.checkout-summary-grand {
  border-top: 1px solid #ddd;
  margin-top: 14px;
  padding-top: 20px;
  font-size: 19px;
  color: #356637;
  font-weight: 600;
}

.checkout-payment-box {
  max-width: 700px;
  margin: 0 auto 60px;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 50px;
}

.checkout-payment-box h2 {
  margin-bottom: 30px;
}

.checkout-payment-notice {
  background: #fff3cd;
  color: #856404;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 24px;
}

.checkout-payment-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.checkout-payment-actions form {
  flex: 1;
  display: flex;
  justify-content: center;
}

.checkout-payment-actions button {
  width: auto;
}

.checkout-result {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 50px;
  border-radius: 8px;
}

.checkout-result-success {
  background: #eef7e6;
}

.checkout-result-failed {
  background: #fdecea;
}

.checkout-result h2 {
  margin-bottom: 30px;
}

.checkout-result-success h2 {
  color: #356637;
}

.checkout-result-failed h2 {
  color: #B42922;
}

.checkout-order-total {
  font-size: 16px;
  margin: 16px 0 24px;
}

@media (max-width: 900px) {
  .checkout-layout {
    flex-direction: column;
  }

  .checkout-summary {
    width: 100%;
    position: static;
  }

  .checkout-field-row {
    flex-direction: column;
    gap: 0;
  }

  .checkout-field-zone {
    flex: 1 !important;
    max-width: none;
  }
}

/* ===================================================================
   Retete cu acelasi produs (recete/show.blade.php)
   =================================================================== */

.recete-sidebar {
  padding-left: 24px;
}

.recete-technical .related-recipes-block h2 {
  color: #356637;
  font-size: 30px;
  margin-top: 15px;
}

.related-recipes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-recipe-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
}

.related-recipe-item:hover {
  text-decoration: none;
  color: #356637;
}

.related-recipe-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-recipe-item span {
  font-size: 16px;
  line-height: 1.35;
}

.recete-technical .article-share-block-inline {
  flex-direction: row;
  margin-top: 30px;
  padding-left: 0;
  gap: 16px;
}

.legal-page-section {
  padding: 80px 0 120px;
}

.legal-content h2 {
  color: #4F291C;
  font-weight: 500;
  font-size: 22px;
  margin: 40px 0 16px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 14px;
  line-height: 1.6;
}

.legal-content ul {
  padding-left: 20px;
  list-style-type: disc;
  margin-bottom: 14px;
}

.legal-content ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.header-image-box {
  background-image: none;
  background-color: #356637;
}

/* Fasia alba de jos de tot din footer - copyright/linkuri legale in
   stanga, sigle de plata in dreapta. .footer-wrapper insusi e verde
   inchis, deci aceasta fasie isi seteaza propriul fundal alb. */
.footer-bottom-stripe {
  background-color: #fff;
}

.footer-bottom-stripe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #4F291C;
  font-size: 15px;
}

.footer-legal-links a {
  color: #4F291C;
}

/* .footer-wrapper .bottom-footer a{margin-right:44px} in style.css only
   matches links still nested under .bottom-footer - .footer-legal-links
   lives in .footer-bottom-stripe now, outside .bottom-footer, so it
   never picks up that margin to begin with. */

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-legal-sep {
  opacity: 0.2;
}

/* Sigle metode de plata (maib/Visa/Mastercard/Amex) */
.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.payment-badge img {
  display: block;
  width: auto;
}

/* Fiecare sigla are propria inaltime - proportiile lor native diferă
   mult (maib e lata, Visa/Amex mai mici), ca sa poata fi ajustate
   vizual una cate una in loc sa impartaseasca o singura inaltime. */
.payment-logo-maib {
  height: 24px;
}

.payment-logo-visa {
  height: 18px;
}

.payment-logo-mastercard {
  height: 20px;
}

.payment-logo-amex {
  height: 20px;
}

.cookie-consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.9);
  color: #F0F7C1;
  padding: 20px 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.cookie-consent-bar[hidden] {
  display: none;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-consent-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #F0F7C1;
}

.cookie-consent-inner a {
  color: #F0F7C1;
  text-decoration: underline;
}

.cookie-consent-accept {
  background: #356637;
  color: #F0F7C1;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-consent-accept:hover {
  background: #2a5029;
}

@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-accept {
    width: 100%;
    text-align: center;
  }
}

.home-hero .overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.recete-technical .second-block .condimente-block .tag {
  background-color: #96BD13;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.recete-technical .second-block .condimente-block .tag:hover {
  text-decoration: none;
  background-color: #718E0E;
}

.recete-technical .second-block .condimente-block .tag span {
  color: #fff;
  padding-left: 0;
}

.recete-technical .second-block .condimente-block .tag span::before {
  display: none;
}

.projects-row .project-box .product-variant-label {
  color: #aaa;
  font-size: 14px;
}

.projects-row .project-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.listing-buy-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

.projects-row .project-box .price {
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  display: inline-block;
  margin: 0 0 10px;
  font-size: 16px;
  color: #B42922;
  font-weight: 700;
}

@media (max-width: 767px) {
  .footer-wrapper .top-footer {
    flex-direction: column;
  }

  .footer-wrapper .top-footer a,
  .footer-wrapper .top-footer p {
    margin: 12px 0;
  }

  .filter-mobile-bar {
    position: static;
    top: auto;
    padding-bottom: 20px;
  }

  .catalog-shell {
    margin-top: 20px;
  }

  .catalog-content .projects-row {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 24px;
  }

  .catalog-content .project-box {
    max-width: none;
  }

  .catalog-content .project-box img {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .catalog-content .project-box .img-box {
    width: 100%;
    display: flex;
    justify-content: center;
    /* without this, the default align-items:stretch on this row-direction
       flex box stretches the img's cross-axis (height) to fill the box
       instead of respecting its own height:auto, so width:80% above
       resolves against an indefinite width and the image renders both
       narrower and taller than it should - visibly squished. */
    align-items: center;
  }
}

.header .middle-nav .mobile-language {
  display: none;
}

@media (max-width: 1199px) {
  .header .right-nav {
    display: flex !important;
    align-items: center;
    margin-left: auto;
    margin-right: 16px;
  }

  .header .right-nav .header-cart {
    margin-left: 10px;
  }

  .header .right-nav .language {
    display: none;
  }

  .header .middle-nav .mobile-language {
    display: block;
  }

  .header .header-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 60px 0 16px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10;
  }

  .header .header-search-input {
    font-size: 18px;
  }
}

.product-image-mobile {
  display: none;
}

@media (max-width: 767px) {
  .product-image-mobile {
    display: block;
    width: 60%;
    margin: 40px auto 30px;
  }

  .product-media-col img {
    display: none;
  }

  .recete-technical .product-media-col .article-share-block.product-share {
    display: none;
  }

  .product-page .recete-technical .second-block .condimente-block {
    padding-right: 0;
  }

  .search-result:last-child {
    margin-bottom: 30px;
  }

  .header-mobile-tel {
    display: none;
  }

  .recete-technical .article-share-block-inline {
    display: none;
  }

  .footer-bottom-stripe-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* style.css gives .footer-wrapper itself 15px side / 34px bottom padding
   below 425px, so the white stripe (its last child) was rendering inset
   from the screen edges instead of flush.
   Sides: negative margin pulls the stripe's own box (and its white
   background) back out to the true edges.
   Bottom: padding is inside the parent's border box, so a margin trick
   on the child can't paint white into it - drop the wrapper's own
   bottom padding instead, now that the stripe (not .bottom-footer) is
   the element that should touch the page's bottom edge. */
@media all and (max-width: 425px) {
  .footer-wrapper {
    padding-bottom: 0;
  }

  .footer-bottom-stripe {
    margin: 0 -15px;
  }
}
