/* --- Box Interiors Mini Cart --- */
.box-mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    pointer-events: none; /* Let clicks pass through when closed */
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif;
}

/* Backdrop */
.box-cart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

/* The Panel */
.box-cart-panel {
    position: absolute;
    top: 0;
    right: -500px; /* Hidden */
    width: 100%;
    max-width: 480px; /* Matches the wide look */
    height: 100%;
    background: #ECECEC; /* Light Grey background from screenshot */
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
}
.svg[Attributes="true"] {
    
    stroke: none;
}
/* OPEN STATE */
.box-mini-cart.open { pointer-events: auto; }
.box-mini-cart.open .box-cart-backdrop { opacity: 1; }
.box-mini-cart.open .box-cart-panel { right: 0; }

/* --- HEADER --- */
.box-cart-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-title {
    font-size: 16px;
    text-transform: uppercase;
    color: black;
}
.cart-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.print-trigger {
    font-size: 12px;
    text-transform: uppercase;
    color: black;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.print-trigger:hover { border-color: black; }
.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* --- ITEMS --- */
.box-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.box-cart-item {
    background: #f4f4f4; /* Grey Card */
    border: 1px solid #D1D1D1; /* Grey Border */
    display: flex;
    padding: 0;
    height: 150px;
}

.item-image {
    width: 150px;
    flex-shrink: 0;
    border-right: 1px solid #D1D1D1;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
svg[Attributes],button { color:#000; stroke:#000;}

.item-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.item-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top Row: Title + Price */
.item-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.item-title {
    font-weight: 600; /* Bold title */
    font-size: 14px;
    text-transform: uppercase;
    color: black;
    text-decoration: none;
    max-width: 160px;
}
.item-price {
    font-size: 14px;
    color: black;
}

/* Meta: Attributes + Delivery */
.item-meta {
    font-size: 11px;
    text-transform: uppercase;
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Bottom: Qty + Remove */
.item-row-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qty-selector {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: black;
    font-weight: 400;
}
.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
    color: #888;
}
.qty-btn:hover { color: black; }

.item-remove {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
}
.item-remove:hover { color: black; }


/* --- FOOTER --- */
.box-cart-footer {
    padding: 30px 40px;
    background: #EBEBEB;
    border-top: 1px solid #D1D1D1;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.btn-checkout {
    display: block;
    width: 100%;
    background: black;
    color: white!important;
    text-align: center;
    padding: 15px 0;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}
.btn-checkout:hover { opacity: 0.9; }

/* Empty state */
.empty-cart-msg {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    text-transform: uppercase;
}

/* Mobile */
@media (max-width: 480px) {
    .box-cart-panel { max-width: 100%; }
    .box-cart-header, .box-cart-items, .box-cart-footer { padding-left: 20px; padding-right: 20px; }
    .box-cart-item { min-height: auto; }
    .item-image { width: 100px; }
}
