.modal__overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.modal__dialog {
    font-size: var(--10px);
    position: relative;
    background: #fff;
    border-radius: 1.2em;
    max-width: 65em;
    width: 95%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-2em);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2001;
}

.modal__overlay.is-open .modal__dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal__header,
.modal__footer {
    padding: 2em;
    border-bottom: 0.1em solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title{
    font-size: 1.8em;
}

.modal__footer {
    border-top: 0.1em solid #ddd;
    border-bottom: none;
    justify-content: flex-end;
    gap: 0.5em;
}

.modal__body {
    padding: 0 2em;
    overflow-y: auto;
    flex: 1;
}

.modal__close {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.6em;
}

.buyget-product {
  display: flex;
  border-bottom: 0.2em solid #eee;
  gap: 1.5em;
  position: relative;
  padding: 1.5em;
  font-size: var(--10px);
  justify-content: space-between;
}

.buyget-product__detail{
    display: flex;
    gap: 2em;
}

.buyget-product__image {
  width: 10em;
  aspect-ratio: 3 / 4; 
  overflow: hidden;
  border-radius: 0.8em;
  border: 0.1em solid #ddd;
}

.buyget-product__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buyget-product__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.2em 0;
    width: 80%;
}

.buyget-product__header {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.buyget-product__title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 0.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.buyget-product__variant {
  font-size: 1.4em;
  color: #888;
  margin-bottom: 1.5em;
}

.buyget-product__price {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary);
}

.buyget-product__action {
    display: flex;
    align-items: center;
}

.buyget-product__add-btn {
    background-color: #f2c252;
    color: #333;
    border: none;
    width: 2.5em;
    height: 2.5em;
    border-radius: 0.7em;
    font-size: 1.6em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.buyget-product__add-btn:hover {
  opacity: 0.8;
}