/* Offcanvas Wishlist & Tab Navigation Styles */

/* === Tab Navigation === */
.sheet__tabs {
    display: flex;
    gap: 0;
    border-bottom: 0.1em solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.sheet__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    padding: 1.2em 1em;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    font-weight: 500;
    color: var(--color-body);
    transition: color 0.2s ease, border-bottom-color 0.2s ease, background-color 0.2s ease;
    border-bottom: 0.2em solid transparent;
}

.sheet__tab svg {
    width: 1.8em;
    height: 1.8em;
    fill: currentColor;
}

.sheet__tab:hover {
    color: var(--primary);
    background-color: rgba(var(--rgba-primary-1));
}

.sheet__tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: rgba(var(--rgba-primary-1));
}

/* === Tab Content === */
.sheet__content {
    display: none;
}

.sheet__content--active {
    display: block;
}

/* === Wishlist Styles === */
.wishlist__list {
    margin-top: 3em;
}

.wishlist__item {
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 0.1em solid rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    gap: 2em;
}

.wishlist__item__img {
    border-radius: 0.8em;
    overflow: hidden;
    flex: 3;
    aspect-ratio: 3 / 4;
}

.wishlist__item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.wishlist__item__content {
    width: 100%;
    height: -webkit-fill-available;
    width: 100%;
    padding: 0.5em 1em;
    gap: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 7;
}

.wishlist__item__title {
    font-size: 1.6em;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.wishlist__item__title:hover {
    color: var(--primary-hover);
}

.wishlist__item__title>a {
    font-size: 1em;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.wishlist__item__info {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    margin-top: 0.8em;
}

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

.wishlist__item__variants {
    display: none;
    /* Hidden but preserves data */
}

.wishlist__item__delete {
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--10px);
}

.wishlist__item__btn {
    padding: 0.8em 1.2em;
    border: 0.1em solid var(--secondary);
    background: var(--secondary);
    color: var(--white);
    border-radius: 0.4em;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.wishlist__item__btn .product-icon__cart {
    width: 1.4em;
    height: 1.4em;
    fill: currentColor;
}

.wishlist__item__btn:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.cart-icon__delete {
    width: 2em;
    height: 2em;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 4em 2em;
}

.empty-state__icon {
    width: 6em;
    height: 6em;
    fill: var(--color-body);
    margin-bottom: 2em;
}

.empty-state__title {
    font-size: 2em;
    font-weight: 600;
    color: var(--title);
    margin-bottom: 1em;
}

.empty-state__text {
    font-size: 1.4em;
    color: var(--color-body);
    line-height: 1.5;
}

/* === Footer Visibility === */
.sheet__footer[data-footer="cart"] {
    display: block;
}

.sheet__footer[data-footer="wishlist"] {
    display: none;
}

.sheet__footer[data-footer="wishlist"].active {
    display: block;
}

.sheet__footer[data-footer="cart"].hidden {
    display: none;
}

/* === Wishlist Action Buttons === */
.wishlist__action {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.wishlist__action__item {
    width: 100%;
}

/* === Wishlist Notification === */
.wishlist-notification {
    position: fixed;
    top: 2em;
    right: 2em;
    background: var(--primary);
    color: var(--white);
    padding: 1.2em 2em;
    border-radius: 0.5em;
    font-size: 1.4em;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.15);
}

.wishlist-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* === Responsive === */
@media (max-width: 768px) {
    .sheet__tab {
        font-size: 2vw;
        padding: 1em 0.8em;
    }

    /* .sheet__tab svg {
        width: 1.6em;
        height: 1.6em;
    }

    .wishlist__item {
        flex-direction: column;
        gap: 1.5em;
    }

    .wishlist__item__img,
    .wishlist__item__content,
    .wishlist__item__delete {
        width: 100%;
    }

    .wishlist__item__info {
        flex-direction: column;
        gap: 1em;
        align-items: flex-start;
    }

    .wishlist__item__btn {
        width: 100%;
    } */

    .wishlist-notification {
        top: 1em;
        right: 1em;
        left: 1em;
        font-size: 1.2em;
        padding: 1em 1.5em;
    }
}

@media (max-width: 575px) {
    .sheet__tab {
        font-size: 3vw;
        padding: 1em 0.8em;
    }
    .wishlist__item {
        font-size: 2.1vw;
    }
    /* .sheet__tab svg {
        width: 1.6em;
        height: 1.6em;
    }

    .wishlist__item {
        flex-direction: column;
        gap: 1.5em;
    }

    .wishlist__item__img,
    .wishlist__item__content,
    .wishlist__item__delete {
        width: 100%;
    }

    .wishlist__item__info {
        flex-direction: column;
        gap: 1em;
        align-items: flex-start;
    }

    .wishlist__item__btn {
        width: 100%;
    } */

    .wishlist-notification {
        top: 1em;
        right: 1em;
        left: 1em;
        font-size: 1.2em;
        padding: 1em 1.5em;
    }
}