/* ============================================================
   PURELUXURY — CART DRAWER (Shopify-style slide-out)
   ============================================================ */

.pl-cart-drawer {
    position: fixed; inset: 0; z-index: 100000;
    pointer-events: none; visibility: hidden;
    transition: visibility 0s linear 0.4s;
}
.pl-cart-drawer.is-open {
    visibility: visible; pointer-events: auto;
    transition: visibility 0s linear 0s;
}
.pl-cart-drawer__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.35s ease;
}
.pl-cart-drawer.is-open .pl-cart-drawer__overlay { opacity: 1; }

.pl-cart-drawer__panel {
    position: absolute; top: 0; right: 0;
    width: 100%; max-width: 440px; height: 100%;
    background: #0a0a0a;
    border-left: 1px solid rgba(201,168,76,0.15);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.pl-cart-drawer.is-open .pl-cart-drawer__panel { transform: translateX(0); }

.pl-cart-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 25px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    flex-shrink: 0;
}
.pl-cart-drawer__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 14px; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: #C9A84C;
}
.pl-cart-drawer__count { color: #C9A84C; }

.pl-cart-drawer__close {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    font-size: 16px !important; line-height: 1 !important;
    cursor: pointer;
    width: 32px !important; height: 32px !important;
    padding: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: none !important;
}
.pl-cart-drawer__close:hover {
    background: rgba(201,168,76,0.1) !important;
    color: #C9A84C !important;
    border-color: rgba(201,168,76,0.4) !important;
}

.pl-cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto; overflow-x: hidden;
    padding: 0;
    display: flex; flex-direction: column;
}
.pl-cart-drawer__body > .widget_shopping_cart_content {
    display: flex; flex-direction: column;
    flex: 1 1 auto; min-height: 0;
}
.pl-cart-drawer__body::-webkit-scrollbar { width: 6px; }
.pl-cart-drawer__body::-webkit-scrollbar-track { background: transparent; }
.pl-cart-drawer__body::-webkit-scrollbar-thumb {
    background: rgba(201,168,76,0.3); border-radius: 3px;
}

/* ============================================================
   Mini-cart items
   ============================================================ */

/* Kill bullets everywhere */
.pl-cart-drawer__body ul,
.pl-cart-drawer__body ol,
.pl-cart-drawer__body .product_list_widget,
.pl-cart-drawer__body .cart_list,
.pl-cart-drawer__body .woocommerce-mini-cart {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pl-cart-drawer__body li {
    list-style: none !important;
    list-style-type: none !important;
}
.pl-cart-drawer__body li::marker,
.pl-cart-drawer__body li::before { display: none !important; content: none !important; }

/* Empty cart */
.pl-cart-drawer__body .woocommerce-mini-cart__empty-message,
.pl-cart-drawer__body .cart_list li.empty {
    padding: 80px 30px; text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px; letter-spacing: 1.5px;
    text-transform: uppercase; margin: 0;
}

/* Each item — Shopify-style layout: [IMG] [Title + Quantity stacked] [× absolute TOP-RIGHT] */
.pl-cart-drawer__body .woocommerce-mini-cart-item,
.pl-cart-drawer__body .cart_list > li,
.pl-cart-drawer__body .product_list_widget > li {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 18px 48px 18px 25px !important;  /* right padding makes room for × button */
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    position: relative;
    margin: 0 !important;
    transition: background 0.2s ease;
}

.pl-cart-drawer__body .woocommerce-mini-cart-item:hover {
    background: rgba(255,255,255,0.015);
}

/* Remove × button — absolute TOP-RIGHT, more visible/clickable */
.pl-cart-drawer__body .woocommerce-mini-cart-item .remove,
.pl-cart-drawer__body .remove_from_cart_button,
.pl-cart-drawer__body li .remove {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    color: rgba(255,255,255,0.5) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-indent: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    z-index: 5;
    cursor: pointer;
}
.pl-cart-drawer__body .remove:hover,
.pl-cart-drawer__body .remove_from_cart_button:hover {
    background: #B22222 !important; color: #fff !important;
    border-color: #B22222 !important;
}

/* Image (JS moves it out of the anchor and adds .pl-cart-item__img) */
.pl-cart-drawer__body .pl-cart-item__img,
.pl-cart-drawer__body .woocommerce-mini-cart-item img,
.pl-cart-drawer__body .cart_list img,
.pl-cart-drawer__body img {
    width: 70px !important; height: 70px !important;
    max-width: 70px !important; min-width: 70px;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin: 0 !important; padding: 0 !important;
    float: none !important;
    display: block !important;
    flex-shrink: 0;
    order: 1;
    box-shadow: none !important;
}

/* Title anchor */
.pl-cart-drawer__body .pl-cart-item__title,
.pl-cart-drawer__body .woocommerce-mini-cart-item > a:not(.remove) {
    flex: 1 1 calc(100% - 90px);
    min-width: 0;
    display: block !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.45 !important;
    order: 2;
    margin: 0 !important;
}
.pl-cart-drawer__body .pl-cart-item__title:hover,
.pl-cart-drawer__body .woocommerce-mini-cart-item > a:not(.remove):hover {
    color: #C9A84C !important;
}

/* Quantity line "1 × CHF 280.90" */
.pl-cart-drawer__body .quantity {
    color: rgba(255,255,255,0.65) !important;
    font-size: 12px !important;
    letter-spacing: 0.3px !important;
    margin: 0 !important; padding: 0 !important;
    display: block !important;
    line-height: 1.5 !important;
    font-family: "Montserrat", sans-serif !important;
    text-transform: none !important;
    order: 3;
    flex: 1 1 100%;
    padding-left: 84px !important;
    margin-top: -4px !important;
}
.pl-cart-drawer__body .quantity .amount {
    color: #C9A84C !important; font-weight: 600 !important;
}

/* Variation (color/size) */
.pl-cart-drawer__body .variation {
    margin: 2px 0 0 !important; padding: 0 !important;
    font-size: 11px !important;
    color: rgba(255,255,255,0.5) !important;
    order: 4; flex: 1 1 100%;
    padding-left: 84px !important;
}
.pl-cart-drawer__body .variation dt,
.pl-cart-drawer__body .variation dd {
    display: inline !important; margin: 0 !important; padding: 0 !important;
}

/* ============================================================
   Footer: total + buttons
   ============================================================ */

.pl-cart-drawer__body .woocommerce-mini-cart__total,
.pl-cart-drawer__body .total {
    display: flex !important;
    justify-content: space-between; align-items: center;
    padding: 22px 25px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(201,168,76,0.2) !important;
    border-bottom: none !important;
    background: #050505;
    font-size: 13px !important;
    text-transform: uppercase; letter-spacing: 2px;
    color: #fff !important;
    flex-shrink: 0;
    margin-top: auto !important;
}
.pl-cart-drawer__body .woocommerce-mini-cart__total strong,
.pl-cart-drawer__body .total strong {
    font-weight: 500 !important;
    color: rgba(255,255,255,0.7) !important;
}
.pl-cart-drawer__body .woocommerce-mini-cart__total .amount,
.pl-cart-drawer__body .total .amount {
    color: #C9A84C !important;
    font-size: 18px !important; font-weight: 600 !important;
    letter-spacing: 1px !important;
}

.pl-cart-drawer__body .woocommerce-mini-cart__buttons,
.pl-cart-drawer__body .buttons {
    display: flex !important;
    flex-direction: column-reverse;
    gap: 10px;
    padding: 18px 25px 25px !important;
    margin: 0 !important;
    background: #050505;
    flex-shrink: 0;
}
.pl-cart-drawer__body .woocommerce-mini-cart__buttons a,
.pl-cart-drawer__body .buttons a {
    display: block !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px !important; font-weight: 600 !important;
    padding: 16px 20px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
    margin: 0 !important; width: 100% !important;
    box-sizing: border-box;
    line-height: 1 !important;
}
.pl-cart-drawer__body .woocommerce-mini-cart__buttons a.checkout,
.pl-cart-drawer__body .buttons a.checkout {
    background: linear-gradient(135deg, #C9A84C 0%, #B8973F 100%) !important;
    color: #000 !important; border: none !important;
    box-shadow: 0 4px 15px rgba(201,168,76,0.25);
}
.pl-cart-drawer__body .woocommerce-mini-cart__buttons a.checkout:hover,
.pl-cart-drawer__body .buttons a.checkout:hover {
    background: linear-gradient(135deg, #D9B85C 0%, #C9A84C 100%) !important;
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
    transform: translateY(-1px);
}
.pl-cart-drawer__body .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout),
.pl-cart-drawer__body .buttons a.wc-forward:not(.checkout) {
    background: transparent !important;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.pl-cart-drawer__body .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout):hover,
.pl-cart-drawer__body .buttons a.wc-forward:not(.checkout):hover {
    color: #C9A84C !important;
    border-color: rgba(201,168,76,0.4) !important;
}

/* Loading state */
.pl-cart-drawer__body.is-loading,
.pl-cart-drawer__body .widget_shopping_cart_content.is-loading {
    opacity: 0.5; pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Lock body scroll when drawer open */
body.pl-cart-drawer-open { overflow: hidden; }

/* Mobile full-width */
@media (max-width: 480px) {
    .pl-cart-drawer__panel { max-width: 100%; }
}
