/* ================================
   PRODUCTS GRID
================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================
   PRODUCT CARD
================================ */

.voucher-card {
  position: relative;
  transition: opacity 0.3s ease;
  margin-top: 50px;
}

.voucher-card.active {
  opacity: 1;
}


/* ================================
   HIDDEN CONTENT (inside card)
   (used only for JS extraction)
================================ */

.voucher-expand-content {
  display: none;
}


/* ================================
   EXPAND ROW (injected by JS)
================================ */

.voucher-expand-row {
  grid-column: 1 / -1; /* very important for CSS grid full width */
  display: none;
  margin-top: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.voucher-expand-row.open {
  display: block;
}


/* ================================
   EXPAND INNER LAYOUT
================================ */

.voucher-expand-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.voucher-col {
  flex: 1;
}


/* ================================
   MOBILE LAYOUT
================================ */

@media (max-width: 768px) {

  .voucher-expand-inner {
    flex-direction: column;
    gap: 30px;
  }

}

.voucher-form .quantity {
  display: none !important;
}

.voucher-form .variations {
  margin-bottom: 20px;
}

.voucher-form .variations select {
  width: 100%;
  margin-bottom: 25px;
}

.voucher-read-more {
  background: none;
  border: none;
  padding: 0 13px 0 0;
  cursor: pointer;
  color: #000;
  font-size: 20px;
  position: relative;
  outline: none;
  font-family: "FreightNeo Pro Book", Sans-serif;
  text-transform: uppercase;
}
.voucher-read-more::after {
  content: "";
  display: block;
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url(../img/baf.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  right: -25px;
  top: 1px;
}
.voucher-card.active .voucher-read-more::after {
  transform: rotate(180deg);
}
.product-title {
  font-family: "FreightNeo Pro Bold", sans-serif;
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
}
.product-title a {
  color: #000;
  text-decoration: none;
  font-size: 30px;
  text-transform: uppercase;
  font-family: "FreightNeoPro";
  font-weight: 600;
}
.product-image img {
  width: 100%;
  height: 452px;
  object-fit: cover;
}
.product-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.product-price {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: "FreightNeo Pro Bold", Sans-serif;
}
.voucher-title {
  font-size: 30px;
  text-transform: uppercase;
  font-weight: 600;
}
.voucher-price {
  font-size: 40px;
  font-weight: 600;
}
.voucher-description {
  font-size: 16px;
  font-family: "FreightNeo Pro Book", Sans-serif;
  margin-top: 30px;
}
.variations_button .quantity {
    display: none;
}
.voucher-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: 25px;
}
.voucher-buttons .button {
  color: #18261E;
  text-transform: uppercase;
  border: 1px #18261E solid;
  display: inline-block;
  padding: 19px 10px;
  min-width: 262px;
  font-size: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.voucher-buttons .button:hover {
  background-color: #18261E;
  color: #CADDCE;
}

.custom-variation-select {
    position: relative;
    display: block;
    width: 100%;
    /*max-width: 250px;*/
    margin-bottom: 20px;
}

.custom-variation-select select {
    width: 100%;
    padding: 0.5em 2.5em 0.5em 1em; /* spațiu pentru separator și triunghi */
    font-size: 25px;
    background-color: #FDF7F3;
    border: none;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
}

.custom-variation-select::before {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    right: 53px;
    width: 1px;
    background-color: #18261E;
}

.custom-variation-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 19px solid #18261E;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.custom-variation-select select:focus + ::after,
.custom-variation-select select:active + ::after {
    transform: translateY(-50%) rotate(180deg);
}
.voucher-title-wrap {
  max-width: 566px;
}

/* ====================
   Butoane disabled
==================== */
.voucher-buttons .button.disabled,
.voucher-buttons .button[disabled] {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}