.wishlist-panel {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
}

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

.wishlist-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wishlist-panel.is-open .wishlist-panel__overlay {
    opacity: 1;
    pointer-events: auto;
}

.wishlist-panel__drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    min-height: 0;
    background: #fff;
    box-shadow: -12px 0 40px rgba(44, 62, 78, 0.14);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e4e;
    -webkit-font-smoothing: antialiased;
}

.wishlist-panel.is-open .wishlist-panel__drawer {
    transform: translateX(0);
    visibility: visible;
}

.wishlist-panel__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.wishlist-panel__title {
    margin: 0;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #2c3e4e;
    text-transform: none;
}

.wishlist-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5c6b7a;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.wishlist-panel__close:hover,
.wishlist-panel__close:focus {
    background: #f2f4f6;
    color: #2c3e4e;
    outline: 0;
}

.wishlist-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.25rem 0;
    -webkit-overflow-scrolling: touch;
}

.wishlist-panel__cart-bar {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 1.5rem;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.wishlist-panel__contacts {
    flex: 0 0 auto;
    padding: 1rem 1.5rem 0.75rem;
    border-top: 1px solid #e8e8e8;
    background: #f7f8f9;
}

.wishlist-panel__contacts-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5c6b7a;
}

.wishlist-panel__contacts-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wishlist-panel__contacts-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 0.625rem;
}

.wishlist-panel__contacts-item:last-child {
    margin-bottom: 0;
}

.wishlist-panel__contacts-item--muted .wishlist-panel__contacts-value {
    color: #5c6b7a;
}

.wishlist-panel__contacts-label {
    font-size: 11px;
    line-height: 1.3;
    color: #8a97a5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wishlist-panel__contacts-value {
    font-size: 14px;
    line-height: 1.45;
    color: #2c3e4e;
    text-decoration: none;
}

a.wishlist-panel__contacts-value:hover,
a.wishlist-panel__contacts-value:focus {
    color: #026602;
    text-decoration: none;
}

.wishlist-panel__foot {
    flex: 0 0 auto;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.wishlist-panel__cart-btn {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 1rem;
    border: 1px solid #026602;
    border-radius: 8px;
    background: #026602;
    color: #fff;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.wishlist-panel__cart-btn:hover:not(:disabled),
.wishlist-panel__cart-btn:focus:not(:disabled) {
    background: #014401;
    border-color: #014401;
    color: #fff;
    outline: none;
}

.wishlist-panel__cart-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wishlist-panel__all-link {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #026602;
    text-decoration: none;
}

.wishlist-panel__all-link:hover,
.wishlist-panel__all-link:focus {
    color: #014401;
    text-decoration: underline;
}

.wishlist-panel__empty,
.wishlist-page__empty {
    margin: 0;
    padding: 2rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #5c6b7a;
    text-align: center;
}

.wishlist-panel__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wishlist-panel__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eef1f3;
}

.wishlist-panel__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    background: #fafafa;
}

.wishlist-panel__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-panel__info {
    flex: 1 1 auto;
    min-width: 0;
}

.wishlist-panel__name {
    display: block;
    margin-bottom: 0.375rem;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #2c3e4e;
    text-decoration: none;
}

.wishlist-panel__name:hover,
.wishlist-panel__name:focus {
    color: #026602;
    text-decoration: none;
}

.wishlist-panel__price {
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #026602;
}

.wishlist-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.wishlist-btn__icon svg {
    display: block;
    width: 18px;
    height: 16px;
}

.wishlist-btn__icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linejoin: round;
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.wishlist-btn--active .wishlist-btn__icon path {
    fill: currentColor;
}

.wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.wishlist-btn:hover,
.wishlist-btn:focus {
    color: #d9534f;
    text-decoration: none;
    outline: 0;
}

.wishlist-btn--active,
.wishlist-btn--active:hover,
.wishlist-btn--active:focus {
    color: #d9534f;
}

.wishlist-btn--large {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.wishlist-btn--compact {
    flex: 0 0 34px;
    box-shadow: none;
    background: transparent;
}

.col-item .photo {
    position: relative;
}

.col-item__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-view__toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-view__toolbar .title {
    margin: 0;
    flex: 1 1 auto;
}

.wishlist-widget {
    margin-bottom: 20px;
}

.wishlist-widget__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.wishlist-widget__trigger:hover,
.wishlist-widget__trigger:focus {
    border-color: #026602;
    color: #026602;
    text-decoration: none;
}

.wishlist-widget__trigger .badge {
    margin-left: auto;
}

body.is-wishlist-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .wishlist-panel__drawer {
        max-width: none;
    }

    .wishlist-panel__head,
    .wishlist-panel__item,
    .wishlist-panel__cart-bar,
    .wishlist-panel__contacts,
    .wishlist-panel__foot {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wishlist-panel__drawer,
    .wishlist-panel__overlay {
        transition: none;
    }
}
