/* Cart Global Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
    margin-right: 15px; 
}

.cart-icon:hover {
    color: #fff;
}

.cart-icon .material-symbols-outlined {
    font-size: 28px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge.hidden {
    display: none !important;
}

/* Cart Overlay/Drawer */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    justify-content: flex-end;
}

.cart-overlay.hidden {
    display: none !important;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: rgba(15, 18, 31, 1);
    border-left: 1px solid rgba(170, 156, 217, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay.show .cart-drawer {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
}

#closeCartBtn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 26px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#closeCartBtn:hover {
    color: #fff;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-cart {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 60px;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    transition: background 0.2s;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: #fff;
    font-weight: 600;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #a491f2;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.cart-item-right span {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.remove-item-btn {
    background: rgba(225, 29, 72, 0.15);
    color: #e11d48;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.remove-item-btn:hover {
    background: rgba(225, 29, 72, 0.3);
    transform: scale(1.05);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #a491f2, #7a5dc7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(164, 145, 242, 0.25);
}

.checkout-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 145, 242, 0.4);
}

.checkout-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

/* Nav Integration Adjustments */
.right-links {
    display: flex;
    align-items: center;
    gap: 15px; /* Ensures spacing between cart and discord */
}
