/**
 * LM Watchlist Styles
 * Badge and side panel
 * Menu icon is now styled in header.css (inside the native header)
 */

/* ===== Badge ===== */
.lm-wishlist-badge {
    position: absolute;
    top: 0px;
    right: -4px;
    background: #c82228;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
}

/* ===== Side Panel Wrapper ===== */
.lm-wishlist-panel-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
}

.lm-wishlist-panel-wrapper.is-open {
    pointer-events: auto;
}

/* ===== Overlay ===== */
.lm-wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.4s ease;
    transform: scale(0);
    transition: background-color 0.4s, transform 0s 0.4s;
}

.lm-wishlist-panel-wrapper.is-open .lm-wishlist-overlay {
    background-color: rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: background-color 0.4s, transform 0s;
}

/* ===== Side Panel ===== */
.lm-wishlist-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 350px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.lm-wishlist-panel-wrapper.is-open .lm-wishlist-panel {
    transform: translateX(0);
    opacity: 1;
}

/* ===== Panel Header ===== */
.lm-wishlist-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #d5d8dc;
    flex-shrink: 0;
}

.lm-wishlist-panel__title {
    font-size: 16px;
    font-weight: 600;
    color: #0A2540;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CLAUDE: I have modified the bloack below to contain important - and no width. This is working perfect. please do not modify it */
.lm-wishlist-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    background: none;
    border: none !important;
    cursor: pointer;
    color: #696969;
    padding: 0;
    transition: color 0.3s ease;
}

.lm-wishlist-panel__close:hover {
    color: #0A2540;
}

/* ===== Panel Content (Products) ===== */
.lm-wishlist-panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.lm-wishlist-panel__loading {
    padding: 40px 30px;
    text-align: center;
    color: #696969;
    font-size: 14px;
    margin: 0;
}

.lm-wishlist-panel__empty {
    padding: 40px 30px;
    text-align: center;
    color: #696969;
    font-size: 14px;
    margin: 0;
}

/* ===== Product List ===== */
.lm-wishlist-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lm-wishlist-panel__item {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #d5d8dc;
    transition: opacity 0.2s ease;
    position: relative;
    margin: 0;
}

.lm-wishlist-panel__item:last-child {
    border-bottom: none;
}

.lm-wishlist-panel__link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.lm-wishlist-panel__image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.lm-wishlist-panel__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lm-wishlist-panel__name {
    font-size: 14px;
    font-weight: 500;
    color: #0A2540;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.lm-wishlist-panel__link:hover .lm-wishlist-panel__name {
    color: #A28573;
}

.lm-wishlist-panel__price {
    font-size: 13px;
    font-weight: 600;
    color: #A28573;
}

/* ===== Remove Button ===== */
/* CLAUDE: I have modified the bloack below to contain important - and no width. This is working perfect. please do not modify it */

.lm-wishlist-panel__remove {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.lm-wishlist-panel__remove:hover {
    background: #fef2f2;
    border-color: #e6e6e6;
}

.lm-wishlist-panel__remove svg {
    stroke: #696969;
    fill: none;
}

.lm-wishlist-panel__remove:hover svg {
    stroke: #c0392b;
}

/* ===== Panel Footer (matches mini-cart layout) ===== */
.lm-wishlist-panel__footer {
    padding: 20px 24px;
    border-top: 1px solid #d5d8dc;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-wishlist-panel__footer .lm-button {
    text-align: center;
}

.lm-wishlist-panel__summary {
    display: block;
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: #696969;
    line-height: 1.4;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .lm-wishlist-panel {
        width: 300px;
    }

    .lm-wishlist-panel__header,
    .lm-wishlist-panel__item,
    .lm-wishlist-panel__footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
