/* Side cart / wishlist drawer */

.side-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12040;
    background: rgba(6, 16, 34, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.side-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 12050;
    width: min(420px, 100vw);
    height: 100%;
    height: 100dvh;
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.side-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.side-drawer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0b1428;
    color: #f4f5f7;
    box-shadow: -12px 0 40px rgba(6, 16, 34, 0.35);
    border-left: 1px solid rgba(200, 169, 106, 0.25);
    pointer-events: auto;
}

.side-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.side-drawer-title {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: #fff;
}

.side-drawer-title[hidden] {
    display: none !important;
}

.side-drawer-close {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.side-drawer-close i,
.side-drawer-close svg {
    pointer-events: none;
}

.side-drawer-close:hover,
.side-drawer-close:focus-visible {
    border-color: #C8A96A;
    color: #C8A96A;
    outline: none;
}

.side-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.side-drawer-panel[hidden] {
    display: none !important;
}

.side-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-drawer-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.85rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-drawer-thumb {
    display: block;
    width: 72px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f5f7;
}

.side-drawer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.side-drawer-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.side-drawer-item-info > a {
    color: #fff;
    text-decoration: none;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.25;
}

.side-drawer-item-info > a:hover {
    color: #C8A96A;
}

.side-drawer-meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.side-drawer-price {
    color: #C8A96A;
    font-size: 0.85rem;
    font-weight: 600;
}

.side-drawer-mini-form {
    margin-top: 0.4rem;
}

.side-drawer-remove {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.side-drawer-remove:hover {
    color: #e07a7a;
}

.side-drawer-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.side-drawer-empty i {
    font-size: 2rem;
    color: #C8A96A;
    display: block;
    margin-bottom: 0.75rem;
}

.side-drawer-footer {
    padding: 1rem 1.25rem 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.side-drawer-footer [hidden] {
    display: none !important;
}

.side-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.side-drawer-subtotal strong {
    color: #C8A96A;
    font-size: 1.1rem;
}

.side-drawer .btn-outline-gold {
    border-color: rgba(200, 169, 106, 0.55);
    color: #C8A96A;
    background: transparent;
}

.side-drawer .btn-outline-gold:hover {
    background: rgba(200, 169, 106, 0.12);
    color: #dfc892;
}

body.side-drawer-open {
    overflow: hidden;
}

body.side-drawer-open .whatsapp-float {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 480px) {
    .side-drawer {
        width: 100vw;
    }
}
