/* Bricody Off-Canvas Side Cart */

/* Overlay */
.bricody-sidecart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bricody-sidecart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Side Cart Panel */
.bricody-sidecart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #0f172a; /* Dark theme match */
    z-index: 99999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #e5e7eb;
}
.bricody-sidecart.open {
    right: 0;
}

/* Header */
.sidecart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #111827;
}
.sidecart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}
.sidecart-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.sidecart-close:hover {
    color: #ef4444; /* red on hover */
}

/* Body / WC Widget Styling */
.sidecart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.sidecart-body .widget_shopping_cart_content {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.sidecart-body ul.cart_list {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}
.sidecart-body ul.cart_list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.sidecart-body ul.cart_list li img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.sidecart-body ul.cart_list li a {
    color: #f3f4f6;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 5px;
}
.sidecart-body ul.cart_list li a:not(.remove):hover {
    color: #3b82f6;
}
.sidecart-body ul.cart_list li .quantity {
    color: #94a3b8;
    font-size: 14px;
}
.sidecart-body ul.cart_list li a.remove {
    position: absolute;
    right: 0;
    top: 15px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444 !important;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}
.sidecart-body ul.cart_list li a.remove:hover {
    background: #ef4444;
    color: white !important;
}

/* Footer of cart (Subtotal & Buttons) */
.sidecart-body .total {
    border-top: 2px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
}
.sidecart-body .total .amount {
    color: #3b82f6;
}
.sidecart-body .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidecart-body .buttons .button {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}
.sidecart-body .buttons .button:not(.checkout) {
    background: rgba(255,255,255,0.05);
    color: #cfd6e1;
    border: 1px solid rgba(255,255,255,0.1);
}
.sidecart-body .buttons .button:not(.checkout):hover {
    background: rgba(255,255,255,0.1);
}
.sidecart-body .buttons .button.checkout {
    background: linear-gradient(135deg, #ffd814, #f4c20d);
    color: #111827;
    margin-top: 5px;
}
.sidecart-body .buttons .button.checkout:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.woocommerce-mini-cart__empty-message {
    text-align: center;
    color: #94a3b8;
    margin-top: 40px;
    font-size: 16px;
}
