/* ===== CART DRAWER (RIGHT SIDEBAR) ===== */

.akg-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 17, 31, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.akg-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.akg-cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: #fff;
    z-index: 9999;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.akg-cart-drawer.open {
    transform: translateX(-480px);
}

/* Header */
.cart-drawer-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f1f3f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--akg-primary);
    color: #fff;
}

.cart-drawer-header h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cart-close-btn:hover {
    opacity: 1;
}

/* Body - Cart Items */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    background: #f8fafc;
}

/* Cart Item Card */
.cart-item-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    position: relative;
    transition: transform 0.2s;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.cic-img {
    width: 80px;
    height: 100px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.cic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cic-info {
    flex: 1;
    min-width: 0;
}

.cic-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--akg-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.cic-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.cic-meta b {
    color: #334155;
}

.cic-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.cic-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--akg-secondary);
}

.cic-qty-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cic-qty-select {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    outline: none;
}

.cic-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.cic-remove:hover {
    color: #ef4444;
}

/* Footer - Summary */
.cart-drawer-footer {
    padding: 32px;
    border-top: 1px solid #f1f3f7;
    background: #fff;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748b;
}

.cart-summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dotted #cbd5e1;
    color: var(--akg-primary);
    font-weight: 800;
    font-size: 18px;
}

.cart-checkout-btn {
    width: 100%;
    background: var(--akg-secondary);
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    text-decoration: none;
    transition: background 0.25s;
}

.cart-checkout-btn:hover {
    background: var(--akg-primary);
    color: #fff;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty i.fa-spin {
    color: var(--akg-secondary);
    opacity: 1;
    display: block;
    margin: 0 auto 16px;
}

.cart-empty h4 {
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .akg-cart-drawer {
        width: 100%;
        right: -100%;
    }

    .akg-cart-drawer.open {
        transform: translateX(-100%);
    }

    .cart-drawer-header,
    .cart-drawer-body,
    .cart-drawer-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}