.header-cart {
    position: relative;
    margin-left: 22px;
    display: flex;
    align-items: center;
    z-index: 1100;
}

.cart-link {
    position: relative;
    color: #fff;
    font-size: 20px;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #d5a353;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-dropdown {
    position: absolute;
    top: 40px;
    right: -35px;
    width: 320px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.cart-dropdown.show {
    display: block;
}

.cart-header {
    padding: 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h6 {
    margin: 0;
    font-weight: 700;
    color: #333;
}

.close-cart {
    color: #999;
    font-size: 16px;
}

.cart-summary-info {
    padding: 10px 15px;
    background-color: #f0f8ff;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 15px;
}

.empty-cart-message {
    padding: 20px 0;
    text-align: center;
    color: #999;
}

.cart-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    align-items: center;
    gap: 8px;
}

.cart-item-image {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-title {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.cart-item-quantity {
    font-size: 10px;
    color: #888;
    font-weight: 500;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.cart-item-price {
    font-size: 11px;
    color: #d5a353;
    font-weight: 600;
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.remove-item {
    color: #999;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background-color: #f0f0f0;
    color: #d5a353;
}

.cart-footer {
    padding: 15px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.cart-buttons {
    display: flex;
    gap: 10px;
    min-height: 40px;
}

.btn-checkout, .btn-clear-cart {
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-checkout {
    background-color: #d5a353;
    color: #fff;
    flex: 2;
}

.btn-checkout:hover {
    background-color: #c69343;
    color: #fff;
}

.btn-clear-cart {
    background-color: #f1f1f1;
    color: #666;
    flex: 1;
}

.btn-clear-cart:hover {
    background-color: #e1e1e1;
}

/* Notification styles */
#cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d5a353;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

#cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .cart-link {
        font-size: 18px;
        color: #121212;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -6px;
        right: -6px;
    }
    
    .header-cart {
        margin-left: 15px;
    }
    
    .cart-dropdown {
        right: -20px;
    }
}

@media (max-width: 767px) {
    .cart-dropdown {
        width: 290px;
        right: -30px;
    }
    
    .cart-item {
        padding: 8px 0;
        gap: 6px;
    }
    
    .cart-item-image {
        width: 30px;
        height: 30px;
    }
    
    .cart-item-title {
        font-size: 11px;
        flex: 1;
        min-width: 60px;
    }
    
    .cart-item-quantity {
        font-size: 9px;
        width: 25px;
    }
    
    .cart-item-price {
        font-size: 10px;
        width: 40px;
    }
    
    .remove-item {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .cart-items-container {
        max-height: 250px;
    }
    
    .cart-buttons {
        flex-direction: column;
        gap: 8px;
        min-height: 85px;
    }
    
    .btn-checkout, .btn-clear-cart {
        width: 100%;
    }
    
    #cart-notification {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-cart {
        margin-left: 22px;
    }
    
    .cart-dropdown {
        width: 250px;
        top: 35px;
        right: -40px;
    }
    
    .cart-header {
        padding: 10px;
    }
    
    .cart-header h6 {
        font-size: 14px;
    }
    
    .cart-summary-info {
        padding: 8px 15px;
    }
    
    .cart-item-count {
        font-size: 12px;
    }
    
    .cart-footer {
        padding: 10px;
    }
    
    .cart-item {
        gap: 4px;
    }
    
    .cart-item-image {
        width: 25px;
        height: 25px;
    }
    
    .cart-item-title {
        font-size: 10px;
        min-width: 50px;
    }
    
    .cart-item-quantity {
        font-size: 8px;
        width: 20px;
    }
    
    .cart-item-price {
        font-size: 9px;
        width: 35px;
    }
    
    .remove-item {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    #cart-notification {
        padding: 10px 15px;
        font-size: 13px;
    }
}