/* Side Cart Drawer Styles */
#side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    visibility: hidden;
    /* Hide by default */
}

#side-cart.open {
    right: 0;
    visibility: visible;
}

#side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#side-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Header */
.side-cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.95);
}

.side-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#close-side-cart {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-side-cart:hover {
    color: var(--primary-gold);
}

/* Content */
.side-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* WooCommerce Mini Cart Overrides */
.widget_shopping_cart_content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce-mini-cart {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-mini-cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.woocommerce-mini-cart-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.woocommerce-mini-cart-item a:hover {
    color: var(--primary-gold);
}

.woocommerce-mini-cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 0;
    right: 0;
    color: #ff6b6b !important;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
}

.woocommerce-mini-cart-item .remove:hover {
    opacity: 1;
    background: none !important;
}

/* Footer Buttons */
.woocommerce-mini-cart__total {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.woocommerce-mini-cart__total strong {
    color: var(--text-light);
    font-weight: 600;
}

.woocommerce-mini-cart__total .amount {
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-weight: 700;
}

.woocommerce-mini-cart__buttons {
    display: grid;
    gap: 1rem;
}

.woocommerce-mini-cart__buttons .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.woocommerce-mini-cart__buttons .button.checkout {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #f0c850;
    transform: translateY(-2px);
}

.woocommerce-mini-cart__buttons .button:not(.checkout) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Empty Cart */
.woocommerce-mini-cart__empty-message {
    text-align: center;
    color: var(--text-gray);
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 480px) {
    #side-cart {
        width: 100%;
        right: -100%;
    }
}