* { box-sizing: border-box; }

.gift-card-container {
    border: 1px solid #e6e6e6;
    background-color: #fff;
    margin-top: 15px;
    border-radius: 8px;
    font-family: 'Nunito Sans';
}

.gift-card-header {
    padding: 24px 16px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.gift-card-title {
    margin-left: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #353535;
}


.gift-card-items-container {
  position: relative;
  overflow: visible;
}


.gift-card-list {
    display: flex;
    padding: 8px 16px 16px 16px;
    align-items: stretch;
}

/* .gift-card-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
    border-radius: 8px;
    box-shadow: 0px 1px 4px 0px #00000040;
    overflow: hidden;
    background: white;
} */

.gift-card-item {
    /* width: calc((100% - 32px) / 2); */
    width: 100%;
    max-width: 349px;
    aspect-ratio: 1087 / 709;

    /* height: 218px; */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0px 2px 4px 0px #00000029;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;

}

@media (min-width: 993px) {
    .gift-card-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }
}

.gift-card-left {
    flex: 1;
    /* flex: 0 0 57.5%; */
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    /* aspect-ratio: 1087 / 709; */
}
/* 
.gift-card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
} */

.gift-card-left img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  /* object-fit: cover; */
}

.gift-card-right {
  flex: 1;
  padding: clamp(12px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gift-card-name {
    font-family: Nunito Sans;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.4em;
    color: #0D0E0F;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gift-card-desc {
    font-family: 'Nunito Sans';
    font-weight: 400;
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.4em;
    letter-spacing: 0;
    color: #464A4C;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.gift-card-desc p {
    margin: 0;
    padding: 0;
    line-height: inherit;
    font: inherit;
    color: inherit;
}
.gift-card-desc strong {
    margin: 0;
    padding: 0;
    line-height: inherit;
    font: inherit;
    color: inherit;
}


.gift-card-price {
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 700;
    color: #d32f2f;
}

.gift-card-price-label {
    font-weight: 400;
    color: #0D0E0F;
    font-size: clamp(12px, 1vw, 16px);
}

.gift-card-right .btn_add_cart{
    width: 100%;
    height: 36px;
    display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: row;
    align-items: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    font-weight: 600;
    font-size: 1.1em;
    padding: 4px 8px;
    background-color: white;
    color: #C92127;
    border: 1px solid #C92127;
    margin-left: 0 !important;
    cursor: pointer;
}

.gift-card-right .btn_add_cart > span{
    display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: row;
    align-items: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 992px) {
    .gift-card-list {
        display: flex;
        overflow-x: auto;
    }

    .gift-card-list::-webkit-scrollbar {
        display: none;
    }

    /* .gift-card-item {
        flex: 0 0 337px;
        flex-direction: column;
        padding: 8px;
        border-radius: 8px;
        scroll-snap-align: start;
        border: 1px solid #e0e0e0;
    } */

    .gift-card-item {
        width: 40%;
        max-width: 420px;
        flex-direction: column;
        /* border: 1px solid #e0e0e0; */
        /* padding: 8px; */
        margin: 0;
        scroll-snap-align: start;
    }

    .gift-card-left {
      width: 100%;
      /* aspect-ratio: 1087 / 709; */
      border-radius: 8px;
    }
    
    .gift-card-left img {
      width: 100%;
      height: 100%;
      /* object-fit: cover; */
    }

    .gift-card-right {
      width: 100%;
      flex: none;
      padding: 8px 0 0 0;
    }

    .gift-card-name {
      font-size: 14px;
      font-weight: 600;
    }
  
    .gift-card-desc {
      font-size: 12px;
      -webkit-line-clamp: 1;
      line-height: 2;
    }
  
    .gift-card-price {
      font-size: 16px;
      padding-bottom: 6px;
    }

    .gift-card-price-label {
        font-size: 12px;
      }

    .gift-card-right .btn_add_cart{
        height:32px
    }
}


@media (max-width: 768px) {
    .gift-card-header{
        padding: 16px;
    }
    .gift-card-title{
        font-size: 18px;
    }
    /* .gift-card-item {
      flex: 0 0 212px;
      margin-right: 12px;
    } */
  
    .gift-card-left {
      /* aspect-ratio: 212 / 134; */
      /* border-radius: 8px; */
    }
  
    .gift-card-right {
      padding: 8px 0;
    }
    .gift-card-item {
      width: 68%; max-width: 320px;
    }
    .gift-card-list .swiper-slide {
      width: 68% !important;
      max-width: 320px !important;
    }
}