



.header-cart {
    position: relative;
    width: 45px;
    height: 45px;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
    
}

.header-cart:hover {
    transform: scale(1.1);
    color: var(--brand-color);
}

.cart-float {
    display: none;
    
}


.cart-float:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--brand-color);
    color: white;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background-color: var(--brand-color);
}


.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: white;
    z-index: 2001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
}

.cart-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}


.cart-items {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 30px;
    gap: 15px;
    align-items: center;
    
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-info h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: var(--primary-color, #111);
    font-weight: 600;
    line-height: 1.2;
}

.cart-item-price {
    color: #2995D9;
    
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 10px 0;
}


.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid #eee;
}

.cart-qty-controls button {
    background: #fff;
    border: 1px solid #ddd;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 0;
}

.cart-qty-controls button:hover {
    border-color: #2995D9;
    color: #2995D9;
    background: #fff;
}

.cart-qty-controls span {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
    color: #333;
}


.remove-item {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    border-radius: 50%;
}

.remove-item:hover {
    background-color: #fff0f0;
    color: #dc3545;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.paypal-container {
    margin-top: 20px;
}

.clear-cart-btn {
    background: none;
    border: none;
    color: #e76f51;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px;
}

.clear-cart-btn:hover {
    color: #d63031;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
    }
}
